Skip to content

Commit

Permalink
Configure DB API interface attribute threadsafety = 1
Browse files Browse the repository at this point in the history
This signals "Threads may share the module, but not connections.",
according to PEP 0249.

-- https://peps.python.org/pep-0249/#threadsafety
  • Loading branch information
amotl committed Jun 27, 2024
1 parent 813946b commit a928d96
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions CHANGES.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ Unreleased
- The SQLAlchemy dialect has been split off into the `sqlalchemy-cratedb`_
package. See `Migrate from crate.client to sqlalchemy-cratedb`_ to learn
about necessary migration steps.
- Configured DB API interface attribute ``threadsafety = 1``, which signals
"Threads may share the module, but not connections."

.. _Migrate from crate.client to sqlalchemy-cratedb: https://cratedb.com/docs/sqlalchemy-cratedb/migrate-from-crate-client.html
.. _sqlalchemy-cratedb: https://pypi.org/project/sqlalchemy-cratedb/
Expand Down
2 changes: 1 addition & 1 deletion src/crate/client/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,5 +32,5 @@
__version__ = "0.35.2"

apilevel = "2.0"
threadsafety = 2
threadsafety = 1
paramstyle = "qmark"

0 comments on commit a928d96

Please sign in to comment.