serverpod / serverpod

Serverpod is a next-generation app and web server, explicitly built for the Flutter and Dart ecosystem.
BSD 3-Clause "New" or "Revised" License
2.3k stars 200 forks source link

Generate Hive Adapters for models in client to support offline capabilities #2258

Open kieran-myopnotes opened 2 weeks ago

kieran-myopnotes commented 2 weeks ago

Is your feature request related to a problem? Please describe. We are currently looking at implementing offline capability into our application and have realised that this would be super simple if serverpod generated hive adapters for all the models.

Describe the solution you'd like If all the generated models were hive compliant then saving them to local storage would be as easy as the existing ORM. You might even be able to implement some form of serverpod wrapper around hive that implements automated caching of created objects to support offline mode in the same way Firebase does which really would put serverpod ahead of the game