Skip to content

Commit

Permalink
fix(bindings/python): add blocking client related to pyi
Browse files Browse the repository at this point in the history
  • Loading branch information
everpcpc committed Mar 21, 2024
1 parent 9290c2a commit 11f855d
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions bindings/python/package/databend_driver/__init__.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -72,3 +72,15 @@ class AsyncDatabendConnection:
class AsyncDatabendClient:
def __init__(self, dsn: str): ...
async def get_conn(self) -> AsyncDatabendConnection: ...

class BlockingDatabendConnection:
def info(self) -> ConnectionInfo: ...
def version(self) -> str: ...
def exec(self, sql: str) -> int: ...
def query_row(self, sql: str) -> Row: ...
def query_iter(self, sql: str) -> RowIterator: ...
def stream_load(self, sql: str, data: list[list[str]]) -> ServerStats: ...

class BlockingDatabendClient:
def __init__(self, dsn: str): ...
def get_conn(self) -> BlockingDatabendConnection: ...

0 comments on commit 11f855d

Please sign in to comment.