Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SQLite & SQL Server Compact Toolbox extension for Visual Studio 2022 - scripting SQlite database with FTS5 error #983

Open
alexey-leonovich opened this issue Apr 15, 2024 · 6 comments

Comments

@alexey-leonovich
Copy link

alexey-leonovich commented Apr 15, 2024

When I open SQLite database with FTS5, select Script Database -> Script Schema and click Script to Window - I get an error:
image
Toobox info:
image
Other tools (e. g. SQLite Expert Personal) script same database without any problem.

Steps to reproduce

  1. Open database in a toolbox - test.zip
  2. Select Script Database -> Script Schema
  3. Click Script to Window button

Further technical details

Toolbox/Power Tools version: SQLite & SQL Server Compact Toolbox extension 4.8.776

Database engine: SQLite

Visual Studio or SSMS version: Visual Studio 2022 17.9.6 Pro

@ErikEJ
Copy link
Owner

ErikEJ commented Apr 15, 2024

What is fts5 ?? Is it supported in Sqlite 3.40?

@ErikEJ
Copy link
Owner

ErikEJ commented Apr 15, 2024

@ErikEJ
Copy link
Owner

ErikEJ commented Apr 19, 2024

@alexey-leonovich thoughts?

@ErikEJ
Copy link
Owner

ErikEJ commented Apr 22, 2024

                var dllFullFileName = Path.Combine(path, "SQLite.Interop.dll");
                connection.Open();
                connection.EnableExtensions(true);
                connection.LoadExtension(dllFullFileName, "sqlite3_fts5_init");

@alexey-leonovich
Copy link
Author

alexey-leonovich commented May 15, 2024

I found this: https://sqlite.org/forum/info/4cf36abaf7011e76cbb73e07591d4a0cae6bcc9b7c2fe5e548f6fed02710e503

                var dllFullFileName = Path.Combine(path, "SQLite.Interop.dll");
                connection.Open();
                connection.EnableExtensions(true);
                connection.LoadExtension(dllFullFileName, "sqlite3_fts5_init");

@ErikEJ sorry, again I've missed all github notifications somehow :( That code is correct. I'm working with fts5 SQLite database same way. P. S. fts5 is a full-text search extension that was introduced in sqlite 3.9.0 (2015-10-14).

@ErikEJ
Copy link
Owner

ErikEJ commented May 15, 2024

@alexey-leonovich Thanks for conforming, I hope to get around to implementing this one day.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants