From 603117fb4ffc9136ee9a9b639268211a2de609e4 Mon Sep 17 00:00:00 2001 From: Jonathan Zhang <69145546+jonathan-d-zhang@users.noreply.github.com> Date: Thu, 26 Dec 2024 12:21:06 -0500 Subject: [PATCH] Add proxy for autocommit property on Connection --- aiosqlite/core.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/aiosqlite/core.py b/aiosqlite/core.py index 58c3fec..45b2784 100644 --- a/aiosqlite/core.py +++ b/aiosqlite/core.py @@ -251,6 +251,10 @@ async def create_function( deterministic=deterministic, ) + @property + def autocommit(self) -> int: + return self._conn.autocommit + @property def in_transaction(self) -> bool: return self._conn.in_transaction