dirigent-block-sql 0.18.0__tar.gz → 0.18.2__tar.gz
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.
- {dirigent_block_sql-0.18.0 → dirigent_block_sql-0.18.2}/PKG-INFO +3 -3
- {dirigent_block_sql-0.18.0 → dirigent_block_sql-0.18.2}/pyproject.toml +3 -3
- {dirigent_block_sql-0.18.0 → dirigent_block_sql-0.18.2}/pyproject.toml.orig +3 -3
- {dirigent_block_sql-0.18.0 → dirigent_block_sql-0.18.2}/src/dirigent_block_sql/engines.py +9 -3
- {dirigent_block_sql-0.18.0 → dirigent_block_sql-0.18.2}/LICENSE +0 -0
- {dirigent_block_sql-0.18.0 → dirigent_block_sql-0.18.2}/README.md +0 -0
- {dirigent_block_sql-0.18.0 → dirigent_block_sql-0.18.2}/src/dirigent_block_sql/__init__.py +0 -0
- {dirigent_block_sql-0.18.0 → dirigent_block_sql-0.18.2}/src/dirigent_block_sql/markers.py +0 -0
- {dirigent_block_sql-0.18.0 → dirigent_block_sql-0.18.2}/src/dirigent_block_sql/messages.py +0 -0
- {dirigent_block_sql-0.18.0 → dirigent_block_sql-0.18.2}/src/dirigent_block_sql/py.typed +0 -0
- {dirigent_block_sql-0.18.0 → dirigent_block_sql-0.18.2}/src/dirigent_block_sql/sql.py +0 -0
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: dirigent-block-sql
|
|
3
|
-
Version: 0.18.
|
|
3
|
+
Version: 0.18.2
|
|
4
4
|
Summary: The SQL block family for dirigent: sql.query, sql.execute, and the sql connection kind.
|
|
5
5
|
License-Expression: LicenseRef-Proprietary
|
|
6
6
|
License-File: LICENSE
|
|
7
7
|
Classifier: Programming Language :: Python :: 3
|
|
8
8
|
Classifier: Programming Language :: Python :: 3.13
|
|
9
|
-
Requires-Dist: dirigent-common==0.18.
|
|
10
|
-
Requires-Dist: dirigent-plugin==0.18.
|
|
9
|
+
Requires-Dist: dirigent-common==0.18.2
|
|
10
|
+
Requires-Dist: dirigent-plugin==0.18.2
|
|
11
11
|
Requires-Dist: sqlalchemy[asyncio]>=2.0.52
|
|
12
12
|
Requires-Python: >=3.13
|
|
13
13
|
Description-Content-Type: text/markdown
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
[project]
|
|
2
2
|
name = "dirigent-block-sql"
|
|
3
|
-
version = "0.18.
|
|
3
|
+
version = "0.18.2"
|
|
4
4
|
description = "The SQL block family for dirigent: sql.query, sql.execute, and the sql connection kind."
|
|
5
5
|
readme = "README.md"
|
|
6
6
|
requires-python = ">=3.13"
|
|
@@ -11,8 +11,8 @@ classifiers = [
|
|
|
11
11
|
"Programming Language :: Python :: 3.13",
|
|
12
12
|
]
|
|
13
13
|
dependencies = [
|
|
14
|
-
"dirigent-common==0.18.
|
|
15
|
-
"dirigent-plugin==0.18.
|
|
14
|
+
"dirigent-common==0.18.2",
|
|
15
|
+
"dirigent-plugin==0.18.2",
|
|
16
16
|
"sqlalchemy[asyncio]>=2.0.52",
|
|
17
17
|
]
|
|
18
18
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
[project]
|
|
2
2
|
name = "dirigent-block-sql"
|
|
3
|
-
version = "0.18.
|
|
3
|
+
version = "0.18.2"
|
|
4
4
|
description = "The SQL block family for dirigent: sql.query, sql.execute, and the sql connection kind."
|
|
5
5
|
readme = "README.md"
|
|
6
6
|
requires-python = ">=3.13"
|
|
@@ -11,8 +11,8 @@ classifiers = [
|
|
|
11
11
|
"Programming Language :: Python :: 3.13",
|
|
12
12
|
]
|
|
13
13
|
dependencies = [
|
|
14
|
-
"dirigent-common==0.18.
|
|
15
|
-
"dirigent-plugin==0.18.
|
|
14
|
+
"dirigent-common==0.18.2",
|
|
15
|
+
"dirigent-plugin==0.18.2",
|
|
16
16
|
"sqlalchemy[asyncio]>=2.0.52",
|
|
17
17
|
]
|
|
18
18
|
|
|
@@ -301,7 +301,7 @@ class _Session:
|
|
|
301
301
|
"""Open the connection and put it in the mode the connection kind asked for."""
|
|
302
302
|
try:
|
|
303
303
|
async with asyncio.timeout(self.settings.connect_timeout.total_seconds()):
|
|
304
|
-
|
|
304
|
+
opened = await self.engine.connect()
|
|
305
305
|
except TimeoutError as error:
|
|
306
306
|
await self.engine.dispose()
|
|
307
307
|
raise BlockFailure(
|
|
@@ -310,8 +310,14 @@ class _Session:
|
|
|
310
310
|
except BaseException:
|
|
311
311
|
await self.engine.dispose()
|
|
312
312
|
raise
|
|
313
|
-
|
|
314
|
-
|
|
313
|
+
try:
|
|
314
|
+
if self.settings.read_only:
|
|
315
|
+
await opened.execute(sqlalchemy.text(READ_ONLY[self.url.get_backend_name()]))
|
|
316
|
+
except BaseException:
|
|
317
|
+
await opened.close()
|
|
318
|
+
await self.engine.dispose()
|
|
319
|
+
raise
|
|
320
|
+
self.connection = opened
|
|
315
321
|
return self.connection
|
|
316
322
|
|
|
317
323
|
async def __aexit__(self, *_error: object) -> None:
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|