Skip to content

Releases: krylosov-aa/context-async-sqlalchemy

2.1.5

30 Nov 05:54

Choose a tag to compare

small fix in is_context_initiated, pop_db_session_from_context, get_db_session_from_context

2.1.4

28 Nov 22:37

Choose a tag to compare

atomic_db_session

There are several options that define how the function will handle
an already open transaction.
current_transaction:
"commit" - commits the open transaction and starts a new one
"rollback" - rolls back the open transaction and starts a new one
"append" - continues using the current transaction and commits it
"raise" - raises an InvalidRequestError

set_test_context

Use auto_close=False if you’re using a test session and transaction
that you close manually elsewhere in your code.

Use auto_close=True if, for example, you want to call a
function in a test that uses a context bypassing the
middleware, and you want all sessions to be closed automatically.

2.0.4

28 Nov 08:06

Choose a tag to compare

2.0.3

23 Nov 21:24

Choose a tag to compare

I removed modules from the init that not everyone needs

2.0.2

22 Nov 20:53

Choose a tag to compare

only doc fixes

2.0.0

21 Nov 22:49
1102691

Choose a tag to compare

lots of improvements

1.2.3

20 Nov 19:35

Choose a tag to compare

easier middleware installation

1.2.2

20 Nov 18:23

Choose a tag to compare

The library provides several ready-made utils that can be used in tests,
for example in fixtures. It helps write tests that share a common transaction
between the test and the application, so data isolation between tests is
achieved through fast transaction rollback.

You can see the capabilities in the examples:

Here are tests with a common transaction between the
application and the tests.

And here's an example with different transactions.

https://pypi.org/project/context-async-sqlalchemy/1.2.2/

1.2.1

19 Nov 18:37

Choose a tag to compare

1.2.0

13 Nov 20:08

Choose a tag to compare