mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-07 20:54:28 +08:00
49 lines
2.2 KiB
Python
49 lines
2.2 KiB
Python
import sys
|
|
|
|
if sys.platform == "win32":
|
|
|
|
# Actual typename View, not exposed by the implementation
|
|
class _View:
|
|
def Execute(self, params: _Record | None = ...) -> None: ...
|
|
def GetColumnInfo(self, kind: int) -> _Record: ...
|
|
def Fetch(self) -> _Record: ...
|
|
def Modify(self, mode: int, record: _Record) -> None: ...
|
|
def Close(self) -> None: ...
|
|
# Don't exist at runtime
|
|
__new__: None # type: ignore[assignment]
|
|
__init__: None # type: ignore[assignment]
|
|
# Actual typename Summary, not exposed by the implementation
|
|
class _Summary:
|
|
def GetProperty(self, propid: int) -> str | bytes | None: ...
|
|
def GetPropertyCount(self) -> int: ...
|
|
def SetProperty(self, propid: int, value: str | bytes) -> None: ...
|
|
def Persist(self) -> None: ...
|
|
# Don't exist at runtime
|
|
__new__: None # type: ignore[assignment]
|
|
__init__: None # type: ignore[assignment]
|
|
# Actual typename Database, not exposed by the implementation
|
|
class _Database:
|
|
def OpenView(self, sql: str) -> _View: ...
|
|
def Commit(self) -> None: ...
|
|
def GetSummaryInformation(self, updateCount: int) -> _Summary: ...
|
|
def Close(self) -> None: ...
|
|
# Don't exist at runtime
|
|
__new__: None # type: ignore[assignment]
|
|
__init__: None # type: ignore[assignment]
|
|
# Actual typename Record, not exposed by the implementation
|
|
class _Record:
|
|
def GetFieldCount(self) -> int: ...
|
|
def GetInteger(self, field: int) -> int: ...
|
|
def GetString(self, field: int) -> str: ...
|
|
def SetString(self, field: int, str: str) -> None: ...
|
|
def SetStream(self, field: int, stream: str) -> None: ...
|
|
def SetInteger(self, field: int, int: int) -> None: ...
|
|
def ClearData(self) -> None: ...
|
|
# Don't exist at runtime
|
|
__new__: None # type: ignore[assignment]
|
|
__init__: None # type: ignore[assignment]
|
|
def UuidCreate() -> str: ...
|
|
def FCICreate(__cabname: str, __files: list[str]) -> None: ...
|
|
def OpenDatabase(__path: str, __persist: int) -> _Database: ...
|
|
def CreateRecord(__count: int) -> _Record: ...
|