$14 GRAYBYTE WORDPRESS FILE MANAGER $63

SERVER : in-mum-web1330.main-hosting.eu #1 SMP Mon Feb 10 22:45:17 UTC 2025
SERVER IP : 147.79.69.153 | ADMIN IP 216.73.216.143
OPTIONS : CRL = ON | WGT = ON | SDO = OFF | PKEX = OFF
DEACTIVATED : NONE

/opt/alt/python37/share/doc/alt-python37-alembic/docs/build/api/

HOME
Current File : /opt/alt/python37/share/doc/alt-python37-alembic/docs/build/api//runtime.rst
.. _alembic.runtime.environment.toplevel:

=======================
Runtime Objects
=======================

The "runtime" of Alembic involves the :class:`.EnvironmentContext`
and :class:`.MigrationContext` objects.   These are the objects that are
in play once the ``env.py`` script is loaded up by a command and
a migration operation proceeds.

The Environment Context
=======================

The :class:`.EnvironmentContext` class provides most of the
API used within an ``env.py`` script.  Within ``env.py``,
the instantated :class:`.EnvironmentContext` is made available
via a special *proxy module* called ``alembic.context``.   That is,
you can import ``alembic.context`` like a regular Python module,
and each name you call upon it is ultimately routed towards the
current :class:`.EnvironmentContext` in use.

In particular, the key method used within ``env.py`` is :meth:`.EnvironmentContext.configure`,
which establishes all the details about how the database will be accessed.

.. automodule:: alembic.runtime.environment
    :members: EnvironmentContext

.. _alembic.runtime.migration.toplevel:

The Migration Context
=====================

The :class:`.MigrationContext` handles the actual work to be performed
against a database backend as migration operations proceed.  It is generally
not exposed to the end-user.

.. automodule:: alembic.runtime.migration
    :members: MigrationContext

Current_dir [ NOT WRITEABLE ] Document_root [ WRITEABLE ]


[ Back ]
NAME
SIZE
LAST TOUCH
USER
CAN-I?
FUNCTIONS
..
--
25 Jan 2024 4.26 PM
root / 996
0755
api_overview.png
121.06 KB
16 Oct 2015 7.18 PM
root / 996
0644
autogenerate.rst
24.643 KB
16 Oct 2015 7.18 PM
root / 996
0644
commands.rst
1.681 KB
16 Oct 2015 7.18 PM
root / 996
0644
config.rst
1.202 KB
16 Oct 2015 7.18 PM
root / 996
0644
ddl.rst
1.064 KB
16 Oct 2015 7.18 PM
root / 996
0644
index.rst
0.989 KB
16 Oct 2015 7.18 PM
root / 996
0644
operations.rst
6.609 KB
16 Oct 2015 7.18 PM
root / 996
0644
overview.rst
3.329 KB
16 Oct 2015 7.18 PM
root / 996
0644
runtime.rst
1.372 KB
16 Oct 2015 7.18 PM
root / 996
0644
script.rst
0.439 KB
16 Oct 2015 7.18 PM
root / 996
0644

GRAYBYTE WORDPRESS FILE MANAGER @ 2026 CONTACT ME
Static GIF