massive update, probably broken
[dotfiles/.git] / .config / coc / extensions / coc-python-data / languageServer.0.5.59 / Typeshed / third_party / 2 / pymssql.pyi
1 from datetime import datetime, date, time\r
2 \r
3 from typing import Any, Dict, Tuple, Iterable, List, Optional, Union, Sequence\r
4 \r
5 Scalar = Union[int, float, str, datetime, date, time]\r
6 Result = Union[Tuple[Scalar, ...], Dict[str, Scalar]]\r
7 \r
8 class Connection(object):\r
9     def __init__(self, user, password, host, database, timeout,\r
10                  login_timeout, charset, as_dict) -> None: ...\r
11     def autocommit(self, status: bool) -> None: ...\r
12     def close(self) -> None: ...\r
13     def commit(self) -> None: ...\r
14     def cursor(self) -> 'Cursor': ...\r
15     def rollback(self) -> None: ...\r
16 \r
17 class Cursor(object):\r
18     def __init__(self) -> None: ...\r
19     def __iter__(self): ...\r
20     def __next__(self) -> Any: ...\r
21     def callproc(self, procname: str, **kwargs) -> None: ...\r
22     def close(self) -> None: ...\r
23     def execute(self, stmt: str,\r
24                 params: Optional[Union[Scalar, Tuple[Scalar, ...],\r
25                                        Dict[str, Scalar]]]) -> None: ...\r
26     def executemany(self, stmt: str,\r
27                     params: Optional[Sequence[Tuple[Scalar, ...]]]) -> None: ...\r
28     def fetchall(self) -> List[Result]: ...\r
29     def fetchmany(self, size: Optional[int]) -> List[Result]: ...\r
30     def fetchone(self) -> Result: ...\r
31 \r
32 def connect(server: Optional[str],\r
33             user: Optional[str],\r
34             password: Optional[str],\r
35             database: Optional[str],\r
36             timeout: Optional[int],\r
37             login_timeout: Optional[int],\r
38             charset: Optional[str],\r
39             as_dict: Optional[bool],\r
40             host: Optional[str],\r
41             appname: Optional[str],\r
42             port: Optional[str],\r
43 \r
44             conn_properties: Optional[Union[str, Sequence[str]]],\r
45             autocommit: Optional[bool],\r
46             tds_version: Optional[str]) -> Connection: ...\r
47 def get_max_connections() -> int: ...\r
48 def set_max_connections(n: int) -> None: ...\r