class documentation

class SchemaType(SchemaEventTarget):

Known subclasses: sqlalchemy.types.Boolean, sqlalchemy.types.Enum

View In Hierarchy

Mark a type as possibly requiring schema-level DDL for usage.

Supports types that must be explicitly created/dropped (i.e. PG ENUM type) as well as types that are complimented by table or schema level constraints, triggers, and other rules.

.SchemaType classes can also be targets for the .DDLEvents.before_parent_attach and .DDLEvents.after_parent_attach events, where the events fire off surrounding the association of the type object with a parent _schema.Column.

See Also

.Enum

.Boolean

Method __init__ Undocumented
Method ​_is​_impl​_for​_variant Undocumented
Method ​_on​_metadata​_create Undocumented
Method ​_on​_metadata​_drop Undocumented
Method ​_on​_table​_create Undocumented
Method ​_on​_table​_drop Undocumented
Method ​_set​_parent Associate with this SchemaEvent's parent object.
Method ​_set​_table Undocumented
Method ​_variant​_mapping​_for​_set​_table Undocumented
Method adapt Undocumented
Method copy Undocumented
Method create Issue CREATE DDL for this type, if applicable.
Method drop Issue DROP DDL for this type, if applicable.
Class Variable ​_use​_schema​_map Undocumented
Instance Variable ​_create​_events Undocumented
Instance Variable inherit​_schema Undocumented
Instance Variable metadata Undocumented
Instance Variable name Undocumented
Instance Variable schema Undocumented
Property bind Undocumented

Inherited from SchemaEventTarget:

Method ​_set​_parent​_with​_dispatch Undocumented
def __init__(self, name=None, schema=None, metadata=None, inherit_schema=False, quote=None, _create_events=True):

Undocumented

def _is_impl_for_variant(self, dialect, kw):

Undocumented

def _on_metadata_create(self, target, bind, **kw):

Undocumented

def _on_metadata_drop(self, target, bind, **kw):

Undocumented

def _on_table_create(self, target, bind, **kw):

Undocumented

def _on_table_drop(self, target, bind, **kw):

Undocumented

def _set_parent(self, column, **kw):
Associate with this SchemaEvent's parent object.
def _set_table(self, column, table):

Undocumented

def _variant_mapping_for_set_table(self, column):

Undocumented

def adapt(self, impltype, **kw):
overridden in sqlalchemy.types.Enum

Undocumented

def copy(self, **kw):
overridden in sqlalchemy.types.Enum

Undocumented

def create(self, bind=None, checkfirst=False):
Issue CREATE DDL for this type, if applicable.
def drop(self, bind=None, checkfirst=False):
Issue DROP DDL for this type, if applicable.
_use_schema_map: bool =

Undocumented

_create_events =

Undocumented

inherit_schema =

Undocumented

metadata =

Undocumented

name =

Undocumented

schema =

Undocumented

@property
bind =

Undocumented