mirror of
https://github.com/aljazceru/turso.git
synced 2025-12-19 01:24:20 +01:00
bindings/python: Rename package to pyturso
This commit is contained in:
@@ -2,13 +2,13 @@
|
||||
|
||||
import json
|
||||
|
||||
import limbo
|
||||
import turso
|
||||
from antithesis.random import get_random
|
||||
from utils import generate_random_value
|
||||
|
||||
# Get initial state
|
||||
try:
|
||||
con_init = limbo.connect("init_state.db")
|
||||
con_init = turso.connect("init_state.db")
|
||||
except Exception as e:
|
||||
print(f"Error connecting to database: {e}")
|
||||
exit(0)
|
||||
@@ -25,7 +25,7 @@ pk = tbl_schema["pk"]
|
||||
cols = [f"col_{col}" for col in range(tbl_schema["colCount"]) if col != pk]
|
||||
# print(cols)
|
||||
try:
|
||||
con = limbo.connect("stress_composer.db")
|
||||
con = turso.connect("stress_composer.db")
|
||||
except Exception as e:
|
||||
print(f"Failed to open stress_composer.db. Exiting... {e}")
|
||||
exit(0)
|
||||
@@ -53,7 +53,7 @@ for i in range(updates):
|
||||
cur.execute(f"""
|
||||
UPDATE tbl_{selected_tbl} SET {set_clause} WHERE {where_clause}
|
||||
""")
|
||||
except limbo.OperationalError as e:
|
||||
except turso.OperationalError as e:
|
||||
if "UNIQUE constraint failed" in str(e):
|
||||
# Ignore UNIQUE constraint violations
|
||||
pass
|
||||
|
||||
Reference in New Issue
Block a user