aboutsummaryrefslogtreecommitdiff
path: root/test.py
diff options
context:
space:
mode:
authorAnthony Wang2023-12-29 16:16:25 -0600
committerAnthony Wang2023-12-29 16:16:25 -0600
commit97722764e82b3748a6ec60574fd3d3752048c101 (patch)
tree61b6fe63c227693ee407d146f683d375e3df6414 /test.py
parent63f04f004110ecabfb5ec32408e77055a62a9122 (diff)
Add command for creating table in README, add fish helper scripts
Diffstat (limited to 'test.py')
-rw-r--r--test.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/test.py b/test.py
index 451b403..e600853 100644
--- a/test.py
+++ b/test.py
@@ -3,7 +3,7 @@ import sqlite3
con = sqlite3.connect("test.db")
con.execute("PRAGMA journal_mode=wal")
cur = con.cursor()
-cur.execute("CREATE TABLE IF NOT EXISTS cards (idx INTEGER PRIMARY KEY, weight INTEGER, key STRING, val STRING)")
+cur.execute("CREATE TABLE cards (idx INTEGER PRIMARY KEY, weight INTEGER, key STRING, val STRING)")
for i in range(10**8):
cur.execute("INSERT INTO cards VALUES(?, ?, ?, ?)", (i, 1, i, i))
con.commit()