summaryrefslogtreecommitdiff
path: root/lib/sqlalchemy/schema.py
blob: 598d499dc83846e91b67d0b4b3b4a44339c20781 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
# schema.py
# Copyright (C) 2005-2018 the SQLAlchemy authors and contributors
# <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 (
    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,
    SetTableComment,
    DropTableComment,
    SetColumnComment,
    DropColumnComment,
)