sqlc icon indicating copy to clipboard operation
sqlc copied to clipboard

SQLite: Add support for WHERE clause on the FTS5 Table Name

Open ankitrgadiya opened this issue 1 year ago • 1 comments

What do you want to change?

SQLite supports WHERE clause directly over the Table name to query all the columns.

CREATE VIRTUAL TABLE IF NOT EXISTS ft
USING fts5(id, name, content);
SELECT name, snippet(ft, -1, "...", "...", "", 30)
FROM ft
WHERE ft MATCH @query

But SQLC does not work with this Query.

# package gen
query.sql:77:7: column "ft" does not exist

What database engines need to be changed?

SQLite

What programming language backends need to be changed?

Go

ankitrgadiya avatar Feb 15 '24 18:02 ankitrgadiya

I have created PR for this #3498.

naspeh avatar Sep 13 '24 06:09 naspeh