libsql icon indicating copy to clipboard operation
libsql copied to clipboard

Flutter support

Open richard457 opened this issue 1 year ago • 1 comments

richard457 avatar Nov 21 '24 19:11 richard457

@simolus3 did an awesome job laying the foundations for a drop in replacement I think, see prior art: sqlite3.dart

Instead of using the sqlite3 library from the OS, you can also ship a custom sqlite3 library along with your app. You can override the way this package looks for sqlite3 to instead use your custom library. For instance, you can release your own sqlite3.so next to your application

We can consider using the bindings via dart:ffi / DynamicLibrary route

The alternative can be the wasm route, supplying replacement for sqlite3.wasm for broader Flutter platform support

Manually providing sqlite3 libraries

WASM Support

scriptam avatar Dec 10 '24 23:12 scriptam