feat: add FTS5 search
This commit is contained in:
1 parent
c441d770e2
commit
f1624cfde2
17 files changed
+232
-26
No files matched your search
@@ -189,6 +189,8 @@ def main():
|
||||
con.execute("INSERT OR REPLACE INTO schema_meta (key, value) VALUES ('steam_root', ?)", (root,))
|
||||
con.execute("INSERT OR REPLACE INTO schema_meta (key, value) VALUES ('steamid', ?)", (steamid,))
|
||||
|
||||
db.refresh_search_index(con)
|
||||
|
||||
counts = {r["type"]: r["n"] for r in con.execute(
|
||||
"SELECT COALESCE(LOWER(type), 'unknown') AS type, COUNT(*) AS n FROM games GROUP BY 1")}
|
||||
con.close()
|
||||
|
||||
Reference in new issue
Block a user