databend-driver 0.26.1__cp37-abi3-macosx_10_12_x86_64.whl → 0.27.0__cp37-abi3-macosx_10_12_x86_64.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/__init__.pyi +40 -1
- databend_driver/_databend_driver.abi3.so +0 -0
- {databend_driver-0.26.1.dist-info → databend_driver-0.27.0.dist-info}/METADATA +4 -4
- databend_driver-0.27.0.dist-info/RECORD +6 -0
- {databend_driver-0.26.1.dist-info → databend_driver-0.27.0.dist-info}/WHEEL +1 -1
- databend_driver-0.26.1.dist-info/RECORD +0 -6
databend_driver/__init__.pyi
CHANGED
@@ -55,11 +55,18 @@ class Schema:
|
|
55
55
|
|
56
56
|
class Row:
|
57
57
|
def values(self) -> tuple: ...
|
58
|
+
def __len__(self) -> int: ...
|
59
|
+
def __iter__(self) -> Row: ...
|
60
|
+
def __next__(self) -> any: ...
|
61
|
+
def __dict__(self) -> dict: ...
|
62
|
+
def __getitem__(self, key: int | str) -> any: ...
|
58
63
|
|
59
64
|
class RowIterator:
|
65
|
+
def schema(self) -> Schema: ...
|
66
|
+
def __iter__(self) -> RowIterator: ...
|
67
|
+
def __next__(self) -> Row: ...
|
60
68
|
def __aiter__(self) -> RowIterator: ...
|
61
69
|
async def __anext__(self) -> Row: ...
|
62
|
-
def schema(self) -> Schema: ...
|
63
70
|
|
64
71
|
class AsyncDatabendConnection:
|
65
72
|
async def info(self) -> ConnectionInfo: ...
|
@@ -68,6 +75,9 @@ class AsyncDatabendConnection:
|
|
68
75
|
async def query_row(self, sql: str) -> Row: ...
|
69
76
|
async def query_iter(self, sql: str) -> RowIterator: ...
|
70
77
|
async def stream_load(self, sql: str, data: list[list[str]]) -> ServerStats: ...
|
78
|
+
async def load_file(
|
79
|
+
self, sql: str, file: str, format_option: dict, copy_options: dict = None
|
80
|
+
) -> ServerStats: ...
|
71
81
|
|
72
82
|
class AsyncDatabendClient:
|
73
83
|
def __init__(self, dsn: str): ...
|
@@ -80,7 +90,36 @@ class BlockingDatabendConnection:
|
|
80
90
|
def query_row(self, sql: str) -> Row: ...
|
81
91
|
def query_iter(self, sql: str) -> RowIterator: ...
|
82
92
|
def stream_load(self, sql: str, data: list[list[str]]) -> ServerStats: ...
|
93
|
+
def load_file(
|
94
|
+
self, sql: str, file: str, format_option: dict, copy_options: dict = None
|
95
|
+
) -> ServerStats: ...
|
96
|
+
|
97
|
+
class BlockingDatabendCursor:
|
98
|
+
@property
|
99
|
+
def description(
|
100
|
+
self,
|
101
|
+
) -> list[
|
102
|
+
tuple[str, str, int | None, int | None, int | None, int | None, bool | None]
|
103
|
+
]: ...
|
104
|
+
@property
|
105
|
+
def rowcount(self) -> int: ...
|
106
|
+
def close(self) -> None: ...
|
107
|
+
def execute(
|
108
|
+
self, operation: str, params: list[str] | tuple[str] = None
|
109
|
+
) -> None | int: ...
|
110
|
+
def executemany(
|
111
|
+
self, operation: str, params: list[list[str] | tuple[str]]
|
112
|
+
) -> None | int: ...
|
113
|
+
def fetchone(self) -> Row | None: ...
|
114
|
+
def fetchmany(self, size: int = 1) -> list[Row]: ...
|
115
|
+
def fetchall(self) -> list[Row]: ...
|
116
|
+
|
117
|
+
# Optional DB API Extensions
|
118
|
+
def next(self) -> Row: ...
|
119
|
+
def __next__(self) -> Row: ...
|
120
|
+
def __iter__(self) -> BlockingDatabendCursor: ...
|
83
121
|
|
84
122
|
class BlockingDatabendClient:
|
85
123
|
def __init__(self, dsn: str): ...
|
86
124
|
def get_conn(self) -> BlockingDatabendConnection: ...
|
125
|
+
def cursor(self) -> BlockingDatabendCursor: ...
|
Binary file
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.4
|
2
2
|
Name: databend-driver
|
3
|
-
Version: 0.
|
3
|
+
Version: 0.27.0
|
4
4
|
Classifier: Programming Language :: Rust
|
5
5
|
Classifier: Programming Language :: Python :: Implementation :: CPython
|
6
6
|
Classifier: Programming Language :: Python :: Implementation :: PyPy
|
@@ -248,7 +248,7 @@ class BlockingDatabendCursor:
|
|
248
248
|
# Optional DB API Extensions
|
249
249
|
def next(self) -> Row: ...
|
250
250
|
def __next__(self) -> Row: ...
|
251
|
-
def __iter__(self) ->
|
251
|
+
def __iter__(self) -> BlockingDatabendCursor: ...
|
252
252
|
```
|
253
253
|
|
254
254
|
### Row
|
@@ -257,8 +257,8 @@ class BlockingDatabendCursor:
|
|
257
257
|
class Row:
|
258
258
|
def values(self) -> tuple: ...
|
259
259
|
def __len__(self) -> int: ...
|
260
|
-
def __iter__(self) ->
|
261
|
-
def __next__(self) ->
|
260
|
+
def __iter__(self) -> Row: ...
|
261
|
+
def __next__(self) -> any: ...
|
262
262
|
def __dict__(self) -> dict: ...
|
263
263
|
def __getitem__(self, key: int | str) -> any: ...
|
264
264
|
```
|
@@ -0,0 +1,6 @@
|
|
1
|
+
databend_driver-0.27.0.dist-info/METADATA,sha256=bG7_qGcQmOdHCzEa-vQNLLXF4RrJ_XTBPIrfy9twYm0,9470
|
2
|
+
databend_driver-0.27.0.dist-info/WHEEL,sha256=1QkniwphdNsNM-8ykQxnO_dvPvjUdTqDZiTxgmCvo-Y,104
|
3
|
+
databend_driver/__init__.pyi,sha256=14ys4K9rDVX-eRUcwcpYB9qi8hCoERQNoaAJf1SLg80,3976
|
4
|
+
databend_driver/__init__.py,sha256=sNam6xQNlyVYUm7qBdX4cDxsxlgHgr3zYavOp8uielw,626
|
5
|
+
databend_driver/_databend_driver.abi3.so,sha256=q4ugOQDc7260XC0MaUwJ88nC4w9F7tXrNCjAjnipzhs,17159044
|
6
|
+
databend_driver-0.27.0.dist-info/RECORD,,
|
@@ -1,6 +0,0 @@
|
|
1
|
-
databend_driver-0.26.1.dist-info/METADATA,sha256=43ist0aG7rOOJo9yBPXWE7Rosfs0Kn7RB2u4PGW3P64,9455
|
2
|
-
databend_driver-0.26.1.dist-info/WHEEL,sha256=6mkUhQtCBv6EUU3HRJn-_3H6tlE-gNls55SUctSQ12A,104
|
3
|
-
databend_driver/__init__.pyi,sha256=O4kAHPNAc6FIHI2yeb8sxlxpdbGfkoeYjSzH8YMpJgU,2602
|
4
|
-
databend_driver/__init__.py,sha256=sNam6xQNlyVYUm7qBdX4cDxsxlgHgr3zYavOp8uielw,626
|
5
|
-
databend_driver/_databend_driver.abi3.so,sha256=7ouZJNonT8ncT5EhchWiodyGYgV0nhTBdp41_igHXcg,16995044
|
6
|
-
databend_driver-0.26.1.dist-info/RECORD,,
|