feat: add FTS5 search

This commit is contained in:
strsv committed 2026-11-06 08:01:39 +03:00
1 parent c441d770e2
commit f1624cfde2
17 files changed
+232 -26

No files matched your search

+2
View File
@@ -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()