Feat: add get method for student repository

This commit is contained in:
2022-12-27 08:13:54 +01:00
parent 4e13d0e32f
commit fd567c292d
3 changed files with 206 additions and 0 deletions

View File

@@ -14,5 +14,20 @@ def create_tribe_table(conn) -> None:
conn.commit()
def create_student_table(conn) -> None:
cursor = conn.cursor()
cursor.execute(
"""
CREATE TABLE IF NOT EXISTS students(
id VARCHAR(500) PRIMARY KEY UNIQUE,
name VARCHAR,
tribe_name VARCHAR
)
"""
)
conn.commit()
def create_db(conn) -> None:
create_tribe_table(conn)
create_student_table(conn)