theSq3Lite 10.0
Loading...
Searching...
No Matches
Sq3LiteC_Modify_Wal_ATL_API

Sq3LiteC - functions related to index 'Modify' and doc 'Wal' … More...

+ Collaboration diagram for Sq3LiteC_Modify_Wal_ATL_API:

Functions

static OT_ProcRet atlsq3lite_Sq3LiteC_WalAutocheckpoint (Sq3LiteC_ARGS)
  Atl: Sq3LiteC::WalAutocheckpoint $db N:int32 C-API
Configure an auto-checkpoint …
 
static OT_ProcRet atlsq3lite_Sq3LiteC_WalCheckpointV2 (Sq3LiteC_ARGS)
  Atl: {pnLog:int32 pnCkpt:int32} [Sq3LiteC::WalCheckpointV2 $db zDb:string eMode:int32] C-API
Checkpoint a database …
 

Detailed Description

Sq3LiteC - functions related to index 'Modify' and doc 'Wal' …

Configure an auto-checkpoint:

Checkpoint a database:

Reference code from sqlite3:

// Configure an auto-checkpoint:
// Checkpoint a database:
sqlite3 *db, // Database handle
const char *zDb, // Name of attached database (or NULL)
int eMode, // SQLITE_CHECKPOINT_* value
int *pnLog, // OUT: Size of WAL log in frames
int *pnCkpt // OUT: Total number of frames checkpointed
);
SQLITE_API int sqlite3_wal_checkpoint_v2(sqlite3 *db, const char *zDb, int eMode, int *pnLog, int *pnCkpt)
struct sqlite3 sqlite3
#define SQLITE_API
SQLITE_API int sqlite3_wal_autocheckpoint(sqlite3 *db, int N)

Function Documentation

◆ atlsq3lite_Sq3LiteC_WalAutocheckpoint()

static OT_ProcRet atlsq3lite_Sq3LiteC_WalAutocheckpoint ( Sq3LiteC_ARGS )
static

Atl: Sq3LiteC::WalAutocheckpoint $db N:int32 C-API
Configure an auto-checkpoint …

Definition at line 814 of file Sq3LiteC_atl.c.

814 {
817 MK_I32 N = 0;
822 goto end;
823 error:
825 end:
827}
#define OT_SETUP_ONEARG(d)
#define OT_CHECK_NI4(val)
#define OT_retObj_SET_Error
#define OT_CHECK_REQUIRED(val)
#define OT_retObj_SET_None
#define OT_retObj_RETURN
#define OT_CHECK_NOARGS
#define MkErrorC_Check(mng, PROC)
#define OT_SETUP_hdl
#define WalAutocheckpoint_doc
signed int MK_I32
static enum MkErrorE Sq3LiteWalAutocheckpoint(SQ3_LITE db, MK_I32 N)
Configure an auto-checkpoint …

◆ atlsq3lite_Sq3LiteC_WalCheckpointV2()

static OT_ProcRet atlsq3lite_Sq3LiteC_WalCheckpointV2 ( Sq3LiteC_ARGS )
static

Atl: {pnLog:int32 pnCkpt:int32} [Sq3LiteC::WalCheckpointV2 $db zDb:string eMode:int32] C-API
Checkpoint a database …

Definition at line 832 of file Sq3LiteC_atl.c.

832 {
835 MK_STRN zDb = 0;
837 MK_I32 eMode = 0;
840 MK_I32 pnLog;
841 MK_I32 pnCkpt;
842 MkErrorC_Check(hdl,Sq3LiteWalCheckpointV2 (hdl, zDb, eMode, &pnLog, &pnCkpt));
846 goto end;
847 error:
849 end:
851}
#define OT_SETUP_VARARGS(min, max, d)
#define OT_retObj_SET_List
#define OT_TMP_I32_OBJ(val)
#define OT_retObj_APPEND(var)
#define OT_CHECK_STRN(val)
#define WalCheckpointV2_doc
const MK_STRB * MK_STRN
static enum MkErrorE Sq3LiteWalCheckpointV2(SQ3_LITE db, MK_STRN zDb, MK_I32 eMode, MK_I32 *pnLog, MK_I32 *pnCkpt)
Checkpoint a database …