algonauti / flutter-rest-data

Easily persist on device REST data from your backend
Other
5 stars 3 forks source link

Migrate from Hive #10

Closed Bringoff closed 2 years ago

Bringoff commented 2 years ago

So, hive seems to be taking rough turn with rewriting it using Rust and breaking backward compatibility. Also, it's not the most reliable database. It would be nice to migrate somewhere. Some candidates:

algodave commented 2 years ago

@Bringoff Thank you for your proposals!

I'd suggest to keep it simple and avoid code generation. Sembast looks like a good candidate: it's a key-value store, similar to Hive. I'd definitely avoid its usage on top of sqflite because we don't want to force apps using this package to also use sqflite.

We could migrate easily from Hive to Sembast, and keep the filtering logic in-memory, just like we do now.