sqla-fancy-core 1.2.0__tar.gz → 1.2.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 sqla-fancy-core might be problematic. Click here for more details.

Files changed (22) hide show
  1. {sqla_fancy_core-1.2.0 → sqla_fancy_core-1.2.1}/PKG-INFO +1 -1
  2. {sqla_fancy_core-1.2.0 → sqla_fancy_core-1.2.1}/pyproject.toml +1 -1
  3. {sqla_fancy_core-1.2.0 → sqla_fancy_core-1.2.1}/sqla_fancy_core/wrappers.py +12 -8
  4. {sqla_fancy_core-1.2.0 → sqla_fancy_core-1.2.1}/uv.lock +1 -1
  5. {sqla_fancy_core-1.2.0 → sqla_fancy_core-1.2.1}/.github/workflows/ci.yaml +0 -0
  6. {sqla_fancy_core-1.2.0 → sqla_fancy_core-1.2.1}/.gitignore +0 -0
  7. {sqla_fancy_core-1.2.0 → sqla_fancy_core-1.2.1}/LICENSE +0 -0
  8. {sqla_fancy_core-1.2.0 → sqla_fancy_core-1.2.1}/README.md +0 -0
  9. {sqla_fancy_core-1.2.0 → sqla_fancy_core-1.2.1}/sqla_fancy_core/__init__.py +0 -0
  10. {sqla_fancy_core-1.2.0 → sqla_fancy_core-1.2.1}/sqla_fancy_core/decorators.py +0 -0
  11. {sqla_fancy_core-1.2.0 → sqla_fancy_core-1.2.1}/sqla_fancy_core/factories.py +0 -0
  12. {sqla_fancy_core-1.2.0 → sqla_fancy_core-1.2.1}/tests/__init__.py +0 -0
  13. {sqla_fancy_core-1.2.0 → sqla_fancy_core-1.2.1}/tests/test_async_atomic.py +0 -0
  14. {sqla_fancy_core-1.2.0 → sqla_fancy_core-1.2.1}/tests/test_async_fancy_engine.py +0 -0
  15. {sqla_fancy_core-1.2.0 → sqla_fancy_core-1.2.1}/tests/test_atomic.py +0 -0
  16. {sqla_fancy_core-1.2.0 → sqla_fancy_core-1.2.1}/tests/test_connect.py +0 -0
  17. {sqla_fancy_core-1.2.0 → sqla_fancy_core-1.2.1}/tests/test_decorators.py +0 -0
  18. {sqla_fancy_core-1.2.0 → sqla_fancy_core-1.2.1}/tests/test_fancy_engine.py +0 -0
  19. {sqla_fancy_core-1.2.0 → sqla_fancy_core-1.2.1}/tests/test_field.py +0 -0
  20. {sqla_fancy_core-1.2.0 → sqla_fancy_core-1.2.1}/tests/test_table_factory.py +0 -0
  21. {sqla_fancy_core-1.2.0 → sqla_fancy_core-1.2.1}/tests/test_table_factory_async.py +0 -0
  22. {sqla_fancy_core-1.2.0 → sqla_fancy_core-1.2.1}/tests/test_transact.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: sqla-fancy-core
3
- Version: 1.2.0
3
+ Version: 1.2.1
4
4
  Summary: SQLAlchemy core, but fancier
5
5
  Project-URL: Homepage, https://github.com/sayanarijit/sqla-fancy-core
6
6
  Author-email: Arijit Basu <sayanarijit@gmail.com>
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = 'sqla-fancy-core'
3
- version = '1.2.0'
3
+ version = '1.2.1'
4
4
  description = 'SQLAlchemy core, but fancier'
5
5
  readme = 'README.md'
6
6
  requires-python = ">=3.7"
@@ -206,10 +206,12 @@ class FancyEngineWrapper:
206
206
  execution_options: Optional[CoreExecuteOptionsParameter] = None,
207
207
  ) -> CursorResult[Any]:
208
208
  """If within an atomic context, execute the query there; else, create a new transaction."""
209
- with self.atomic() as connection:
210
- return connection.execute(
211
- statement, parameters, execution_options=execution_options
212
- )
209
+ return self.tx(
210
+ self._ATOMIC_TX_CONN.get(),
211
+ statement,
212
+ parameters,
213
+ execution_options=execution_options,
214
+ )
213
215
 
214
216
 
215
217
  class AsyncFancyEngineWrapper:
@@ -383,10 +385,12 @@ class AsyncFancyEngineWrapper:
383
385
  execution_options: Optional[CoreExecuteOptionsParameter] = None,
384
386
  ) -> CursorResult[Any]:
385
387
  """If within an atomic context, execute the query there; else, create a new transaction."""
386
- async with self.atomic() as connection:
387
- return await connection.execute(
388
- statement, parameters, execution_options=execution_options
389
- )
388
+ return await self.tx(
389
+ self._ATOMIC_TX_CONN.get(),
390
+ statement,
391
+ parameters,
392
+ execution_options=execution_options,
393
+ )
390
394
 
391
395
 
392
396
  @overload
@@ -2968,7 +2968,7 @@ wheels = [
2968
2968
 
2969
2969
  [[package]]
2970
2970
  name = "sqla-fancy-core"
2971
- version = "1.2.0"
2971
+ version = "1.2.1"
2972
2972
  source = { editable = "." }
2973
2973
  dependencies = [
2974
2974
  { name = "sqlalchemy" },
File without changes