问题
In my flutter app I'm using sqflite to talk to a local database. I need to peek into json data for specific queries. The JSON1 extension would be ideal for this. However, I can't find how to load the extension in a flutter app, making it available in my queries, since the documentation for loading the extension is written for C language, not Dart. So, some questions to help me on the way:
- Should I compile in different architectures for iOS and Android?
- Where should the compiled file(s) be placed in my app? I assume it's not added as an asset?
- and, How to access/load the C extension in my flutter/dart code?
PS Suggestions for other well supported local databases (document databases or databases that support json queries) for flutter are also welcome. I looked into couchbase lite, but the plugins (fluttercouch, couchbase-lite-flutter) are still slowly under development.
来源:https://stackoverflow.com/questions/53351775/loading-json1-extension-with-flutter-sqflite