massive update, probably broken
[dotfiles/.git] / .config / coc / extensions / node_modules / coc-pyright / node_modules / pyright / dist / typeshed-fallback / stubs / PyMySQL / pymysql / __init__.pyi
1 import sys
2 from typing import FrozenSet
3
4 from .connections import Connection as Connection
5 from .constants import FIELD_TYPE as FIELD_TYPE
6 from .converters import escape_dict as escape_dict, escape_sequence as escape_sequence, escape_string as escape_string
7 from .err import (
8     DatabaseError as DatabaseError,
9     DataError as DataError,
10     Error as Error,
11     IntegrityError as IntegrityError,
12     InterfaceError as InterfaceError,
13     InternalError as InternalError,
14     MySQLError as MySQLError,
15     NotSupportedError as NotSupportedError,
16     OperationalError as OperationalError,
17     ProgrammingError as ProgrammingError,
18     Warning as Warning,
19 )
20 from .times import (
21     Date as Date,
22     DateFromTicks as DateFromTicks,
23     Time as Time,
24     TimeFromTicks as TimeFromTicks,
25     Timestamp as Timestamp,
26     TimestampFromTicks as TimestampFromTicks,
27 )
28
29 threadsafety: int
30 apilevel: str
31 paramstyle: str
32
33 class DBAPISet(FrozenSet[int]):
34     def __ne__(self, other) -> bool: ...
35     def __eq__(self, other) -> bool: ...
36     def __hash__(self) -> int: ...
37
38 STRING: DBAPISet
39 BINARY: DBAPISet
40 NUMBER: DBAPISet
41 DATE: DBAPISet
42 TIME: DBAPISet
43 TIMESTAMP: DBAPISet
44 DATETIME: DBAPISet
45 ROWID: DBAPISet
46
47 if sys.version_info >= (3, 0):
48     def Binary(x) -> bytes: ...
49
50 else:
51     def Binary(x) -> bytearray: ...
52
53 def get_client_info() -> str: ...
54
55 __version__: str
56 version_info: tuple[int, int, int, str, int]
57 NULL: str
58
59 # pymysql/__init__.py says "Connect = connect = Connection = connections.Connection"
60 Connect = Connection
61 connect = Connection
62
63 def thread_safe() -> bool: ...
64 def install_as_MySQLdb() -> None: ...