theSq3Lite 10.0 NHI1 - theKernel - theLink - theConfig - theSq3Lite - theCompiler - theBrain - theGuard - theLib - theATL
c - tcl - atl - cs - py - rb - jv - cc
Loading...
Searching...
No Matches
Sq3LiteC_Modify_Wal_PY_API

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

+ Collaboration diagram for Sq3LiteC_Modify_Wal_PY_API:

Functions

static OT_ProcRet pysq3lite_Sq3LiteC_WalAutocheckpoint (Sq3LiteC_ARGS)
  Python: db.WalAutocheckpoint(N:int32) C-API
Configure an auto-checkpoint …
 
static OT_ProcRet pysq3lite_Sq3LiteC_WalCheckpointV2 (Sq3LiteC_ARGS)
  Python: {pnLog:int32 pnCkpt:int32} db.WalCheckpointV2(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

◆ pysq3lite_Sq3LiteC_WalAutocheckpoint()

static OT_ProcRet pysq3lite_Sq3LiteC_WalAutocheckpoint ( Sq3LiteC_ARGS )
static

Python: db.WalAutocheckpoint(N:int32) C-API
Configure an auto-checkpoint …

Definition at line 824 of file Sq3LiteC_py.c.

824 {
827 MK_I32 N = 0;
832 goto end;
833 error:
835 end:
837}
#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
Definition Sq3LiteC_py.c:26
#define WalAutocheckpoint_doc
signed int MK_I32
static enum MkErrorE Sq3LiteWalAutocheckpoint(SQ3_LITE db, MK_I32 N)
Configure an auto-checkpoint …

◆ pysq3lite_Sq3LiteC_WalCheckpointV2()

static OT_ProcRet pysq3lite_Sq3LiteC_WalCheckpointV2 ( Sq3LiteC_ARGS )
static

Python: {pnLog:int32 pnCkpt:int32} db.WalCheckpointV2(zDb:string, eMode:int32) C-API
Checkpoint a database …

Definition at line 842 of file Sq3LiteC_py.c.

842 {
845 MK_STRN zDb = 0;
847 MK_I32 eMode = 0;
850 MK_I32 pnLog;
851 MK_I32 pnCkpt;
852 MkErrorC_Check(hdl,Sq3LiteWalCheckpointV2 (hdl, zDb, eMode, &pnLog, &pnCkpt));
856 goto end;
857 error:
859 end:
861}
#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 …