Added test for sqlite-utils search, refs #192

This commit is contained in:
Simon Willison 2020-11-06 15:40:42 -08:00
commit 63e2bdf18d
4 changed files with 36 additions and 3 deletions

View file

@ -941,6 +941,7 @@ def query(
"Execute SQL query and return the results as JSON"
db = sqlite_utils.Database(path)
_load_extensions(db, load_extension)
db.register_fts4_bm25()
with db.conn:
cursor = db.execute(sql, dict(param))
if cursor.description is None: