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

Commit ef200a3

Browse files
Formatting changes
1 parent b4ce9d3 commit ef200a3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/codegate/db/connection.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ def set_sqlite_pragma(dbapi_connection, connection_record):
4646
[SO](https://stackoverflow.com/questions/2614984/sqlite-sqlalchemy-how-to-enforce-foreign-keys)
4747
"""
4848
# Only enable foreign keys if the connection record has the flag set to True
49-
if connection_record.info.get('enable_fks', False):
49+
if connection_record.info.get("enable_fks", False):
5050
cursor = dbapi_connection.cursor()
5151
cursor.execute("PRAGMA foreign_keys=ON")
5252
cursor.close()
@@ -80,7 +80,7 @@ def __init__(self, sqlite_path: Optional[str] = None):
8080
"isolation_level": "AUTOCOMMIT", # Required for SQLite
8181
}
8282
self._async_db_engine = create_async_engine(**engine_dict)
83-
self._async_db_engine.connect().connection.connection_record.info['enable_fks'] = True
83+
self._async_db_engine.connect().connection.connection_record.info["enable_fks"] = True
8484

8585
def does_db_exist(self):
8686
return self._db_path.is_file()

0 commit comments

Comments
 (0)