Skip to content
This repository was archived by the owner on Jun 5, 2025. It is now read-only.

Commit b4ce9d3

Browse files
Changed comment
1 parent 829766a commit b4ce9d3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/codegate/db/connection.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ def set_sqlite_pragma(dbapi_connection, connection_record):
4545
[SQLite docs](https://www.sqlite.org/foreignkeys.html)
4646
[SO](https://stackoverflow.com/questions/2614984/sqlite-sqlalchemy-how-to-enforce-foreign-keys)
4747
"""
48-
# Check if the connection is the one you want to apply the PRAGMA to
48+
# Only enable foreign keys if the connection record has the flag set to True
4949
if connection_record.info.get('enable_fks', False):
5050
cursor = dbapi_connection.cursor()
5151
cursor.execute("PRAGMA foreign_keys=ON")

0 commit comments

Comments
 (0)