我正在使用 System.Data.SQLite.dll 1.0.101.0,在执行命令“使用 fts5 (fld1, fld2) 创建虚拟表 tbl_fts”时出现此错误。
错误: 没有这样的模块:fts5
在此页面中我们可以看到:1.0.99.0 - 2015 年 12 月 9 日
•添加对原生 json1 和 fts5 扩展的实验性支持
https://system.data.sqlite.org/index.html/doc/trunk/www/news.wiki
问题是什么,我应该如何启用 fts5,我应该重建 System.Data.SQLite.dll 吗?我该怎么做?
谢谢..
最佳答案
这里是解决方案,工作了 6 个多小时才找到它:
MyConnection.EnableExtensions(True)
MyConnection.LoadExtension("System.Data.SQLite.dll", "sqlite3_fts5_init") ''/// Or "SQLite.Interop.dll" as you need.
我通过这句话理解:“添加对 FTS5 可加载扩展的实验性支持。(用户:mistachkin)”
http://system.data.sqlite.org/index.html/finfo?name=SQLite.Interop/SQLite.Interop.2010.vcxproj
关于.net - SQLite:没有这样的模块:System.Data.SQLite.dll 1.0.101.0 的 fts5 错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/37565423/