aboutsummaryrefslogtreecommitdiff
path: root/api/db.py
blob: 54483318c0a928e670e20e83be75b0384a3de6bb (plain)
1
2
3
4
5
6
7
8
# dit bestand is hier om circular imports te vermijden
import os
import sqlite3

db_path = os.path.abspath("database/database.db")
connection = sqlite3.connect(db_path, check_same_thread=False)
#!                                    ^^^ Dit is onveilig en goede multithreading support moet nog geïmplementeerd worden
cursor = connection.cursor()