fixing erro code for sqlite open

Signed-off-by: karan <karanjanthe@gmail.com>
This commit is contained in:
karan
2025-03-08 09:52:43 +05:30
parent 051d879db2
commit 34876c4711
6 changed files with 361 additions and 30 deletions

View File

@@ -31,6 +31,12 @@
#define SQLITE_STATE_BUSY 109
/* WAL Checkpoint modes */
#define SQLITE_CHECKPOINT_PASSIVE 0
#define SQLITE_CHECKPOINT_FULL 1
#define SQLITE_CHECKPOINT_RESTART 2
#define SQLITE_CHECKPOINT_TRUNCATE 3
typedef struct sqlite3 sqlite3;
typedef struct sqlite3_stmt sqlite3_stmt;
@@ -244,6 +250,17 @@ const char *sqlite3_libversion(void);
int sqlite3_libversion_number(void);
/* WAL Checkpoint functions */
int sqlite3_wal_checkpoint(sqlite3 *db, const char *db_name);
int sqlite3_wal_checkpoint_v2(
sqlite3 *db,
const char *db_name,
int mode,
int *log_size,
int *checkpoint_count
);
#ifdef __cplusplus
} // extern "C"
#endif // __cplusplus