Update README.md

This commit is contained in:
2025-03-17 15:14:25 +00:00
parent 41f003ed92
commit fc1a3db03c

View File

@@ -3,7 +3,7 @@
class SQL:
def __init__(sql, db='.db'):
import sqlite3, os; sql.db = db
if not os.path.exists(db): os.makedirs(db); SQL().con.executescript(
if not os.path.exists(db): os.makedirs(db); SQL(db).con.executescript(
"PRAGMA journal_mode=WAL; CREATE TABLE kv(k,v,t DEFAULT CURRENT_TIMESTAMP);"
"CREATE INDEX idx_kv_v ON kv(v); CREATE INDEX idx_kv_k_t ON kv(k,t DESC);")
(con := sqlite3.connect(f'{db}/sql', check_same_thread=False,