MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / after_parent_attach

Method after_parent_attach

lib/sqlalchemy/sql/events.py:325–340  ·  view source on GitHub ↗

Called after a :class:`.SchemaItem` is associated with a parent :class:`.SchemaItem`. :param target: the target object :param parent: the parent to which the target is being attached. :func:`.event.listen` also accepts the ``propagate=True`` modifier for thi

(
        self, target: SchemaEventTarget, parent: SchemaItem
    )

Source from the content-addressed store, hash-verified

323 """
324
325 def after_parent_attach(
326 self, target: SchemaEventTarget, parent: SchemaItem
327 ) -> None:
328 """Called after a :class:`.SchemaItem` is associated with
329 a parent :class:`.SchemaItem`.
330
331 :param target: the target object
332 :param parent: the parent to which the target is being attached.
333
334 :func:`.event.listen` also accepts the ``propagate=True``
335 modifier for this event; when True, the listener function will
336 be established for any copies made of the target object,
337 i.e. those copies that are generated when
338 :meth:`_schema.Table.to_metadata` is used.
339
340 """
341
342 def _sa_event_column_added_to_pk_constraint(
343 self, const: Constraint, col: Column[Any]

Callers 2

_newMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected