24 lines
811 B
Python
24 lines
811 B
Python
from typing import Iterable
|
|
|
|
# This is a partial stub file for sqlcipher3.dbapi2.
|
|
# It provides basic type hints for the parts of the API used in this project.
|
|
|
|
# Basic types
|
|
paramstyle: str
|
|
threadsafety: int
|
|
apilevel: str
|
|
|
|
class Connection:
|
|
def __init__(self, database: str | bytes, timeout: float = 5.0) -> None: ...
|
|
def cursor(self) -> 'Cursor': ...
|
|
def execute(self, sql: str, parameters: Iterable[object] = ()) -> 'Cursor': ...
|
|
def commit(self) -> None: ...
|
|
def close(self) -> None: ...
|
|
|
|
class Cursor:
|
|
def execute(self, sql: str, parameters: Iterable[object] = ()) -> 'Cursor': ...
|
|
def fetchone(self) -> tuple[object, ...] | None: ...
|
|
def fetchall(self) -> list[tuple[object, ...]]: ...
|
|
def close(self) -> None: ...
|
|
|
|
def connect(database: str | bytes) -> Connection: ... |