Open rizalkotlin opened 5 years ago
My suggestion is to build a platform plugin for desktop. You only need a few methods.
you can use SQLite with FFI support on desktop right?
Awesome idea. I was thinking about this also.
flutter_moor does this on the experimental branch!
Dart:ffi is far from ready. From their readme there are significant limitations when using it, like only for x64 or working only in Jit compiling, but that's not how flutter work. It looks like sembast is plausible solution when working in desktop, but still it will have performance degradation when working with large data set. I was hoping for mongodb embedable release for flutter, but still no news there.
We already have persistent embedded document-oriented NoSQL database for Dart which support multi platform like objectdb or sembast. Using SQLite gives us downsize, too many implementation for every platform. On mobile we can use sqflite, on dart vm we use dart-sqlite, but on Flutter Desktop we can't use both of them, dart-sqlite can't be used since Flutter doesn't support reflection/mirror