Loading...
Loading...
Use when writing or debugging SQLite FTS5 queries in Dart (snippet(), bm25(), MATCH) that return empty results or throw. Covers the alias trap (snippet/bm25 are top-level functions taking the table name, not methods on an alias) and the probe-first pattern to isolate SQL from app code.
npx skill4agent add hoangsoft90/ai_skills sqlite-fts5-queriessnippet()bm25()f.snippet(...)snippet(pages_fts, ...)tool/fts_probe.dartdart run tool/fts_probe.dartsnippetbm25SELECT f.title, snippet(pages_fts, 1, '<b>', '</b>', '…', 12) FROM pages_fts f WHERE pages_fts MATCH ? ORDER BY bm25(pages_fts)fsnippet()bm25()ORsnippet(table, col, prefix, suffix, ellipsis, maxTokens)bm25(table)ORDER BYREBUILD