summaryrefslogtreecommitdiffstats
path: root/contrib/tools/python3/src/Modules/_sqlite/connection.h
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/tools/python3/src/Modules/_sqlite/connection.h')
-rw-r--r--contrib/tools/python3/src/Modules/_sqlite/connection.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/contrib/tools/python3/src/Modules/_sqlite/connection.h b/contrib/tools/python3/src/Modules/_sqlite/connection.h
index 629fe3d3a95..1df92065a58 100644
--- a/contrib/tools/python3/src/Modules/_sqlite/connection.h
+++ b/contrib/tools/python3/src/Modules/_sqlite/connection.h
@@ -39,6 +39,12 @@ typedef struct _callback_context
pysqlite_state *state;
} callback_context;
+enum autocommit_mode {
+ AUTOCOMMIT_LEGACY = LEGACY_TRANSACTION_CONTROL,
+ AUTOCOMMIT_ENABLED = 1,
+ AUTOCOMMIT_DISABLED = 0,
+};
+
typedef struct
{
PyObject_HEAD
@@ -51,6 +57,7 @@ typedef struct
/* NULL for autocommit, otherwise a string with the isolation level */
const char *isolation_level;
+ enum autocommit_mode autocommit;
/* 1 if a check should be performed for each API call if the connection is
* used from the same thread it was created in */