From ca01206fc0c84f20a6f5f9bd7a53a694d8b9dcf3 Mon Sep 17 00:00:00 2001 From: Pekka Enberg Date: Wed, 26 Mar 2025 18:13:18 +0200 Subject: [PATCH] Fix stubs --- libsql_experimental.pyi | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/libsql_experimental.pyi b/libsql_experimental.pyi index c5b97ea..16ad44f 100644 --- a/libsql_experimental.pyi +++ b/libsql_experimental.pyi @@ -45,6 +45,9 @@ class Connection: @property def in_transaction(self) -> bool: ... + @property + def autocommit(self) -> int: ... + def commit(self) -> None: ... def cursor(self) -> Cursor: ... def sync(self) -> None: ... @@ -61,5 +64,6 @@ def connect(database: str, sync_url: str = ..., sync_interval: float = ..., auth_token: str = ..., - encryption_key: str = ...) -> Connection: + encryption_key: str = ..., + autocommit: int = ...) -> Connection: """Open a new libSQL connection, return a Connection object."""