Feat: start sqlite tribe repository

This commit is contained in:
2022-12-26 18:07:23 +01:00
parent 566ba8e2f5
commit 6fbe238e59
4 changed files with 87 additions and 0 deletions

View File

@@ -0,0 +1,18 @@
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)