reaxdb_flutter 0.2.0
reaxdb_flutter: ^0.2.0 copied to clipboard
Flutter companion for ReaxDB. Opens databases in the app support directory, keeps the encryption key in the Keychain or Keystore, and turns queries into streams for StreamBuilder.
0.2.0 #
ReaxFlutter.open(name, keepInMemory: true)keeps every value in memory, like a Hive box. Reads and queries skip the disk, anddb.getSyncreads a value without aFuture. Writes are saved to disk first, as before.- Needs
reaxdb_dart2.5.0, which also brings writes that no longer stall on maintenance andrekey/changePassphrase.
0.1.0 #
First release.
ReaxFlutter.open(name)opens a database in the app support directory.encrypted: truecreates a random AES-256 key on the first launch, keeps it in the Keychain or Keystore, and refuses to replace a missing key when the database already has files.ReaxFlutter.deleteDatabase(name)removes the files and the key.ReaxFlutter.pathFor(name)andReaxFlutter.keyNameFor(name).db.watchQuery(query)re-runs a query after changes to its collection, with a debounce and without repeating equal results.- Needs
reaxdb_dart2.1.0 and Flutter 3.44 or newer.