duckdb 1.4.1.dev125__cp39-cp39-win_amd64.whl → 1.5.0.dev37__cp39-cp39-win_amd64.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of duckdb might be problematic. Click here for more details.
- _duckdb.cp39-win_amd64.pyd +0 -0
- duckdb/__init__.py +374 -373
- duckdb/__init__.pyi +180 -604
- duckdb/bytes_io_wrapper.py +7 -6
- duckdb/experimental/__init__.py +1 -2
- duckdb/experimental/spark/__init__.py +4 -3
- duckdb/experimental/spark/_globals.py +8 -8
- duckdb/experimental/spark/_typing.py +9 -7
- duckdb/experimental/spark/conf.py +15 -16
- duckdb/experimental/spark/context.py +44 -60
- duckdb/experimental/spark/errors/__init__.py +35 -33
- duckdb/experimental/spark/errors/error_classes.py +1 -1
- duckdb/experimental/spark/errors/exceptions/__init__.py +1 -1
- duckdb/experimental/spark/errors/exceptions/base.py +88 -39
- duckdb/experimental/spark/errors/utils.py +16 -11
- duckdb/experimental/spark/exception.py +6 -9
- duckdb/experimental/spark/sql/__init__.py +5 -5
- duckdb/experimental/spark/sql/_typing.py +15 -8
- duckdb/experimental/spark/sql/catalog.py +20 -21
- duckdb/experimental/spark/sql/column.py +54 -47
- duckdb/experimental/spark/sql/conf.py +8 -9
- duckdb/experimental/spark/sql/dataframe.py +233 -185
- duckdb/experimental/spark/sql/functions.py +1248 -1222
- duckdb/experimental/spark/sql/group.py +52 -56
- duckdb/experimental/spark/sql/readwriter.py +94 -80
- duckdb/experimental/spark/sql/session.py +59 -64
- duckdb/experimental/spark/sql/streaming.py +10 -9
- duckdb/experimental/spark/sql/type_utils.py +64 -66
- duckdb/experimental/spark/sql/types.py +344 -308
- duckdb/experimental/spark/sql/udf.py +6 -6
- duckdb/filesystem.py +8 -13
- duckdb/functional/__init__.py +16 -2
- duckdb/polars_io.py +57 -66
- duckdb/query_graph/__main__.py +96 -91
- duckdb/typing/__init__.py +8 -8
- duckdb/typing/__init__.pyi +2 -4
- duckdb/udf.py +5 -10
- duckdb/value/__init__.py +0 -1
- duckdb/value/constant/__init__.py +59 -61
- duckdb/value/constant/__init__.pyi +4 -3
- duckdb-1.5.0.dev37.dist-info/METADATA +80 -0
- duckdb-1.5.0.dev37.dist-info/RECORD +47 -0
- adbc_driver_duckdb/__init__.py +0 -50
- adbc_driver_duckdb/dbapi.py +0 -115
- duckdb-1.4.1.dev125.dist-info/METADATA +0 -326
- duckdb-1.4.1.dev125.dist-info/RECORD +0 -49
- {duckdb-1.4.1.dev125.dist-info → duckdb-1.5.0.dev37.dist-info}/WHEEL +0 -0
- {duckdb-1.4.1.dev125.dist-info → duckdb-1.5.0.dev37.dist-info}/licenses/LICENSE +0 -0
duckdb/__init__.py
CHANGED
|
@@ -1,294 +1,305 @@
|
|
|
1
|
-
#
|
|
2
|
-
from importlib.metadata import version
|
|
3
|
-
|
|
4
|
-
from _duckdb import __version__ as duckdb_version
|
|
5
|
-
|
|
1
|
+
# Modules
|
|
6
2
|
import duckdb.functional as functional
|
|
7
3
|
import duckdb.typing as typing
|
|
4
|
+
from _duckdb import __version__ as duckdb_version
|
|
5
|
+
from importlib.metadata import version
|
|
8
6
|
|
|
9
7
|
# duckdb.__version__ returns the version of the distribution package, i.e. the pypi version
|
|
10
8
|
__version__ = version("duckdb")
|
|
11
9
|
|
|
12
|
-
|
|
13
10
|
# version() is a more human friendly formatted version string of both the distribution package and the bundled duckdb
|
|
14
|
-
def version()
|
|
11
|
+
def version():
|
|
15
12
|
return f"{__version__} (with duckdb {duckdb_version})"
|
|
16
13
|
|
|
14
|
+
_exported_symbols = ['__version__', 'version']
|
|
17
15
|
|
|
18
|
-
_exported_symbols
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
16
|
+
_exported_symbols.extend([
|
|
17
|
+
"typing",
|
|
18
|
+
"functional"
|
|
19
|
+
])
|
|
22
20
|
|
|
23
21
|
class DBAPITypeObject:
|
|
24
22
|
def __init__(self, types: list[typing.DuckDBPyType]) -> None:
|
|
25
23
|
self.types = types
|
|
26
24
|
|
|
27
|
-
def __eq__(self, other
|
|
25
|
+
def __eq__(self, other):
|
|
28
26
|
if isinstance(other, typing.DuckDBPyType):
|
|
29
27
|
return other in self.types
|
|
30
28
|
return False
|
|
31
29
|
|
|
32
|
-
def __repr__(self)
|
|
30
|
+
def __repr__(self):
|
|
33
31
|
return f"<DBAPITypeObject [{','.join(str(x) for x in self.types)}]>"
|
|
34
32
|
|
|
35
|
-
|
|
36
33
|
# Define the standard DBAPI sentinels
|
|
37
|
-
STRING
|
|
38
|
-
NUMBER
|
|
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
|
-
BINARY = DBAPITypeObject([typing.BLOB])
|
|
69
|
-
ROWID = None
|
|
34
|
+
STRING = DBAPITypeObject([typing.VARCHAR])
|
|
35
|
+
NUMBER = DBAPITypeObject([
|
|
36
|
+
typing.TINYINT,
|
|
37
|
+
typing.UTINYINT,
|
|
38
|
+
typing.SMALLINT,
|
|
39
|
+
typing.USMALLINT,
|
|
40
|
+
typing.INTEGER,
|
|
41
|
+
typing.UINTEGER,
|
|
42
|
+
typing.BIGINT,
|
|
43
|
+
typing.UBIGINT,
|
|
44
|
+
typing.HUGEINT,
|
|
45
|
+
typing.UHUGEINT,
|
|
46
|
+
typing.DuckDBPyType("BIGNUM"),
|
|
47
|
+
typing.DuckDBPyType("DECIMAL"),
|
|
48
|
+
typing.FLOAT,
|
|
49
|
+
typing.DOUBLE
|
|
50
|
+
])
|
|
51
|
+
DATETIME = DBAPITypeObject([
|
|
52
|
+
typing.DATE,
|
|
53
|
+
typing.TIME,
|
|
54
|
+
typing.TIME_TZ,
|
|
55
|
+
typing.TIMESTAMP,
|
|
56
|
+
typing.TIMESTAMP_TZ,
|
|
57
|
+
typing.TIMESTAMP_NS,
|
|
58
|
+
typing.TIMESTAMP_MS,
|
|
59
|
+
typing.TIMESTAMP_S
|
|
60
|
+
])
|
|
61
|
+
BINARY = DBAPITypeObject([typing.BLOB])
|
|
62
|
+
ROWID = None
|
|
70
63
|
|
|
71
64
|
# Classes
|
|
72
65
|
from _duckdb import (
|
|
73
|
-
CaseExpression,
|
|
74
|
-
CoalesceOperator,
|
|
75
|
-
ColumnExpression,
|
|
76
|
-
ConstantExpression,
|
|
77
|
-
CSVLineTerminator,
|
|
78
|
-
DefaultExpression,
|
|
79
|
-
DuckDBPyConnection,
|
|
80
66
|
DuckDBPyRelation,
|
|
81
|
-
|
|
67
|
+
DuckDBPyConnection,
|
|
68
|
+
Statement,
|
|
82
69
|
ExplainType,
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
70
|
+
StatementType,
|
|
71
|
+
ExpectedResultType,
|
|
72
|
+
CSVLineTerminator,
|
|
86
73
|
PythonExceptionHandling,
|
|
87
74
|
RenderMode,
|
|
88
|
-
|
|
75
|
+
Expression,
|
|
76
|
+
ConstantExpression,
|
|
77
|
+
ColumnExpression,
|
|
78
|
+
DefaultExpression,
|
|
79
|
+
CoalesceOperator,
|
|
80
|
+
LambdaExpression,
|
|
89
81
|
StarExpression,
|
|
90
|
-
|
|
91
|
-
|
|
82
|
+
FunctionExpression,
|
|
83
|
+
CaseExpression,
|
|
84
|
+
SQLExpression
|
|
92
85
|
)
|
|
86
|
+
_exported_symbols.extend([
|
|
87
|
+
"DuckDBPyRelation",
|
|
88
|
+
"DuckDBPyConnection",
|
|
89
|
+
"ExplainType",
|
|
90
|
+
"PythonExceptionHandling",
|
|
91
|
+
"Expression",
|
|
92
|
+
"ConstantExpression",
|
|
93
|
+
"ColumnExpression",
|
|
94
|
+
"DefaultExpression",
|
|
95
|
+
"CoalesceOperator",
|
|
96
|
+
"LambdaExpression",
|
|
97
|
+
"StarExpression",
|
|
98
|
+
"FunctionExpression",
|
|
99
|
+
"CaseExpression",
|
|
100
|
+
"SQLExpression"
|
|
101
|
+
])
|
|
93
102
|
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
"ColumnExpression",
|
|
103
|
-
"DefaultExpression",
|
|
104
|
-
"CoalesceOperator",
|
|
105
|
-
"LambdaExpression",
|
|
106
|
-
"StarExpression",
|
|
107
|
-
"FunctionExpression",
|
|
108
|
-
"CaseExpression",
|
|
109
|
-
"SQLExpression",
|
|
110
|
-
]
|
|
103
|
+
# These are overloaded twice, we define them inside of C++ so pybind can deal with it
|
|
104
|
+
_exported_symbols.extend([
|
|
105
|
+
'df',
|
|
106
|
+
'arrow'
|
|
107
|
+
])
|
|
108
|
+
from _duckdb import (
|
|
109
|
+
df,
|
|
110
|
+
arrow
|
|
111
111
|
)
|
|
112
112
|
|
|
113
|
-
# These are overloaded twice, we define them inside of C++ so pybind can deal with it
|
|
114
|
-
_exported_symbols.extend(["df", "arrow"])
|
|
115
113
|
# NOTE: this section is generated by tools/pythonpkg/scripts/generate_connection_wrapper_methods.py.
|
|
116
114
|
# Do not edit this section manually, your changes will be overwritten!
|
|
115
|
+
|
|
117
116
|
# START OF CONNECTION WRAPPER
|
|
117
|
+
|
|
118
118
|
from _duckdb import (
|
|
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
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
119
|
+
cursor,
|
|
120
|
+
register_filesystem,
|
|
121
|
+
unregister_filesystem,
|
|
122
|
+
list_filesystems,
|
|
123
|
+
filesystem_is_registered,
|
|
124
|
+
create_function,
|
|
125
|
+
remove_function,
|
|
126
|
+
sqltype,
|
|
127
|
+
dtype,
|
|
128
|
+
type,
|
|
129
|
+
array_type,
|
|
130
|
+
list_type,
|
|
131
|
+
union_type,
|
|
132
|
+
string_type,
|
|
133
|
+
enum_type,
|
|
134
|
+
decimal_type,
|
|
135
|
+
struct_type,
|
|
136
|
+
row_type,
|
|
137
|
+
map_type,
|
|
138
|
+
duplicate,
|
|
139
|
+
execute,
|
|
140
|
+
executemany,
|
|
141
|
+
close,
|
|
142
|
+
interrupt,
|
|
143
|
+
query_progress,
|
|
144
|
+
fetchone,
|
|
145
|
+
fetchmany,
|
|
146
|
+
fetchall,
|
|
147
|
+
fetchnumpy,
|
|
148
|
+
fetchdf,
|
|
149
|
+
fetch_df,
|
|
150
|
+
df,
|
|
151
|
+
fetch_df_chunk,
|
|
152
|
+
pl,
|
|
153
|
+
fetch_arrow_table,
|
|
154
|
+
arrow,
|
|
155
|
+
fetch_record_batch,
|
|
156
|
+
torch,
|
|
157
|
+
tf,
|
|
158
|
+
begin,
|
|
159
|
+
commit,
|
|
160
|
+
rollback,
|
|
161
|
+
checkpoint,
|
|
162
|
+
append,
|
|
163
|
+
register,
|
|
164
|
+
unregister,
|
|
165
|
+
table,
|
|
166
|
+
view,
|
|
167
|
+
values,
|
|
168
|
+
table_function,
|
|
169
|
+
read_json,
|
|
170
|
+
extract_statements,
|
|
171
|
+
sql,
|
|
172
|
+
query,
|
|
173
|
+
from_query,
|
|
174
|
+
read_csv,
|
|
175
|
+
from_csv_auto,
|
|
176
|
+
from_df,
|
|
177
|
+
from_arrow,
|
|
178
|
+
from_parquet,
|
|
179
|
+
read_parquet,
|
|
180
|
+
from_parquet,
|
|
181
|
+
read_parquet,
|
|
182
|
+
get_table_names,
|
|
183
|
+
install_extension,
|
|
184
|
+
load_extension,
|
|
185
|
+
project,
|
|
186
|
+
distinct,
|
|
187
|
+
write_csv,
|
|
188
|
+
aggregate,
|
|
189
|
+
alias,
|
|
190
|
+
filter,
|
|
191
|
+
limit,
|
|
192
|
+
order,
|
|
193
|
+
query_df,
|
|
194
|
+
description,
|
|
195
|
+
rowcount,
|
|
194
196
|
)
|
|
195
197
|
|
|
196
|
-
_exported_symbols.extend(
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
]
|
|
276
|
-
)
|
|
198
|
+
_exported_symbols.extend([
|
|
199
|
+
'cursor',
|
|
200
|
+
'register_filesystem',
|
|
201
|
+
'unregister_filesystem',
|
|
202
|
+
'list_filesystems',
|
|
203
|
+
'filesystem_is_registered',
|
|
204
|
+
'create_function',
|
|
205
|
+
'remove_function',
|
|
206
|
+
'sqltype',
|
|
207
|
+
'dtype',
|
|
208
|
+
'type',
|
|
209
|
+
'array_type',
|
|
210
|
+
'list_type',
|
|
211
|
+
'union_type',
|
|
212
|
+
'string_type',
|
|
213
|
+
'enum_type',
|
|
214
|
+
'decimal_type',
|
|
215
|
+
'struct_type',
|
|
216
|
+
'row_type',
|
|
217
|
+
'map_type',
|
|
218
|
+
'duplicate',
|
|
219
|
+
'execute',
|
|
220
|
+
'executemany',
|
|
221
|
+
'close',
|
|
222
|
+
'interrupt',
|
|
223
|
+
'query_progress',
|
|
224
|
+
'fetchone',
|
|
225
|
+
'fetchmany',
|
|
226
|
+
'fetchall',
|
|
227
|
+
'fetchnumpy',
|
|
228
|
+
'fetchdf',
|
|
229
|
+
'fetch_df',
|
|
230
|
+
'df',
|
|
231
|
+
'fetch_df_chunk',
|
|
232
|
+
'pl',
|
|
233
|
+
'fetch_arrow_table',
|
|
234
|
+
'arrow',
|
|
235
|
+
'fetch_record_batch',
|
|
236
|
+
'torch',
|
|
237
|
+
'tf',
|
|
238
|
+
'begin',
|
|
239
|
+
'commit',
|
|
240
|
+
'rollback',
|
|
241
|
+
'checkpoint',
|
|
242
|
+
'append',
|
|
243
|
+
'register',
|
|
244
|
+
'unregister',
|
|
245
|
+
'table',
|
|
246
|
+
'view',
|
|
247
|
+
'values',
|
|
248
|
+
'table_function',
|
|
249
|
+
'read_json',
|
|
250
|
+
'extract_statements',
|
|
251
|
+
'sql',
|
|
252
|
+
'query',
|
|
253
|
+
'from_query',
|
|
254
|
+
'read_csv',
|
|
255
|
+
'from_csv_auto',
|
|
256
|
+
'from_df',
|
|
257
|
+
'from_arrow',
|
|
258
|
+
'from_parquet',
|
|
259
|
+
'read_parquet',
|
|
260
|
+
'from_parquet',
|
|
261
|
+
'read_parquet',
|
|
262
|
+
'get_table_names',
|
|
263
|
+
'install_extension',
|
|
264
|
+
'load_extension',
|
|
265
|
+
'project',
|
|
266
|
+
'distinct',
|
|
267
|
+
'write_csv',
|
|
268
|
+
'aggregate',
|
|
269
|
+
'alias',
|
|
270
|
+
'filter',
|
|
271
|
+
'limit',
|
|
272
|
+
'order',
|
|
273
|
+
'query_df',
|
|
274
|
+
'description',
|
|
275
|
+
'rowcount',
|
|
276
|
+
])
|
|
277
277
|
|
|
278
278
|
# END OF CONNECTION WRAPPER
|
|
279
279
|
|
|
280
280
|
# Enums
|
|
281
|
-
from _duckdb import
|
|
282
|
-
|
|
283
|
-
|
|
281
|
+
from _duckdb import (
|
|
282
|
+
ANALYZE,
|
|
283
|
+
DEFAULT,
|
|
284
|
+
RETURN_NULL,
|
|
285
|
+
STANDARD,
|
|
286
|
+
COLUMNS,
|
|
287
|
+
ROWS
|
|
288
|
+
)
|
|
289
|
+
_exported_symbols.extend([
|
|
290
|
+
"ANALYZE",
|
|
291
|
+
"DEFAULT",
|
|
292
|
+
"RETURN_NULL",
|
|
293
|
+
"STANDARD"
|
|
294
|
+
])
|
|
284
295
|
|
|
285
296
|
|
|
286
297
|
# read-only properties
|
|
287
298
|
from _duckdb import (
|
|
288
|
-
|
|
299
|
+
__standard_vector_size__,
|
|
289
300
|
__interactive__,
|
|
290
301
|
__jupyter__,
|
|
291
|
-
|
|
302
|
+
__formatted_python_version__,
|
|
292
303
|
apilevel,
|
|
293
304
|
comment,
|
|
294
305
|
identifier,
|
|
@@ -299,28 +310,25 @@ from _duckdb import (
|
|
|
299
310
|
string_const,
|
|
300
311
|
threadsafety,
|
|
301
312
|
token_type,
|
|
302
|
-
tokenize
|
|
303
|
-
)
|
|
304
|
-
|
|
305
|
-
_exported_symbols.extend(
|
|
306
|
-
[
|
|
307
|
-
"__standard_vector_size__",
|
|
308
|
-
"__interactive__",
|
|
309
|
-
"__jupyter__",
|
|
310
|
-
"__formatted_python_version__",
|
|
311
|
-
"apilevel",
|
|
312
|
-
"comment",
|
|
313
|
-
"identifier",
|
|
314
|
-
"keyword",
|
|
315
|
-
"numeric_const",
|
|
316
|
-
"operator",
|
|
317
|
-
"paramstyle",
|
|
318
|
-
"string_const",
|
|
319
|
-
"threadsafety",
|
|
320
|
-
"token_type",
|
|
321
|
-
"tokenize",
|
|
322
|
-
]
|
|
313
|
+
tokenize
|
|
323
314
|
)
|
|
315
|
+
_exported_symbols.extend([
|
|
316
|
+
"__standard_vector_size__",
|
|
317
|
+
"__interactive__",
|
|
318
|
+
"__jupyter__",
|
|
319
|
+
"__formatted_python_version__",
|
|
320
|
+
"apilevel",
|
|
321
|
+
"comment",
|
|
322
|
+
"identifier",
|
|
323
|
+
"keyword",
|
|
324
|
+
"numeric_const",
|
|
325
|
+
"operator",
|
|
326
|
+
"paramstyle",
|
|
327
|
+
"string_const",
|
|
328
|
+
"threadsafety",
|
|
329
|
+
"token_type",
|
|
330
|
+
"tokenize"
|
|
331
|
+
])
|
|
324
332
|
|
|
325
333
|
|
|
326
334
|
from _duckdb import (
|
|
@@ -329,146 +337,139 @@ from _duckdb import (
|
|
|
329
337
|
set_default_connection,
|
|
330
338
|
)
|
|
331
339
|
|
|
332
|
-
_exported_symbols.extend(
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
]
|
|
338
|
-
)
|
|
340
|
+
_exported_symbols.extend([
|
|
341
|
+
"connect",
|
|
342
|
+
"default_connection",
|
|
343
|
+
"set_default_connection",
|
|
344
|
+
])
|
|
339
345
|
|
|
340
346
|
# Exceptions
|
|
341
347
|
from _duckdb import (
|
|
342
|
-
BinderException,
|
|
343
|
-
CatalogException,
|
|
344
|
-
ConnectionException,
|
|
345
|
-
ConstraintException,
|
|
346
|
-
ConversionException,
|
|
347
|
-
DataError,
|
|
348
348
|
Error,
|
|
349
|
+
DataError,
|
|
350
|
+
ConversionException,
|
|
351
|
+
OutOfRangeException,
|
|
352
|
+
TypeMismatchException,
|
|
349
353
|
FatalException,
|
|
350
|
-
HTTPException,
|
|
351
354
|
IntegrityError,
|
|
355
|
+
ConstraintException,
|
|
352
356
|
InternalError,
|
|
353
357
|
InternalException,
|
|
354
358
|
InterruptException,
|
|
355
|
-
InvalidInputException,
|
|
356
|
-
InvalidTypeException,
|
|
357
|
-
IOException,
|
|
358
|
-
NotImplementedException,
|
|
359
359
|
NotSupportedError,
|
|
360
|
+
NotImplementedException,
|
|
360
361
|
OperationalError,
|
|
362
|
+
ConnectionException,
|
|
363
|
+
IOException,
|
|
364
|
+
HTTPException,
|
|
361
365
|
OutOfMemoryException,
|
|
362
|
-
|
|
363
|
-
|
|
366
|
+
SerializationException,
|
|
367
|
+
TransactionException,
|
|
364
368
|
PermissionException,
|
|
365
369
|
ProgrammingError,
|
|
366
|
-
|
|
367
|
-
|
|
370
|
+
BinderException,
|
|
371
|
+
CatalogException,
|
|
372
|
+
InvalidInputException,
|
|
373
|
+
InvalidTypeException,
|
|
374
|
+
ParserException,
|
|
368
375
|
SyntaxException,
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
Warning,
|
|
372
|
-
)
|
|
373
|
-
|
|
374
|
-
_exported_symbols.extend(
|
|
375
|
-
[
|
|
376
|
-
"Error",
|
|
377
|
-
"DataError",
|
|
378
|
-
"ConversionException",
|
|
379
|
-
"OutOfRangeException",
|
|
380
|
-
"TypeMismatchException",
|
|
381
|
-
"FatalException",
|
|
382
|
-
"IntegrityError",
|
|
383
|
-
"ConstraintException",
|
|
384
|
-
"InternalError",
|
|
385
|
-
"InternalException",
|
|
386
|
-
"InterruptException",
|
|
387
|
-
"NotSupportedError",
|
|
388
|
-
"NotImplementedException",
|
|
389
|
-
"OperationalError",
|
|
390
|
-
"ConnectionException",
|
|
391
|
-
"IOException",
|
|
392
|
-
"HTTPException",
|
|
393
|
-
"OutOfMemoryException",
|
|
394
|
-
"SerializationException",
|
|
395
|
-
"TransactionException",
|
|
396
|
-
"PermissionException",
|
|
397
|
-
"ProgrammingError",
|
|
398
|
-
"BinderException",
|
|
399
|
-
"CatalogException",
|
|
400
|
-
"InvalidInputException",
|
|
401
|
-
"InvalidTypeException",
|
|
402
|
-
"ParserException",
|
|
403
|
-
"SyntaxException",
|
|
404
|
-
"SequenceException",
|
|
405
|
-
"Warning",
|
|
406
|
-
]
|
|
376
|
+
SequenceException,
|
|
377
|
+
Warning
|
|
407
378
|
)
|
|
379
|
+
_exported_symbols.extend([
|
|
380
|
+
"Error",
|
|
381
|
+
"DataError",
|
|
382
|
+
"ConversionException",
|
|
383
|
+
"OutOfRangeException",
|
|
384
|
+
"TypeMismatchException",
|
|
385
|
+
"FatalException",
|
|
386
|
+
"IntegrityError",
|
|
387
|
+
"ConstraintException",
|
|
388
|
+
"InternalError",
|
|
389
|
+
"InternalException",
|
|
390
|
+
"InterruptException",
|
|
391
|
+
"NotSupportedError",
|
|
392
|
+
"NotImplementedException",
|
|
393
|
+
"OperationalError",
|
|
394
|
+
"ConnectionException",
|
|
395
|
+
"IOException",
|
|
396
|
+
"HTTPException",
|
|
397
|
+
"OutOfMemoryException",
|
|
398
|
+
"SerializationException",
|
|
399
|
+
"TransactionException",
|
|
400
|
+
"PermissionException",
|
|
401
|
+
"ProgrammingError",
|
|
402
|
+
"BinderException",
|
|
403
|
+
"CatalogException",
|
|
404
|
+
"InvalidInputException",
|
|
405
|
+
"InvalidTypeException",
|
|
406
|
+
"ParserException",
|
|
407
|
+
"SyntaxException",
|
|
408
|
+
"SequenceException",
|
|
409
|
+
"Warning"
|
|
410
|
+
])
|
|
408
411
|
|
|
409
412
|
# Value
|
|
410
413
|
from duckdb.value.constant import (
|
|
414
|
+
Value,
|
|
415
|
+
NullValue,
|
|
416
|
+
BooleanValue,
|
|
417
|
+
UnsignedBinaryValue,
|
|
418
|
+
UnsignedShortValue,
|
|
419
|
+
UnsignedIntegerValue,
|
|
420
|
+
UnsignedLongValue,
|
|
411
421
|
BinaryValue,
|
|
422
|
+
ShortValue,
|
|
423
|
+
IntegerValue,
|
|
424
|
+
LongValue,
|
|
425
|
+
HugeIntegerValue,
|
|
426
|
+
FloatValue,
|
|
427
|
+
DoubleValue,
|
|
428
|
+
DecimalValue,
|
|
429
|
+
StringValue,
|
|
430
|
+
UUIDValue,
|
|
412
431
|
BitValue,
|
|
413
432
|
BlobValue,
|
|
414
|
-
BooleanValue,
|
|
415
433
|
DateValue,
|
|
416
|
-
DecimalValue,
|
|
417
|
-
DoubleValue,
|
|
418
|
-
FloatValue,
|
|
419
|
-
HugeIntegerValue,
|
|
420
|
-
IntegerValue,
|
|
421
434
|
IntervalValue,
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
ShortValue,
|
|
425
|
-
StringValue,
|
|
435
|
+
TimestampValue,
|
|
436
|
+
TimestampSecondValue,
|
|
426
437
|
TimestampMilisecondValue,
|
|
427
438
|
TimestampNanosecondValue,
|
|
428
|
-
TimestampSecondValue,
|
|
429
439
|
TimestampTimeZoneValue,
|
|
430
|
-
TimestampValue,
|
|
431
|
-
TimeTimeZoneValue,
|
|
432
440
|
TimeValue,
|
|
433
|
-
|
|
434
|
-
UnsignedIntegerValue,
|
|
435
|
-
UnsignedLongValue,
|
|
436
|
-
UnsignedShortValue,
|
|
437
|
-
UUIDValue,
|
|
438
|
-
Value,
|
|
441
|
+
TimeTimeZoneValue,
|
|
439
442
|
)
|
|
440
443
|
|
|
441
|
-
_exported_symbols.extend(
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
]
|
|
472
|
-
)
|
|
444
|
+
_exported_symbols.extend([
|
|
445
|
+
"Value",
|
|
446
|
+
"NullValue",
|
|
447
|
+
"BooleanValue",
|
|
448
|
+
"UnsignedBinaryValue",
|
|
449
|
+
"UnsignedShortValue",
|
|
450
|
+
"UnsignedIntegerValue",
|
|
451
|
+
"UnsignedLongValue",
|
|
452
|
+
"BinaryValue",
|
|
453
|
+
"ShortValue",
|
|
454
|
+
"IntegerValue",
|
|
455
|
+
"LongValue",
|
|
456
|
+
"HugeIntegerValue",
|
|
457
|
+
"FloatValue",
|
|
458
|
+
"DoubleValue",
|
|
459
|
+
"DecimalValue",
|
|
460
|
+
"StringValue",
|
|
461
|
+
"UUIDValue",
|
|
462
|
+
"BitValue",
|
|
463
|
+
"BlobValue",
|
|
464
|
+
"DateValue",
|
|
465
|
+
"IntervalValue",
|
|
466
|
+
"TimestampValue",
|
|
467
|
+
"TimestampSecondValue",
|
|
468
|
+
"TimestampMilisecondValue",
|
|
469
|
+
"TimestampNanosecondValue",
|
|
470
|
+
"TimestampTimeZoneValue",
|
|
471
|
+
"TimeValue",
|
|
472
|
+
"TimeTimeZoneValue",
|
|
473
|
+
])
|
|
473
474
|
|
|
474
475
|
__all__ = _exported_symbols
|