Skip to content

Commit

Permalink
Merge pull request #752 from opensafely-core/use-uri
Browse files Browse the repository at this point in the history
Use uri=True for db connections
  • Loading branch information
rebkwok authored Oct 8, 2024
2 parents 4b0074f + 4b15871 commit 0c0321c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion jobrunner/lib/database.py
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ def get_connection(filename=None):
# Looks icky but is documented `threading.local` usage
cache = CONNECTION_CACHE.__dict__
if filename not in cache:
conn = sqlite3.connect(filename)
conn = sqlite3.connect(filename, uri=True)
# Enable autocommit so changes made outside of a transaction still get
# persisted to disk. We can use explicit transactions when we need
# atomicity.
Expand Down

0 comments on commit 0c0321c

Please sign in to comment.