The schema module provides the building blocks for database metadata.
Each element within this module describes a database entity which can be created and dropped, or is otherwise part of such an entity. Examples include tables, columns, sequences, and indexes.
All entities are subclasses of ~sqlalchemy.schema.SchemaItem
, and as
defined in this module they are intended to be agnostic of any vendor-specific
constructs.
A collection of entities are grouped into a unit called
~sqlalchemy.schema.MetaData
. MetaData serves as a logical grouping of
schema elements, and can also be associated with an actual database connection
such that operations involving the contained elements can contact the database
as needed.
Two of the elements here also build upon their "syntactic" counterparts, which
are defined in ~sqlalchemy.sql.expression.
, specifically
~sqlalchemy.schema.Table
and ~sqlalchemy.schema.Column
.
Since these objects are part of the SQL expression language, they are usable
as components in SQL expressions.
Class | CheckConstraint |
A table- or column-level CHECK constraint. |
Class | Column |
Represents a column in a database table. |
Class | ColumnCollectionConstraint |
A constraint that proxies a ColumnCollection. |
Class | ColumnCollectionMixin |
No class docstring; 1/4 instance variable, 0/1 class variable, 0/4 method documented |
Class | ColumnDefault |
A plain default value on a column. |
Class | Computed |
Defines a generated column, i.e. "GENERATED ALWAYS AS" syntax. |
Class | Constraint |
A table-level SQL constraint. |
Class | DefaultClause |
A DDL-specified DEFAULT column value. |
Class | DefaultGenerator |
Base class for column default values. |
Class | FetchedValue |
A marker for a transparent database-side default. |
Class | ForeignKey |
Defines a dependency between two columns. |
Class | ForeignKeyConstraint |
A table-level FOREIGN KEY constraint. |
Class | Identity |
Defines an identity column, i.e. "GENERATED { ALWAYS | BY DEFAULT } AS IDENTITY" syntax. |
Class | Index |
A table-level INDEX. |
Class | MetaData |
A collection of _schema.Table objects and their associated schema constructs. |
Class | PrimaryKeyConstraint |
A table-level PRIMARY KEY constraint. |
Class | SchemaItem |
Base class for items that define a database schema. |
Class | Sequence |
Represents a named database sequence. |
Class | Table |
Represent a table in a database. |
Class | ThreadLocalMetaData |
A MetaData variant that presents a different bind in every thread. |
Class | UniqueConstraint |
A table-level UNIQUE constraint. |
Constant | BLANK_SCHEMA |
Undocumented |
Constant | DEFAULT_NAMING_CONVENTION |
Undocumented |
Constant | NULL_UNSPECIFIED |
Undocumented |
Constant | RETAIN_SCHEMA |
Undocumented |
Class | IdentityOptions |
Defines options for a named database sequence or an identity column. |
Function | _copy_expression |
Undocumented |
Function | _get_table_key |
Undocumented |
Undocumented
Value |
|
Undocumented
Value |
|