massive update, probably broken
[dotfiles/.git] / .config / coc / extensions / node_modules / coc-pyright / node_modules / pyright / dist / typeshed-fallback / stubs / mysqlclient / MySQLdb / cursors.pyi
1 from typing import Any
2
3 RE_INSERT_VALUES: Any
4
5 class BaseCursor:
6     from ._exceptions import (
7         DatabaseError as DatabaseError,
8         DataError as DataError,
9         Error as Error,
10         IntegrityError as IntegrityError,
11         InterfaceError as InterfaceError,
12         InternalError as InternalError,
13         MySQLError as MySQLError,
14         NotSupportedError as NotSupportedError,
15         OperationalError as OperationalError,
16         ProgrammingError as ProgrammingError,
17         Warning as Warning,
18     )
19
20     max_stmt_length: Any
21     connection: Any
22     description: Any
23     description_flags: Any
24     rowcount: int
25     arraysize: int
26     lastrowid: Any
27     rownumber: Any
28     def __init__(self, connection) -> None: ...
29     def close(self) -> None: ...
30     def __enter__(self): ...
31     def __exit__(self, *exc_info) -> None: ...
32     def nextset(self): ...
33     def setinputsizes(self, *args) -> None: ...
34     def setoutputsizes(self, *args) -> None: ...
35     def execute(self, query, args: Any | None = ...): ...
36     def executemany(self, query: str, args: list[Any]) -> int: ...
37     def callproc(self, procname, args=...): ...
38     def __iter__(self): ...
39
40 class CursorStoreResultMixIn:
41     rownumber: Any
42     def fetchone(self): ...
43     def fetchmany(self, size: Any | None = ...): ...
44     def fetchall(self): ...
45     def scroll(self, value, mode: str = ...) -> None: ...
46     def __iter__(self): ...
47
48 class CursorUseResultMixIn:
49     rownumber: Any
50     def fetchone(self): ...
51     def fetchmany(self, size: Any | None = ...): ...
52     def fetchall(self): ...
53     def __iter__(self): ...
54     def next(self): ...
55     __next__: Any
56
57 class CursorTupleRowsMixIn: ...
58 class CursorDictRowsMixIn: ...
59 class Cursor(CursorStoreResultMixIn, CursorTupleRowsMixIn, BaseCursor): ...
60 class DictCursor(CursorStoreResultMixIn, CursorDictRowsMixIn, BaseCursor): ...
61 class SSCursor(CursorUseResultMixIn, CursorTupleRowsMixIn, BaseCursor): ...
62 class SSDictCursor(CursorUseResultMixIn, CursorDictRowsMixIn, BaseCursor): ...