mirror of
https://github.com/python/cpython.git
synced 2025-08-04 17:08:35 +00:00
bpo-45512: Simplify manage isolation level (GH-29562)
This commit is contained in:
parent
5f9247e36a
commit
e002bbc6cc
3 changed files with 33 additions and 41 deletions
|
@ -42,15 +42,15 @@ typedef struct _callback_context
|
|||
typedef struct
|
||||
{
|
||||
PyObject_HEAD
|
||||
sqlite3* db;
|
||||
sqlite3 *db;
|
||||
pysqlite_state *state;
|
||||
|
||||
/* the type detection mode. Only 0, PARSE_DECLTYPES, PARSE_COLNAMES or a
|
||||
* bitwise combination thereof makes sense */
|
||||
int detect_types;
|
||||
|
||||
/* NULL for autocommit, otherwise a string with the BEGIN statement */
|
||||
const char* begin_statement;
|
||||
/* NULL for autocommit, otherwise a string with the isolation level */
|
||||
const char *isolation_level;
|
||||
|
||||
/* 1 if a check should be performed for each API call if the connection is
|
||||
* used from the same thread it was created in */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue