python3-cyberfusion-queue-support 2.2.4__py3-none-any.whl → 2.2.5__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -9,7 +9,6 @@ from sqlalchemy import ForeignKey, MetaData, Boolean
9
9
  from sqlalchemy import create_engine, Column, DateTime, Integer, String
10
10
  from sqlalchemy.orm import Session, sessionmaker, relationship
11
11
  from sqlalchemy.ext.declarative import declarative_base
12
- from sqlalchemy.engine import Engine
13
12
  from sqlalchemy import event
14
13
  from sqlalchemy.types import JSON
15
14
 
@@ -17,7 +16,6 @@ from cyberfusion.QueueSupport.encoders import json_serialize
17
16
  from cyberfusion.QueueSupport.settings import settings
18
17
 
19
18
 
20
- @event.listens_for(Engine, "connect") # type: ignore[misc]
21
19
  def set_sqlite_pragma(
22
20
  dbapi_connection: sqlite3.Connection, connection_record: _ConnectionRecord
23
21
  ) -> None:
@@ -53,6 +51,8 @@ def make_database_session() -> Session:
53
51
  json_serializer=json_serialize,
54
52
  )
55
53
 
54
+ event.listen(engine, "connect", set_sqlite_pragma)
55
+
56
56
  return sessionmaker(bind=engine)()
57
57
 
58
58
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: python3-cyberfusion-queue-support
3
- Version: 2.2.4
3
+ Version: 2.2.5
4
4
  Summary: Library to queue actions.
5
5
  Author-email: Cyberfusion <support@cyberfusion.io>
6
6
  Project-URL: Source, https://github.com/CyberfusionIO/python3-cyberfusion-queue-support
@@ -1,5 +1,5 @@
1
1
  cyberfusion/QueueSupport/__init__.py,sha256=bjlgoA49iQkHHPV2ZDRAxGdDp-Mip3uSdEau44L5VVE,4505
2
- cyberfusion/QueueSupport/database.py,sha256=t5HQR_DL02IsTrbS9BSroEb0wCsSM8JT-IMWn3gWSzk,3547
2
+ cyberfusion/QueueSupport/database.py,sha256=KZJfJfLgck1yoNFUUuLoBaAB1nIXSIP1VvfK7ZZ2Hss,3506
3
3
  cyberfusion/QueueSupport/encoders.py,sha256=5gxU0OXsX16OChHDCDaWTV-s1Y7KRcZ8aVplAO1WDyM,371
4
4
  cyberfusion/QueueSupport/interfaces.py,sha256=ip8z6cfLFldQCDSec6fK6AIOdxOjIyFykDv4dCHJYSI,943
5
5
  cyberfusion/QueueSupport/outcomes.py,sha256=kv_0zODEraaZnuLRMcaQgWCfgstpJRDSO5YWYFAgEgw,18564
@@ -33,8 +33,8 @@ cyberfusion/QueueSupport/migrations/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQ
33
33
  cyberfusion/QueueSupport/migrations/env.py,sha256=qevttYPD5ze_0k4WKGYXBrdmYy3K8tHP4yeOLEuz9YQ,1158
34
34
  cyberfusion/QueueSupport/migrations/versions/571e55ab5ed5_initial_migration.py,sha256=1yYFZhQyHVnn1nHXxLVRb94V7gXprWYMfIDhF0_DPVU,2845
35
35
  cyberfusion/QueueSupport/migrations/versions/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
36
- python3_cyberfusion_queue_support-2.2.4.dist-info/METADATA,sha256=dIn9O0cKUmwh4zL_XYbaCfmEYTXpwnQhXkEkjAm1E04,4490
37
- python3_cyberfusion_queue_support-2.2.4.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
38
- python3_cyberfusion_queue_support-2.2.4.dist-info/entry_points.txt,sha256=j42nbFWu1jTev4Ca3GhEZlH546t48aqYXnaKP20NWfA,91
39
- python3_cyberfusion_queue_support-2.2.4.dist-info/top_level.txt,sha256=ss011q9S6SL_KIIyq7iujFmIYa0grSjlnInO7cDkeag,12
40
- python3_cyberfusion_queue_support-2.2.4.dist-info/RECORD,,
36
+ python3_cyberfusion_queue_support-2.2.5.dist-info/METADATA,sha256=DRxIjgvAQbV1SwtZc6UeYyHIH8umnOIe2GgrDpd5CIw,4490
37
+ python3_cyberfusion_queue_support-2.2.5.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
38
+ python3_cyberfusion_queue_support-2.2.5.dist-info/entry_points.txt,sha256=j42nbFWu1jTev4Ca3GhEZlH546t48aqYXnaKP20NWfA,91
39
+ python3_cyberfusion_queue_support-2.2.5.dist-info/top_level.txt,sha256=ss011q9S6SL_KIIyq7iujFmIYa0grSjlnInO7cDkeag,12
40
+ python3_cyberfusion_queue_support-2.2.5.dist-info/RECORD,,