dibbler/sqlalchemy/sql/__init__.py

99 lines
1.8 KiB
Python
Raw Normal View History

2017-04-15 18:27:12 +02:00
# sql/__init__.py
# Copyright (C) 2005-2017 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 .expression import (
2010-05-07 19:33:49 +02:00
Alias,
ClauseElement,
ColumnCollection,
ColumnElement,
CompoundSelect,
Delete,
FromClause,
Insert,
Join,
Select,
Selectable,
TableClause,
2017-04-15 18:27:12 +02:00
TableSample,
2010-05-07 19:33:49 +02:00
Update,
alias,
and_,
2017-04-15 18:27:12 +02:00
any_,
all_,
2010-05-07 19:33:49 +02:00
asc,
between,
bindparam,
case,
cast,
collate,
column,
delete,
desc,
distinct,
except_,
except_all,
exists,
extract,
2017-04-15 18:27:12 +02:00
false,
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,
label,
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,
table,
2017-04-15 18:27:12 +02:00
tablesample,
2010-05-07 19:33:49 +02:00
text,
2017-04-15 18:27:12 +02:00
true,
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
)
from .visitors import ClauseVisitor
def __go(lcls):
global __all__
from .. import util as _sa_util
import inspect as _inspect
__all__ = sorted(name for name, obj in lcls.items()
if not (name.startswith('_') or _inspect.ismodule(obj)))
from .annotation import _prepare_annotations, Annotated
from .elements import AnnotatedColumnElement, ClauseList
from .selectable import AnnotatedFromClause
_prepare_annotations(ColumnElement, AnnotatedColumnElement)
_prepare_annotations(FromClause, AnnotatedFromClause)
_prepare_annotations(ClauseList, Annotated)
_sa_util.dependencies.resolve_all("sqlalchemy.sql")
2010-05-07 19:33:49 +02:00
2017-04-15 18:27:12 +02:00
from . import naming
2010-05-07 19:33:49 +02:00
2017-04-15 18:27:12 +02:00
__go(locals())