.net - SQLite:没有这样的模块:System.Data.SQLite.dll 1.0.101.0 的 fts5 错误

标签 .net sqlite full-text-search system.data.sqlite fts5

我正在使用 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/

相关文章:

java - SQLite查询: get all columns of a row(android)?

json - 调整 Postgres 全文搜索

php - #1191 - 在 Mysql 中找不到与列列表匹配的 FULLTEXT 索引

c# - 从 VS 2012 设置 AutoGenerateColumns 属性

c# - ViewModelBuilder 泛型类型转换问题

.net - 如何将巨大的 XML 文件转换为关系数据来执行查询

c# - ASP缓存新手-尝试模拟WinForms功能/正确的协议(protocol)

android - 使用此类时应用程序关闭

android - 有没有办法在android studio中将音频文件转换为字节数组

mysql - MySQL 中的全文搜索查询