databend-driver 0.26.0__cp37-abi3-macosx_11_0_arm64.whl → 0.26.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.
@@ -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.26.0
3
+ Version: 0.26.2
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) -> 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) -> Self: ...
261
- def __next__(self) -> Value: ...
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.26.2.dist-info/METADATA,sha256=nMkUqbbf99A5Eo57_YoIuRV5vKe7ryQpjidL5BlUFIM,9470
2
+ databend_driver-0.26.2.dist-info/WHEEL,sha256=rAzqoqQ-OPfnwTbvN8ZDvWSZlPNxsw_-bdZj39Hzlmk,102
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=iSq2WtBWZvIV9KBSU7MpQj88AAMRYTa5b0FTkffDzTI,15414592
6
+ databend_driver-0.26.2.dist-info/RECORD,,
@@ -1,6 +0,0 @@
1
- databend_driver-0.26.0.dist-info/METADATA,sha256=3DACgB6Tez_BZzFFtDRBTyV6OkjliIXONNchDcAZja8,9455
2
- databend_driver-0.26.0.dist-info/WHEEL,sha256=rAzqoqQ-OPfnwTbvN8ZDvWSZlPNxsw_-bdZj39Hzlmk,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=VTqEwGQHPnaYkAk6UAm1Wh5khUFwQ0mhqMIz662JCmY,19853664
6
- databend_driver-0.26.0.dist-info/RECORD,,