Participer au site avec un Tip
Rechercher
 

Améliorations / Corrections

Vous avez des améliorations (ou des corrections) à proposer pour ce document : je vous remerçie par avance de m'en faire part, cela m'aide à améliorer le site.

Emplacement :

Description des améliorations :

Vous êtes un professionnel et vous avez besoin d'une formation ? Calcul scientifique
avec Python
Voir le programme détaillé
Classe « ExecutableDDLElement »

Méthode sqlalchemy.ExecutableDDLElement.against

Signature de la méthode against

def against(self, target: 'SchemaItem') -> 'Self' 

Description

help(ExecutableDDLElement.against)

Return a copy of this :class:`_schema.ExecutableDDLElement` which
will include the given target.

This essentially applies the given item to the ``.target`` attribute of
the returned :class:`_schema.ExecutableDDLElement` object. This target
is then usable by event handlers and compilation routines in order to
provide services such as tokenization of a DDL string in terms of a
particular :class:`_schema.Table`.

When a :class:`_schema.ExecutableDDLElement` object is established as
an event handler for the :meth:`_events.DDLEvents.before_create` or
:meth:`_events.DDLEvents.after_create` events, and the event then
occurs for a given target such as a :class:`_schema.Constraint` or
:class:`_schema.Table`, that target is established with a copy of the
:class:`_schema.ExecutableDDLElement` object using this method, which
then proceeds to the :meth:`_schema.ExecutableDDLElement.execute`
method in order to invoke the actual DDL instruction.

:param target: a :class:`_schema.SchemaItem` that will be the subject
 of a DDL operation.

:return: a copy of this :class:`_schema.ExecutableDDLElement` with the
 ``.target`` attribute assigned to the given
 :class:`_schema.SchemaItem`.

.. seealso::

    :class:`_schema.DDL` - uses tokenization against the "target" when
    processing the DDL string.



Vous êtes un professionnel et vous avez besoin d'une formation ? Coder avec une
Intelligence Artificielle
Voir le programme détaillé