r"""Called after CREATE statements are emitted. :param target: the :class:`.SchemaObject`, such as a :class:`_schema.MetaData` or :class:`_schema.Table` but also including all create/drop objects such as :class:`.Index`, :class:`.Sequence`, etc., object w
(
self, target: SchemaEventTarget, connection: Connection, **kw: Any
)
| 213 | """ |
| 214 | |
| 215 | def after_create( |
| 216 | self, target: SchemaEventTarget, connection: Connection, **kw: Any |
| 217 | ) -> None: |
| 218 | r"""Called after CREATE statements are emitted. |
| 219 | |
| 220 | :param target: the :class:`.SchemaObject`, such as a |
| 221 | :class:`_schema.MetaData` or :class:`_schema.Table` |
| 222 | but also including all create/drop objects such as |
| 223 | :class:`.Index`, :class:`.Sequence`, etc., |
| 224 | object which is the target of the event. |
| 225 | |
| 226 | .. versionadded:: 2.0 Support for all :class:`.SchemaItem` objects |
| 227 | was added. |
| 228 | |
| 229 | :param connection: the :class:`_engine.Connection` where the |
| 230 | CREATE statement or statements have been emitted. |
| 231 | :param \**kw: additional keyword arguments relevant |
| 232 | to the event. The contents of this dictionary |
| 233 | may vary across releases, and include the |
| 234 | list of tables being generated for a metadata-level |
| 235 | event, the checkfirst flag, and other |
| 236 | elements used by internal events. |
| 237 | |
| 238 | :func:`.event.listen` also accepts the ``propagate=True`` |
| 239 | modifier for this event; when True, the listener function will |
| 240 | be established for any copies made of the target object, |
| 241 | i.e. those copies that are generated when |
| 242 | :meth:`_schema.Table.to_metadata` is used. |
| 243 | |
| 244 | """ |
| 245 | |
| 246 | def before_drop( |
| 247 | self, target: SchemaEventTarget, connection: Connection, **kw: Any |
no outgoing calls