class documentation

class DefaultClause(FetchedValue):

View In Hierarchy

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
def __init__(self, arg, for_update=False, _reflected=False):
def __repr__(self):
has_argument: bool =
arg =

Undocumented

reflected =