Skip to content

Commit a928d96

Browse files
committed
Configure DB API interface attribute threadsafety = 1
This signals "Threads may share the module, but not connections.", according to PEP 0249. -- https://peps.python.org/pep-0249/#threadsafety
1 parent 813946b commit a928d96

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

CHANGES.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ Unreleased
88
- The SQLAlchemy dialect has been split off into the `sqlalchemy-cratedb`_
99
package. See `Migrate from crate.client to sqlalchemy-cratedb`_ to learn
1010
about necessary migration steps.
11+
- Configured DB API interface attribute ``threadsafety = 1``, which signals
12+
"Threads may share the module, but not connections."
1113

1214
.. _Migrate from crate.client to sqlalchemy-cratedb: https://cratedb.com/docs/sqlalchemy-cratedb/migrate-from-crate-client.html
1315
.. _sqlalchemy-cratedb: https://pypi.org/project/sqlalchemy-cratedb/

src/crate/client/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,5 +32,5 @@
3232
__version__ = "0.35.2"
3333

3434
apilevel = "2.0"
35-
threadsafety = 2
35+
threadsafety = 1
3636
paramstyle = "qmark"

0 commit comments

Comments
 (0)