mirror of
https://github.com/tursodatabase/limbo.git
synced 2025-08-04 01:58:16 +00:00
ext/python: Makes linter happy
This commit is contained in:
parent
9a8970b6a8
commit
6edf3dd3b1
2 changed files with 14 additions and 9 deletions
|
@ -15,16 +15,19 @@ with limbo.connect("sqlite.db") as con:
|
|||
|
||||
# Insert some sample data
|
||||
sample_users = [
|
||||
("alice", "alice@example.com", "admin"),
|
||||
("bob", "bob@example.com", "user"),
|
||||
("charlie", "charlie@example.com", "moderator"),
|
||||
("diana", "diana@example.com", "user")
|
||||
]
|
||||
("alice", "alice@example.com", "admin"),
|
||||
("bob", "bob@example.com", "user"),
|
||||
("charlie", "charlie@example.com", "moderator"),
|
||||
("diana", "diana@example.com", "user"),
|
||||
]
|
||||
for username, email, role in sample_users:
|
||||
cur.execute("""
|
||||
cur.execute(
|
||||
"""
|
||||
INSERT INTO users (username, email, role)
|
||||
VALUES (?, ?, ?)
|
||||
""", (username, email, role))
|
||||
""",
|
||||
(username, email, role),
|
||||
)
|
||||
|
||||
# Use commit to ensure the data is saved
|
||||
con.commit()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue