xtr-orm 6.6.0__tar.gz → 6.7.0__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.
Files changed (69) hide show
  1. {xtr_orm-6.6.0 → xtr_orm-6.7.0}/PKG-INFO +7 -1
  2. {xtr_orm-6.6.0 → xtr_orm-6.7.0}/README.md +6 -0
  3. {xtr_orm-6.6.0 → xtr_orm-6.7.0}/pyproject.toml +1 -1
  4. {xtr_orm-6.6.0 → xtr_orm-6.7.0}/pyproject.toml.orig +1 -1
  5. {xtr_orm-6.6.0 → xtr_orm-6.7.0}/src/xtr_orm/.agents/skills/xtr-orm/references/messenger.md +4 -1
  6. {xtr_orm-6.6.0 → xtr_orm-6.7.0}/LICENSE +0 -0
  7. {xtr_orm-6.6.0 → xtr_orm-6.7.0}/src/xtr_orm/.agents/skills/xtr-orm/SKILL.md +0 -0
  8. {xtr_orm-6.6.0 → xtr_orm-6.7.0}/src/xtr_orm/.agents/skills/xtr-orm/references/commands.md +0 -0
  9. {xtr_orm-6.6.0 → xtr_orm-6.7.0}/src/xtr_orm/.agents/skills/xtr-orm/references/connections.md +0 -0
  10. {xtr_orm-6.6.0 → xtr_orm-6.7.0}/src/xtr_orm/.agents/skills/xtr-orm/references/migrations.md +0 -0
  11. {xtr_orm-6.6.0 → xtr_orm-6.7.0}/src/xtr_orm/__init__.py +0 -0
  12. {xtr_orm-6.6.0 → xtr_orm-6.7.0}/src/xtr_orm/bundle/__init__.py +0 -0
  13. {xtr_orm-6.6.0 → xtr_orm-6.7.0}/src/xtr_orm/bundle/connection_config.py +0 -0
  14. {xtr_orm-6.6.0 → xtr_orm-6.7.0}/src/xtr_orm/bundle/orm_bundle.py +0 -0
  15. {xtr_orm-6.6.0 → xtr_orm-6.7.0}/src/xtr_orm/bundle/orm_config.py +0 -0
  16. {xtr_orm-6.6.0 → xtr_orm-6.7.0}/src/xtr_orm/bundle/orm_mappings_pass.py +0 -0
  17. {xtr_orm-6.6.0 → xtr_orm-6.7.0}/src/xtr_orm/command/__init__.py +0 -0
  18. {xtr_orm-6.6.0 → xtr_orm-6.7.0}/src/xtr_orm/command/_reporting.py +0 -0
  19. {xtr_orm-6.6.0 → xtr_orm-6.7.0}/src/xtr_orm/command/connection_command.py +0 -0
  20. {xtr_orm-6.6.0 → xtr_orm-6.7.0}/src/xtr_orm/command/database_create_command.py +0 -0
  21. {xtr_orm-6.6.0 → xtr_orm-6.7.0}/src/xtr_orm/command/database_drop_command.py +0 -0
  22. {xtr_orm-6.6.0 → xtr_orm-6.7.0}/src/xtr_orm/command/migrations_current_command.py +0 -0
  23. {xtr_orm-6.6.0 → xtr_orm-6.7.0}/src/xtr_orm/command/migrations_diff_command.py +0 -0
  24. {xtr_orm-6.6.0 → xtr_orm-6.7.0}/src/xtr_orm/command/migrations_dump_schema_command.py +0 -0
  25. {xtr_orm-6.6.0 → xtr_orm-6.7.0}/src/xtr_orm/command/migrations_execute_command.py +0 -0
  26. {xtr_orm-6.6.0 → xtr_orm-6.7.0}/src/xtr_orm/command/migrations_generate_command.py +0 -0
  27. {xtr_orm-6.6.0 → xtr_orm-6.7.0}/src/xtr_orm/command/migrations_latest_command.py +0 -0
  28. {xtr_orm-6.6.0 → xtr_orm-6.7.0}/src/xtr_orm/command/migrations_list_command.py +0 -0
  29. {xtr_orm-6.6.0 → xtr_orm-6.7.0}/src/xtr_orm/command/migrations_migrate_command.py +0 -0
  30. {xtr_orm-6.6.0 → xtr_orm-6.7.0}/src/xtr_orm/command/migrations_rollup_command.py +0 -0
  31. {xtr_orm-6.6.0 → xtr_orm-6.7.0}/src/xtr_orm/command/migrations_status_command.py +0 -0
  32. {xtr_orm-6.6.0 → xtr_orm-6.7.0}/src/xtr_orm/command/migrations_up_to_date_command.py +0 -0
  33. {xtr_orm-6.6.0 → xtr_orm-6.7.0}/src/xtr_orm/command/migrations_version_command.py +0 -0
  34. {xtr_orm-6.6.0 → xtr_orm-6.7.0}/src/xtr_orm/command/run_sql_command.py +0 -0
  35. {xtr_orm-6.6.0 → xtr_orm-6.7.0}/src/xtr_orm/connection_registry.py +0 -0
  36. {xtr_orm-6.6.0 → xtr_orm-6.7.0}/src/xtr_orm/database/__init__.py +0 -0
  37. {xtr_orm-6.6.0 → xtr_orm-6.7.0}/src/xtr_orm/database/database_manager.py +0 -0
  38. {xtr_orm-6.6.0 → xtr_orm-6.7.0}/src/xtr_orm/exception/__init__.py +0 -0
  39. {xtr_orm-6.6.0 → xtr_orm-6.7.0}/src/xtr_orm/exception/invalid_argument_error.py +0 -0
  40. {xtr_orm-6.6.0 → xtr_orm-6.7.0}/src/xtr_orm/exception/migration_error.py +0 -0
  41. {xtr_orm-6.6.0 → xtr_orm-6.7.0}/src/xtr_orm/exception/missing_database_error.py +0 -0
  42. {xtr_orm-6.6.0 → xtr_orm-6.7.0}/src/xtr_orm/exception/orm_error.py +0 -0
  43. {xtr_orm-6.6.0 → xtr_orm-6.7.0}/src/xtr_orm/exception/session_unavailable_error.py +0 -0
  44. {xtr_orm-6.6.0 → xtr_orm-6.7.0}/src/xtr_orm/exception/unknown_connection_error.py +0 -0
  45. {xtr_orm-6.6.0 → xtr_orm-6.7.0}/src/xtr_orm/exception/unsupported_database_error.py +0 -0
  46. {xtr_orm-6.6.0 → xtr_orm-6.7.0}/src/xtr_orm/mapping_driver_interface.py +0 -0
  47. {xtr_orm-6.6.0 → xtr_orm-6.7.0}/src/xtr_orm/messenger/__init__.py +0 -0
  48. {xtr_orm-6.6.0 → xtr_orm-6.7.0}/src/xtr_orm/messenger/close_connection_middleware.py +0 -0
  49. {xtr_orm-6.6.0 → xtr_orm-6.7.0}/src/xtr_orm/messenger/open_transaction_logger_middleware.py +0 -0
  50. {xtr_orm-6.6.0 → xtr_orm-6.7.0}/src/xtr_orm/messenger/transaction_middleware.py +0 -0
  51. {xtr_orm-6.6.0 → xtr_orm-6.7.0}/src/xtr_orm/messenger_transport.py +0 -0
  52. {xtr_orm-6.6.0 → xtr_orm-6.7.0}/src/xtr_orm/migrations/__init__.py +0 -0
  53. {xtr_orm-6.6.0 → xtr_orm-6.7.0}/src/xtr_orm/migrations/_environment.py +0 -0
  54. {xtr_orm-6.6.0 → xtr_orm-6.7.0}/src/xtr_orm/migrations/_history.py +0 -0
  55. {xtr_orm-6.6.0 → xtr_orm-6.7.0}/src/xtr_orm/migrations/_revisions.py +0 -0
  56. {xtr_orm-6.6.0 → xtr_orm-6.7.0}/src/xtr_orm/migrations/_schema.py +0 -0
  57. {xtr_orm-6.6.0 → xtr_orm-6.7.0}/src/xtr_orm/migrations/available_migration.py +0 -0
  58. {xtr_orm-6.6.0 → xtr_orm-6.7.0}/src/xtr_orm/migrations/direction.py +0 -0
  59. {xtr_orm-6.6.0 → xtr_orm-6.7.0}/src/xtr_orm/migrations/executed_migration.py +0 -0
  60. {xtr_orm-6.6.0 → xtr_orm-6.7.0}/src/xtr_orm/migrations/execution_result.py +0 -0
  61. {xtr_orm-6.6.0 → xtr_orm-6.7.0}/src/xtr_orm/migrations/migration_plan.py +0 -0
  62. {xtr_orm-6.6.0 → xtr_orm-6.7.0}/src/xtr_orm/migrations/migration_status.py +0 -0
  63. {xtr_orm-6.6.0 → xtr_orm-6.7.0}/src/xtr_orm/migrations/migrations_config.py +0 -0
  64. {xtr_orm-6.6.0 → xtr_orm-6.7.0}/src/xtr_orm/migrations/migrator.py +0 -0
  65. {xtr_orm-6.6.0 → xtr_orm-6.7.0}/src/xtr_orm/migrations/template/script.py.mako +0 -0
  66. {xtr_orm-6.6.0 → xtr_orm-6.7.0}/src/xtr_orm/py.typed +0 -0
  67. {xtr_orm-6.6.0 → xtr_orm-6.7.0}/src/xtr_orm/recipe/__init__.py +0 -0
  68. {xtr_orm-6.6.0 → xtr_orm-6.7.0}/src/xtr_orm/recipe/files/config/orm.py.tmpl +0 -0
  69. {xtr_orm-6.6.0 → xtr_orm-6.7.0}/src/xtr_orm/recipe/manifest.toml +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: xtr-orm
3
- Version: 6.6.0
3
+ Version: 6.7.0
4
4
  Summary: Databases for async applications: engines, sessions and versioned schema migrations, configured once per connection.
5
5
  Keywords: orm,database,migrations,sqlalchemy,alembic,asyncio
6
6
  Author: Xterr
@@ -528,6 +528,12 @@ MessageBusConfig(
528
528
  ```python
529
529
  await bus.dispatch(SendReceipt(order.id), DispatchAfterCurrentBusStamp())
530
530
  ```
531
+
532
+ Handled by the worker whose message held it back, it is a unit of work of its own: a session
533
+ and a transaction of its own, whatever runs the worker.
534
+ - **A worker's event listener is outside every transaction.** It runs outside the message's
535
+ unit of work, so a session it asks for is built for that call alone and nothing commits it:
536
+ dispatch a message to write, or commit it yourself.
531
537
  - **A dropped connection** is found by the engine option `pool_pre_ping` as a connection is
532
538
  taken from the pool — `?pool_pre_ping=true` on a worker's URL — so there is no middleware
533
539
  for that.
@@ -496,6 +496,12 @@ MessageBusConfig(
496
496
  ```python
497
497
  await bus.dispatch(SendReceipt(order.id), DispatchAfterCurrentBusStamp())
498
498
  ```
499
+
500
+ Handled by the worker whose message held it back, it is a unit of work of its own: a session
501
+ and a transaction of its own, whatever runs the worker.
502
+ - **A worker's event listener is outside every transaction.** It runs outside the message's
503
+ unit of work, so a session it asks for is built for that call alone and nothing commits it:
504
+ dispatch a message to write, or commit it yourself.
499
505
  - **A dropped connection** is found by the engine option `pool_pre_ping` as a connection is
500
506
  taken from the pool — `?pool_pre_ping=true` on a worker's URL — so there is no middleware
501
507
  for that.
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "xtr-orm"
3
- version = "6.6.0"
3
+ version = "6.7.0"
4
4
  description = "Databases for async applications: engines, sessions and versioned schema migrations, configured once per connection."
5
5
  readme = "README.md"
6
6
  requires-python = ">=3.11"
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "xtr-orm"
3
- version = "6.6.0"
3
+ version = "6.7.0"
4
4
  description = "Databases for async applications: engines, sessions and versioned schema migrations, configured once per connection."
5
5
  readme = "README.md"
6
6
  requires-python = ">=3.11"
@@ -65,7 +65,10 @@ class NotifyAccounting:
65
65
  ```
66
66
 
67
67
  With that stamp it goes out only once the message being handled was committed, and never after a
68
- rollback.
68
+ rollback. Handled by the worker whose message held it back, it has a session and a transaction of
69
+ its own.
70
+ - **A worker's event listener is outside every transaction.** A session it asks for is built for
71
+ that call alone and nothing commits it: dispatch a message to write, or commit it yourself.
69
72
  - **Only messages a worker consumed** — one carrying a `ReceivedStamp` on arrival — close
70
73
  connections afterwards. A message handled during its dispatch, `sync://` included, closes
71
74
  nothing. A worker handling several at once closes once the last is done.
File without changes
File without changes
File without changes