@@ -229,12 +229,19 @@ def compile(element, compiler, **kw):
229
229
raise TypeError("coalesce only supports two arguments on Oracle")
230
230
return "nvl(%s)" % compiler.process(element.clauses, **kw)
231
231
232
- * :class:`~sqlalchemy.schema.DDLElement` - The root of all DDL expressions,
233
- like CREATE TABLE, ALTER TABLE, etc. Compilation of ``DDLElement``
234
- subclasses is issued by a ``DDLCompiler`` instead of a ``SQLCompiler``.
235
- ``DDLElement`` also features ``Table`` and ``MetaData`` event hooks via the
236
- ``execute_at()`` method, allowing the construct to be invoked during CREATE
237
- TABLE and DROP TABLE sequences.
232
+ * :class:`.DDLElement` - The root of all DDL expressions,
233
+ like CREATE TABLE, ALTER TABLE, etc. Compilation of :class:`.DDLElement`
234
+ subclasses is issued by a :class:`.DDLCompiler` instead of a
235
+ :class:`.SQLCompiler`. :class:`.DDLElement` can also be used as an event hook
236
+ in conjunction with event hooks like :meth:`.DDLEvents.before_create` and
237
+ :meth:`.DDLEvents.after_create`, allowing the construct to be invoked
238
+ automatically during CREATE TABLE and DROP TABLE sequences.
239
+
240
+ .. seealso::
241
+
242
+ :ref:`metadata_ddl_toplevel` - contains examples of associating
243
+ :class:`.DDL` objects (which are themselves :class:`.DDLElement`
244
+ instances) with :class:`.DDLEvents` event hooks.
238
245
239
246
* :class:`~sqlalchemy.sql.expression.Executable` - This is a mixin which
240
247
should be used with any expression class that represents a "standalone"
0 commit comments