massive update, probably broken
[dotfiles/.git] / .config / coc / extensions / node_modules / coc-pyright / node_modules / pyright / dist / typeshed-fallback / stubs / mysqlclient / MySQLdb / connections.pyi
1 from typing import Any
2
3 from . import _mysql, cursors as cursors
4 from ._exceptions import (
5     DatabaseError as DatabaseError,
6     DataError as DataError,
7     Error as Error,
8     IntegrityError as IntegrityError,
9     InterfaceError as InterfaceError,
10     InternalError as InternalError,
11     NotSupportedError as NotSupportedError,
12     OperationalError as OperationalError,
13     ProgrammingError as ProgrammingError,
14     Warning as Warning,
15 )
16
17 re_numeric_part: Any
18
19 def numeric_part(s): ...
20
21 class Connection(_mysql.connection):
22     default_cursor: Any
23     cursorclass: Any
24     encoders: Any
25     encoding: str
26     messages: Any
27     def __init__(self, *args, **kwargs): ...
28     def __enter__(self): ...
29     def __exit__(self, exc_type, exc_value, traceback) -> None: ...
30     def autocommit(self, on) -> None: ...
31     def cursor(self, cursorclass: Any | None = ...): ...
32     def query(self, query) -> None: ...
33     def literal(self, o): ...
34     def begin(self) -> None: ...
35     def warning_count(self): ...
36     def set_character_set(self, charset) -> None: ...
37     def set_sql_mode(self, sql_mode) -> None: ...
38     def show_warnings(self): ...
39     Warning: Any
40     Error: Any
41     InterfaceError: Any
42     DatabaseError: Any
43     DataError: Any
44     OperationalError: Any
45     IntegrityError: Any
46     InternalError: Any
47     ProgrammingError: Any
48     NotSupportedError: Any