mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-05-04 12:35:49 +08:00
Bump hdbcli to 2.24.* (#13705)
This commit is contained in:
@@ -1,6 +1,3 @@
|
||||
# TODO: missing from stub
|
||||
hdbcli.__all__
|
||||
|
||||
# Are set to `None` by default, initialized later:
|
||||
hdbcli.dbapi.Error.errorcode
|
||||
hdbcli.dbapi.Error.errortext
|
||||
|
||||
@@ -1,2 +1,2 @@
|
||||
version = "2.23.*"
|
||||
version = "2.24.*"
|
||||
# upstream_repository = closed-source
|
||||
|
||||
@@ -1,3 +1,5 @@
|
||||
from . import dbapi as dbapi
|
||||
|
||||
__version__: str
|
||||
|
||||
__all__ = ["dbapi"]
|
||||
|
||||
@@ -1,26 +1,26 @@
|
||||
import decimal
|
||||
from _typeshed import Incomplete, ReadableBuffer
|
||||
from collections.abc import Sequence
|
||||
from collections.abc import Callable, Sequence
|
||||
from datetime import date, datetime, time
|
||||
from types import TracebackType
|
||||
from typing import Any, Literal, overload
|
||||
from typing import Any, Final, Literal, overload
|
||||
from typing_extensions import Self, TypeAlias
|
||||
|
||||
from .resultrow import ResultRow
|
||||
|
||||
apilevel: str
|
||||
threadsafety: int
|
||||
paramstyle: tuple[str, ...] # hdbcli defines it as a tuple which does not follow PEP 249
|
||||
apilevel: Final[str]
|
||||
threadsafety: Final[int]
|
||||
paramstyle: Final[tuple[str, ...]] # hdbcli defines it as a tuple which does not follow PEP 249
|
||||
|
||||
class Connection:
|
||||
def __init__(
|
||||
self,
|
||||
address: str,
|
||||
port: int,
|
||||
user: str,
|
||||
password: str,
|
||||
autocommit: bool = ...,
|
||||
packetsize: int | None = ...,
|
||||
address: str = "",
|
||||
port: int = 0,
|
||||
user: str = "",
|
||||
password: str = "",
|
||||
autocommit: bool = True,
|
||||
packetsize: int | None = None,
|
||||
userkey: str | None = ...,
|
||||
*,
|
||||
sessionvariables: dict[str, str] | None = ...,
|
||||
@@ -38,7 +38,7 @@ class Connection:
|
||||
def rollback(self) -> None: ...
|
||||
def setautocommit(self, auto: bool = ...) -> None: ...
|
||||
def setclientinfo(self, key: str, value: str | None = ...) -> None: ...
|
||||
def ontrace(self) -> None: ...
|
||||
def ontrace(self, callback: Callable[[str], Any], options: str = ...) -> None: ...
|
||||
|
||||
connect = Connection
|
||||
|
||||
@@ -66,7 +66,7 @@ class Cursor:
|
||||
def close(self) -> None: ...
|
||||
def description_ext(self) -> Sequence[tuple[Any, ...]]: ...
|
||||
def execute(self, operation: str, parameters: tuple[Any, ...] | None = ...) -> bool: ...
|
||||
def executemany(self, operation: str, parameters: _Parameters = ...) -> Any: ...
|
||||
def executemany(self, operation: str, parameters: _Parameters = ..., batcherrors: bool = False) -> Any: ...
|
||||
def executemanyprepared(self, parameters: _Parameters = ...) -> Any: ...
|
||||
def executeprepared(self, parameters: _Parameters = ...) -> Any: ...
|
||||
def fetchone(self, uselob: bool = ...) -> ResultRow | None: ...
|
||||
|
||||
Reference in New Issue
Block a user