SickGear/lib/sqlalchemy/__init__.py

133 lines
2 KiB
Python
Raw Normal View History

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