reaxdb_migrate 0.1.0
reaxdb_migrate: ^0.1.0 copied to clipboard
Move your data from Hive or SharedPreferences into ReaxDB, any size, with progress, verification and a report. Add it for the migration, remove it after.
0.1.0 #
First release.
ReaxMigrate.fromHive(boxes, into: db)copies Hive boxes (Hive or hive_ce, encrypted or not, open or closed) into ReaxDB collections. Small boxes are read whole and large ones one value at a time, writes go in atomic batches, and running it again is safe.ReaxMigrate.fromSharedPreferencesandfromSharedPreferencesAsynccopy SharedPreferences values.- Every migration can verify the copy, report progress, convert custom
objects (
toJson()or aconvertcallback), skip entries, keep existing keys, and delete the source once complete. toStorableValueconvertsDateTime,Duration,BigInt,Set, enums and maps with non-string keys into values ReaxDB stores.- Needs
reaxdb_dart2.7.0.