Skip to content

Commit 286a9a0

Browse files
committed
unix-ffi/sqlite3: Add Connections.commit() function for compatibility.
To provide further compatibility between running cpython sqlite3 code and micropython sqlite3 code the commit function is added. This function does nothing, as per PEP 249, as micropythons usage of sqlite3 here always uses autocommit mode. Signed-off-by: Robert Klink <[email protected]>
1 parent f5b67b2 commit 286a9a0

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

unix-ffi/sqlite3/sqlite3.py

+3
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,9 @@ def __init__(self, h):
7777

7878
def cursor(self):
7979
return Cursor(self.h)
80+
81+
def commit(self):
82+
pass
8083

8184
def close(self):
8285
s = sqlite3_close(self.h)

0 commit comments

Comments
 (0)