xtr-orm 6.6.0__tar.gz → 6.8.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.
- {xtr_orm-6.6.0 → xtr_orm-6.8.0}/PKG-INFO +7 -1
- {xtr_orm-6.6.0 → xtr_orm-6.8.0}/README.md +6 -0
- {xtr_orm-6.6.0 → xtr_orm-6.8.0}/pyproject.toml +1 -1
- {xtr_orm-6.6.0 → xtr_orm-6.8.0}/pyproject.toml.orig +1 -1
- {xtr_orm-6.6.0 → xtr_orm-6.8.0}/src/xtr_orm/.agents/skills/xtr-orm/references/messenger.md +4 -1
- {xtr_orm-6.6.0 → xtr_orm-6.8.0}/LICENSE +0 -0
- {xtr_orm-6.6.0 → xtr_orm-6.8.0}/src/xtr_orm/.agents/skills/xtr-orm/SKILL.md +0 -0
- {xtr_orm-6.6.0 → xtr_orm-6.8.0}/src/xtr_orm/.agents/skills/xtr-orm/references/commands.md +0 -0
- {xtr_orm-6.6.0 → xtr_orm-6.8.0}/src/xtr_orm/.agents/skills/xtr-orm/references/connections.md +0 -0
- {xtr_orm-6.6.0 → xtr_orm-6.8.0}/src/xtr_orm/.agents/skills/xtr-orm/references/migrations.md +0 -0
- {xtr_orm-6.6.0 → xtr_orm-6.8.0}/src/xtr_orm/__init__.py +0 -0
- {xtr_orm-6.6.0 → xtr_orm-6.8.0}/src/xtr_orm/bundle/__init__.py +0 -0
- {xtr_orm-6.6.0 → xtr_orm-6.8.0}/src/xtr_orm/bundle/connection_config.py +0 -0
- {xtr_orm-6.6.0 → xtr_orm-6.8.0}/src/xtr_orm/bundle/orm_bundle.py +0 -0
- {xtr_orm-6.6.0 → xtr_orm-6.8.0}/src/xtr_orm/bundle/orm_config.py +0 -0
- {xtr_orm-6.6.0 → xtr_orm-6.8.0}/src/xtr_orm/bundle/orm_mappings_pass.py +0 -0
- {xtr_orm-6.6.0 → xtr_orm-6.8.0}/src/xtr_orm/command/__init__.py +0 -0
- {xtr_orm-6.6.0 → xtr_orm-6.8.0}/src/xtr_orm/command/_reporting.py +0 -0
- {xtr_orm-6.6.0 → xtr_orm-6.8.0}/src/xtr_orm/command/connection_command.py +0 -0
- {xtr_orm-6.6.0 → xtr_orm-6.8.0}/src/xtr_orm/command/database_create_command.py +0 -0
- {xtr_orm-6.6.0 → xtr_orm-6.8.0}/src/xtr_orm/command/database_drop_command.py +0 -0
- {xtr_orm-6.6.0 → xtr_orm-6.8.0}/src/xtr_orm/command/migrations_current_command.py +0 -0
- {xtr_orm-6.6.0 → xtr_orm-6.8.0}/src/xtr_orm/command/migrations_diff_command.py +0 -0
- {xtr_orm-6.6.0 → xtr_orm-6.8.0}/src/xtr_orm/command/migrations_dump_schema_command.py +0 -0
- {xtr_orm-6.6.0 → xtr_orm-6.8.0}/src/xtr_orm/command/migrations_execute_command.py +0 -0
- {xtr_orm-6.6.0 → xtr_orm-6.8.0}/src/xtr_orm/command/migrations_generate_command.py +0 -0
- {xtr_orm-6.6.0 → xtr_orm-6.8.0}/src/xtr_orm/command/migrations_latest_command.py +0 -0
- {xtr_orm-6.6.0 → xtr_orm-6.8.0}/src/xtr_orm/command/migrations_list_command.py +0 -0
- {xtr_orm-6.6.0 → xtr_orm-6.8.0}/src/xtr_orm/command/migrations_migrate_command.py +0 -0
- {xtr_orm-6.6.0 → xtr_orm-6.8.0}/src/xtr_orm/command/migrations_rollup_command.py +0 -0
- {xtr_orm-6.6.0 → xtr_orm-6.8.0}/src/xtr_orm/command/migrations_status_command.py +0 -0
- {xtr_orm-6.6.0 → xtr_orm-6.8.0}/src/xtr_orm/command/migrations_up_to_date_command.py +0 -0
- {xtr_orm-6.6.0 → xtr_orm-6.8.0}/src/xtr_orm/command/migrations_version_command.py +0 -0
- {xtr_orm-6.6.0 → xtr_orm-6.8.0}/src/xtr_orm/command/run_sql_command.py +0 -0
- {xtr_orm-6.6.0 → xtr_orm-6.8.0}/src/xtr_orm/connection_registry.py +0 -0
- {xtr_orm-6.6.0 → xtr_orm-6.8.0}/src/xtr_orm/database/__init__.py +0 -0
- {xtr_orm-6.6.0 → xtr_orm-6.8.0}/src/xtr_orm/database/database_manager.py +0 -0
- {xtr_orm-6.6.0 → xtr_orm-6.8.0}/src/xtr_orm/exception/__init__.py +0 -0
- {xtr_orm-6.6.0 → xtr_orm-6.8.0}/src/xtr_orm/exception/invalid_argument_error.py +0 -0
- {xtr_orm-6.6.0 → xtr_orm-6.8.0}/src/xtr_orm/exception/migration_error.py +0 -0
- {xtr_orm-6.6.0 → xtr_orm-6.8.0}/src/xtr_orm/exception/missing_database_error.py +0 -0
- {xtr_orm-6.6.0 → xtr_orm-6.8.0}/src/xtr_orm/exception/orm_error.py +0 -0
- {xtr_orm-6.6.0 → xtr_orm-6.8.0}/src/xtr_orm/exception/session_unavailable_error.py +0 -0
- {xtr_orm-6.6.0 → xtr_orm-6.8.0}/src/xtr_orm/exception/unknown_connection_error.py +0 -0
- {xtr_orm-6.6.0 → xtr_orm-6.8.0}/src/xtr_orm/exception/unsupported_database_error.py +0 -0
- {xtr_orm-6.6.0 → xtr_orm-6.8.0}/src/xtr_orm/mapping_driver_interface.py +0 -0
- {xtr_orm-6.6.0 → xtr_orm-6.8.0}/src/xtr_orm/messenger/__init__.py +0 -0
- {xtr_orm-6.6.0 → xtr_orm-6.8.0}/src/xtr_orm/messenger/close_connection_middleware.py +0 -0
- {xtr_orm-6.6.0 → xtr_orm-6.8.0}/src/xtr_orm/messenger/open_transaction_logger_middleware.py +0 -0
- {xtr_orm-6.6.0 → xtr_orm-6.8.0}/src/xtr_orm/messenger/transaction_middleware.py +0 -0
- {xtr_orm-6.6.0 → xtr_orm-6.8.0}/src/xtr_orm/messenger_transport.py +0 -0
- {xtr_orm-6.6.0 → xtr_orm-6.8.0}/src/xtr_orm/migrations/__init__.py +0 -0
- {xtr_orm-6.6.0 → xtr_orm-6.8.0}/src/xtr_orm/migrations/_environment.py +0 -0
- {xtr_orm-6.6.0 → xtr_orm-6.8.0}/src/xtr_orm/migrations/_history.py +0 -0
- {xtr_orm-6.6.0 → xtr_orm-6.8.0}/src/xtr_orm/migrations/_revisions.py +0 -0
- {xtr_orm-6.6.0 → xtr_orm-6.8.0}/src/xtr_orm/migrations/_schema.py +0 -0
- {xtr_orm-6.6.0 → xtr_orm-6.8.0}/src/xtr_orm/migrations/available_migration.py +0 -0
- {xtr_orm-6.6.0 → xtr_orm-6.8.0}/src/xtr_orm/migrations/direction.py +0 -0
- {xtr_orm-6.6.0 → xtr_orm-6.8.0}/src/xtr_orm/migrations/executed_migration.py +0 -0
- {xtr_orm-6.6.0 → xtr_orm-6.8.0}/src/xtr_orm/migrations/execution_result.py +0 -0
- {xtr_orm-6.6.0 → xtr_orm-6.8.0}/src/xtr_orm/migrations/migration_plan.py +0 -0
- {xtr_orm-6.6.0 → xtr_orm-6.8.0}/src/xtr_orm/migrations/migration_status.py +0 -0
- {xtr_orm-6.6.0 → xtr_orm-6.8.0}/src/xtr_orm/migrations/migrations_config.py +0 -0
- {xtr_orm-6.6.0 → xtr_orm-6.8.0}/src/xtr_orm/migrations/migrator.py +0 -0
- {xtr_orm-6.6.0 → xtr_orm-6.8.0}/src/xtr_orm/migrations/template/script.py.mako +0 -0
- {xtr_orm-6.6.0 → xtr_orm-6.8.0}/src/xtr_orm/py.typed +0 -0
- {xtr_orm-6.6.0 → xtr_orm-6.8.0}/src/xtr_orm/recipe/__init__.py +0 -0
- {xtr_orm-6.6.0 → xtr_orm-6.8.0}/src/xtr_orm/recipe/files/config/orm.py.tmpl +0 -0
- {xtr_orm-6.6.0 → xtr_orm-6.8.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.
|
|
3
|
+
Version: 6.8.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.
|
|
@@ -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
|
{xtr_orm-6.6.0 → xtr_orm-6.8.0}/src/xtr_orm/.agents/skills/xtr-orm/references/connections.md
RENAMED
|
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
|