Skip to content

Commit 2e7522e

Browse files
authored
Improve sql.expression (#42)
1 parent e2442c5 commit 2e7522e

File tree

1 file changed

+71
-44
lines changed

1 file changed

+71
-44
lines changed

sqlalchemy-stubs/sql/expression.pyi

Lines changed: 71 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,35 @@
1-
from typing import Any
2-
1+
# fmt: off
32
from .base import ColumnCollection as ColumnCollection
43
from .dml import Delete as Delete
54
from .dml import Insert as Insert
65
from .dml import Update as Update
76
from .elements import between as between
7+
from .elements import BindParameter
8+
from .elements import BooleanClauseList
9+
from .elements import Case
10+
from .elements import Cast
811
from .elements import ClauseElement as ClauseElement
912
from .elements import collate as collate
13+
from .elements import CollectionAggregate
14+
from .elements import ColumnClause
1015
from .elements import ColumnElement as ColumnElement
16+
from .elements import Extract
17+
from .elements import False_ as False_
18+
from .elements import FunctionFilter
19+
from .elements import Label
1120
from .elements import literal as literal
1221
from .elements import literal_column as literal_column
1322
from .elements import not_ as not_
23+
from .elements import Null
1424
from .elements import outparam as outparam
25+
from .elements import Over
1526
from .elements import quoted_name as quoted_name
27+
from .elements import TextClause
28+
from .elements import True_ as True_
29+
from .elements import Tuple
30+
from .elements import TypeCoerce
31+
from .elements import UnaryExpression
32+
from .elements import WithinGroup
1633
from .functions import func as func
1734
from .functions import modifier as modifier
1835
from .lambdas import lambda_stmt as lambda_stmt
@@ -22,57 +39,67 @@ from .operators import custom_op as custom_op
2239
from .selectable import Alias as Alias
2340
from .selectable import AliasedReturnsRows as AliasedReturnsRows
2441
from .selectable import CompoundSelect as CompoundSelect
42+
from .selectable import CTE
43+
from .selectable import Exists
2544
from .selectable import FromClause as FromClause
2645
from .selectable import Join as Join
46+
from .selectable import LABEL_STYLE_DEFAULT as LABEL_STYLE_DEFAULT
47+
from .selectable import LABEL_STYLE_DISAMBIGUATE_ONLY as LABEL_STYLE_DISAMBIGUATE_ONLY
48+
from .selectable import LABEL_STYLE_NONE as LABEL_STYLE_NONE
49+
from .selectable import LABEL_STYLE_TABLENAME_PLUS_COL as LABEL_STYLE_TABLENAME_PLUS_COL
2750
from .selectable import Lateral as Lateral
2851
from .selectable import Select as Select
2952
from .selectable import Selectable as Selectable
3053
from .selectable import Subquery as Subquery
54+
from .selectable import subquery as subquery
3155
from .selectable import TableClause as TableClause
3256
from .selectable import TableSample as TableSample
3357
from .selectable import TableValuedAlias as TableValuedAlias
3458
from .selectable import Values as Values
3559
from .traversals import CacheKey as CacheKey
3660

37-
all_: Any
38-
any_: Any
39-
and_: Any
40-
alias: Any
41-
tablesample: Any
42-
lateral: Any
43-
or_: Any
44-
bindparam: Any
45-
select: Any
46-
text: Any
47-
table: Any
48-
column: Any
49-
over: Any
50-
within_group: Any
51-
label: Any
52-
case: Any
53-
cast: Any
54-
cte: Any
55-
values: Any
56-
extract: Any
57-
tuple_: Any
58-
except_: Any
59-
except_all: Any
60-
intersect: Any
61-
intersect_all: Any
62-
union: Any
63-
union_all: Any
64-
exists: Any
65-
nulls_first: Any
66-
nullsfirst: Any
67-
nulls_last: Any
68-
nullslast: Any
69-
asc: Any
70-
desc: Any
71-
distinct: Any
72-
type_coerce: Any
73-
null: Any
74-
join: Any
75-
outerjoin: Any
76-
insert: Any
77-
update: Any
78-
delete: Any
61+
all_ = CollectionAggregate._create_all
62+
any_ = CollectionAggregate._create_any
63+
and_ = BooleanClauseList.and_
64+
alias = Alias._factory
65+
tablesample = TableSample._factory
66+
lateral = Lateral._factory
67+
or_ = BooleanClauseList.or_
68+
bindparam = BindParameter
69+
select = Select._create
70+
text = TextClause._create_text
71+
table = TableClause
72+
column = ColumnClause
73+
over = Over
74+
within_group = WithinGroup
75+
label = Label
76+
case = Case
77+
cast = Cast
78+
cte = CTE._factory
79+
values = Values
80+
extract = Extract
81+
tuple_ = Tuple
82+
except_ = CompoundSelect._create_except
83+
except_all = CompoundSelect._create_except_all
84+
intersect = CompoundSelect._create_intersect
85+
intersect_all = CompoundSelect._create_intersect_all
86+
union = CompoundSelect._create_union
87+
union_all = CompoundSelect._create_union_all
88+
exists = Exists
89+
nulls_first = UnaryExpression._create_nulls_first
90+
nullsfirst = UnaryExpression._create_nulls_first
91+
nulls_last = UnaryExpression._create_nulls_last
92+
nullslast = UnaryExpression._create_nulls_last
93+
asc = UnaryExpression._create_asc
94+
desc = UnaryExpression._create_desc
95+
distinct = UnaryExpression._create_distinct
96+
type_coerce = TypeCoerce
97+
true = True_._instance
98+
false = False_._instance
99+
null = Null._instance
100+
join = Join._create_join
101+
outerjoin = Join._create_outerjoin
102+
insert = Insert
103+
update = Update
104+
delete = Delete
105+
funcfilter = FunctionFilter

0 commit comments

Comments
 (0)