Format: application/octet-stream
⬇ Download File (2.1 KB)
   1  import sys
   2  from typing import List, Optional, Union
   3  
   4  if sys.platform == "win32":
   5  
   6      # Actual typename View, not exposed by the implementation
   7      class _View:
   8          def Execute(self, params: Optional[_Record] = ...) -> None: ...
   9          def GetColumnInfo(self, kind: int) -> _Record: ...
  10          def Fetch(self) -> _Record: ...
  11          def Modify(self, mode: int, record: _Record) -> None: ...
  12          def Close(self) -> None: ...
  13          # Don't exist at runtime
  14          __new__: None  # type: ignore
  15          __init__: None  # type: ignore
  16      # Actual typename Summary, not exposed by the implementation
  17      class _Summary:
  18          def GetProperty(self, propid: int) -> Optional[Union[str, bytes]]: ...
  19          def GetPropertyCount(self) -> int: ...
  20          def SetProperty(self, propid: int, value: Union[str, bytes]) -> None: ...
  21          def Persist(self) -> None: ...
  22          # Don't exist at runtime
  23          __new__: None  # type: ignore
  24          __init__: None  # type: ignore
  25      # Actual typename Database, not exposed by the implementation
  26      class _Database:
  27          def OpenView(self, sql: str) -> _View: ...
  28          def Commit(self) -> None: ...
  29          def GetSummaryInformation(self, updateCount: int) -> _Summary: ...
  30          def Close(self) -> None: ...
  31          # Don't exist at runtime
  32          __new__: None  # type: ignore
  33          __init__: None  # type: ignore
  34      # Actual typename Record, not exposed by the implementation
  35      class _Record:
  36          def GetFieldCount(self) -> int: ...
  37          def GetInteger(self, field: int) -> int: ...
  38          def GetString(self, field: int) -> str: ...
  39          def SetString(self, field: int, str: str) -> None: ...
  40          def SetStream(self, field: int, stream: str) -> None: ...
  41          def SetInteger(self, field: int, int: int) -> None: ...
  42          def ClearData(self) -> None: ...
  43          # Don't exist at runtime
  44          __new__: None  # type: ignore
  45          __init__: None  # type: ignore
  46      def UuidCreate() -> str: ...
  47      def FCICreate(cabname: str, files: List[str]) -> None: ...
  48      def OpenDatabase(name: str, flags: int) -> _Database: ...
  49      def CreateRecord(count: int) -> _Record: ...
  50