recopytex/backend/adapters/sqlite.py

19 lines
302 B
Python
Raw Normal View History

2022-12-26 17:07:23 +00:00
import sqlite3
def create_tribe_table(conn) -> None:
cursor = conn.cursor()
cursor.execute(
"""
CREATE TABLE IF NOT EXISTS tribes(
name TEXT PRIMARY KEY UNIQUE,
level TEXT
)
"""
)
conn.commit()
def create_db(conn) -> None:
create_tribe_table(conn)