2016-02-06 09:36:57 +00:00
|
|
|
# schema.py
|
2016-02-22 12:17:39 +00:00
|
|
|
# Copyright (C) 2005-2016 the SQLAlchemy authors and contributors
|
2016-02-06 09:36:57 +00:00
|
|
|
# <see AUTHORS file>
|
|
|
|
#
|
|
|
|
# This module is part of SQLAlchemy and is released under
|
|
|
|
# the MIT License: http://www.opensource.org/licenses/mit-license.php
|
|
|
|
|
|
|
|
"""Compatibility namespace for sqlalchemy.sql.schema and related.
|
|
|
|
|
|
|
|
"""
|
|
|
|
|
|
|
|
from .sql.base import (
|
|
|
|
SchemaVisitor
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
|
|
from .sql.schema import (
|
|
|
|
CheckConstraint,
|
|
|
|
Column,
|
|
|
|
ColumnDefault,
|
|
|
|
Constraint,
|
|
|
|
DefaultClause,
|
|
|
|
DefaultGenerator,
|
|
|
|
FetchedValue,
|
|
|
|
ForeignKey,
|
|
|
|
ForeignKeyConstraint,
|
|
|
|
Index,
|
|
|
|
MetaData,
|
|
|
|
PassiveDefault,
|
|
|
|
PrimaryKeyConstraint,
|
|
|
|
SchemaItem,
|
|
|
|
Sequence,
|
|
|
|
Table,
|
|
|
|
ThreadLocalMetaData,
|
|
|
|
UniqueConstraint,
|
|
|
|
_get_table_key,
|
|
|
|
ColumnCollectionConstraint,
|
2016-02-22 12:17:39 +00:00
|
|
|
ColumnCollectionMixin
|
2016-02-06 09:36:57 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
|
|
|
|
from .sql.naming import conv
|
|
|
|
|
|
|
|
|
|
|
|
from .sql.ddl import (
|
|
|
|
DDL,
|
|
|
|
CreateTable,
|
|
|
|
DropTable,
|
|
|
|
CreateSequence,
|
|
|
|
DropSequence,
|
|
|
|
CreateIndex,
|
|
|
|
DropIndex,
|
|
|
|
CreateSchema,
|
|
|
|
DropSchema,
|
|
|
|
_DropView,
|
|
|
|
CreateColumn,
|
|
|
|
AddConstraint,
|
|
|
|
DropConstraint,
|
|
|
|
DDLBase,
|
|
|
|
DDLElement,
|
|
|
|
_CreateDropBase,
|
2016-02-22 12:17:39 +00:00
|
|
|
_DDLCompiles,
|
|
|
|
sort_tables,
|
|
|
|
sort_tables_and_constraints
|
2016-02-06 09:36:57 +00:00
|
|
|
)
|