update database.py
This commit is contained in:
@@ -10,10 +10,8 @@ def get_connection():
|
|||||||
"""
|
"""
|
||||||
conn = sqlite3.connect(DB_PATH)
|
conn = sqlite3.connect(DB_PATH)
|
||||||
|
|
||||||
# Zorgt dat foreign keys werken in SQLite
|
|
||||||
conn.execute("PRAGMA foreign_keys = ON")
|
conn.execute("PRAGMA foreign_keys = ON")
|
||||||
|
|
||||||
# Resultaten kunnen als dictionary worden gebruikt
|
|
||||||
conn.row_factory = sqlite3.Row
|
conn.row_factory = sqlite3.Row
|
||||||
|
|
||||||
return conn
|
return conn
|
||||||
|
|||||||
Reference in New Issue
Block a user