databend-driver 0.25.6__cp37-abi3-manylinux_2_28_aarch64.whl → 0.26.1__cp37-abi3-manylinux_2_28_aarch64.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.
- databend_driver/_databend_driver.abi3.so +0 -0
- {databend_driver-0.25.6.dist-info → databend_driver-0.26.1.dist-info}/METADATA +22 -8
- databend_driver-0.26.1.dist-info/RECORD +6 -0
- databend_driver-0.25.6.dist-info/RECORD +0 -6
- {databend_driver-0.25.6.dist-info → databend_driver-0.26.1.dist-info}/WHEEL +0 -0
Binary file
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.4
|
2
2
|
Name: databend-driver
|
3
|
-
Version: 0.
|
3
|
+
Version: 0.26.1
|
4
4
|
Classifier: Programming Language :: Rust
|
5
5
|
Classifier: Programming Language :: Python :: Implementation :: CPython
|
6
6
|
Classifier: Programming Language :: Python :: Implementation :: PyPy
|
@@ -121,6 +121,20 @@ async def main():
|
|
121
121
|
asyncio.run(main())
|
122
122
|
```
|
123
123
|
|
124
|
+
### Parameter bindings
|
125
|
+
|
126
|
+
```python
|
127
|
+
# Test with positional parameters
|
128
|
+
row = await context.conn.query_row("SELECT ?, ?, ?, ?", (3, False, 4, "55"))
|
129
|
+
row = await context.conn.query_row(
|
130
|
+
"SELECT :a, :b, :c, :d", {"a": 3, "b": False, "c": 4, "d": "55"}
|
131
|
+
)
|
132
|
+
row = await context.conn.query_row(
|
133
|
+
"SELECT ?", 3
|
134
|
+
)
|
135
|
+
row = await context.conn.query_row("SELECT ?, ?, ?, ?", params = (3, False, 4, "55"))
|
136
|
+
```
|
137
|
+
|
124
138
|
## Type Mapping
|
125
139
|
|
126
140
|
[Databend Types](https://docs.databend.com/sql/sql-reference/data-types/)
|
@@ -187,9 +201,9 @@ class AsyncDatabendClient:
|
|
187
201
|
class AsyncDatabendConnection:
|
188
202
|
async def info(self) -> ConnectionInfo: ...
|
189
203
|
async def version(self) -> str: ...
|
190
|
-
async def exec(self, sql: str) -> int: ...
|
191
|
-
async def query_row(self, sql: str) -> Row: ...
|
192
|
-
async def query_iter(self, sql: str) -> RowIterator: ...
|
204
|
+
async def exec(self, sql: str, params: list[string] | tuple[string] | any = None) -> int: ...
|
205
|
+
async def query_row(self, sql: str, params: list[string] | tuple[string] | any = None) -> Row: ...
|
206
|
+
async def query_iter(self, sql: str, params: list[string] | tuple[string] | any = None) -> RowIterator: ...
|
193
207
|
async def stream_load(self, sql: str, data: list[list[str]]) -> ServerStats: ...
|
194
208
|
async def load_file(self, sql: str, file: str, format_option: dict, copy_options: dict = None) -> ServerStats: ...
|
195
209
|
```
|
@@ -209,9 +223,9 @@ class BlockingDatabendClient:
|
|
209
223
|
class BlockingDatabendConnection:
|
210
224
|
def info(self) -> ConnectionInfo: ...
|
211
225
|
def version(self) -> str: ...
|
212
|
-
def exec(self, sql: str) -> int: ...
|
213
|
-
def query_row(self, sql: str) -> Row: ...
|
214
|
-
def query_iter(self, sql: str) -> RowIterator: ...
|
226
|
+
def exec(self, sql: str, params: list[string] | tuple[string] | any = None) -> int: ...
|
227
|
+
def query_row(self, sql: str, params: list[string] | tuple[string] | any = None) -> Row: ...
|
228
|
+
def query_iter(self, sql: str, params: list[string] | tuple[string] | any = None) -> RowIterator: ...
|
215
229
|
def stream_load(self, sql: str, data: list[list[str]]) -> ServerStats: ...
|
216
230
|
def load_file(self, sql: str, file: str, format_option: dict, copy_options: dict = None) -> ServerStats: ...
|
217
231
|
```
|
@@ -226,7 +240,7 @@ class BlockingDatabendCursor:
|
|
226
240
|
def rowcount(self) -> int: ...
|
227
241
|
def close(self) -> None: ...
|
228
242
|
def execute(self, operation: str, params: list[string] | tuple[string] = None) -> None | int: ...
|
229
|
-
def executemany(self, operation: str, params: list[list[string] | tuple[string]]) -> None | int: ...
|
243
|
+
def executemany(self, operation: str, params: list[string] | tuple[string] = None, values: list[list[string] | tuple[string]]) -> None | int: ...
|
230
244
|
def fetchone(self) -> Row | None: ...
|
231
245
|
def fetchmany(self, size: int = 1) -> list[Row]: ...
|
232
246
|
def fetchall(self) -> list[Row]: ...
|
@@ -0,0 +1,6 @@
|
|
1
|
+
databend_driver-0.26.1.dist-info/METADATA,sha256=43ist0aG7rOOJo9yBPXWE7Rosfs0Kn7RB2u4PGW3P64,9455
|
2
|
+
databend_driver-0.26.1.dist-info/WHEEL,sha256=2shKI-Aw9fENWHtmi5AWRWNqXl2qJ3qAejlQSqj3YHA,107
|
3
|
+
databend_driver/__init__.py,sha256=sNam6xQNlyVYUm7qBdX4cDxsxlgHgr3zYavOp8uielw,626
|
4
|
+
databend_driver/__init__.pyi,sha256=O4kAHPNAc6FIHI2yeb8sxlxpdbGfkoeYjSzH8YMpJgU,2602
|
5
|
+
databend_driver/_databend_driver.abi3.so,sha256=QCtmS8m0Z4tbY28vfA-LjSTX504HHKGxOT_vI_eKql0,15794840
|
6
|
+
databend_driver-0.26.1.dist-info/RECORD,,
|
@@ -1,6 +0,0 @@
|
|
1
|
-
databend_driver-0.25.6.dist-info/METADATA,sha256=HfNjVCH0ElYholWPWUQ_BYSNeb1t-uc4mptCbzMAEWI,8705
|
2
|
-
databend_driver-0.25.6.dist-info/WHEEL,sha256=2shKI-Aw9fENWHtmi5AWRWNqXl2qJ3qAejlQSqj3YHA,107
|
3
|
-
databend_driver/__init__.py,sha256=sNam6xQNlyVYUm7qBdX4cDxsxlgHgr3zYavOp8uielw,626
|
4
|
-
databend_driver/__init__.pyi,sha256=O4kAHPNAc6FIHI2yeb8sxlxpdbGfkoeYjSzH8YMpJgU,2602
|
5
|
-
databend_driver/_databend_driver.abi3.so,sha256=XCh8WtXhIOdp0rbnMRQRuIYxtbEiWxkMJI8WHb1KyVw,18136288
|
6
|
-
databend_driver-0.25.6.dist-info/RECORD,,
|
File without changes
|