aboutsummaryrefslogtreecommitdiff
path: root/test.py
diff options
context:
space:
mode:
Diffstat (limited to 'test.py')
-rw-r--r--test.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/test.py b/test.py
new file mode 100644
index 0000000..821bf62
--- /dev/null
+++ b/test.py
@@ -0,0 +1,8 @@
+import sqlite3
+
+con = sqlite3.connect("test.db")
+cur = con.cursor()
+cur.execute("CREATE TABLE IF NOT EXISTS 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()