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