add cpython compatibility for error codes and messages

edits

minor edit
This commit is contained in:
mazchew 2024-07-21 16:41:23 +08:00
parent ba0aa663ee
commit c90f7b8222
3 changed files with 150 additions and 5 deletions

View file

@ -7,8 +7,12 @@
#define SQLITE_ERROR 1
#define SQLITE_ABORT 4
#define SQLITE_BUSY 5
#define SQLITE_NOMEM 7
#define SQLITE_NOTFOUND 14
#define SQLITE_MISUSE 21
@ -17,6 +21,14 @@
#define SQLITE_DONE 101
#define SQLITE_ABORT_ROLLBACK (SQLITE_ABORT | (2 << 8))
#define SQLITE_STATE_OPEN 118
#define SQLITE_STATE_SICK 186
#define SQLITE_STATE_BUSY 109
typedef struct sqlite3 sqlite3;
typedef struct sqlite3_stmt sqlite3_stmt;