2022-03-17 13:07:35 +01:00
|
|
|
# TODO: Datenbank Klasse (CRUD)
|
|
|
|
|
2022-03-17 13:22:44 +01:00
|
|
|
import database_connection
|
|
|
|
|
|
|
|
|
|
|
|
def create_database(db_cursor):
|
2022-03-17 13:07:35 +01:00
|
|
|
# TODO Datenbank erstellen
|
|
|
|
return
|
|
|
|
|
|
|
|
|
2022-03-17 13:22:44 +01:00
|
|
|
def create_table(db_cursor):
|
2022-03-17 13:07:35 +01:00
|
|
|
# TODO Table erstellen
|
|
|
|
return
|
|
|
|
|
|
|
|
|
2022-03-17 13:22:44 +01:00
|
|
|
def add(db_cursor):
|
2022-03-17 13:07:35 +01:00
|
|
|
# TODO Frage / Antwort hinzufügen
|
|
|
|
return
|
|
|
|
|
|
|
|
|
2022-03-17 13:22:44 +01:00
|
|
|
def read_question(db_cursor):
|
2022-03-17 13:07:35 +01:00
|
|
|
# TODO Frage / Antwort auslesen
|
|
|
|
return
|
|
|
|
|
|
|
|
|
2022-03-17 13:22:44 +01:00
|
|
|
def update_question(db_cursor):
|
2022-03-17 13:07:35 +01:00
|
|
|
# TODO Frage / Antwort Aktualisieren
|
|
|
|
return
|
|
|
|
|
|
|
|
|
2022-03-17 13:22:44 +01:00
|
|
|
def del_question(db_cursor):
|
2022-03-17 13:07:35 +01:00
|
|
|
# TODO Frage / Antworte löschen
|
|
|
|
return
|