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

Support for the FTS5 extension? #1253

Open
mrpengxinwen opened this issue Sep 11, 2024 · 1 comment
Open

Support for the FTS5 extension? #1253

mrpengxinwen opened this issue Sep 11, 2024 · 1 comment

Comments

@mrpengxinwen
Copy link

const st1 = db.prepare(SELECT * FROM t_content_idx where t_content_idx match 'a')

it return null ,why? the better-sqlit3 don't support fts5 extenssion?

@Prinzhorn
Copy link
Contributor

Prinzhorn commented Sep 11, 2024

By default better-sqlite3 compiles SQLite with SQLITE_ENABLE_FTS5.

Your code produces:

SqliteError: no such table: t_content_idx

Please provide a complete self-contained reproduction using an in-memory db.

import Database from 'better-sqlite3'

const db = new Database(':memory:');

// Your setup code

console.log(db.prepare(`SELECT * FROM t_content_idx where t_content_idx match 'a'`).all());

@mceachen mceachen changed the title he better-sqlit3 don't support fts5 extenssion? Support for the FTS5 extension? Sep 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants