class documentation

class DefaultClause(FetchedValue): (source)

View In Hierarchy

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_argument Undocumented
Instance Variable arg Undocumented
Instance Variable reflected Undocumented
Method _copy Undocumented

Inherited from FetchedValue:

Class Variable is_clause_element Undocumented
Class Variable is_server_default Undocumented
Instance Variable column Undocumented
Instance Variable for_update Undocumented
Method _as_for_update Undocumented
Method _clone Undocumented
Method _set_parent Associate with this SchemaEvent's parent object.

Inherited from SchemaEventTarget (via FetchedValue):

Class Variable dispatch Undocumented
Method _set_parent_with_dispatch Undocumented

Inherited from EventTarget (via FetchedValue, SchemaEventTarget):

Class Variable __slots__ Undocumented
def __init__(self, arg: Union[str, ClauseElement, TextClause], for_update: bool = False, _reflected: bool = False): (source)
def __repr__(self) -> str: (source)

Undocumented