summaryrefslogtreecommitdiff
path: root/docs/build
diff options
context:
space:
mode:
authorFederico Caselli <cfederico87@gmail.com>2023-04-29 23:25:21 +0200
committerMike Bayer <mike_mp@zzzcomputing.com>2023-05-12 12:06:14 -0400
commit6d2df6c92c981d220bd1481ebdc7d86274ccf845 (patch)
treebe009a39f769dd4cff23d1fd917f651adeccee72 /docs/build
parent92e54a0e1c96cecd99397cb1aee9c3bb28f780c6 (diff)
downloadalembic-6d2df6c92c981d220bd1481ebdc7d86274ccf845.tar.gz
Added ``op.run_async``.
Added :meth:`.Operations.run_async` to the operation module to allow running async functions in the ``upgrade`` or ``downgrade`` migration function when running alembic using an async dialect. This function will receive as first argument an class:`~sqlalchemy.ext.asyncio.AsyncConnection` sharing the transaction used in the migration context. also restore the .execute() method to BatchOperations Fixes: #1231 Change-Id: I3c3237d570be3c9bd9834e4c61bb3231bfb82765
Diffstat (limited to 'docs/build')
-rw-r--r--docs/build/unreleased/1231.rst11
1 files changed, 11 insertions, 0 deletions
diff --git a/docs/build/unreleased/1231.rst b/docs/build/unreleased/1231.rst
new file mode 100644
index 0000000..37678ca
--- /dev/null
+++ b/docs/build/unreleased/1231.rst
@@ -0,0 +1,11 @@
+
+.. change::
+ :tags: usecase, asyncio
+ :tickets: 1231
+
+ Added :meth:`.Operations.run_async` to the operation module to allow
+ running async functions in the ``upgrade`` or ``downgrade`` migration
+ function when running alembic using an async dialect.
+ This function will receive as first argument an
+ :class:`~sqlalchemy.ext.asyncio.AsyncConnection` sharing the transaction
+ used in the migration context.