2010-05-07 19:33:49 +02:00
|
|
|
# schema.py
|
2017-04-15 18:27:12 +02:00
|
|
|
# Copyright (C) 2005-2017 the SQLAlchemy authors and contributors
|
|
|
|
# <see AUTHORS file>
|
2010-05-07 19:33:49 +02:00
|
|
|
#
|
|
|
|
# This module is part of SQLAlchemy and is released under
|
|
|
|
# the MIT License: http://www.opensource.org/licenses/mit-license.php
|
|
|
|
|
2017-04-15 18:27:12 +02:00
|
|
|
"""Compatibility namespace for sqlalchemy.sql.schema and related.
|
2010-05-07 19:33:49 +02:00
|
|
|
|
|
|
|
"""
|
|
|
|
|
2017-04-15 18:27:12 +02:00
|
|
|
from .sql.base import (
|
|
|
|
SchemaVisitor
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
|
|
from .sql.schema import (
|
|
|
|
BLANK_SCHEMA,
|
|
|
|
CheckConstraint,
|
|
|
|
Column,
|
|
|
|
ColumnDefault,
|
|
|
|
Constraint,
|
|
|
|
DefaultClause,
|
|
|
|
DefaultGenerator,
|
|
|
|
FetchedValue,
|
|
|
|
ForeignKey,
|
|
|
|
ForeignKeyConstraint,
|
|
|
|
Index,
|
|
|
|
MetaData,
|
|
|
|
PassiveDefault,
|
|
|
|
PrimaryKeyConstraint,
|
|
|
|
SchemaItem,
|
|
|
|
Sequence,
|
|
|
|
Table,
|
|
|
|
ThreadLocalMetaData,
|
|
|
|
UniqueConstraint,
|
|
|
|
_get_table_key,
|
|
|
|
ColumnCollectionConstraint,
|
|
|
|
ColumnCollectionMixin
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
|
|
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,
|
|
|
|
_DDLCompiles,
|
|
|
|
sort_tables,
|
|
|
|
sort_tables_and_constraints
|
|
|
|
)
|