class SchemaType(SchemaEventTarget, TypeEngineMixin): (source)
Known subclasses: sqlalchemy.dialects.postgresql.DOMAIN
, sqlalchemy.sql.sqltypes.Boolean
, sqlalchemy.sql.sqltypes.Enum
Add capabilities to a type which allow for schema-level DDL to be associated with a type. 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. :class:`.SchemaType` classes can also be targets for the :meth:`.DDLEvents.before_parent_attach` and :meth:`.DDLEvents.after_parent_attach` events, where the events fire off surrounding the association of the type object with a parent :class:`_schema.Column`. .. seealso:: :class:`.Enum` :class:`.Boolean`
Method | __init__ |
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. |
Instance Variable | dispatch |
Undocumented |
Instance Variable | inherit |
Undocumented |
Instance Variable | metadata |
Undocumented |
Instance Variable | name |
Undocumented |
Instance Variable | schema |
Undocumented |
Method | _is |
Undocumented |
Method | _on |
Undocumented |
Method | _on |
Undocumented |
Method | _on |
Undocumented |
Method | _on |
Undocumented |
Method | _set |
Associate with this SchemaEvent's parent object. |
Method | _set |
Undocumented |
Method | _variant |
Undocumented |
Class Variable | _use |
Undocumented |
Instance Variable | _create |
Undocumented |
Inherited from SchemaEventTarget
:
Method | _set |
Undocumented |
Inherited from EventTarget
(via SchemaEventTarget
):
Class Variable | __slots__ |
Undocumented |
Inherited from TypeEngineMixin
(via SchemaEventTarget
, EventTarget
):
Method | dialect |
Undocumented |
Property | _static |
Undocumented |
Optional[ str]
= None, schema: Optional[ str]
= None, metadata: Optional[ MetaData]
= None, inherit_schema: bool
= False, quote: Optional[ bool]
= None, _create_events: bool
= True, _adapted_from: Optional[ SchemaType]
= None):
(source)
¶
sqlalchemy.dialects.postgresql.DOMAIN
, sqlalchemy.sql.sqltypes.Boolean
, sqlalchemy.sql.sqltypes.Enum
Undocumented