psqlpy 0.11.0__tar.gz → 0.11.1__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.
Potentially problematic release.
This version of psqlpy might be problematic. Click here for more details.
- {psqlpy-0.11.0 → psqlpy-0.11.1}/Cargo.lock +1 -1
- {psqlpy-0.11.0 → psqlpy-0.11.1}/Cargo.toml +1 -1
- {psqlpy-0.11.0 → psqlpy-0.11.1}/PKG-INFO +3 -1
- {psqlpy-0.11.0 → psqlpy-0.11.1}/README.md +2 -0
- {psqlpy-0.11.0 → psqlpy-0.11.1}/src/driver/common.rs +2 -2
- {psqlpy-0.11.0 → psqlpy-0.11.1}/src/driver/cursor.rs +4 -4
- {psqlpy-0.11.0 → psqlpy-0.11.1}/src/driver/prepared_statement.rs +1 -1
- {psqlpy-0.11.0 → psqlpy-0.11.1}/src/driver/transaction.rs +13 -13
- {psqlpy-0.11.0 → psqlpy-0.11.1}/src/exceptions/rust_errors.rs +3 -3
- {psqlpy-0.11.0 → psqlpy-0.11.1}/.github/actions/setup_postgres/action.yaml +0 -0
- {psqlpy-0.11.0 → psqlpy-0.11.1}/.github/pull_request_template.md +0 -0
- {psqlpy-0.11.0 → psqlpy-0.11.1}/.github/workflows/release.yml +0 -0
- {psqlpy-0.11.0 → psqlpy-0.11.1}/.github/workflows/release_docs.yaml +0 -0
- {psqlpy-0.11.0 → psqlpy-0.11.1}/.github/workflows/test.yaml +0 -0
- {psqlpy-0.11.0 → psqlpy-0.11.1}/.gitignore +0 -0
- {psqlpy-0.11.0 → psqlpy-0.11.1}/.pre-commit-config.yaml +0 -0
- {psqlpy-0.11.0 → psqlpy-0.11.1}/LICENSE +0 -0
- {psqlpy-0.11.0 → psqlpy-0.11.1}/docs/.vuepress/config.ts +0 -0
- {psqlpy-0.11.0 → psqlpy-0.11.1}/docs/.vuepress/public/logo.png +0 -0
- {psqlpy-0.11.0 → psqlpy-0.11.1}/docs/.vuepress/sidebar.ts +0 -0
- {psqlpy-0.11.0 → psqlpy-0.11.1}/docs/.vuepress/styles/config.scss +0 -0
- {psqlpy-0.11.0 → psqlpy-0.11.1}/docs/.vuepress/styles/index.scss +0 -0
- {psqlpy-0.11.0 → psqlpy-0.11.1}/docs/.vuepress/styles/palette.scss +0 -0
- {psqlpy-0.11.0 → psqlpy-0.11.1}/docs/README.md +0 -0
- {psqlpy-0.11.0 → psqlpy-0.11.1}/docs/benchmarks.md +0 -0
- {psqlpy-0.11.0 → psqlpy-0.11.1}/docs/components/components_overview.md +0 -0
- {psqlpy-0.11.0 → psqlpy-0.11.1}/docs/components/connection.md +0 -0
- {psqlpy-0.11.0 → psqlpy-0.11.1}/docs/components/connection_pool.md +0 -0
- {psqlpy-0.11.0 → psqlpy-0.11.1}/docs/components/connection_pool_builder.md +0 -0
- {psqlpy-0.11.0 → psqlpy-0.11.1}/docs/components/cursor.md +0 -0
- {psqlpy-0.11.0 → psqlpy-0.11.1}/docs/components/exceptions.md +0 -0
- {psqlpy-0.11.0 → psqlpy-0.11.1}/docs/components/listener.md +0 -0
- {psqlpy-0.11.0 → psqlpy-0.11.1}/docs/components/prepared_statement.md +0 -0
- {psqlpy-0.11.0 → psqlpy-0.11.1}/docs/components/results.md +0 -0
- {psqlpy-0.11.0 → psqlpy-0.11.1}/docs/components/transaction.md +0 -0
- {psqlpy-0.11.0 → psqlpy-0.11.1}/docs/contribute.md +0 -0
- {psqlpy-0.11.0 → psqlpy-0.11.1}/docs/external_connection_pools.md +0 -0
- {psqlpy-0.11.0 → psqlpy-0.11.1}/docs/faq.md +0 -0
- {psqlpy-0.11.0 → psqlpy-0.11.1}/docs/integrations/opentelemetry.md +0 -0
- {psqlpy-0.11.0 → psqlpy-0.11.1}/docs/integrations/taskiq.md +0 -0
- {psqlpy-0.11.0 → psqlpy-0.11.1}/docs/introduction/components_overview.md +0 -0
- {psqlpy-0.11.0 → psqlpy-0.11.1}/docs/introduction/introduction.md +0 -0
- {psqlpy-0.11.0 → psqlpy-0.11.1}/docs/introduction/lets_start.md +0 -0
- {psqlpy-0.11.0 → psqlpy-0.11.1}/docs/usage/frameworks/aiohttp.md +0 -0
- {psqlpy-0.11.0 → psqlpy-0.11.1}/docs/usage/frameworks/blacksheep.md +0 -0
- {psqlpy-0.11.0 → psqlpy-0.11.1}/docs/usage/frameworks/fastapi.md +0 -0
- {psqlpy-0.11.0 → psqlpy-0.11.1}/docs/usage/frameworks/frameworks.md +0 -0
- {psqlpy-0.11.0 → psqlpy-0.11.1}/docs/usage/frameworks/litestar.md +0 -0
- {psqlpy-0.11.0 → psqlpy-0.11.1}/docs/usage/frameworks/robyn.md +0 -0
- {psqlpy-0.11.0 → psqlpy-0.11.1}/docs/usage/parameters.md +0 -0
- {psqlpy-0.11.0 → psqlpy-0.11.1}/docs/usage/row_factories/predefined_row_factories.md +0 -0
- {psqlpy-0.11.0 → psqlpy-0.11.1}/docs/usage/row_factories/row_factories.md +0 -0
- {psqlpy-0.11.0 → psqlpy-0.11.1}/docs/usage/types/advanced_type_usage.md +0 -0
- {psqlpy-0.11.0 → psqlpy-0.11.1}/docs/usage/types/array_types.md +0 -0
- {psqlpy-0.11.0 → psqlpy-0.11.1}/docs/usage/types/extra_types.md +0 -0
- {psqlpy-0.11.0 → psqlpy-0.11.1}/docs/usage/types/supported_types.md +0 -0
- {psqlpy-0.11.0 → psqlpy-0.11.1}/docs/usage/types/types.md +0 -0
- {psqlpy-0.11.0 → psqlpy-0.11.1}/docs/usage/usage.md +0 -0
- {psqlpy-0.11.0 → psqlpy-0.11.1}/examples/aiohttp/start_example.py +0 -0
- {psqlpy-0.11.0 → psqlpy-0.11.1}/examples/fastapi/advanced_example.py +0 -0
- {psqlpy-0.11.0 → psqlpy-0.11.1}/examples/fastapi/start_example.py +0 -0
- {psqlpy-0.11.0 → psqlpy-0.11.1}/package.json +0 -0
- {psqlpy-0.11.0 → psqlpy-0.11.1}/pnpm-lock.yaml +0 -0
- {psqlpy-0.11.0 → psqlpy-0.11.1}/psqlpy-stress/.gitignore +0 -0
- {psqlpy-0.11.0 → psqlpy-0.11.1}/psqlpy-stress/.pre-commit-config.yaml +0 -0
- {psqlpy-0.11.0 → psqlpy-0.11.1}/psqlpy-stress/Dockerfile +0 -0
- {psqlpy-0.11.0 → psqlpy-0.11.1}/psqlpy-stress/README.md +0 -0
- {psqlpy-0.11.0 → psqlpy-0.11.1}/psqlpy-stress/alembic.ini +0 -0
- {psqlpy-0.11.0 → psqlpy-0.11.1}/psqlpy-stress/poetry.lock +0 -0
- {psqlpy-0.11.0 → psqlpy-0.11.1}/psqlpy-stress/psqlpy_stress/__init__.py +0 -0
- {psqlpy-0.11.0 → psqlpy-0.11.1}/psqlpy-stress/psqlpy_stress/api/__init__.py +0 -0
- {psqlpy-0.11.0 → psqlpy-0.11.1}/psqlpy-stress/psqlpy_stress/api/piccolo.py +0 -0
- {psqlpy-0.11.0 → psqlpy-0.11.1}/psqlpy-stress/psqlpy_stress/api/plain_queries.py +0 -0
- {psqlpy-0.11.0 → psqlpy-0.11.1}/psqlpy-stress/psqlpy_stress/app.py +0 -0
- {psqlpy-0.11.0 → psqlpy-0.11.1}/psqlpy-stress/psqlpy_stress/helpers.py +0 -0
- {psqlpy-0.11.0 → psqlpy-0.11.1}/psqlpy-stress/psqlpy_stress/lifecycle.py +0 -0
- {psqlpy-0.11.0 → psqlpy-0.11.1}/psqlpy-stress/psqlpy_stress/migrations/README +0 -0
- {psqlpy-0.11.0 → psqlpy-0.11.1}/psqlpy-stress/psqlpy_stress/migrations/env.py +0 -0
- {psqlpy-0.11.0 → psqlpy-0.11.1}/psqlpy-stress/psqlpy_stress/migrations/script.py.mako +0 -0
- {psqlpy-0.11.0 → psqlpy-0.11.1}/psqlpy-stress/psqlpy_stress/migrations/versions/06d989926550_basic_user_table.py +0 -0
- {psqlpy-0.11.0 → psqlpy-0.11.1}/psqlpy-stress/psqlpy_stress/migrations/versions/d162c084f522_big_af_table.py +0 -0
- {psqlpy-0.11.0 → psqlpy-0.11.1}/psqlpy-stress/psqlpy_stress/mocker.py +0 -0
- {psqlpy-0.11.0 → psqlpy-0.11.1}/psqlpy-stress/psqlpy_stress/models/__init__.py +0 -0
- {psqlpy-0.11.0 → psqlpy-0.11.1}/psqlpy-stress/psqlpy_stress/models/piccolo.py +0 -0
- {psqlpy-0.11.0 → psqlpy-0.11.1}/psqlpy-stress/psqlpy_stress/models/sqlalchemy.py +0 -0
- {psqlpy-0.11.0 → psqlpy-0.11.1}/psqlpy-stress/psqlpy_stress/piccolo_conf.py +0 -0
- {psqlpy-0.11.0 → psqlpy-0.11.1}/psqlpy-stress/psqlpy_stress/settings.py +0 -0
- {psqlpy-0.11.0 → psqlpy-0.11.1}/psqlpy-stress/pyproject.toml +0 -0
- {psqlpy-0.11.0 → psqlpy-0.11.1}/pyproject.toml +0 -0
- {psqlpy-0.11.0 → psqlpy-0.11.1}/python/psqlpy/__init__.py +0 -0
- {psqlpy-0.11.0 → psqlpy-0.11.1}/python/psqlpy/_internal/__init__.pyi +0 -0
- {psqlpy-0.11.0 → psqlpy-0.11.1}/python/psqlpy/_internal/exceptions.pyi +0 -0
- {psqlpy-0.11.0 → psqlpy-0.11.1}/python/psqlpy/_internal/extra_types.pyi +0 -0
- {psqlpy-0.11.0 → psqlpy-0.11.1}/python/psqlpy/_internal/row_factories.pyi +0 -0
- {psqlpy-0.11.0 → psqlpy-0.11.1}/python/psqlpy/exceptions.py +0 -0
- {psqlpy-0.11.0 → psqlpy-0.11.1}/python/psqlpy/extra_types.py +0 -0
- {psqlpy-0.11.0 → psqlpy-0.11.1}/python/psqlpy/py.typed +0 -0
- {psqlpy-0.11.0 → psqlpy-0.11.1}/python/psqlpy/row_factories.py +0 -0
- {psqlpy-0.11.0 → psqlpy-0.11.1}/python/tests/__init__.py +0 -0
- {psqlpy-0.11.0 → psqlpy-0.11.1}/python/tests/conftest.py +0 -0
- {psqlpy-0.11.0 → psqlpy-0.11.1}/python/tests/helpers.py +0 -0
- {psqlpy-0.11.0 → psqlpy-0.11.1}/python/tests/test_binary_copy.py +0 -0
- {psqlpy-0.11.0 → psqlpy-0.11.1}/python/tests/test_connection.py +0 -0
- {psqlpy-0.11.0 → psqlpy-0.11.1}/python/tests/test_connection_pool.py +0 -0
- {psqlpy-0.11.0 → psqlpy-0.11.1}/python/tests/test_connection_pool_builder.py +0 -0
- {psqlpy-0.11.0 → psqlpy-0.11.1}/python/tests/test_cursor.py +0 -0
- {psqlpy-0.11.0 → psqlpy-0.11.1}/python/tests/test_data/MTcars.parquet +0 -0
- {psqlpy-0.11.0 → psqlpy-0.11.1}/python/tests/test_kwargs_parameters.py +0 -0
- {psqlpy-0.11.0 → psqlpy-0.11.1}/python/tests/test_listener.py +0 -0
- {psqlpy-0.11.0 → psqlpy-0.11.1}/python/tests/test_row_factories.py +0 -0
- {psqlpy-0.11.0 → psqlpy-0.11.1}/python/tests/test_ssl_mode.py +0 -0
- {psqlpy-0.11.0 → psqlpy-0.11.1}/python/tests/test_transaction.py +0 -0
- {psqlpy-0.11.0 → psqlpy-0.11.1}/python/tests/test_value_converter.py +0 -0
- {psqlpy-0.11.0 → psqlpy-0.11.1}/src/common.rs +0 -0
- {psqlpy-0.11.0 → psqlpy-0.11.1}/src/connection/impls.rs +0 -0
- {psqlpy-0.11.0 → psqlpy-0.11.1}/src/connection/mod.rs +0 -0
- {psqlpy-0.11.0 → psqlpy-0.11.1}/src/connection/structs.rs +0 -0
- {psqlpy-0.11.0 → psqlpy-0.11.1}/src/connection/traits.rs +0 -0
- {psqlpy-0.11.0 → psqlpy-0.11.1}/src/driver/connection.rs +0 -0
- {psqlpy-0.11.0 → psqlpy-0.11.1}/src/driver/connection_pool.rs +0 -0
- {psqlpy-0.11.0 → psqlpy-0.11.1}/src/driver/connection_pool_builder.rs +0 -0
- {psqlpy-0.11.0 → psqlpy-0.11.1}/src/driver/listener/core.rs +0 -0
- {psqlpy-0.11.0 → psqlpy-0.11.1}/src/driver/listener/mod.rs +0 -0
- {psqlpy-0.11.0 → psqlpy-0.11.1}/src/driver/listener/structs.rs +0 -0
- {psqlpy-0.11.0 → psqlpy-0.11.1}/src/driver/mod.rs +0 -0
- {psqlpy-0.11.0 → psqlpy-0.11.1}/src/driver/utils.rs +0 -0
- {psqlpy-0.11.0 → psqlpy-0.11.1}/src/exceptions/mod.rs +0 -0
- {psqlpy-0.11.0 → psqlpy-0.11.1}/src/exceptions/python_errors.rs +0 -0
- {psqlpy-0.11.0 → psqlpy-0.11.1}/src/extra_types.rs +0 -0
- {psqlpy-0.11.0 → psqlpy-0.11.1}/src/format_helpers.rs +0 -0
- {psqlpy-0.11.0 → psqlpy-0.11.1}/src/lib.rs +0 -0
- {psqlpy-0.11.0 → psqlpy-0.11.1}/src/options.rs +0 -0
- {psqlpy-0.11.0 → psqlpy-0.11.1}/src/query_result.rs +0 -0
- {psqlpy-0.11.0 → psqlpy-0.11.1}/src/row_factories.rs +0 -0
- {psqlpy-0.11.0 → psqlpy-0.11.1}/src/runtime.rs +0 -0
- {psqlpy-0.11.0 → psqlpy-0.11.1}/src/statement/cache.rs +0 -0
- {psqlpy-0.11.0 → psqlpy-0.11.1}/src/statement/mod.rs +0 -0
- {psqlpy-0.11.0 → psqlpy-0.11.1}/src/statement/parameters.rs +0 -0
- {psqlpy-0.11.0 → psqlpy-0.11.1}/src/statement/query.rs +0 -0
- {psqlpy-0.11.0 → psqlpy-0.11.1}/src/statement/statement.rs +0 -0
- {psqlpy-0.11.0 → psqlpy-0.11.1}/src/statement/statement_builder.rs +0 -0
- {psqlpy-0.11.0 → psqlpy-0.11.1}/src/statement/utils.rs +0 -0
- {psqlpy-0.11.0 → psqlpy-0.11.1}/src/transaction/impls.rs +0 -0
- {psqlpy-0.11.0 → psqlpy-0.11.1}/src/transaction/mod.rs +0 -0
- {psqlpy-0.11.0 → psqlpy-0.11.1}/src/transaction/structs.rs +0 -0
- {psqlpy-0.11.0 → psqlpy-0.11.1}/src/value_converter/additional_types.rs +0 -0
- {psqlpy-0.11.0 → psqlpy-0.11.1}/src/value_converter/consts.rs +0 -0
- {psqlpy-0.11.0 → psqlpy-0.11.1}/src/value_converter/dto/converter_impls.rs +0 -0
- {psqlpy-0.11.0 → psqlpy-0.11.1}/src/value_converter/dto/enums.rs +0 -0
- {psqlpy-0.11.0 → psqlpy-0.11.1}/src/value_converter/dto/funcs.rs +0 -0
- {psqlpy-0.11.0 → psqlpy-0.11.1}/src/value_converter/dto/impls.rs +0 -0
- {psqlpy-0.11.0 → psqlpy-0.11.1}/src/value_converter/dto/mod.rs +0 -0
- {psqlpy-0.11.0 → psqlpy-0.11.1}/src/value_converter/from_python.rs +0 -0
- {psqlpy-0.11.0 → psqlpy-0.11.1}/src/value_converter/mod.rs +0 -0
- {psqlpy-0.11.0 → psqlpy-0.11.1}/src/value_converter/models/decimal.rs +0 -0
- {psqlpy-0.11.0 → psqlpy-0.11.1}/src/value_converter/models/interval.rs +0 -0
- {psqlpy-0.11.0 → psqlpy-0.11.1}/src/value_converter/models/mod.rs +0 -0
- {psqlpy-0.11.0 → psqlpy-0.11.1}/src/value_converter/models/serde_value.rs +0 -0
- {psqlpy-0.11.0 → psqlpy-0.11.1}/src/value_converter/models/uuid.rs +0 -0
- {psqlpy-0.11.0 → psqlpy-0.11.1}/src/value_converter/to_python.rs +0 -0
- {psqlpy-0.11.0 → psqlpy-0.11.1}/src/value_converter/traits.rs +0 -0
- {psqlpy-0.11.0 → psqlpy-0.11.1}/src/value_converter/utils.rs +0 -0
- {psqlpy-0.11.0 → psqlpy-0.11.1}/tox.ini +0 -0
- {psqlpy-0.11.0 → psqlpy-0.11.1}/tsconfig.json +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: psqlpy
|
|
3
|
-
Version: 0.11.
|
|
3
|
+
Version: 0.11.1
|
|
4
4
|
Classifier: Typing :: Typed
|
|
5
5
|
Classifier: Topic :: Database
|
|
6
6
|
Classifier: Development Status :: 4 - Beta
|
|
@@ -33,6 +33,8 @@ Project-URL: documentation, https://psqlpy-python.github.io/
|
|
|
33
33
|
|
|
34
34
|
[](https://pypi.org/project/psqlpy/)
|
|
36
|
+
[](https://pypi.org/project/psqlpy/)
|
|
36
38
|
[](https://pypi.org/project/psqlpy/)
|
|
37
39
|
[](https://pypistats.org/packages/psqlpy)
|
|
38
40
|
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
[](https://pypi.org/project/psqlpy/)
|
|
3
|
+
[](https://pypi.org/project/psqlpy/)
|
|
3
5
|
[](https://pypi.org/project/psqlpy/)
|
|
4
6
|
[](https://pypistats.org/packages/psqlpy)
|
|
5
7
|
|
|
@@ -194,7 +194,7 @@ macro_rules! impl_transaction_methods {
|
|
|
194
194
|
pub async fn commit(&mut self) -> PSQLPyResult<()> {
|
|
195
195
|
let conn = self.conn.clone();
|
|
196
196
|
let Some(conn) = conn else {
|
|
197
|
-
return Err(RustPSQLDriverError::TransactionClosedError
|
|
197
|
+
return Err(RustPSQLDriverError::TransactionClosedError);
|
|
198
198
|
};
|
|
199
199
|
let mut write_conn_g = conn.write().await;
|
|
200
200
|
write_conn_g.commit().await?;
|
|
@@ -209,7 +209,7 @@ macro_rules! impl_transaction_methods {
|
|
|
209
209
|
pub async fn rollback(&mut self) -> PSQLPyResult<()> {
|
|
210
210
|
let conn = self.conn.clone();
|
|
211
211
|
let Some(conn) = conn else {
|
|
212
|
-
return Err(RustPSQLDriverError::TransactionClosedError
|
|
212
|
+
return Err(RustPSQLDriverError::TransactionClosedError);
|
|
213
213
|
};
|
|
214
214
|
let mut write_conn_g = conn.write().await;
|
|
215
215
|
write_conn_g.rollback().await?;
|
|
@@ -54,10 +54,10 @@ impl Cursor {
|
|
|
54
54
|
|
|
55
55
|
async fn query_portal(&self, size: i32) -> PSQLPyResult<PSQLDriverPyQueryResult> {
|
|
56
56
|
let Some(transaction) = &self.transaction else {
|
|
57
|
-
return Err(RustPSQLDriverError::TransactionClosedError
|
|
57
|
+
return Err(RustPSQLDriverError::TransactionClosedError);
|
|
58
58
|
};
|
|
59
59
|
let Some(portal) = &self.inner else {
|
|
60
|
-
return Err(RustPSQLDriverError::TransactionClosedError
|
|
60
|
+
return Err(RustPSQLDriverError::TransactionClosedError);
|
|
61
61
|
};
|
|
62
62
|
transaction.query_portal(&portal, size).await
|
|
63
63
|
}
|
|
@@ -162,10 +162,10 @@ impl Cursor {
|
|
|
162
162
|
let py_future = Python::with_gil(move |gil| {
|
|
163
163
|
rustdriver_future(gil, async move {
|
|
164
164
|
let Some(txid) = &txid else {
|
|
165
|
-
return Err(RustPSQLDriverError::TransactionClosedError
|
|
165
|
+
return Err(RustPSQLDriverError::TransactionClosedError);
|
|
166
166
|
};
|
|
167
167
|
let Some(portal) = &portal else {
|
|
168
|
-
return Err(RustPSQLDriverError::TransactionClosedError
|
|
168
|
+
return Err(RustPSQLDriverError::TransactionClosedError);
|
|
169
169
|
};
|
|
170
170
|
let result = txid.query_portal(&portal, size).await?;
|
|
171
171
|
|
|
@@ -39,7 +39,7 @@ impl PreparedStatement {
|
|
|
39
39
|
impl PreparedStatement {
|
|
40
40
|
async fn execute(&self) -> PSQLPyResult<PSQLDriverPyQueryResult> {
|
|
41
41
|
let Some(conn) = &self.conn else {
|
|
42
|
-
return Err(RustPSQLDriverError::TransactionClosedError
|
|
42
|
+
return Err(RustPSQLDriverError::TransactionClosedError);
|
|
43
43
|
};
|
|
44
44
|
|
|
45
45
|
let read_conn_g = conn.read().await;
|
|
@@ -71,7 +71,7 @@ impl Transaction {
|
|
|
71
71
|
});
|
|
72
72
|
|
|
73
73
|
let Some(conn) = conn else {
|
|
74
|
-
return Err(RustPSQLDriverError::TransactionClosedError
|
|
74
|
+
return Err(RustPSQLDriverError::TransactionClosedError);
|
|
75
75
|
};
|
|
76
76
|
let mut write_conn_g = conn.write().await;
|
|
77
77
|
write_conn_g
|
|
@@ -98,7 +98,7 @@ impl Transaction {
|
|
|
98
98
|
});
|
|
99
99
|
|
|
100
100
|
let Some(conn) = conn else {
|
|
101
|
-
return Err(RustPSQLDriverError::TransactionClosedError
|
|
101
|
+
return Err(RustPSQLDriverError::TransactionClosedError);
|
|
102
102
|
};
|
|
103
103
|
let mut write_conn_g = conn.write().await;
|
|
104
104
|
if is_exception_none {
|
|
@@ -121,7 +121,7 @@ impl Transaction {
|
|
|
121
121
|
pub async fn begin(&mut self) -> PSQLPyResult<()> {
|
|
122
122
|
let conn = &self.conn;
|
|
123
123
|
let Some(conn) = conn else {
|
|
124
|
-
return Err(RustPSQLDriverError::TransactionClosedError
|
|
124
|
+
return Err(RustPSQLDriverError::TransactionClosedError);
|
|
125
125
|
};
|
|
126
126
|
let mut write_conn_g = conn.write().await;
|
|
127
127
|
write_conn_g
|
|
@@ -139,7 +139,7 @@ impl Transaction {
|
|
|
139
139
|
prepared: Option<bool>,
|
|
140
140
|
) -> PSQLPyResult<PSQLDriverPyQueryResult> {
|
|
141
141
|
let Some(conn) = &self.conn else {
|
|
142
|
-
return Err(RustPSQLDriverError::TransactionClosedError
|
|
142
|
+
return Err(RustPSQLDriverError::TransactionClosedError);
|
|
143
143
|
};
|
|
144
144
|
|
|
145
145
|
let read_conn_g = conn.read().await;
|
|
@@ -154,7 +154,7 @@ impl Transaction {
|
|
|
154
154
|
prepared: Option<bool>,
|
|
155
155
|
) -> PSQLPyResult<PSQLDriverPyQueryResult> {
|
|
156
156
|
let Some(conn) = &self.conn else {
|
|
157
|
-
return Err(RustPSQLDriverError::TransactionClosedError
|
|
157
|
+
return Err(RustPSQLDriverError::TransactionClosedError);
|
|
158
158
|
};
|
|
159
159
|
|
|
160
160
|
let read_conn_g = conn.read().await;
|
|
@@ -169,7 +169,7 @@ impl Transaction {
|
|
|
169
169
|
prepared: Option<bool>,
|
|
170
170
|
) -> PSQLPyResult<Py<PyAny>> {
|
|
171
171
|
let Some(conn) = &self.conn else {
|
|
172
|
-
return Err(RustPSQLDriverError::TransactionClosedError
|
|
172
|
+
return Err(RustPSQLDriverError::TransactionClosedError);
|
|
173
173
|
};
|
|
174
174
|
|
|
175
175
|
let read_conn_g = conn.read().await;
|
|
@@ -180,7 +180,7 @@ impl Transaction {
|
|
|
180
180
|
|
|
181
181
|
pub async fn execute_batch(&self, querystring: String) -> PSQLPyResult<()> {
|
|
182
182
|
let Some(conn) = &self.conn else {
|
|
183
|
-
return Err(RustPSQLDriverError::TransactionClosedError
|
|
183
|
+
return Err(RustPSQLDriverError::TransactionClosedError);
|
|
184
184
|
};
|
|
185
185
|
|
|
186
186
|
let read_conn_g = conn.read().await;
|
|
@@ -195,7 +195,7 @@ impl Transaction {
|
|
|
195
195
|
prepared: Option<bool>,
|
|
196
196
|
) -> PSQLPyResult<()> {
|
|
197
197
|
let Some(conn) = &self.conn else {
|
|
198
|
-
return Err(RustPSQLDriverError::TransactionClosedError
|
|
198
|
+
return Err(RustPSQLDriverError::TransactionClosedError);
|
|
199
199
|
};
|
|
200
200
|
|
|
201
201
|
let read_conn_g = conn.read().await;
|
|
@@ -212,7 +212,7 @@ impl Transaction {
|
|
|
212
212
|
prepared: Option<bool>,
|
|
213
213
|
) -> PSQLPyResult<PSQLDriverSinglePyQueryResult> {
|
|
214
214
|
let Some(conn) = &self.conn else {
|
|
215
|
-
return Err(RustPSQLDriverError::TransactionClosedError
|
|
215
|
+
return Err(RustPSQLDriverError::TransactionClosedError);
|
|
216
216
|
};
|
|
217
217
|
|
|
218
218
|
let read_conn_g = conn.read().await;
|
|
@@ -223,7 +223,7 @@ impl Transaction {
|
|
|
223
223
|
|
|
224
224
|
pub async fn create_savepoint(&mut self, savepoint_name: String) -> PSQLPyResult<()> {
|
|
225
225
|
let Some(conn) = &self.conn else {
|
|
226
|
-
return Err(RustPSQLDriverError::TransactionClosedError
|
|
226
|
+
return Err(RustPSQLDriverError::TransactionClosedError);
|
|
227
227
|
};
|
|
228
228
|
|
|
229
229
|
let read_conn_g = conn.read().await;
|
|
@@ -236,7 +236,7 @@ impl Transaction {
|
|
|
236
236
|
|
|
237
237
|
pub async fn release_savepoint(&mut self, savepoint_name: String) -> PSQLPyResult<()> {
|
|
238
238
|
let Some(conn) = &self.conn else {
|
|
239
|
-
return Err(RustPSQLDriverError::TransactionClosedError
|
|
239
|
+
return Err(RustPSQLDriverError::TransactionClosedError);
|
|
240
240
|
};
|
|
241
241
|
|
|
242
242
|
let read_conn_g = conn.read().await;
|
|
@@ -249,7 +249,7 @@ impl Transaction {
|
|
|
249
249
|
|
|
250
250
|
pub async fn rollback_savepoint(&mut self, savepoint_name: String) -> PSQLPyResult<()> {
|
|
251
251
|
let Some(conn) = &self.conn else {
|
|
252
|
-
return Err(RustPSQLDriverError::TransactionClosedError
|
|
252
|
+
return Err(RustPSQLDriverError::TransactionClosedError);
|
|
253
253
|
};
|
|
254
254
|
|
|
255
255
|
let read_conn_g = conn.read().await;
|
|
@@ -305,6 +305,6 @@ impl Transaction {
|
|
|
305
305
|
return future::try_join_all(futures).await;
|
|
306
306
|
}
|
|
307
307
|
|
|
308
|
-
Err(RustPSQLDriverError::TransactionClosedError
|
|
308
|
+
Err(RustPSQLDriverError::TransactionClosedError)
|
|
309
309
|
}
|
|
310
310
|
}
|
|
@@ -49,8 +49,8 @@ pub enum RustPSQLDriverError {
|
|
|
49
49
|
TransactionSavepointError(String),
|
|
50
50
|
#[error("Transaction execute error: {0}")]
|
|
51
51
|
TransactionExecuteError(String),
|
|
52
|
-
#[error("Underlying connection is returned to the pool
|
|
53
|
-
TransactionClosedError
|
|
52
|
+
#[error("Underlying connection is returned to the pool")]
|
|
53
|
+
TransactionClosedError,
|
|
54
54
|
|
|
55
55
|
// Cursor Errors
|
|
56
56
|
#[error("Cursor error: {0}")]
|
|
@@ -162,7 +162,7 @@ impl From<RustPSQLDriverError> for pyo3::PyErr {
|
|
|
162
162
|
RustPSQLDriverError::TransactionExecuteError(_) => {
|
|
163
163
|
TransactionExecuteError::new_err((error_desc,))
|
|
164
164
|
}
|
|
165
|
-
RustPSQLDriverError::TransactionClosedError
|
|
165
|
+
RustPSQLDriverError::TransactionClosedError => {
|
|
166
166
|
TransactionClosedError::new_err((error_desc,))
|
|
167
167
|
}
|
|
168
168
|
RustPSQLDriverError::BaseCursorError(_) => BaseCursorError::new_err((error_desc,)),
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|