utils/sembast_import_export
library
Functions
-
decodeImportAny(Object srcData)
→ Object
-
Decode the exported data to be imported.
-
exportDatabase(Database db, {List<String>? storeNames})
→ Future<Map<String, Object?>>
-
Return the data in an exported format that (can be JSONified).
-
exportDatabaseLines(Database db, {List<String>? storeNames})
→ Future<List<Object>>
-
Return the data in an exported format where each item in the list can be JSONified.
If simply encoded as list of json string, it makes it suitable to archive
a mutable export on a git file system.
-
exportLinesToJsonlString(List export)
→ String
-
Convert export as a list of string (export is is a List or non null objects)
-
exportLinesToJsonStringList(List export)
→ List<String>
-
Convert export as a list of string (export is is a List or non null objects)
-
importDatabase(Map srcData, DatabaseFactory dstFactory, String dstPath, {SembastCodec? codec, List<String>? storeNames})
→ Future<Database>
-
Import the exported data (using exportDatabase) into a new database
-
importDatabaseAny(Object srcData, DatabaseFactory dstFactory, String dstPath, {SembastCodec? codec, List<String>? storeNames})
→ Future<Database>
-
Import the exported data (using exportDatabase or exportDatabaseLines or their json encoding or a string of it) into a new database
-
importDatabaseLines(List srcData, DatabaseFactory dstFactory, String dstPath, {SembastCodec? codec, List<String>? storeNames})
→ Future<Database>
-
Import the exported data (using exportDatabaseLines) into a new database