class DefaultClause(FetchedValue):
A DDL-specified DEFAULT column value.
.DefaultClause
is a .FetchedValue
that also generates a "DEFAULT" clause when
"CREATE TABLE" is emitted.
.DefaultClause
is generated automatically
whenever the server_default, server_onupdate arguments of
_schema.Column
are used. A .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_argument |
Undocumented |
Instance Variable | arg |
Undocumented |
Instance Variable | reflected |
Undocumented |
Inherited from FetchedValue
:
Method | _as_for_update |
Undocumented |
Method | _clone |
Undocumented |
Method | _set_parent |
Associate with this SchemaEvent's parent object. |
Class Variable | is_clause_element |
Undocumented |
Class Variable | is_server_default |
Undocumented |
Instance Variable | column |
Undocumented |
Instance Variable | for_update |
Undocumented |
Inherited from SchemaEventTarget
(via FetchedValue
):
Method | _set_parent_with_dispatch |
Undocumented |