class DefaultClause(FetchedValue): (source)
A DDL-specified DEFAULT column value. :class:`.DefaultClause` is a :class:`.FetchedValue` that also generates a "DEFAULT" clause when "CREATE TABLE" is emitted. :class:`.DefaultClause` is generated automatically whenever the ``server_default``, ``server_onupdate`` arguments of :class:`_schema.Column` are used. A :class:`.DefaultClause` can be passed positionally as well. For example, the following:: Column('foo', Integer, server_default="50") Is equivalent to:: Column('foo', Integer, DefaultClause("50"))
Method | __init__ |
Undocumented |
Method | __repr__ |
Undocumented |
Class Variable | has |
Undocumented |
Instance Variable | arg |
Undocumented |
Instance Variable | reflected |
Undocumented |
Method | _copy |
Undocumented |
Inherited from FetchedValue
:
Class Variable | is |
Undocumented |
Class Variable | is |
Undocumented |
Instance Variable | column |
Undocumented |
Instance Variable | for |
Undocumented |
Method | _as |
Undocumented |
Method | _clone |
Undocumented |
Method | _set |
Associate with this SchemaEvent's parent object. |
Inherited from SchemaEventTarget
(via FetchedValue
):
Class Variable | dispatch |
Undocumented |
Method | _set |
Undocumented |
Inherited from EventTarget
(via FetchedValue
, SchemaEventTarget
):
Class Variable | __slots__ |
Undocumented |
Union[ str, ClauseElement, TextClause]
, for_update: bool
= False, _reflected: bool
= False):
(source)
¶
Undocumented