databend-driver 0.25.0__cp37-abi3-macosx_11_0_arm64.whl → 0.25.2__cp37-abi3-macosx_11_0_arm64.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.0.dist-info → databend_driver-0.25.2.dist-info}/METADATA +12 -14
- databend_driver-0.25.2.dist-info/RECORD +6 -0
- databend_driver-0.25.0.dist-info/RECORD +0 -6
- {databend_driver-0.25.0.dist-info → databend_driver-0.25.2.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.25.
|
|
3
|
+
Version: 0.25.2
|
|
4
4
|
Classifier: Programming Language :: Rust
|
|
5
5
|
Classifier: Programming Language :: Python :: Implementation :: CPython
|
|
6
6
|
Classifier: Programming Language :: Python :: Implementation :: PyPy
|
|
@@ -14,16 +14,9 @@ Project-URL: Repository, https://github.com/databendlabs/bendsql
|
|
|
14
14
|
|
|
15
15
|
# databend-driver
|
|
16
16
|
|
|
17
|
-
## Build
|
|
18
|
-
|
|
19
|
-
```shell
|
|
20
|
-
cd bindings/python
|
|
21
|
-
maturin develop
|
|
22
|
-
```
|
|
23
|
-
|
|
24
17
|
## Usage
|
|
25
18
|
|
|
26
|
-
### PEP 249
|
|
19
|
+
### PEP 249 Cursor Object
|
|
27
20
|
|
|
28
21
|
```python
|
|
29
22
|
from databend_driver import BlockingDatabendClient
|
|
@@ -51,7 +44,7 @@ for row in rows:
|
|
|
51
44
|
print(row.values())
|
|
52
45
|
```
|
|
53
46
|
|
|
54
|
-
### Blocking
|
|
47
|
+
### Blocking Connection Object
|
|
55
48
|
|
|
56
49
|
```python
|
|
57
50
|
from databend_driver import BlockingDatabendClient
|
|
@@ -76,7 +69,7 @@ for row in rows:
|
|
|
76
69
|
print(row.values())
|
|
77
70
|
```
|
|
78
71
|
|
|
79
|
-
### Asyncio
|
|
72
|
+
### Asyncio Connection Object
|
|
80
73
|
|
|
81
74
|
```python
|
|
82
75
|
import asyncio
|
|
@@ -112,7 +105,7 @@ asyncio.run(main())
|
|
|
112
105
|
### General Data Types
|
|
113
106
|
|
|
114
107
|
| Databend | Python |
|
|
115
|
-
|
|
108
|
+
| ----------- | -------------------- |
|
|
116
109
|
| `BOOLEAN` | `bool` |
|
|
117
110
|
| `TINYINT` | `int` |
|
|
118
111
|
| `SMALLINT` | `int` |
|
|
@@ -207,8 +200,12 @@ class BlockingDatabendCursor:
|
|
|
207
200
|
def close(self) -> None: ...
|
|
208
201
|
def execute(self, operation: str, params: list[string] | tuple[string] = None) -> None | int: ...
|
|
209
202
|
def executemany(self, operation: str, params: list[list[string] | tuple[string]]) -> None | int: ...
|
|
210
|
-
def fetchone(self) -> Row: ...
|
|
203
|
+
def fetchone(self) -> Row | None: ...
|
|
204
|
+
def fetchmany(self, size: int = 1) -> list[Row]: ...
|
|
211
205
|
def fetchall(self) -> list[Row]: ...
|
|
206
|
+
def next(self) -> Row: ...
|
|
207
|
+
def __iter__(self) -> Self: ...
|
|
208
|
+
def __next__(self) -> Row: ...
|
|
212
209
|
```
|
|
213
210
|
|
|
214
211
|
### Row
|
|
@@ -217,7 +214,8 @@ class BlockingDatabendCursor:
|
|
|
217
214
|
class Row:
|
|
218
215
|
def values(self) -> tuple: ...
|
|
219
216
|
def __len__(self) -> int: ...
|
|
220
|
-
def __iter__(self) ->
|
|
217
|
+
def __iter__(self) -> Self: ...
|
|
218
|
+
def __next__(self) -> Value: ...
|
|
221
219
|
def __dict__(self) -> dict: ...
|
|
222
220
|
def __getitem__(self, key: int | str) -> any: ...
|
|
223
221
|
```
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
databend_driver-0.25.2.dist-info/METADATA,sha256=cSlJWmkOwRtA9ADCBVij_7-B6hN1PvXwibVPKtBWNB4,7298
|
|
2
|
+
databend_driver-0.25.2.dist-info/WHEEL,sha256=uzjsrG8nwcM_ioGOWVo9mMy924BxVSGAFSO1epuPpHA,102
|
|
3
|
+
databend_driver/__init__.pyi,sha256=O4kAHPNAc6FIHI2yeb8sxlxpdbGfkoeYjSzH8YMpJgU,2602
|
|
4
|
+
databend_driver/__init__.py,sha256=sNam6xQNlyVYUm7qBdX4cDxsxlgHgr3zYavOp8uielw,626
|
|
5
|
+
databend_driver/_databend_driver.abi3.so,sha256=qD0ms5jpP6aN5JmfCVhh8PBZJoL2G0TY21jUjx8rIG4,15689136
|
|
6
|
+
databend_driver-0.25.2.dist-info/RECORD,,
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
databend_driver-0.25.0.dist-info/METADATA,sha256=5UNfNB5jz0jkJRAdUxXvWbeQurtnQjFOy72bAvm3utw,7118
|
|
2
|
-
databend_driver-0.25.0.dist-info/WHEEL,sha256=uzjsrG8nwcM_ioGOWVo9mMy924BxVSGAFSO1epuPpHA,102
|
|
3
|
-
databend_driver/__init__.pyi,sha256=O4kAHPNAc6FIHI2yeb8sxlxpdbGfkoeYjSzH8YMpJgU,2602
|
|
4
|
-
databend_driver/__init__.py,sha256=sNam6xQNlyVYUm7qBdX4cDxsxlgHgr3zYavOp8uielw,626
|
|
5
|
-
databend_driver/_databend_driver.abi3.so,sha256=xmvk1NCT8UtA1u4HQ__1sNG2zPaaodTRgu6gHar1Mp4,16134616
|
|
6
|
-
databend_driver-0.25.0.dist-info/RECORD,,
|
|
File without changes
|