Loading JSON1 extension with flutter sqflite

情到浓时终转凉″ 提交于 2020-02-23 03:54:10

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!