forked from litestar-org/sqlspec
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path__init__.py
More file actions
146 lines (143 loc) · 3.37 KB
/
__init__.py
File metadata and controls
146 lines (143 loc) · 3.37 KB
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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
"""SQL query builders for safe SQL construction.
Provides fluent interfaces for building SQL queries with
parameter binding and validation.
"""
from sqlspec.builder._base import QueryBuilder, SafeQuery
from sqlspec.builder._column import Column, ColumnExpression, FunctionColumn
from sqlspec.builder._ddl import (
AlterTable,
CommentOn,
CreateIndex,
CreateMaterializedView,
CreateSchema,
CreateTable,
CreateTableAsSelect,
CreateView,
DDLBuilder,
DropIndex,
DropSchema,
DropTable,
DropView,
RenameTable,
Truncate,
)
from sqlspec.builder._delete import Delete
from sqlspec.builder._dml import (
DeleteFromClauseMixin,
InsertFromSelectMixin,
InsertIntoClauseMixin,
InsertValuesMixin,
UpdateFromClauseMixin,
UpdateSetClauseMixin,
UpdateTableClauseMixin,
)
from sqlspec.builder._expression_wrappers import (
AggregateExpression,
ConversionExpression,
FunctionExpression,
MathExpression,
StringExpression,
)
from sqlspec.builder._factory import (
SQLFactory,
build_copy_from_statement,
build_copy_statement,
build_copy_to_statement,
sql,
)
from sqlspec.builder._insert import Insert
from sqlspec.builder._join import JoinBuilder
from sqlspec.builder._merge import Merge
from sqlspec.builder._parsing_utils import (
extract_expression,
parse_column_expression,
parse_condition_expression,
parse_order_expression,
parse_table_expression,
to_expression,
)
from sqlspec.builder._select import (
Case,
CaseBuilder,
CommonTableExpressionMixin,
HavingClauseMixin,
LimitOffsetClauseMixin,
OrderByClauseMixin,
PivotClauseMixin,
ReturningClauseMixin,
Select,
SelectClauseMixin,
SetOperationMixin,
SubqueryBuilder,
UnpivotClauseMixin,
WhereClauseMixin,
WindowFunctionBuilder,
)
from sqlspec.builder._update import Update
from sqlspec.exceptions import SQLBuilderError
__all__ = (
"AggregateExpression",
"AlterTable",
"Case",
"CaseBuilder",
"Column",
"ColumnExpression",
"CommentOn",
"CommonTableExpressionMixin",
"ConversionExpression",
"CreateIndex",
"CreateMaterializedView",
"CreateSchema",
"CreateTable",
"CreateTableAsSelect",
"CreateView",
"DDLBuilder",
"Delete",
"DeleteFromClauseMixin",
"DropIndex",
"DropSchema",
"DropTable",
"DropView",
"FunctionColumn",
"FunctionExpression",
"HavingClauseMixin",
"Insert",
"InsertFromSelectMixin",
"InsertIntoClauseMixin",
"InsertValuesMixin",
"JoinBuilder",
"LimitOffsetClauseMixin",
"MathExpression",
"Merge",
"OrderByClauseMixin",
"PivotClauseMixin",
"QueryBuilder",
"RenameTable",
"ReturningClauseMixin",
"SQLBuilderError",
"SQLFactory",
"SafeQuery",
"Select",
"SelectClauseMixin",
"SetOperationMixin",
"StringExpression",
"SubqueryBuilder",
"Truncate",
"UnpivotClauseMixin",
"Update",
"UpdateFromClauseMixin",
"UpdateSetClauseMixin",
"UpdateTableClauseMixin",
"WhereClauseMixin",
"WindowFunctionBuilder",
"build_copy_from_statement",
"build_copy_statement",
"build_copy_to_statement",
"extract_expression",
"parse_column_expression",
"parse_condition_expression",
"parse_order_expression",
"parse_table_expression",
"sql",
"to_expression",
)