idb_shim.utils.idb_utils library
Classes
- CursorRow
- Cursor row.
- KeyCursorRow
- Key cursor row.
Functions
-
copyDatabase(
Database srcDatabase, IdbFactory dstFactory, String dstDbName) → Future< Database> - Copy a database content to a new database.
-
copySchema(
Database srcDatabase, IdbFactory dstFactory, String dstDbName) → Future< Database> - Copy a database to another return the opened database
-
copyStore(
Database srcDatabase, String srcStoreName, Database dstDatabase, String dstStoreName) → Future - Copy a store from a database to another existing one.
-
cursorToKeyList(
Stream< Cursor> stream) → Future<List< Object> > - Convert an autoAdvance openKeyCursor stream to a list (must be auto-advance)
-
cursorToList(
Stream< CursorWithValue> stream) → Future<List< CursorRow> > - Convert an autoAdvance openCursor stream to a list
-
cursorToPrimaryKeyList(
Stream< Cursor> stream) → Future<List< Object> > - Convert an autoAdvance openKeyCursor stream to a list of key, must be auto-advance)
-
keyCursorToList(
Stream< Cursor> stream) → Future<List< KeyCursorRow> > - Convert an autoAdvance openKeyCursor stream to a list