Skip to main content

reaxdb_migrate 0.1.0 copy "reaxdb_migrate: ^0.1.0" to clipboard
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.fromSharedPreferences and fromSharedPreferencesAsync copy SharedPreferences values.
  • Every migration can verify the copy, report progress, convert custom objects (toJson() or a convert callback), skip entries, keep existing keys, and delete the source once complete.
  • toStorableValue converts DateTime, Duration, BigInt, Set, enums and maps with non-string keys into values ReaxDB stores.
  • Needs reaxdb_dart 2.7.0.
0
likes
160
points
--
downloads

Documentation

API reference

Publisher

verified publisherdvillegas.com

Weekly Downloads

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.

Repository (GitHub)
View/report issues

Topics

#hive #migration #shared-preferences #database #storage

License

MIT (license)

Dependencies

flutter, hive_ce, reaxdb_dart, shared_preferences

More

Packages that depend on reaxdb_migrate