apilevel: str
threadsafety: int
paramstyle: str
class Warning(Exception):
...
class Error(Exception):
...
class InterfaceError(Error):
...
class DatabaseError(Error):
...
class DataError(DatabaseError):
...
class OperationalError(DatabaseError):
...
class IntegrityError(DatabaseError):
...
class InternalError(DatabaseError):
...
class ProgrammingError(DatabaseError):
...
class NotSupportedError(DatabaseError):
...
class Database:
def cursor(self) -> Cursor: ...
def close(self) -> None: ...
def commit(self) -> None: ...
def version(self) -> str: ...
def save(self, path: str) -> None: ...
@staticmethod
def load(path: str) -> "Database": ...
class Cursor:
def execute(self, sql: str, params=None) -> None: ...
def executemany(self, sql: str, seq_of_params) -> None: ...
def fetchone(self): ...
def fetchmany(self, size: int): ...
def fetchall(self): ...
def close(self) -> None: ...
@property
def description(self): ...
@property
def rowcount(self) -> int: ...
def cache_stats(self): ...
def schema_cache_stats(self): ...
def clear_cache(self) -> None: ...
def connect() -> Database: ...
def enable_profiling() -> None: ...
def disable_profiling() -> None: ...