databend-driver 0.27.4__cp37-abi3-macosx_11_0_arm64.whl → 0.27.6__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.
Binary file
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: databend-driver
3
- Version: 0.27.4
3
+ Version: 0.27.6
4
4
  Classifier: Programming Language :: Rust
5
5
  Classifier: Programming Language :: Python :: Implementation :: CPython
6
6
  Classifier: Programming Language :: Python :: Implementation :: PyPy
@@ -60,11 +60,12 @@ cursor.execute(
60
60
  )
61
61
  """
62
62
  )
63
- cursor.execute("INSERT INTO test VALUES", (1, 1, 1.0, 'hello', 'world', '2021-01-01', '2021-01-01 00:00:00'))
63
+ cursor.execute("INSERT INTO test VALUES (?, ?, ?, ?, ?, ?, ?)", (1, 1, 1.0, 'hello', 'world', '2021-01-01', '2021-01-01 00:00:00'))
64
64
  cursor.execute("SELECT * FROM test")
65
65
  rows = cursor.fetchall()
66
66
  for row in rows:
67
67
  print(row.values())
68
+ cursor.close()
68
69
  ```
69
70
 
70
71
  ### Blocking Connection Object
@@ -90,6 +91,7 @@ conn.exec(
90
91
  rows = conn.query_iter("SELECT * FROM test")
91
92
  for row in rows:
92
93
  print(row.values())
94
+ conn.close()
93
95
  ```
94
96
 
95
97
  ### Asyncio Connection Object
@@ -117,6 +119,7 @@ async def main():
117
119
  rows = await conn.query_iter("SELECT * FROM test")
118
120
  async for row in rows:
119
121
  print(row.values())
122
+ await conn.close()
120
123
 
121
124
  asyncio.run(main())
122
125
  ```
@@ -201,6 +204,7 @@ class AsyncDatabendClient:
201
204
  class AsyncDatabendConnection:
202
205
  async def info(self) -> ConnectionInfo: ...
203
206
  async def version(self) -> str: ...
207
+ async def close(self) -> None: ...
204
208
  async def exec(self, sql: str, params: list[string] | tuple[string] | any = None) -> int: ...
205
209
  async def query_row(self, sql: str, params: list[string] | tuple[string] | any = None) -> Row: ...
206
210
  async def query_iter(self, sql: str, params: list[string] | tuple[string] | any = None) -> RowIterator: ...
@@ -223,6 +227,7 @@ class BlockingDatabendClient:
223
227
  class BlockingDatabendConnection:
224
228
  def info(self) -> ConnectionInfo: ...
225
229
  def version(self) -> str: ...
230
+ def close(self) -> None: ...
226
231
  def exec(self, sql: str, params: list[string] | tuple[string] | any = None) -> int: ...
227
232
  def query_row(self, sql: str, params: list[string] | tuple[string] | any = None) -> Row: ...
228
233
  def query_iter(self, sql: str, params: list[string] | tuple[string] | any = None) -> RowIterator: ...
@@ -0,0 +1,6 @@
1
+ databend_driver-0.27.6.dist-info/METADATA,sha256=QXxxNrY_EXxhppuJdoZaD1Hx-PD_qjeSEtJd4CiV_rI,9615
2
+ databend_driver-0.27.6.dist-info/WHEEL,sha256=bvBWXmJ1sRdmcL179FNplEsnlpZSwkKYoKqDNVzdbSc,102
3
+ databend_driver/__init__.py,sha256=sNam6xQNlyVYUm7qBdX4cDxsxlgHgr3zYavOp8uielw,626
4
+ databend_driver/__init__.pyi,sha256=14ys4K9rDVX-eRUcwcpYB9qi8hCoERQNoaAJf1SLg80,3976
5
+ databend_driver/_databend_driver.abi3.so,sha256=kEWN_TQaz0a9awann7cB2hlsVJcqSlJI7Nux2_nlFng,15928720
6
+ databend_driver-0.27.6.dist-info/RECORD,,
@@ -1,4 +1,4 @@
1
1
  Wheel-Version: 1.0
2
- Generator: maturin (1.8.6)
2
+ Generator: maturin (1.9.1)
3
3
  Root-Is-Purelib: false
4
4
  Tag: cp37-abi3-macosx_11_0_arm64
@@ -1,6 +0,0 @@
1
- databend_driver-0.27.4.dist-info/METADATA,sha256=s6fQk1jQQg9dxkJR2bApVJx_YGd_5oIwd-qAmxXFJWg,9470
2
- databend_driver-0.27.4.dist-info/WHEEL,sha256=MU_ryv1Kq2o94EPcimQ1Ey8_rj2SojN0Rxjzx3PGSuY,102
3
- databend_driver/__init__.py,sha256=sNam6xQNlyVYUm7qBdX4cDxsxlgHgr3zYavOp8uielw,626
4
- databend_driver/__init__.pyi,sha256=14ys4K9rDVX-eRUcwcpYB9qi8hCoERQNoaAJf1SLg80,3976
5
- databend_driver/_databend_driver.abi3.so,sha256=FebiEBEmSpPuhBT7SMdKoGBFTGhH-5UG7DTELMN-s2g,15812448
6
- databend_driver-0.27.4.dist-info/RECORD,,