databend-driver 0.24.8__cp37-abi3-macosx_11_0_arm64.whl → 0.25.1__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.24.8.dist-info → databend_driver-0.25.1.dist-info}/METADATA +20 -25
- databend_driver-0.25.1.dist-info/RECORD +6 -0
- databend_driver-0.24.8.dist-info/RECORD +0 -6
- {databend_driver-0.24.8.dist-info → databend_driver-0.25.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.25.1
|
|
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
|
|
@@ -111,20 +104,21 @@ asyncio.run(main())
|
|
|
111
104
|
|
|
112
105
|
### General Data Types
|
|
113
106
|
|
|
114
|
-
| Databend | Python
|
|
115
|
-
| ----------- |
|
|
116
|
-
| `BOOLEAN` | `bool`
|
|
117
|
-
| `TINYINT` | `int`
|
|
118
|
-
| `SMALLINT` | `int`
|
|
119
|
-
| `INT` | `int`
|
|
120
|
-
| `BIGINT` | `int`
|
|
121
|
-
| `FLOAT` | `float`
|
|
122
|
-
| `DOUBLE` | `float`
|
|
123
|
-
| `DECIMAL` | `decimal.Decimal`
|
|
124
|
-
| `DATE` | `datetime.date`
|
|
125
|
-
| `TIMESTAMP` | `datetime.datetime`
|
|
126
|
-
| `
|
|
127
|
-
| `
|
|
107
|
+
| Databend | Python |
|
|
108
|
+
| ----------- | -------------------- |
|
|
109
|
+
| `BOOLEAN` | `bool` |
|
|
110
|
+
| `TINYINT` | `int` |
|
|
111
|
+
| `SMALLINT` | `int` |
|
|
112
|
+
| `INT` | `int` |
|
|
113
|
+
| `BIGINT` | `int` |
|
|
114
|
+
| `FLOAT` | `float` |
|
|
115
|
+
| `DOUBLE` | `float` |
|
|
116
|
+
| `DECIMAL` | `decimal.Decimal` |
|
|
117
|
+
| `DATE` | `datetime.date` |
|
|
118
|
+
| `TIMESTAMP` | `datetime.datetime` |
|
|
119
|
+
| `INTERVAL` | `datetime.timedelta` |
|
|
120
|
+
| `VARCHAR` | `str` |
|
|
121
|
+
| `BINARY` | `bytes` |
|
|
128
122
|
|
|
129
123
|
### Semi-Structured Data Types
|
|
130
124
|
|
|
@@ -207,6 +201,7 @@ class BlockingDatabendCursor:
|
|
|
207
201
|
def execute(self, operation: str, params: list[string] | tuple[string] = None) -> None | int: ...
|
|
208
202
|
def executemany(self, operation: str, params: list[list[string] | tuple[string]]) -> None | int: ...
|
|
209
203
|
def fetchone(self) -> Row: ...
|
|
204
|
+
def fetchmany(self, size: int = 1) -> list[Row]: ...
|
|
210
205
|
def fetchall(self) -> list[Row]: ...
|
|
211
206
|
```
|
|
212
207
|
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
databend_driver-0.25.1.dist-info/METADATA,sha256=pL45zeA_bbG1YanjuUrWvRYR5aGsWRLQE4RxciHyMkg,7152
|
|
2
|
+
databend_driver-0.25.1.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=HuXPa2LcxV80QWqoZuxuhe9xFxwTHdmPyJI4_wuwcc8,15684288
|
|
6
|
+
databend_driver-0.25.1.dist-info/RECORD,,
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
databend_driver-0.24.8.dist-info/METADATA,sha256=W6Dn_rgeZ6gQiUgVlDgIYMydVC284ZrTexXBTp8dp28,7065
|
|
2
|
-
databend_driver-0.24.8.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=0jkJ_e6fxT_MI0Q1wCKuK857ffY3VnPZ_kx3MheMpHU,16516712
|
|
6
|
-
databend_driver-0.24.8.dist-info/RECORD,,
|
|
File without changes
|