$11 GRAYBYTE WORDPRESS FILE MANAGER $30

SERVER : in-mum-web1330.main-hosting.eu #1 SMP Mon Feb 10 22:45:17 UTC 2025
SERVER IP : 93.127.173.182 | 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/

HOME
Current File : /opt/alt/python37/share/doc/alt-python37-alembic/docs/build//ops.rst
.. _ops:

===================
Operation Reference
===================

This file provides documentation on Alembic migration directives.

The directives here are used within user-defined migration files,
within the ``upgrade()`` and ``downgrade()`` functions, as well as
any functions further invoked by those.

All directives exist as methods on a class called :class:`.Operations`.
When migration scripts are run, this object is made available
to the script via the ``alembic.op`` datamember, which is
a *proxy* to an actual instance of :class:`.Operations`.
Currently, ``alembic.op`` is a real Python module, populated
with individual proxies for each method on :class:`.Operations`,
so symbols can be imported safely from the ``alembic.op`` namespace.

The :class:`.Operations` system is also fully extensible.  See
:ref:`operation_plugins` for details on this.

A key design philosophy to the :ref:`alembic.operations.toplevel` methods is that
to the greatest degree possible, they internally generate the
appropriate SQLAlchemy metadata, typically involving
:class:`~sqlalchemy.schema.Table` and :class:`~sqlalchemy.schema.Constraint`
objects.  This so that migration instructions can be
given in terms of just the string names and/or flags involved.
The exceptions to this
rule include the :meth:`~.Operations.add_column` and :meth:`~.Operations.create_table`
directives, which require full :class:`~sqlalchemy.schema.Column`
objects, though the table metadata is still generated here.

The functions here all require that a :class:`.MigrationContext` has been
configured within the ``env.py`` script first, which is typically
via :meth:`.EnvironmentContext.configure`.   Under normal
circumstances they are called from an actual migration script, which
itself would be invoked by the :meth:`.EnvironmentContext.run_migrations`
method.

.. automodule:: alembic.operations
	:members: Operations, BatchOperations

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
_static
--
25 Jan 2024 4.26 PM
root / 996
0755
api
--
25 Jan 2024 4.26 PM
root / 996
0755
Makefile
3.227 KB
16 Oct 2015 7.18 PM
root / 996
0644
autogenerate.rst
17.364 KB
16 Oct 2015 7.18 PM
root / 996
0644
batch.rst
14.086 KB
16 Oct 2015 7.18 PM
root / 996
0644
branches.rst
35.21 KB
16 Oct 2015 7.18 PM
root / 996
0644
changelog.rst
88.855 KB
16 Oct 2015 7.19 PM
root / 996
0644
conf.py
7.233 KB
16 Oct 2015 7.18 PM
root / 996
0644
cookbook.rst
29.826 KB
16 Oct 2015 7.18 PM
root / 996
0644
front.rst
2.388 KB
16 Oct 2015 7.18 PM
root / 996
0644
index.rst
0.524 KB
16 Oct 2015 7.18 PM
root / 996
0644
naming.rst
8.923 KB
16 Oct 2015 7.18 PM
root / 996
0644
offline.rst
5.488 KB
16 Oct 2015 7.18 PM
root / 996
0644
ops.rst
1.873 KB
16 Oct 2015 7.18 PM
root / 996
0644
requirements.txt
0.087 KB
16 Oct 2015 7.18 PM
root / 996
0644
tutorial.rst
20.741 KB
16 Oct 2015 7.18 PM
root / 996
0644

GRAYBYTE WORDPRESS FILE MANAGER @ 2026 CONTACT ME
Static GIF