mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-08 13:04:46 +08:00
Update sqlite3 types to include extensions (#2728)
This commit is contained in:
committed by
Sebastian Rittau
parent
ad304cb9ee
commit
2ea8abc1c7
@@ -144,6 +144,10 @@ class Connection(object):
|
||||
# set_progress_handler(handler, n) -> see https://docs.python.org/2/library/sqlite3.html#sqlite3.Connection.set_progress_handler
|
||||
def set_progress_handler(self, *args, **kwargs) -> None: ...
|
||||
def set_trace_callback(self, *args, **kwargs): ...
|
||||
# enable_load_extension and load_extension is not available on python distributions compiled
|
||||
# without sqlite3 loadable extension support. see footnotes https://docs.python.org/3/library/sqlite3.html#f1
|
||||
def enable_load_extension(self, enabled: bool) -> None: ...
|
||||
def load_extension(self, path: str) -> None: ...
|
||||
if sys.version_info >= (3, 7):
|
||||
def backup(self, target: Connection, *, pages: int = ...,
|
||||
progress: Optional[Callable[[int, int, int], object]] = ..., name: str = ...,
|
||||
|
||||
Reference in New Issue
Block a user