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_py.c File Reference

Sq3LiteC_py.c - 17 Apr 2025 - aotto1968. More...

+ Include dependency graph for Sq3LiteC_py.c:

Go to the source code of this file.

Macros

#define META_FILE_NAME   "Sq3LiteC_py.c"
 
#define OT_CLASS   (&NS(Sq3LiteCR))
 
#define OT_CLASS_NAME   "Sq3LiteC"
 
#define OT_LNG2META(O)
 
#define OT_retObj_CONSTR(mng)
 
#define OT_SETUP_hdl   OT_SETUP_hdl_tmpl(Sq3LiteC)
 
#define OT_SETUP_hdl__null_allow   OT_SETUP_hdl_tmpl__null_allow(Sq3LiteC)
 
#define OT_SETUP_hdl_constr
 
#define OT_SETUP_hdl_destr   OT_SETUP_hdl_tmpl__null_allow(Sq3LiteC)
 
#define OT_SETUP_hdl_static
 
#define OT_SETUP_hdl_static_constr   OT_SETUP_hdl_static
 
#define SetupRtFromObj_X(hdl)
 
#define SetupRtFromObj_XN(hdl)
 
#define Sq3LiteCTT   SQ3(Sq3LiteThreadState).Sq3LiteCTT
 
#define ClassInit
 
#define META_CONTEXT_S   MK_ERROR_DEFAULT
 
#define OpenV2_doc   "Sq3LiteC Sq3LiteC.OpenV2(filename:string, ?flags:Sq3OpenEF=SQ3_OPEN_READWRITE|SQ3_OPEN_CREATE?, ?zVfs:string=\"None\"?)"
 
#define new_doc   "Sq3LiteC Sq3LiteC.new(filename:string, ?flags:Sq3OpenEF=SQ3_OPEN_READWRITE|SQ3_OPEN_CREATE?, ?zVfs:string=\"None\"?)"
 
#define GetNull_doc   "Sq3LiteC Sq3LiteC.GetNull()"
 
#define HandleResolve_doc   "Sq3LiteC Sq3LiteC.HandleResolve(netHdl:MK_HDL)"
 
#define Instances_doc   "Sq3LiteC Sq3LiteC.Instances()"
 
#define ErrStr_doc   "string Sq3LiteC.ErrStr(arg0:int32)"
 
#define Sleep_doc   "Sq3LiteC.Sleep(arg0:int32)"
 
#define Next_doc   "Sq3LiteC lite.Next()"
 
#define Prev_doc   "Sq3LiteC lite.Prev()"
 
#define DbStatusBFL_doc   "MkBufferListC sq3lite.DbStatusBFL(op:Sq3DbStatusE, resetFlg:bool)"
 
#define PrepareV2_doc   "Sq3StmtC db.PrepareV2(zSql:string)"
 
#define BusyTimeout_doc   "sq3lite.BusyTimeout(ms:int32)"
 
#define Changes_doc   "int32 sq3lite.Changes()"
 
#define Changes64_doc   "int64 sq3lite.Changes64()"
 
#define CloseV2_doc   "sq3lite.CloseV2()"
 
#define DbCacheflush_doc   "sq3lite.DbCacheflush()"
 
#define DbFilename_doc   "string db.DbFilename(zDbName:string)"
 
#define DbName_doc   "string db.DbName(N:int32)"
 
#define DbReadonly_doc   "db.DbReadonly(zDbName:string)"
 
#define DbReleaseMemory_doc   "sq3lite.DbReleaseMemory()"
 
#define DeclareVtab_doc   "sq3lite.DeclareVtab(zSQL:string)"
 
#define Deserialize_doc   "sq3lite.Deserialize(zSchema:string, pData:binary, mFlags:Sq3DeSerializeEF)"
 
#define DropModules_doc   "sq3lite.DropModules(azKeepBfl:MkBufferListC)"
 
#define ErrCode_doc   "Sq3ErrorE db.ErrCode()"
 
#define ErrMsg_doc   "string sq3lite.ErrMsg()"
 
#define ErrorOffset_doc   "db.ErrorOffset()"
 
#define Exec_doc   "sq3lite.Exec(sql:string, ?callback_data:callable=None?)"
 
#define ExecV2_doc   "sq3lite.ExecV2(sql:string, ?callback:callable=None?)"
 
#define ExtendedResultCodes_doc   "sq3lite.ExtendedResultCodes(onoff:int32)"
 
#define ExtendetErrCode_doc   "Sq3ExtendetResultCodesE db.ExtendetErrCode()"
 
#define GetAutocommit_doc   "int32 sq3lite.GetAutocommit()"
 
#define Interrupt_doc   "sq3lite.Interrupt()"
 
#define IsInterrupted_doc   "bool sq3lite.IsInterrupted()"
 
#define LastInsertRowid_doc   "int64 sq3lite.LastInsertRowid()"
 
#define Limit_doc   "sq3lite.Limit(id:Sq3LimitE, newVal:int32)"
 
#define OverloadFunction_doc   "sq3lite.OverloadFunction(zFuncName:string, nArg:int32)"
 
#define Serialize_doc   "binary sq3lite.Serialize(zSchema:string, mFlags:Sq3SerializeE)"
 
#define SetLastInsertRowid_doc   "sq3lite.SetLastInsertRowid(arg1:int64)"
 
#define SystemErrno_doc   "sq3lite.SystemErrno()"
 
#define TotalChanges_doc   "int32 sq3lite.TotalChanges()"
 
#define TotalChanges64_doc   "int64 sq3lite.TotalChanges64()"
 
#define TxnState_doc   "sq3lite.TxnState(zSchema:string)"
 
#define VtabOnConflict_doc   "sq3lite.VtabOnConflict()"
 
#define WalAutocheckpoint_doc   "db.WalAutocheckpoint(N:int32)"
 
#define DbStatus_doc   "{pCur:int32 pHiwtr:int32} sq3lite.DbStatus(op:Sq3DbStatusE, resetFlg:bool)"
 
#define TableColumnMetadata_doc   "{pzDataType:string pzCollSeq:string pNotNull:int32 pPrimaryKey:int32 pAutoinc:int32} db.TableColumnMetadata(zDbName:string, zTableName:string, zColumnName:string)"
 
#define WalCheckpointV2_doc   "{pnLog:int32 pnCkpt:int32} db.WalCheckpointV2(zDb:string, eMode:int32)"
 

Functions

static OT_OBJ_T pysq3lite_Sq3LiteC_CTOR (MK_RT mkrt, OT_CLS_T type, SQ3_LITE hdl)
 
static MK_PTR pysq3lite_Sq3LiteC_selfCreate (MK_RT mkrt, MK_OBJ const obj, MK_PTR const env)
 
static void pysq3lite_Sq3LiteC_selfDelete (MK_RT mkrt, MK_PTR self, MK_PTR const env)
 
static void pysq3lite_Sq3LiteC_selfUnlink (MK_RT mkrt, MK_PTR self, MK_PTR const env)
 
static OT_ProcRet pysq3lite_Sq3LiteC_HandleResolve (OtClass_ARGS)
  Python: [static] Sq3LiteC Sq3LiteC.HandleResolve(netHdl:MK_HDL) C-API
Handle-Resolve-Slot - return a Sq3LiteC from netHdl or None if invalid…
 
MK_DEPRECATED static MK_UNUSED OT_ProcRet pysq3lite_Sq3LiteC_HandleGet (Sq3LiteC_ARGS)
 
static OT_ProcRet pysq3lite_Sq3LiteC_Next (Sq3LiteC_ARGS)
  Python: Sq3LiteC lite.Next() C-API
get next instance from linked-list of Sq3LiteS type
 
static OT_ProcRet pysq3lite_Sq3LiteC_Prev (Sq3LiteC_ARGS)
  Python: Sq3LiteC lite.Prev() C-API
get previous instance from linked-list of Sq3LiteS type
 
static OT_ProcRet pysq3lite_Sq3LiteC_Instances (OtClass_ARGS)
  Python: [static] Sq3LiteC Sq3LiteC.Instances() C-API
get head-instance from linked-list of Sq3LiteS type …
 
static OT_ProcRet pysq3lite_Sq3LiteC_GetNull (OtClass_ARGS)
  Python: [static] Sq3LiteC Sq3LiteC.GetNull() C-API
Null-Slot - return a Sq3LiteC typed NULL instance …
 
static OT_ProcRet pysq3lite_Sq3LiteC_BusyTimeout (Sq3LiteC_ARGS)
  Python: sq3lite.BusyTimeout(ms:int32) C-API
Set A Busy Timeout …
 
static OT_ProcRet pysq3lite_Sq3LiteC_DeclareVtab (Sq3LiteC_ARGS)
  Python: sq3lite.DeclareVtab(zSQL:string) C-API
Declare The Schema Of A Virtual Table …
 
static OT_ProcRet pysq3lite_Sq3LiteC_ExtendedResultCodes (Sq3LiteC_ARGS)
  Python: sq3lite.ExtendedResultCodes(onoff:int32) C-API
Enable Or Disable Extended Result Codes …
 
static OT_ProcRet pysq3lite_Sq3LiteC_Limit (Sq3LiteC_ARGS)
  Python: sq3lite.Limit(id:Sq3LimitE, newVal:int32) C-API
Run-time Limits …
 
static OT_ProcRet pysq3lite_Sq3LiteC_ErrCode (Sq3LiteC_ARGS)
  Python: Sq3ErrorE db.ErrCode() C-API
Error Codes And Messages …
 
static OT_ProcRet pysq3lite_Sq3LiteC_ErrMsg (Sq3LiteC_ARGS)
  Python: string sq3lite.ErrMsg() C-API
Error Codes And Messages …
 
static OT_ProcRet pysq3lite_Sq3LiteC_ErrorOffset (Sq3LiteC_ARGS)
  Python: db.ErrorOffset() C-API
Error Codes And Messages …
 
static OT_ProcRet pysq3lite_Sq3LiteC_ExtendetErrCode (Sq3LiteC_ARGS)
  Python: Sq3ExtendetResultCodesE db.ExtendetErrCode() C-API
Error Codes And Messages …
 
static OT_ProcRet pysq3lite_Sq3LiteC_SystemErrno (Sq3LiteC_ARGS)
  Python: sq3lite.SystemErrno() C-API
Low-level system error code …
 
static OT_ProcRet pysq3lite_Sq3LiteC_ErrStr (OtClass_ARGS)
  Python: [static] string Sq3LiteC.ErrStr(arg0:int32) C-API
Error Codes And Messages …
 
static OT_ProcRet pysq3lite_Sq3LiteC_Exec (Sq3LiteC_ARGS)
  Python: sq3lite.Exec(sql:string, ?callback_data:callable=None?) C-API
One-Step Query Execution Interface …
 
static OT_ProcRet pysq3lite_Sq3LiteC_ExecV2 (Sq3LiteC_ARGS)
  Python: sq3lite.ExecV2(sql:string, ?callback:callable=None?) C-API
The Sq3LiteExecV2() interface is a convenience wrapper around Sq3StmtPrepareV2(), Sq3StmtStep(), and Sq3StmtFinalize(), that allows an application to run multiple statements of SQL without having to use a lot of C code.
 
static OT_ProcRet pysq3lite_Sq3LiteC_Sleep (OtClass_ARGS)
  Python: [static] Sq3LiteC.Sleep(arg0:int32) C-API
Suspend Execution For A Short Time …
 
static OT_ProcRet pysq3lite_Sq3LiteC_GetAutocommit (Sq3LiteC_ARGS)
  Python: int32 sq3lite.GetAutocommit() C-API
Test For Auto-Commit Mode …
 
static OT_ProcRet pysq3lite_Sq3LiteC_LastInsertRowid (Sq3LiteC_ARGS)
  Python: int64 sq3lite.LastInsertRowid() C-API
Last Insert Rowid …
 
static OT_ProcRet pysq3lite_Sq3LiteC_TxnState (Sq3LiteC_ARGS)
  Python: sq3lite.TxnState(zSchema:string) C-API
Determine the transaction state of a database …
 
static OT_ProcRet pysq3lite_Sq3LiteC_VtabOnConflict (Sq3LiteC_ARGS)
  Python: sq3lite.VtabOnConflict() C-API
Determine The Virtual Table Conflict Policy …
 
static OT_ProcRet pysq3lite_Sq3LiteC_DbStatusBFL (Sq3LiteC_ARGS)
  Python: MkBufferListC sq3lite.DbStatusBFL(op:Sq3DbStatusE, resetFlg:bool) C-API
Database Connection Status …
 
static OT_ProcRet pysq3lite_Sq3LiteC_DbCacheflush (Sq3LiteC_ARGS)
  Python: sq3lite.DbCacheflush() C-API
Flush caches to disk mid-transaction …
 
static OT_ProcRet pysq3lite_Sq3LiteC_DbFilename (Sq3LiteC_ARGS)
  Python: string db.DbFilename(zDbName:string) C-API
Return The Filename For A Database Connection …
 
static OT_ProcRet pysq3lite_Sq3LiteC_DbName (Sq3LiteC_ARGS)
  Python: string db.DbName(N:int32) C-API
Return The Schema Name For A Database Connection …
 
static OT_ProcRet pysq3lite_Sq3LiteC_DbReadonly (Sq3LiteC_ARGS)
  Python: db.DbReadonly(zDbName:string) C-API
Determine if a database is read-only …
 
static OT_ProcRet pysq3lite_Sq3LiteC_DbReleaseMemory (Sq3LiteC_ARGS)
  Python: sq3lite.DbReleaseMemory() C-API
Free Memory Used By A Database Connection …
 
static OT_ProcRet pysq3lite_Sq3LiteC_Deserialize (Sq3LiteC_ARGS)
  Python: sq3lite.Deserialize(zSchema:string, pData:binary, mFlags:Sq3DeSerializeEF) C-API
Deserialize a database …
 
static OT_ProcRet pysq3lite_Sq3LiteC_DropModules (Sq3LiteC_ARGS)
  Python: sq3lite.DropModules(azKeepBfl:MkBufferListC) C-API
Remove Unnecessary Virtual Table Implementations …
 
MK_DEPRECATED static MK_UNUSED OT_ProcRet pysq3lite_Sq3LiteC_Log (Sq3LiteC_ARGS)
 
static OT_ProcRet pysq3lite_Sq3LiteC_OverloadFunction (Sq3LiteC_ARGS)
  Python: sq3lite.OverloadFunction(zFuncName:string, nArg:int32) C-API
Overload A Function For A Virtual Table …
 
static OT_ProcRet pysq3lite_Sq3LiteC_Serialize (Sq3LiteC_ARGS)
  Python: binary sq3lite.Serialize(zSchema:string, mFlags:Sq3SerializeE) C-API
Serialize a database …
 
static OT_ProcRet pysq3lite_Sq3LiteC_DbStatus (Sq3LiteC_ARGS)
  Python: {pCur:int32 pHiwtr:int32} sq3lite.DbStatus(op:Sq3DbStatusE, resetFlg:bool) C-API
Database Connection Status …
 
static OT_ProcRet pysq3lite_Sq3LiteC_TableColumnMetadata (Sq3LiteC_ARGS)
  Python: {pzDataType:string pzCollSeq:string pNotNull:int32 pPrimaryKey:int32 pAutoinc:int32} db.TableColumnMetadata(zDbName:string, zTableName:string, zColumnName:string) C-API
Extract Metadata About A Column Of A Table …
 
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 …
 
static OT_ProcRet pysq3lite_Sq3LiteC_Interrupt (Sq3LiteC_ARGS)
  Python: sq3lite.Interrupt() C-API
Interrupt A Long-Running Query …
 
static OT_ProcRet pysq3lite_Sq3LiteC_IsInterrupted (Sq3LiteC_ARGS)
  Python: bool sq3lite.IsInterrupted() C-API
Interrupt A Long-Running Query …
 
static OT_ProcRet pysq3lite_Sq3LiteC_Changes (Sq3LiteC_ARGS)
  Python: int32 sq3lite.Changes() C-API
Count The Number Of Rows Modified …
 
static OT_ProcRet pysq3lite_Sq3LiteC_Changes64 (Sq3LiteC_ARGS)
  Python: int64 sq3lite.Changes64() C-API
Count The Number Of Rows Modified …
 
static OT_ProcRet pysq3lite_Sq3LiteC_SetLastInsertRowid (Sq3LiteC_ARGS)
  Python: sq3lite.SetLastInsertRowid(arg1:int64) C-API
Set the Last Insert Rowid value …
 
static OT_ProcRet pysq3lite_Sq3LiteC_TotalChanges (Sq3LiteC_ARGS)
  Python: int32 sq3lite.TotalChanges() C-API
Total Number Of Rows Modified …
 
static OT_ProcRet pysq3lite_Sq3LiteC_TotalChanges64 (Sq3LiteC_ARGS)
  Python: int64 sq3lite.TotalChanges64() C-API
Total Number Of Rows Modified …
 
static OT_ProcRet pysq3lite_Sq3LiteC_OpenV2 (OtClass_ARGS)
  Python: [constructor,static] Sq3LiteC Sq3LiteC.OpenV2(filename:string, ?flags:Sq3OpenEF=SQ3_OPEN_READWRITE|SQ3_OPEN_CREATE?, ?zVfs:string="None"?) C-API
Opening A New Database Connection …
 
static OT_ProcRet pysq3lite_Sq3LiteC_new (CONSTR_ARGS)
  Python: [constructor,static] Sq3LiteC Sq3LiteC.new(filename:string, ?flags:Sq3OpenEF=SQ3_OPEN_READWRITE|SQ3_OPEN_CREATE?, ?zVfs:string="None"?) C-API
Opening A New Database Connection …
 
static OT_ProcRet pysq3lite_Sq3LiteC_PrepareV2 (Sq3LiteC_ARGS)
  Python: [constructor] Sq3StmtC db.PrepareV2(zSql:string) C-API
Compiling An SQL Statement …
 
static OT_ProcRet pysq3lite_Sq3LiteC_CloseV2 (Sq3LiteC_ARGS)
  Python: [destructor] sq3lite.CloseV2() C-API
Closing A Database Connection …
 
int pysq3lite_pSq3LiteC_Init (MK_RT mkrt, PyObject *m)
 

Variables

static PyMethodDef Sq3LiteC_Methods []
 
OT_CLASS_TYPE_REF pysq3lite_Sq3LiteCR
 

Detailed Description

Sq3LiteC_py.c - 17 Apr 2025 - aotto1968.

Version
94486eaaa48431d85fd346f26b604ead9fc893a5
Date
Thu Apr 17 12:31:54 2025 +0200
Author
aotto1968 aotto.nosp@m.1968.nosp@m.@t-on.nosp@m.line.nosp@m..de

Definition in file Sq3LiteC_py.c.

Macro Definition Documentation

◆ BusyTimeout_doc

#define BusyTimeout_doc   "sq3lite.BusyTimeout(ms:int32)"

Definition at line 124 of file Sq3LiteC_py.c.

◆ Changes64_doc

#define Changes64_doc   "int64 sq3lite.Changes64()"

Definition at line 126 of file Sq3LiteC_py.c.

◆ Changes_doc

#define Changes_doc   "int32 sq3lite.Changes()"

Definition at line 125 of file Sq3LiteC_py.c.

◆ ClassInit

#define ClassInit
Value:
/* if not already done, initialize NEW META type */ \
if (Sq3LiteCTT == NULL) Sq3LiteCTT = Sq3LiteSTT; \
\
/* protect against double call */ \
if (Sq3LiteCTT->selfCreate == NS(Sq3LiteC_selfCreate)) return MK_OK; \
\
/* add "selfCreate" and "selfDelete" feature to the META-Class */ \
Sq3LiteCTT->selfCreate = NS(Sq3LiteC_selfCreate); \
Sq3LiteCTT->selfDelete = NS(Sq3LiteC_selfDelete); \
Sq3LiteCTT->selfUnlink = NS(Sq3LiteC_selfUnlink); \
\
if (!PyType_HasFeature(OT_CLASS,Py_TPFLAGS_READY)) { \
NS(Sq3LiteCR).tp_base = Sq3LiteC_base; \
OtErrorCheckLng (PyType_Ready(OT_CLASS)); \
} \
OtErrorCheckLng(PyModule_AddObjectRef(m, "Sq3LiteC", (PyObject *)OT_CLASS)); \
\
/* define the "NULL" object */ \
Sq3LiteC_MK_NULL = Py_NewRef(MK(AtomCreate) (MK_RT_CALL OT_CLASS, NULL /*obj*/));
#define MK(n)
#define Sq3LiteC_base
#define NS(n)
#define Sq3LiteC_MK_NULL
#define Sq3LiteCTT
Definition Sq3LiteC_py.c:43
#define OT_CLASS
Definition Sq3LiteC_py.c:19
MK_OK
#define MK_RT_CALL
#define Sq3LiteSTT
instance-type as MkTypeS-class-type (cast from Sq3LiteST into MkTypeS) …
Struct to represent the data of the Sq3LiteC …

Definition at line 68 of file Sq3LiteC_py.c.

68#define ClassInit \
69 /* if not already done, initialize NEW META type */ \
70 if (Sq3LiteCTT == NULL) Sq3LiteCTT = Sq3LiteSTT; \
71 \
72 /* protect against double call */ \
73 if (Sq3LiteCTT->selfCreate == NS(Sq3LiteC_selfCreate)) return MK_OK; \
74 \
75 /* add "selfCreate" and "selfDelete" feature to the META-Class */ \
76 Sq3LiteCTT->selfCreate = NS(Sq3LiteC_selfCreate); \
77 Sq3LiteCTT->selfDelete = NS(Sq3LiteC_selfDelete); \
78 Sq3LiteCTT->selfUnlink = NS(Sq3LiteC_selfUnlink); \
79 \
80 if (!PyType_HasFeature(OT_CLASS,Py_TPFLAGS_READY)) { \
81 NS(Sq3LiteCR).tp_base = Sq3LiteC_base; \
82 OtErrorCheckLng (PyType_Ready(OT_CLASS)); \
83 } \
84 OtErrorCheckLng(PyModule_AddObjectRef(m, "Sq3LiteC", (PyObject *)OT_CLASS)); \
85 \
86 /* define the "NULL" object */ \
87 Sq3LiteC_MK_NULL = Py_NewRef(MK(AtomCreate) (MK_RT_CALL OT_CLASS, NULL /*obj*/));

◆ CloseV2_doc

#define CloseV2_doc   "sq3lite.CloseV2()"

Definition at line 127 of file Sq3LiteC_py.c.

◆ DbCacheflush_doc

#define DbCacheflush_doc   "sq3lite.DbCacheflush()"

Definition at line 128 of file Sq3LiteC_py.c.

◆ DbFilename_doc

#define DbFilename_doc   "string db.DbFilename(zDbName:string)"

Definition at line 129 of file Sq3LiteC_py.c.

◆ DbName_doc

#define DbName_doc   "string db.DbName(N:int32)"

Definition at line 130 of file Sq3LiteC_py.c.

◆ DbReadonly_doc

#define DbReadonly_doc   "db.DbReadonly(zDbName:string)"

Definition at line 131 of file Sq3LiteC_py.c.

◆ DbReleaseMemory_doc

#define DbReleaseMemory_doc   "sq3lite.DbReleaseMemory()"

Definition at line 132 of file Sq3LiteC_py.c.

◆ DbStatus_doc

#define DbStatus_doc   "{pCur:int32 pHiwtr:int32} sq3lite.DbStatus(op:Sq3DbStatusE, resetFlg:bool)"

Definition at line 161 of file Sq3LiteC_py.c.

◆ DbStatusBFL_doc

#define DbStatusBFL_doc   "MkBufferListC sq3lite.DbStatusBFL(op:Sq3DbStatusE, resetFlg:bool)"

Definition at line 120 of file Sq3LiteC_py.c.

◆ DeclareVtab_doc

#define DeclareVtab_doc   "sq3lite.DeclareVtab(zSQL:string)"

Definition at line 133 of file Sq3LiteC_py.c.

◆ Deserialize_doc

#define Deserialize_doc   "sq3lite.Deserialize(zSchema:string, pData:binary, mFlags:Sq3DeSerializeEF)"

Definition at line 134 of file Sq3LiteC_py.c.

◆ DropModules_doc

#define DropModules_doc   "sq3lite.DropModules(azKeepBfl:MkBufferListC)"

Definition at line 135 of file Sq3LiteC_py.c.

◆ ErrCode_doc

#define ErrCode_doc   "Sq3ErrorE db.ErrCode()"

Definition at line 136 of file Sq3LiteC_py.c.

◆ ErrMsg_doc

#define ErrMsg_doc   "string sq3lite.ErrMsg()"

Definition at line 137 of file Sq3LiteC_py.c.

◆ ErrorOffset_doc

#define ErrorOffset_doc   "db.ErrorOffset()"

Definition at line 138 of file Sq3LiteC_py.c.

◆ ErrStr_doc

#define ErrStr_doc   "string Sq3LiteC.ErrStr(arg0:int32)"

Definition at line 112 of file Sq3LiteC_py.c.

◆ Exec_doc

#define Exec_doc   "sq3lite.Exec(sql:string, ?callback_data:callable=None?)"

Definition at line 139 of file Sq3LiteC_py.c.

◆ ExecV2_doc

#define ExecV2_doc   "sq3lite.ExecV2(sql:string, ?callback:callable=None?)"

Definition at line 140 of file Sq3LiteC_py.c.

◆ ExtendedResultCodes_doc

#define ExtendedResultCodes_doc   "sq3lite.ExtendedResultCodes(onoff:int32)"

Definition at line 141 of file Sq3LiteC_py.c.

◆ ExtendetErrCode_doc

#define ExtendetErrCode_doc   "Sq3ExtendetResultCodesE db.ExtendetErrCode()"

Definition at line 142 of file Sq3LiteC_py.c.

◆ GetAutocommit_doc

#define GetAutocommit_doc   "int32 sq3lite.GetAutocommit()"

Definition at line 143 of file Sq3LiteC_py.c.

◆ GetNull_doc

#define GetNull_doc   "Sq3LiteC Sq3LiteC.GetNull()"

Definition at line 107 of file Sq3LiteC_py.c.

◆ HandleResolve_doc

#define HandleResolve_doc   "Sq3LiteC Sq3LiteC.HandleResolve(netHdl:MK_HDL)"

Definition at line 108 of file Sq3LiteC_py.c.

◆ Instances_doc

#define Instances_doc   "Sq3LiteC Sq3LiteC.Instances()"

Definition at line 109 of file Sq3LiteC_py.c.

◆ Interrupt_doc

#define Interrupt_doc   "sq3lite.Interrupt()"

Definition at line 145 of file Sq3LiteC_py.c.

◆ IsInterrupted_doc

#define IsInterrupted_doc   "bool sq3lite.IsInterrupted()"

Definition at line 146 of file Sq3LiteC_py.c.

◆ LastInsertRowid_doc

#define LastInsertRowid_doc   "int64 sq3lite.LastInsertRowid()"

Definition at line 147 of file Sq3LiteC_py.c.

◆ Limit_doc

#define Limit_doc   "sq3lite.Limit(id:Sq3LimitE, newVal:int32)"

Definition at line 148 of file Sq3LiteC_py.c.

◆ META_CONTEXT_S

#define META_CONTEXT_S   MK_ERROR_DEFAULT

Definition at line 91 of file Sq3LiteC_py.c.

◆ META_FILE_NAME

#define META_FILE_NAME   "Sq3LiteC_py.c"

Definition at line 14 of file Sq3LiteC_py.c.

◆ new_doc

#define new_doc   "Sq3LiteC Sq3LiteC.new(filename:string, ?flags:Sq3OpenEF=SQ3_OPEN_READWRITE|SQ3_OPEN_CREATE?, ?zVfs:string=\"None\"?)"

Definition at line 104 of file Sq3LiteC_py.c.

◆ Next_doc

#define Next_doc   "Sq3LiteC lite.Next()"

Definition at line 116 of file Sq3LiteC_py.c.

◆ OpenV2_doc

#define OpenV2_doc   "Sq3LiteC Sq3LiteC.OpenV2(filename:string, ?flags:Sq3OpenEF=SQ3_OPEN_READWRITE|SQ3_OPEN_CREATE?, ?zVfs:string=\"None\"?)"

doc definition

Definition at line 103 of file Sq3LiteC_py.c.

◆ OT_CLASS

#define OT_CLASS   (&NS(Sq3LiteCR))

Definition at line 19 of file Sq3LiteC_py.c.

◆ OT_CLASS_NAME

#define OT_CLASS_NAME   "Sq3LiteC"

Definition at line 20 of file Sq3LiteC_py.c.

◆ OT_LNG2META

#define OT_LNG2META ( O)
Value:
#define VAL2MNG(val)
static SQ3_LITE Sq3Lite(MK_MNG mng)
cast a unknown-object into an Sq3LiteS pointer or NULL if not possible

Definition at line 22 of file Sq3LiteC_py.c.

◆ OT_retObj_CONSTR

#define OT_retObj_CONSTR ( mng)
Value:
OT_retObj_SET(NS(Sq3LiteC_CTOR)(MK_RT_CALL (PyTypeObject*)class,mng))
#define OT_retObj_SET(val)

Definition at line 24 of file Sq3LiteC_py.c.

◆ OT_SETUP_hdl

#define OT_SETUP_hdl   OT_SETUP_hdl_tmpl(Sq3LiteC)

Definition at line 26 of file Sq3LiteC_py.c.

◆ OT_SETUP_hdl__null_allow

#define OT_SETUP_hdl__null_allow   OT_SETUP_hdl_tmpl__null_allow(Sq3LiteC)

Definition at line 27 of file Sq3LiteC_py.c.

◆ OT_SETUP_hdl_constr

#define OT_SETUP_hdl_constr
Value:
#define AllRtSetup_NULL
#define MK_RT_UNUSED
struct Sq3LiteS * SQ3_LITE
class-shortcut for struct Sq3LiteS *, all shortcut using the XX_YYY syntax (only for public API) …

Definition at line 28 of file Sq3LiteC_py.c.

28#define OT_SETUP_hdl_constr MK_RT_UNUSED AllRtSetup_NULL; \
29 SQ3_LITE hdl = (SQ3_LITE) OT_CLASS;

◆ OT_SETUP_hdl_destr

#define OT_SETUP_hdl_destr   OT_SETUP_hdl_tmpl__null_allow(Sq3LiteC)

Definition at line 30 of file Sq3LiteC_py.c.

◆ OT_SETUP_hdl_static

#define OT_SETUP_hdl_static
Value:
__attribute__((unused)) MK_TYP hdl = Sq3LiteC##_TT;

Definition at line 31 of file Sq3LiteC_py.c.

31#define OT_SETUP_hdl_static MK_RT_UNUSED AllRtSetup_NULL; \
32 __attribute__((unused)) MK_TYP hdl = Sq3LiteC##_TT;

◆ OT_SETUP_hdl_static_constr

#define OT_SETUP_hdl_static_constr   OT_SETUP_hdl_static

Definition at line 34 of file Sq3LiteC_py.c.

◆ OverloadFunction_doc

#define OverloadFunction_doc   "sq3lite.OverloadFunction(zFuncName:string, nArg:int32)"

Definition at line 150 of file Sq3LiteC_py.c.

◆ PrepareV2_doc

#define PrepareV2_doc   "Sq3StmtC db.PrepareV2(zSql:string)"

Definition at line 121 of file Sq3LiteC_py.c.

◆ Prev_doc

#define Prev_doc   "Sq3LiteC lite.Prev()"

Definition at line 117 of file Sq3LiteC_py.c.

◆ Serialize_doc

#define Serialize_doc   "binary sq3lite.Serialize(zSchema:string, mFlags:Sq3SerializeE)"

Definition at line 151 of file Sq3LiteC_py.c.

◆ SetLastInsertRowid_doc

#define SetLastInsertRowid_doc   "sq3lite.SetLastInsertRowid(arg1:int64)"

Definition at line 152 of file Sq3LiteC_py.c.

◆ SetupRtFromObj_X

#define SetupRtFromObj_X ( hdl)
Value:
#define AllRtSetup_X(x)

Definition at line 37 of file Sq3LiteC_py.c.

◆ SetupRtFromObj_XN

#define SetupRtFromObj_XN ( hdl)
Value:
#define AllRtSetup_XN(x)

Definition at line 38 of file Sq3LiteC_py.c.

◆ Sleep_doc

#define Sleep_doc   "Sq3LiteC.Sleep(arg0:int32)"

Definition at line 113 of file Sq3LiteC_py.c.

◆ Sq3LiteCTT

#define Sq3LiteCTT   SQ3(Sq3LiteThreadState).Sq3LiteCTT

Definition at line 43 of file Sq3LiteC_py.c.

◆ SystemErrno_doc

#define SystemErrno_doc   "sq3lite.SystemErrno()"

Definition at line 153 of file Sq3LiteC_py.c.

◆ TableColumnMetadata_doc

#define TableColumnMetadata_doc   "{pzDataType:string pzCollSeq:string pNotNull:int32 pPrimaryKey:int32 pAutoinc:int32} db.TableColumnMetadata(zDbName:string, zTableName:string, zColumnName:string)"

Definition at line 162 of file Sq3LiteC_py.c.

◆ TotalChanges64_doc

#define TotalChanges64_doc   "int64 sq3lite.TotalChanges64()"

Definition at line 155 of file Sq3LiteC_py.c.

◆ TotalChanges_doc

#define TotalChanges_doc   "int32 sq3lite.TotalChanges()"

Definition at line 154 of file Sq3LiteC_py.c.

◆ TxnState_doc

#define TxnState_doc   "sq3lite.TxnState(zSchema:string)"

Definition at line 156 of file Sq3LiteC_py.c.

◆ VtabOnConflict_doc

#define VtabOnConflict_doc   "sq3lite.VtabOnConflict()"

Definition at line 157 of file Sq3LiteC_py.c.

◆ WalAutocheckpoint_doc

#define WalAutocheckpoint_doc   "db.WalAutocheckpoint(N:int32)"

Definition at line 158 of file Sq3LiteC_py.c.

◆ WalCheckpointV2_doc

#define WalCheckpointV2_doc   "{pnLog:int32 pnCkpt:int32} db.WalCheckpointV2(zDb:string, eMode:int32)"

Definition at line 163 of file Sq3LiteC_py.c.

Function Documentation

◆ pysq3lite_pSq3LiteC_Init()

int pysq3lite_pSq3LiteC_Init ( MK_RT mkrt,
PyObject * m )

Definition at line 1168 of file Sq3LiteC_py.c.

1169{
1170 ClassInit
1171
1172 return 0;
1173error:
1174 return -1;
1175}
#define ClassInit
Definition Sq3LiteC_py.c:68

◆ pysq3lite_Sq3LiteC_CTOR()

static OT_OBJ_T pysq3lite_Sq3LiteC_CTOR ( MK_RT mkrt,
OT_CLS_T type,
SQ3_LITE hdl )
inlinestatic

Definition at line 47 of file Sq3LiteC_py.c.

47 {
48 return MK(AtomCreate)(MK_RT_CALL type,Sq3LiteC_X2obj(hdl));
49}
#define Sq3LiteC_X2obj(x)

◆ pysq3lite_Sq3LiteC_selfCreate()

static MK_PTR pysq3lite_Sq3LiteC_selfCreate ( MK_RT mkrt,
MK_OBJ const obj,
MK_PTR const env )
static

Definition at line 54 of file Sq3LiteC_py.c.

54 {
55 return MK(AtomCreate) (MK_RT_CALL OT_CLASS,obj);
56}

◆ pysq3lite_Sq3LiteC_selfDelete()

static void pysq3lite_Sq3LiteC_selfDelete ( MK_RT mkrt,
MK_PTR self,
MK_PTR const env )
static

Definition at line 58 of file Sq3LiteC_py.c.

58 {
59 MK(AtomDeleteHard) (MK_RT_CALL OT_SELF);
60}
#define OT_SELF

◆ pysq3lite_Sq3LiteC_selfUnlink()

static void pysq3lite_Sq3LiteC_selfUnlink ( MK_RT mkrt,
MK_PTR self,
MK_PTR const env )
static

Definition at line 62 of file Sq3LiteC_py.c.

62 {
63 MkObjectC_Obj *selfO = (MkObjectC_Obj*) self;
64 selfO->hdl = NULL;
65}
PyObject_HEAD MK_OBJ hdl

Variable Documentation

◆ pysq3lite_Sq3LiteCR

OT_CLASS_TYPE_REF pysq3lite_Sq3LiteCR
Initial value:
= {
PyVarObject_HEAD_INIT(NULL, 0)
.tp_name = "pymsgque.Sq3LiteC",
.tp_doc = "PyMsgque Sq3LiteC Type",
.tp_basicsize = sizeof(Sq3LiteC_Obj),
.tp_itemsize = 0,
.tp_new = (newfunc) pysq3lite_Sq3LiteC_new ,
.tp_flags = Py_TPFLAGS_DEFAULT,
.tp_methods = Sq3LiteC_Methods,
.tp_base = NULL
}
struct Sq3LiteC_Obj Sq3LiteC_Obj
static PyMethodDef Sq3LiteC_Methods[]
static OT_ProcRet pysq3lite_Sq3LiteC_new(CONSTR_ARGS)
Python: [constructor,static] Sq3LiteC Sq3LiteC.new(filename:string, ?flags:Sq3OpenEF=SQ3_OPEN_READWRI...

Public API

Definition at line 1156 of file Sq3LiteC_py.c.

1156 {
1157 PyVarObject_HEAD_INIT(NULL, 0)
1158 .tp_name = "pymsgque.Sq3LiteC",
1159 .tp_doc = "PyMsgque Sq3LiteC Type",
1160 .tp_basicsize = sizeof(Sq3LiteC_Obj),
1161 .tp_itemsize = 0,
1162 .tp_new = (newfunc) NS(Sq3LiteC_new),
1163 .tp_flags = Py_TPFLAGS_DEFAULT,
1164 .tp_methods = Sq3LiteC_Methods,
1165 .tp_base = NULL
1166};

◆ Sq3LiteC_Methods

PyMethodDef Sq3LiteC_Methods[]
static

Type definition

Definition at line 1075 of file Sq3LiteC_py.c.

1075 {
1076
1077 // BEGIN-CLASS - created by 'py_MqS.tcl -i NHI1_HOME/theSq3Lite/c/gen/c_sq3lite.meta' - DO NOT change
1078
1079 // doc-key: Sq3LiteC,Sq3Lite,sCo
1080 { "OpenV2" , (PyCFunction) NS(Sq3LiteC_OpenV2) , METH_VARARGS|METH_CLASS , OpenV2_doc },
1081
1082 // doc-key: Sq3LiteC,Sq3Lite,sc_
1083 { "GetNull" , (PyCFunction) NS(Sq3LiteC_GetNull) , METH_NOARGS|METH_CLASS , GetNull_doc },
1084 { "HandleResolve" , (PyCFunction) NS(Sq3LiteC_HandleResolve) , METH_O|METH_CLASS , HandleResolve_doc },
1085 { "Instances" , (PyCFunction) NS(Sq3LiteC_Instances) , METH_NOARGS|METH_CLASS , Instances_doc },
1086
1087 // doc-key: Sq3LiteC,Sq3Lite,sm_
1088 { "ErrStr" , (PyCFunction) NS(Sq3LiteC_ErrStr) , METH_O|METH_CLASS , ErrStr_doc },
1089 { "Sleep" , (PyCFunction) NS(Sq3LiteC_Sleep) , METH_O|METH_CLASS , Sleep_doc },
1090
1091 // END-CLASS - created by 'py_MqS.tcl -i NHI1_HOME/theSq3Lite/c/gen/c_sq3lite.meta' - DO NOT change
1092
1093 // BEGIN-OBJ - created by 'py_MqS.tcl -i NHI1_HOME/theSq3Lite/c/gen/c_sq3lite.meta' - DO NOT change
1094
1095 // doc-key: Sq3LiteC,Sq3Lite,oc_
1096 { "Next" , (PyCFunction) NS(Sq3LiteC_Next) , METH_NOARGS , Next_doc },
1097 { "Prev" , (PyCFunction) NS(Sq3LiteC_Prev) , METH_NOARGS , Prev_doc },
1098
1099 // doc-key: Sq3LiteC,Sq3Lite,oco
1100 { "DbStatusBFL" , (PyCFunction) NS(Sq3LiteC_DbStatusBFL) , METH_VARARGS , DbStatusBFL_doc },
1101 { "PrepareV2" , (PyCFunction) NS(Sq3LiteC_PrepareV2) , METH_O , PrepareV2_doc },
1102
1103 // doc-key: Sq3LiteC,Sq3Lite,om_
1104 { "BusyTimeout" , (PyCFunction) NS(Sq3LiteC_BusyTimeout) , METH_O , BusyTimeout_doc },
1105 { "Changes" , (PyCFunction) NS(Sq3LiteC_Changes) , METH_NOARGS , Changes_doc },
1106 { "Changes64" , (PyCFunction) NS(Sq3LiteC_Changes64) , METH_NOARGS , Changes64_doc },
1107 { "CloseV2" , (PyCFunction) NS(Sq3LiteC_CloseV2) , METH_NOARGS , CloseV2_doc },
1108 { "DbCacheflush" , (PyCFunction) NS(Sq3LiteC_DbCacheflush) , METH_NOARGS , DbCacheflush_doc },
1109 { "DbFilename" , (PyCFunction) NS(Sq3LiteC_DbFilename) , METH_O , DbFilename_doc },
1110 { "DbName" , (PyCFunction) NS(Sq3LiteC_DbName) , METH_O , DbName_doc },
1111 { "DbReadonly" , (PyCFunction) NS(Sq3LiteC_DbReadonly) , METH_O , DbReadonly_doc },
1112 { "DbReleaseMemory" , (PyCFunction) NS(Sq3LiteC_DbReleaseMemory) , METH_NOARGS , DbReleaseMemory_doc },
1113 { "DeclareVtab" , (PyCFunction) NS(Sq3LiteC_DeclareVtab) , METH_O , DeclareVtab_doc },
1114 { "Deserialize" , (PyCFunction) NS(Sq3LiteC_Deserialize) , METH_VARARGS , Deserialize_doc },
1115 { "DropModules" , (PyCFunction) NS(Sq3LiteC_DropModules) , METH_O , DropModules_doc },
1116 { "ErrCode" , (PyCFunction) NS(Sq3LiteC_ErrCode) , METH_NOARGS , ErrCode_doc },
1117 { "ErrMsg" , (PyCFunction) NS(Sq3LiteC_ErrMsg) , METH_NOARGS , ErrMsg_doc },
1118 { "ErrorOffset" , (PyCFunction) NS(Sq3LiteC_ErrorOffset) , METH_NOARGS , ErrorOffset_doc },
1119 { "Exec" , (PyCFunction) NS(Sq3LiteC_Exec) , METH_VARARGS , Exec_doc },
1120 { "ExecV2" , (PyCFunction) NS(Sq3LiteC_ExecV2) , METH_VARARGS , ExecV2_doc },
1121 { "ExtendedResultCodes" , (PyCFunction) NS(Sq3LiteC_ExtendedResultCodes) , METH_O , ExtendedResultCodes_doc },
1122 { "ExtendetErrCode" , (PyCFunction) NS(Sq3LiteC_ExtendetErrCode) , METH_NOARGS , ExtendetErrCode_doc },
1123 { "GetAutocommit" , (PyCFunction) NS(Sq3LiteC_GetAutocommit) , METH_NOARGS , GetAutocommit_doc },
1124 // skip class-overload: Sq3LiteHandleGet → HandleGet, NS(Sq3LiteC_HandleGet)
1125 { "Interrupt" , (PyCFunction) NS(Sq3LiteC_Interrupt) , METH_NOARGS , Interrupt_doc },
1126 { "IsInterrupted" , (PyCFunction) NS(Sq3LiteC_IsInterrupted) , METH_NOARGS , IsInterrupted_doc },
1127 { "LastInsertRowid" , (PyCFunction) NS(Sq3LiteC_LastInsertRowid) , METH_NOARGS , LastInsertRowid_doc },
1128 { "Limit" , (PyCFunction) NS(Sq3LiteC_Limit) , METH_VARARGS , Limit_doc },
1129 // skip class-overload: Sq3LiteLog → Log, NS(Sq3LiteC_Log)
1130 { "OverloadFunction" , (PyCFunction) NS(Sq3LiteC_OverloadFunction) , METH_VARARGS , OverloadFunction_doc },
1131 { "Serialize" , (PyCFunction) NS(Sq3LiteC_Serialize) , METH_VARARGS , Serialize_doc },
1132 { "SetLastInsertRowid" , (PyCFunction) NS(Sq3LiteC_SetLastInsertRowid) , METH_O , SetLastInsertRowid_doc },
1133 { "SystemErrno" , (PyCFunction) NS(Sq3LiteC_SystemErrno) , METH_NOARGS , SystemErrno_doc },
1134 { "TotalChanges" , (PyCFunction) NS(Sq3LiteC_TotalChanges) , METH_NOARGS , TotalChanges_doc },
1135 { "TotalChanges64" , (PyCFunction) NS(Sq3LiteC_TotalChanges64) , METH_NOARGS , TotalChanges64_doc },
1136 { "TxnState" , (PyCFunction) NS(Sq3LiteC_TxnState) , METH_O , TxnState_doc },
1137 { "VtabOnConflict" , (PyCFunction) NS(Sq3LiteC_VtabOnConflict) , METH_NOARGS , VtabOnConflict_doc },
1138 { "WalAutocheckpoint" , (PyCFunction) NS(Sq3LiteC_WalAutocheckpoint) , METH_O , WalAutocheckpoint_doc },
1139
1140 // doc-key: Sq3LiteC,Sq3Lite,omo
1141 { "DbStatus" , (PyCFunction) NS(Sq3LiteC_DbStatus) , METH_VARARGS , DbStatus_doc },
1142 { "TableColumnMetadata" , (PyCFunction) NS(Sq3LiteC_TableColumnMetadata) , METH_VARARGS , TableColumnMetadata_doc },
1143 { "WalCheckpointV2" , (PyCFunction) NS(Sq3LiteC_WalCheckpointV2) , METH_VARARGS , WalCheckpointV2_doc },
1144
1145 // END-OBJ - created by 'py_MqS.tcl -i NHI1_HOME/theSq3Lite/c/gen/c_sq3lite.meta' - DO NOT change
1146
1147 {NULL, NULL, 0, NULL} /* Sentinel */
1148};
#define Instances_doc
#define TxnState_doc
#define BusyTimeout_doc
#define Deserialize_doc
#define DbStatusBFL_doc
#define Interrupt_doc
#define ExtendedResultCodes_doc
#define DbReleaseMemory_doc
#define DropModules_doc
#define SystemErrno_doc
#define WalAutocheckpoint_doc
#define CloseV2_doc
#define ExtendetErrCode_doc
#define Exec_doc
#define OverloadFunction_doc
#define SetLastInsertRowid_doc
#define TotalChanges_doc
#define ErrCode_doc
#define OpenV2_doc
#define ErrStr_doc
#define LastInsertRowid_doc
#define GetNull_doc
#define Next_doc
#define ErrMsg_doc
#define TotalChanges64_doc
#define HandleResolve_doc
#define Prev_doc
#define DbStatus_doc
#define DeclareVtab_doc
#define DbFilename_doc
#define Changes64_doc
#define DbName_doc
#define PrepareV2_doc
#define Changes_doc
#define Sleep_doc
#define Limit_doc
#define Serialize_doc
#define TableColumnMetadata_doc
#define WalCheckpointV2_doc
#define GetAutocommit_doc
#define ErrorOffset_doc
#define ExecV2_doc
#define DbCacheflush_doc
#define IsInterrupted_doc
#define DbReadonly_doc
#define VtabOnConflict_doc