dibbler/sqlalchemy/__init__.py

147 lines
2.2 KiB
Python
Raw Normal View History

2017-04-15 18:27:12 +02:00
# sqlalchemy/__init__.py
# 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
from .sql import (
2010-05-07 19:33:49 +02:00
alias,
2017-04-15 18:27:12 +02:00
all_,
2010-05-07 19:33:49 +02:00
and_,
2017-04-15 18:27:12 +02:00
any_,
2010-05-07 19:33:49 +02:00
asc,
between,
bindparam,
case,
cast,
collate,
2017-04-15 18:27:12 +02:00
column,
2010-05-07 19:33:49 +02:00
delete,
desc,
distinct,
except_,
except_all,
exists,
extract,
2017-04-15 18:27:12 +02:00
false,
2010-05-07 19:33:49 +02:00
func,
2017-04-15 18:27:12 +02:00
funcfilter,
2010-05-07 19:33:49 +02:00
insert,
intersect,
intersect_all,
join,
2017-04-15 18:27:12 +02:00
lateral,
2010-05-07 19:33:49 +02:00
literal,
literal_column,
modifier,
not_,
null,
or_,
outerjoin,
outparam,
2017-04-15 18:27:12 +02:00
over,
2010-05-07 19:33:49 +02:00
select,
subquery,
2017-04-15 18:27:12 +02:00
table,
tablesample,
2010-05-07 19:33:49 +02:00
text,
2017-04-15 18:27:12 +02:00
true,
2010-05-07 19:33:49 +02:00
tuple_,
2017-04-15 18:27:12 +02:00
type_coerce,
2010-05-07 19:33:49 +02:00
union,
union_all,
update,
2017-04-15 18:27:12 +02:00
within_group,
2010-05-07 19:33:49 +02:00
)
2017-04-15 18:27:12 +02:00
from .types import (
ARRAY,
BIGINT,
BINARY,
2010-05-07 19:33:49 +02:00
BLOB,
BOOLEAN,
BigInteger,
Binary,
Boolean,
CHAR,
CLOB,
DATE,
DATETIME,
DECIMAL,
Date,
DateTime,
Enum,
FLOAT,
Float,
INT,
INTEGER,
Integer,
Interval,
2017-04-15 18:27:12 +02:00
JSON,
2010-05-07 19:33:49 +02:00
LargeBinary,
NCHAR,
NVARCHAR,
NUMERIC,
Numeric,
PickleType,
2017-04-15 18:27:12 +02:00
REAL,
2010-05-07 19:33:49 +02:00
SMALLINT,
SmallInteger,
String,
TEXT,
TIME,
TIMESTAMP,
Text,
Time,
2017-04-15 18:27:12 +02:00
TypeDecorator,
2010-05-07 19:33:49 +02:00
Unicode,
UnicodeText,
2017-04-15 18:27:12 +02:00
VARBINARY,
2010-05-07 19:33:49 +02:00
VARCHAR,
)
2017-04-15 18:27:12 +02:00
from .schema import (
2010-05-07 19:33:49 +02:00
CheckConstraint,
Column,
ColumnDefault,
Constraint,
DefaultClause,
FetchedValue,
ForeignKey,
ForeignKeyConstraint,
Index,
MetaData,
PassiveDefault,
PrimaryKeyConstraint,
Sequence,
Table,
ThreadLocalMetaData,
UniqueConstraint,
2017-04-15 18:27:12 +02:00
DDL,
BLANK_SCHEMA
)
from .inspection import inspect
from .engine import create_engine, engine_from_config
__version__ = '1.1.9'
def __go(lcls):
global __all__
2010-05-07 19:33:49 +02:00
2017-04-15 18:27:12 +02:00
from . import events
from . import util as _sa_util
2010-05-07 19:33:49 +02:00
2017-04-15 18:27:12 +02:00
import inspect as _inspect
2010-05-07 19:33:49 +02:00
2017-04-15 18:27:12 +02:00
__all__ = sorted(name for name, obj in lcls.items()
if not (name.startswith('_') or _inspect.ismodule(obj)))
2010-05-07 19:33:49 +02:00
2017-04-15 18:27:12 +02:00
_sa_util.dependencies.resolve_all("sqlalchemy")
__go(locals())