theSq3Lite 10.0
Loading...
Searching...
No Matches
Sq3LiteC_atl.c File Reference

tag: nhi1-release-250425 More...

+ Include dependency graph for Sq3LiteC_atl.c:

Go to the source code of this file.

Macros

#define META_FILE_NAME   "Sq3LiteC_atl.c"
 
#define OT_CLASS   asq3rt->AtlSq3LiteC
 
#define OT_NULL   asq3rt->AtlSq3LiteC_MK_NULL
 
#define OT_CLASS_NAME   "Sq3LiteC"
 
#define SELF2HDL(O)
 
#define OT_SETUP_hdl   SetupHdlFromMetaData_2(SQ3_LITE)
 
#define OT_SETUP_hdl__null_allow   SetupHdlFromMetaData__null_allow_2(SQ3_LITE)
 
#define OT_SETUP_hdl_destr   SetupHdlFromMetaData__null_allow_2(SQ3_LITE)
 
#define OT_SETUP_hdl_constr   SetupHdlConstr(Sq3LiteC)
 
#define OT_SETUP_hdl_static_constr   OT_SETUP_hdl_static
 
#define OT_SETUP_hdl_static   SetupHdlStatic(Sq3LiteC)
 
#define OT_retObj_CONSTR(x)
 
#define ClassInit
 
#define CTOR_doc   "Sq3LiteC [Sq3LiteC::CTOR filename:string ?flags:Sq3OpenEF={SQ3_OPEN_READWRITE SQ3_OPEN_CREATE}? ?zVfs:string=\"NULL\"?]"
 
#define OpenV2_doc   "Sq3LiteC [Sq3LiteC::OpenV2 filename:string ?flags:Sq3OpenEF={SQ3_OPEN_READWRITE SQ3_OPEN_CREATE}? ?zVfs:string=\"NULL\"?]"
 
#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 [Sq3LiteC::Next $lite]"
 
#define Prev_doc   "Sq3LiteC [Sq3LiteC::Prev $lite]"
 
#define DbStatusBFL_doc   "MkBufferListC [Sq3LiteC::DbStatusBFL $sq3lite op:Sq3DbStatusE resetFlg:bool]"
 
#define PrepareV2_doc   "Sq3StmtC [Sq3LiteC::PrepareV2 $db zSql:string]"
 
#define BusyTimeout_doc   "Sq3LiteC::BusyTimeout $sq3lite ms:int32"
 
#define Changes_doc   "int32 [Sq3LiteC::Changes $sq3lite]"
 
#define Changes64_doc   "int64 [Sq3LiteC::Changes64 $sq3lite]"
 
#define CloseV2_doc   "Sq3LiteC::CloseV2 $sq3lite"
 
#define DbCacheflush_doc   "Sq3LiteC::DbCacheflush $sq3lite"
 
#define DbFilename_doc   "string [Sq3LiteC::DbFilename $db zDbName:string]"
 
#define DbName_doc   "string [Sq3LiteC::DbName $db N:int32]"
 
#define DbReadonly_doc   "Sq3LiteC::DbReadonly $db zDbName:string"
 
#define DbReleaseMemory_doc   "Sq3LiteC::DbReleaseMemory $sq3lite"
 
#define DeclareVtab_doc   "Sq3LiteC::DeclareVtab $sq3lite zSQL:string"
 
#define Deserialize_doc   "Sq3LiteC::Deserialize $sq3lite zSchema:string pData:binary mFlags:Sq3DeSerializeEF"
 
#define DropModules_doc   "Sq3LiteC::DropModules $sq3lite azKeepBfl:MkBufferListC"
 
#define ErrCode_doc   "Sq3ErrorE [Sq3LiteC::ErrCode $db]"
 
#define ErrMsg_doc   "string [Sq3LiteC::ErrMsg $sq3lite]"
 
#define ErrorOffset_doc   "Sq3LiteC::ErrorOffset $db"
 
#define Exec_doc   "Sq3LiteC::Exec $sq3lite sql:string ?callback_data:callable=NULL?"
 
#define ExecV2_doc   "Sq3LiteC::ExecV2 $sq3lite sql:string ?callback:callable=NULL?"
 
#define ExtendedResultCodes_doc   "Sq3LiteC::ExtendedResultCodes $sq3lite onoff:int32"
 
#define ExtendetErrCode_doc   "Sq3ExtendetResultCodesE [Sq3LiteC::ExtendetErrCode $db]"
 
#define GetAutocommit_doc   "int32 [Sq3LiteC::GetAutocommit $sq3lite]"
 
#define Interrupt_doc   "Sq3LiteC::Interrupt $sq3lite"
 
#define IsInterrupted_doc   "bool [Sq3LiteC::IsInterrupted $sq3lite]"
 
#define LastInsertRowid_doc   "int64 [Sq3LiteC::LastInsertRowid $sq3lite]"
 
#define Limit_doc   "Sq3LiteC::Limit $sq3lite id:Sq3LimitE newVal:int32"
 
#define OverloadFunction_doc   "Sq3LiteC::OverloadFunction $sq3lite zFuncName:string nArg:int32"
 
#define Serialize_doc   "binary [Sq3LiteC::Serialize $sq3lite zSchema:string mFlags:Sq3SerializeE]"
 
#define SetLastInsertRowid_doc   "Sq3LiteC::SetLastInsertRowid $sq3lite arg1:int64"
 
#define SystemErrno_doc   "Sq3LiteC::SystemErrno $sq3lite"
 
#define TotalChanges_doc   "int32 [Sq3LiteC::TotalChanges $sq3lite]"
 
#define TotalChanges64_doc   "int64 [Sq3LiteC::TotalChanges64 $sq3lite]"
 
#define TxnState_doc   "Sq3LiteC::TxnState $sq3lite zSchema:string"
 
#define VtabOnConflict_doc   "Sq3LiteC::VtabOnConflict $sq3lite"
 
#define WalAutocheckpoint_doc   "Sq3LiteC::WalAutocheckpoint $db N:int32"
 
#define DbStatus_doc   "{pCur:int32 pHiwtr:int32} [Sq3LiteC::DbStatus $sq3lite op:Sq3DbStatusE resetFlg:bool]"
 
#define TableColumnMetadata_doc   "{pzDataType:string pzCollSeq:string pNotNull:int32 pPrimaryKey:int32 pAutoinc:int32} [Sq3LiteC::TableColumnMetadata $db zDbName:string zTableName:string zColumnName:string]"
 
#define WalCheckpointV2_doc   "{pnLog:int32 pnCkpt:int32} [Sq3LiteC::WalCheckpointV2 $db zDb:string eMode:int32]"
 

Functions

static MK_PTR atlsq3lite_Sq3LiteC_selfCreate (MK_RT mkrt, MK_OBJ const obj, MK_PTR const env)
 
static void atlsq3lite_Sq3LiteC_selfDelete (MK_RT mkrt, MK_PTR selfP, MK_PTR const env)
 
static void atlsq3lite_Sq3LiteC_selfUnlink (MK_RT mkrt, MK_PTR selfP, MK_PTR const env)
 
static OT_ProcRet atlsq3lite_Sq3LiteC_HandleResolve (OtClass_ARGS)
  Atl: (static) Sq3LiteC [Sq3LiteC::HandleResolve netHdl:MK_HDL] C-API
Handle-Resolve-Slot - return a Sq3LiteC from netHdl or "MK_NULL" if invalid…
 
MK_DEPRECATED static MK_UNUSED OT_ProcRet atlsq3lite_Sq3LiteC_HandleGet (Sq3LiteC_ARGS)
 
static OT_ProcRet atlsq3lite_Sq3LiteC_Next (Sq3LiteC_ARGS)
  Atl: Sq3LiteC [Sq3LiteC::Next $lite] C-API
get next instance from linked-list of Sq3LiteS type
 
static OT_ProcRet atlsq3lite_Sq3LiteC_Prev (Sq3LiteC_ARGS)
  Atl: Sq3LiteC [Sq3LiteC::Prev $lite] C-API
get previous instance from linked-list of Sq3LiteS type
 
static OT_ProcRet atlsq3lite_Sq3LiteC_Instances (OtClass_ARGS)
  Atl: (static) Sq3LiteC [Sq3LiteC::Instances] C-API
get head-instance from linked-list of Sq3LiteS type …
 
static OT_ProcRet atlsq3lite_Sq3LiteC_GetNull (OtClass_ARGS)
  Atl: (static) Sq3LiteC [Sq3LiteC::GetNull] C-API
Null-Slot - return a Sq3LiteC typed NULL instance …
 
static OT_ProcRet atlsq3lite_Sq3LiteC_BusyTimeout (Sq3LiteC_ARGS)
  Atl: Sq3LiteC::BusyTimeout $sq3lite ms:int32 C-API
Set A Busy Timeout …
 
static OT_ProcRet atlsq3lite_Sq3LiteC_DeclareVtab (Sq3LiteC_ARGS)
  Atl: Sq3LiteC::DeclareVtab $sq3lite zSQL:string C-API
Declare The Schema Of A Virtual Table …
 
static OT_ProcRet atlsq3lite_Sq3LiteC_ExtendedResultCodes (Sq3LiteC_ARGS)
  Atl: Sq3LiteC::ExtendedResultCodes $sq3lite onoff:int32 C-API
Enable Or Disable Extended Result Codes …
 
static OT_ProcRet atlsq3lite_Sq3LiteC_Limit (Sq3LiteC_ARGS)
  Atl: Sq3LiteC::Limit $sq3lite id:Sq3LimitE newVal:int32 C-API
Run-time Limits …
 
static OT_ProcRet atlsq3lite_Sq3LiteC_ErrCode (Sq3LiteC_ARGS)
  Atl: Sq3ErrorE [Sq3LiteC::ErrCode $db] C-API
Error Codes And Messages …
 
static OT_ProcRet atlsq3lite_Sq3LiteC_ErrMsg (Sq3LiteC_ARGS)
  Atl: string [Sq3LiteC::ErrMsg $sq3lite] C-API
Error Codes And Messages …
 
static OT_ProcRet atlsq3lite_Sq3LiteC_ErrorOffset (Sq3LiteC_ARGS)
  Atl: Sq3LiteC::ErrorOffset $db C-API
Error Codes And Messages …
 
static OT_ProcRet atlsq3lite_Sq3LiteC_ExtendetErrCode (Sq3LiteC_ARGS)
  Atl: Sq3ExtendetResultCodesE [Sq3LiteC::ExtendetErrCode $db] C-API
Error Codes And Messages …
 
static OT_ProcRet atlsq3lite_Sq3LiteC_SystemErrno (Sq3LiteC_ARGS)
  Atl: Sq3LiteC::SystemErrno $sq3lite C-API
Low-level system error code …
 
static OT_ProcRet atlsq3lite_Sq3LiteC_ErrStr (OtClass_ARGS)
  Atl: (static) string [Sq3LiteC::ErrStr arg0:int32] C-API
Error Codes And Messages …
 
static OT_ProcRet atlsq3lite_Sq3LiteC_Exec (Sq3LiteC_ARGS)
  Atl: Sq3LiteC::Exec $sq3lite sql:string ?callback_data:callable=NULL? C-API
One-Step Query Execution Interface …
 
static OT_ProcRet atlsq3lite_Sq3LiteC_ExecV2 (Sq3LiteC_ARGS)
  Atl: Sq3LiteC::ExecV2 $sq3lite sql:string ?callback:callable=NULL? 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 atlsq3lite_Sq3LiteC_Sleep (OtClass_ARGS)
  Atl: (static) Sq3LiteC::Sleep arg0:int32 C-API
Suspend Execution For A Short Time …
 
static OT_ProcRet atlsq3lite_Sq3LiteC_GetAutocommit (Sq3LiteC_ARGS)
  Atl: int32 [Sq3LiteC::GetAutocommit $sq3lite] C-API
Test For Auto-Commit Mode …
 
static OT_ProcRet atlsq3lite_Sq3LiteC_LastInsertRowid (Sq3LiteC_ARGS)
  Atl: int64 [Sq3LiteC::LastInsertRowid $sq3lite] C-API
Last Insert Rowid …
 
static OT_ProcRet atlsq3lite_Sq3LiteC_TxnState (Sq3LiteC_ARGS)
  Atl: Sq3LiteC::TxnState $sq3lite zSchema:string C-API
Determine the transaction state of a database …
 
static OT_ProcRet atlsq3lite_Sq3LiteC_VtabOnConflict (Sq3LiteC_ARGS)
  Atl: Sq3LiteC::VtabOnConflict $sq3lite C-API
Determine The Virtual Table Conflict Policy …
 
static OT_ProcRet atlsq3lite_Sq3LiteC_DbStatusBFL (Sq3LiteC_ARGS)
  Atl: MkBufferListC [Sq3LiteC::DbStatusBFL $sq3lite op:Sq3DbStatusE resetFlg:bool] C-API
Database Connection Status …
 
static OT_ProcRet atlsq3lite_Sq3LiteC_DbCacheflush (Sq3LiteC_ARGS)
  Atl: Sq3LiteC::DbCacheflush $sq3lite C-API
Flush caches to disk mid-transaction …
 
static OT_ProcRet atlsq3lite_Sq3LiteC_DbFilename (Sq3LiteC_ARGS)
  Atl: string [Sq3LiteC::DbFilename $db zDbName:string] C-API
Return The Filename For A Database Connection …
 
static OT_ProcRet atlsq3lite_Sq3LiteC_DbName (Sq3LiteC_ARGS)
  Atl: string [Sq3LiteC::DbName $db N:int32] C-API
Return The Schema Name For A Database Connection …
 
static OT_ProcRet atlsq3lite_Sq3LiteC_DbReadonly (Sq3LiteC_ARGS)
  Atl: Sq3LiteC::DbReadonly $db zDbName:string C-API
Determine if a database is read-only …
 
static OT_ProcRet atlsq3lite_Sq3LiteC_DbReleaseMemory (Sq3LiteC_ARGS)
  Atl: Sq3LiteC::DbReleaseMemory $sq3lite C-API
Free Memory Used By A Database Connection …
 
static OT_ProcRet atlsq3lite_Sq3LiteC_Deserialize (Sq3LiteC_ARGS)
  Atl: Sq3LiteC::Deserialize $sq3lite zSchema:string pData:binary mFlags:Sq3DeSerializeEF C-API
Deserialize a database …
 
static OT_ProcRet atlsq3lite_Sq3LiteC_DropModules (Sq3LiteC_ARGS)
  Atl: Sq3LiteC::DropModules $sq3lite azKeepBfl:MkBufferListC C-API
Remove Unnecessary Virtual Table Implementations …
 
MK_DEPRECATED static MK_UNUSED OT_ProcRet atlsq3lite_Sq3LiteC_Log (Sq3LiteC_ARGS)
 
static OT_ProcRet atlsq3lite_Sq3LiteC_OverloadFunction (Sq3LiteC_ARGS)
  Atl: Sq3LiteC::OverloadFunction $sq3lite zFuncName:string nArg:int32 C-API
Overload A Function For A Virtual Table …
 
static OT_ProcRet atlsq3lite_Sq3LiteC_Serialize (Sq3LiteC_ARGS)
  Atl: binary [Sq3LiteC::Serialize $sq3lite zSchema:string mFlags:Sq3SerializeE] C-API
Serialize a database …
 
static OT_ProcRet atlsq3lite_Sq3LiteC_DbStatus (Sq3LiteC_ARGS)
  Atl: {pCur:int32 pHiwtr:int32} [Sq3LiteC::DbStatus $sq3lite op:Sq3DbStatusE resetFlg:bool] C-API
Database Connection Status …
 
static OT_ProcRet atlsq3lite_Sq3LiteC_TableColumnMetadata (Sq3LiteC_ARGS)
  Atl: {pzDataType:string pzCollSeq:string pNotNull:int32 pPrimaryKey:int32 pAutoinc:int32} [Sq3LiteC::TableColumnMetadata $db zDbName:string zTableName:string zColumnName:string] C-API
Extract Metadata About A Column Of A Table …
 
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 …
 
static OT_ProcRet atlsq3lite_Sq3LiteC_Interrupt (Sq3LiteC_ARGS)
  Atl: Sq3LiteC::Interrupt $sq3lite C-API
Interrupt A Long-Running Query …
 
static OT_ProcRet atlsq3lite_Sq3LiteC_IsInterrupted (Sq3LiteC_ARGS)
  Atl: bool [Sq3LiteC::IsInterrupted $sq3lite] C-API
Interrupt A Long-Running Query …
 
static OT_ProcRet atlsq3lite_Sq3LiteC_Changes (Sq3LiteC_ARGS)
  Atl: int32 [Sq3LiteC::Changes $sq3lite] C-API
Count The Number Of Rows Modified …
 
static OT_ProcRet atlsq3lite_Sq3LiteC_Changes64 (Sq3LiteC_ARGS)
  Atl: int64 [Sq3LiteC::Changes64 $sq3lite] C-API
Count The Number Of Rows Modified …
 
static OT_ProcRet atlsq3lite_Sq3LiteC_SetLastInsertRowid (Sq3LiteC_ARGS)
  Atl: Sq3LiteC::SetLastInsertRowid $sq3lite arg1:int64 C-API
Set the Last Insert Rowid value …
 
static OT_ProcRet atlsq3lite_Sq3LiteC_TotalChanges (Sq3LiteC_ARGS)
  Atl: int32 [Sq3LiteC::TotalChanges $sq3lite] C-API
Total Number Of Rows Modified …
 
static OT_ProcRet atlsq3lite_Sq3LiteC_TotalChanges64 (Sq3LiteC_ARGS)
  Atl: int64 [Sq3LiteC::TotalChanges64 $sq3lite] C-API
Total Number Of Rows Modified …
 
static OT_ProcRet atlsq3lite_Sq3LiteC_CTOR (CONSTR_ARGS)
  Atl: (constructor,static) Sq3LiteC [Sq3LiteC::CTOR filename:string ?flags:Sq3OpenEF={SQ3_OPEN_READWRITE SQ3_OPEN_CREATE}? ?zVfs:string="NULL"?] C-API
Opening A New Database Connection …
 
static OT_ProcRet atlsq3lite_Sq3LiteC_OpenV2 (OtClass_ARGS)
  Atl: (constructor,static) Sq3LiteC [Sq3LiteC::OpenV2 filename:string ?flags:Sq3OpenEF={SQ3_OPEN_READWRITE SQ3_OPEN_CREATE}? ?zVfs:string="NULL"?] C-API
Opening A New Database Connection …
 
static OT_ProcRet atlsq3lite_Sq3LiteC_PrepareV2 (Sq3LiteC_ARGS)
  Atl: (constructor) Sq3StmtC [Sq3LiteC::PrepareV2 $db zSql:string] C-API
Compiling An SQL Statement …
 
static OT_ProcRet atlsq3lite_Sq3LiteC_CloseV2 (Sq3LiteC_ARGS)
  Atl: (destructor) Sq3LiteC::CloseV2 $sq3lite C-API
Closing A Database Connection …
 
int atlsq3lite_pSq3LiteC_Init (OT_SQ3_ARGS OT_NS_T ns)
 

Variables

static const OtObjProcDefS atlsq3lite_sOtClassDef []
 
static const OtObjProcDefS atlsq3lite_sInstanceDef []
 

Detailed Description

tag: nhi1-release-250425

Definition in file Sq3LiteC_atl.c.

Macro Definition Documentation

◆ BusyTimeout_doc

#define BusyTimeout_doc   "Sq3LiteC::BusyTimeout $sq3lite ms:int32"

Definition at line 115 of file Sq3LiteC_atl.c.

◆ Changes64_doc

#define Changes64_doc   "int64 [Sq3LiteC::Changes64 $sq3lite]"

Definition at line 117 of file Sq3LiteC_atl.c.

◆ Changes_doc

#define Changes_doc   "int32 [Sq3LiteC::Changes $sq3lite]"

Definition at line 116 of file Sq3LiteC_atl.c.

◆ ClassInit

#define ClassInit

Definition at line 57 of file Sq3LiteC_atl.c.

57#define ClassInit \
58 /* if not already done, initialize NEW META type */ \
59 if (Sq3LiteCTT == NULL) Sq3LiteCTT = Sq3LiteSTT; \
60 \
61 /* protect against double call */ \
62 if (Sq3LiteCTT->selfCreate == NS(Sq3LiteC_selfCreate)) return MK_OK; \
63 \
64 /* add "selfCreate" and "selfDelete" feature to the META-Class */ \
65 Sq3LiteCTT->selfCreate = NS(Sq3LiteC_selfCreate); \
66 Sq3LiteCTT->selfDelete = NS(Sq3LiteC_selfDelete); \
67 Sq3LiteCTT->selfUnlink = NS(Sq3LiteC_selfUnlink); \
68 \
69 /* create the ATL-class */ \
70 OT_CLASS = AltClassDef(Sq3LiteCTT,&asq3rt->AtlSq3LiteC_NS); \
71 if (OT_CLASS == NULL) goto error; \
72 OT_REF_INCR(OT_CLASS); \
73 \
74 /* create the ATL static Methods */ \
75 check_LNG(AtlUnknownSetup (NS(sOtClassDef),asq3rt)) goto error; \
76 \
77 /* create the ATL instance Methods */ \
78 check_LNG(AtlUnknownSetup (NS(sInstanceDef),asq3rt)) goto error; \
79 \
80 /* after class was modified, recompile the class */ \
81 RL_init(2, recompile, RL_T(0,RecompileN)); RL_O(1,OT_CLASS) ; \
82 int retI = RL_EvalEx(0); \
83 if (retI != TCL_OK) return retI; \
84 \
85 /* define the "NULL" object */ \
86 OT_NULL = AtomCreateNULL(OT_CLASS, "::Sq3LiteC::MK_NULL", (MK_PTR)asq3rt); \
87 if (OT_NULL == NULL) goto error; \
88 OT_REF_INCR(OT_NULL);

◆ CloseV2_doc

#define CloseV2_doc   "Sq3LiteC::CloseV2 $sq3lite"

Definition at line 118 of file Sq3LiteC_atl.c.

◆ CTOR_doc

#define CTOR_doc   "Sq3LiteC [Sq3LiteC::CTOR filename:string ?flags:Sq3OpenEF={SQ3_OPEN_READWRITE SQ3_OPEN_CREATE}? ?zVfs:string=\"NULL\"?]"

Definition at line 94 of file Sq3LiteC_atl.c.

◆ DbCacheflush_doc

#define DbCacheflush_doc   "Sq3LiteC::DbCacheflush $sq3lite"

Definition at line 119 of file Sq3LiteC_atl.c.

◆ DbFilename_doc

#define DbFilename_doc   "string [Sq3LiteC::DbFilename $db zDbName:string]"

Definition at line 120 of file Sq3LiteC_atl.c.

◆ DbName_doc

#define DbName_doc   "string [Sq3LiteC::DbName $db N:int32]"

Definition at line 121 of file Sq3LiteC_atl.c.

◆ DbReadonly_doc

#define DbReadonly_doc   "Sq3LiteC::DbReadonly $db zDbName:string"

Definition at line 122 of file Sq3LiteC_atl.c.

◆ DbReleaseMemory_doc

#define DbReleaseMemory_doc   "Sq3LiteC::DbReleaseMemory $sq3lite"

Definition at line 123 of file Sq3LiteC_atl.c.

◆ DbStatus_doc

#define DbStatus_doc   "{pCur:int32 pHiwtr:int32} [Sq3LiteC::DbStatus $sq3lite op:Sq3DbStatusE resetFlg:bool]"

Definition at line 152 of file Sq3LiteC_atl.c.

◆ DbStatusBFL_doc

#define DbStatusBFL_doc   "MkBufferListC [Sq3LiteC::DbStatusBFL $sq3lite op:Sq3DbStatusE resetFlg:bool]"

Definition at line 111 of file Sq3LiteC_atl.c.

◆ DeclareVtab_doc

#define DeclareVtab_doc   "Sq3LiteC::DeclareVtab $sq3lite zSQL:string"

Definition at line 124 of file Sq3LiteC_atl.c.

◆ Deserialize_doc

#define Deserialize_doc   "Sq3LiteC::Deserialize $sq3lite zSchema:string pData:binary mFlags:Sq3DeSerializeEF"

Definition at line 125 of file Sq3LiteC_atl.c.

◆ DropModules_doc

#define DropModules_doc   "Sq3LiteC::DropModules $sq3lite azKeepBfl:MkBufferListC"

Definition at line 126 of file Sq3LiteC_atl.c.

◆ ErrCode_doc

#define ErrCode_doc   "Sq3ErrorE [Sq3LiteC::ErrCode $db]"

Definition at line 127 of file Sq3LiteC_atl.c.

◆ ErrMsg_doc

#define ErrMsg_doc   "string [Sq3LiteC::ErrMsg $sq3lite]"

Definition at line 128 of file Sq3LiteC_atl.c.

◆ ErrorOffset_doc

#define ErrorOffset_doc   "Sq3LiteC::ErrorOffset $db"

Definition at line 129 of file Sq3LiteC_atl.c.

◆ ErrStr_doc

#define ErrStr_doc   "string [Sq3LiteC::ErrStr arg0:int32]"

Definition at line 103 of file Sq3LiteC_atl.c.

◆ Exec_doc

#define Exec_doc   "Sq3LiteC::Exec $sq3lite sql:string ?callback_data:callable=NULL?"

Definition at line 130 of file Sq3LiteC_atl.c.

◆ ExecV2_doc

#define ExecV2_doc   "Sq3LiteC::ExecV2 $sq3lite sql:string ?callback:callable=NULL?"

Definition at line 131 of file Sq3LiteC_atl.c.

◆ ExtendedResultCodes_doc

#define ExtendedResultCodes_doc   "Sq3LiteC::ExtendedResultCodes $sq3lite onoff:int32"

Definition at line 132 of file Sq3LiteC_atl.c.

◆ ExtendetErrCode_doc

#define ExtendetErrCode_doc   "Sq3ExtendetResultCodesE [Sq3LiteC::ExtendetErrCode $db]"

Definition at line 133 of file Sq3LiteC_atl.c.

◆ GetAutocommit_doc

#define GetAutocommit_doc   "int32 [Sq3LiteC::GetAutocommit $sq3lite]"

Definition at line 134 of file Sq3LiteC_atl.c.

◆ GetNull_doc

#define GetNull_doc   "Sq3LiteC [Sq3LiteC::GetNull]"

Definition at line 98 of file Sq3LiteC_atl.c.

◆ HandleResolve_doc

#define HandleResolve_doc   "Sq3LiteC [Sq3LiteC::HandleResolve netHdl:MK_HDL]"

Definition at line 99 of file Sq3LiteC_atl.c.

◆ Instances_doc

#define Instances_doc   "Sq3LiteC [Sq3LiteC::Instances]"

Definition at line 100 of file Sq3LiteC_atl.c.

◆ Interrupt_doc

#define Interrupt_doc   "Sq3LiteC::Interrupt $sq3lite"

Definition at line 136 of file Sq3LiteC_atl.c.

◆ IsInterrupted_doc

#define IsInterrupted_doc   "bool [Sq3LiteC::IsInterrupted $sq3lite]"

Definition at line 137 of file Sq3LiteC_atl.c.

◆ LastInsertRowid_doc

#define LastInsertRowid_doc   "int64 [Sq3LiteC::LastInsertRowid $sq3lite]"

Definition at line 138 of file Sq3LiteC_atl.c.

◆ Limit_doc

#define Limit_doc   "Sq3LiteC::Limit $sq3lite id:Sq3LimitE newVal:int32"

Definition at line 139 of file Sq3LiteC_atl.c.

◆ META_FILE_NAME

#define META_FILE_NAME   "Sq3LiteC_atl.c"

Definition at line 11 of file Sq3LiteC_atl.c.

◆ Next_doc

#define Next_doc   "Sq3LiteC [Sq3LiteC::Next $lite]"

Definition at line 107 of file Sq3LiteC_atl.c.

◆ OpenV2_doc

#define OpenV2_doc   "Sq3LiteC [Sq3LiteC::OpenV2 filename:string ?flags:Sq3OpenEF={SQ3_OPEN_READWRITE SQ3_OPEN_CREATE}? ?zVfs:string=\"NULL\"?]"

Definition at line 95 of file Sq3LiteC_atl.c.

◆ OT_CLASS

#define OT_CLASS   asq3rt->AtlSq3LiteC

Definition at line 15 of file Sq3LiteC_atl.c.

◆ OT_CLASS_NAME

#define OT_CLASS_NAME   "Sq3LiteC"

Definition at line 17 of file Sq3LiteC_atl.c.

◆ OT_NULL

#define OT_NULL   asq3rt->AtlSq3LiteC_MK_NULL

Definition at line 16 of file Sq3LiteC_atl.c.

◆ OT_retObj_CONSTR

#define OT_retObj_CONSTR ( x)
Value:
#define OT_SELF
#define AtomInit(...)
#define OT_retObj_SET(val)
#define Sq3LiteC_X2obj(x)

Definition at line 54 of file Sq3LiteC_atl.c.

◆ OT_SETUP_hdl

#define OT_SETUP_hdl   SetupHdlFromMetaData_2(SQ3_LITE)

Definition at line 47 of file Sq3LiteC_atl.c.

◆ OT_SETUP_hdl__null_allow

#define OT_SETUP_hdl__null_allow   SetupHdlFromMetaData__null_allow_2(SQ3_LITE)

Definition at line 48 of file Sq3LiteC_atl.c.

◆ OT_SETUP_hdl_constr

#define OT_SETUP_hdl_constr   SetupHdlConstr(Sq3LiteC)

Definition at line 50 of file Sq3LiteC_atl.c.

◆ OT_SETUP_hdl_destr

#define OT_SETUP_hdl_destr   SetupHdlFromMetaData__null_allow_2(SQ3_LITE)

Definition at line 49 of file Sq3LiteC_atl.c.

◆ OT_SETUP_hdl_static

#define OT_SETUP_hdl_static   SetupHdlStatic(Sq3LiteC)

Definition at line 52 of file Sq3LiteC_atl.c.

◆ OT_SETUP_hdl_static_constr

#define OT_SETUP_hdl_static_constr   OT_SETUP_hdl_static

Definition at line 51 of file Sq3LiteC_atl.c.

◆ OverloadFunction_doc

#define OverloadFunction_doc   "Sq3LiteC::OverloadFunction $sq3lite zFuncName:string nArg:int32"

Definition at line 141 of file Sq3LiteC_atl.c.

◆ PrepareV2_doc

#define PrepareV2_doc   "Sq3StmtC [Sq3LiteC::PrepareV2 $db zSql:string]"

Definition at line 112 of file Sq3LiteC_atl.c.

◆ Prev_doc

#define Prev_doc   "Sq3LiteC [Sq3LiteC::Prev $lite]"

Definition at line 108 of file Sq3LiteC_atl.c.

◆ SELF2HDL

#define SELF2HDL ( 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 19 of file Sq3LiteC_atl.c.

◆ Serialize_doc

#define Serialize_doc   "binary [Sq3LiteC::Serialize $sq3lite zSchema:string mFlags:Sq3SerializeE]"

Definition at line 142 of file Sq3LiteC_atl.c.

◆ SetLastInsertRowid_doc

#define SetLastInsertRowid_doc   "Sq3LiteC::SetLastInsertRowid $sq3lite arg1:int64"

Definition at line 143 of file Sq3LiteC_atl.c.

◆ Sleep_doc

#define Sleep_doc   "Sq3LiteC::Sleep arg0:int32"

Definition at line 104 of file Sq3LiteC_atl.c.

◆ SystemErrno_doc

#define SystemErrno_doc   "Sq3LiteC::SystemErrno $sq3lite"

Definition at line 144 of file Sq3LiteC_atl.c.

◆ TableColumnMetadata_doc

#define TableColumnMetadata_doc   "{pzDataType:string pzCollSeq:string pNotNull:int32 pPrimaryKey:int32 pAutoinc:int32} [Sq3LiteC::TableColumnMetadata $db zDbName:string zTableName:string zColumnName:string]"

Definition at line 153 of file Sq3LiteC_atl.c.

◆ TotalChanges64_doc

#define TotalChanges64_doc   "int64 [Sq3LiteC::TotalChanges64 $sq3lite]"

Definition at line 146 of file Sq3LiteC_atl.c.

◆ TotalChanges_doc

#define TotalChanges_doc   "int32 [Sq3LiteC::TotalChanges $sq3lite]"

Definition at line 145 of file Sq3LiteC_atl.c.

◆ TxnState_doc

#define TxnState_doc   "Sq3LiteC::TxnState $sq3lite zSchema:string"

Definition at line 147 of file Sq3LiteC_atl.c.

◆ VtabOnConflict_doc

#define VtabOnConflict_doc   "Sq3LiteC::VtabOnConflict $sq3lite"

Definition at line 148 of file Sq3LiteC_atl.c.

◆ WalAutocheckpoint_doc

#define WalAutocheckpoint_doc   "Sq3LiteC::WalAutocheckpoint $db N:int32"

Definition at line 149 of file Sq3LiteC_atl.c.

◆ WalCheckpointV2_doc

#define WalCheckpointV2_doc   "{pnLog:int32 pnCkpt:int32} [Sq3LiteC::WalCheckpointV2 $db zDb:string eMode:int32]"

Definition at line 154 of file Sq3LiteC_atl.c.

Function Documentation

◆ atlsq3lite_pSq3LiteC_Init()

int atlsq3lite_pSq3LiteC_Init ( OT_SQ3_ARGS OT_NS_T ns)

Public API

Definition at line 1145 of file Sq3LiteC_atl.c.

1146{
1147 ClassInit
1148
1149 return TCL_OK;
1150error:
1151 return TCL_ERROR;
1152}
#define ClassInit

◆ atlsq3lite_Sq3LiteC_selfCreate()

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

Definition at line 28 of file Sq3LiteC_atl.c.

28 {
29 SETUP_asq3rt(env);
30 return AtomMake(obj,OT_CLASS,NULL,NULL,env);
31}
#define AtomMake(...)
#define SETUP_asq3rt(r)
#define OT_CLASS

◆ atlsq3lite_Sq3LiteC_selfDelete()

static void atlsq3lite_Sq3LiteC_selfDelete ( MK_RT mkrt,
MK_PTR selfP,
MK_PTR const env )
static

Definition at line 34 of file Sq3LiteC_atl.c.

34 {
35 OT_SELF_T selfO = selfP;
36 SETUP_asq3rt(env);
37 MK(AtomDeleteHard) (OT_MK_CALL selfO);
38}
#define MK(n)
MOX_OBJ_T OT_SELF_T
#define OT_MK_CALL

◆ atlsq3lite_Sq3LiteC_selfUnlink()

static void atlsq3lite_Sq3LiteC_selfUnlink ( MK_RT mkrt,
MK_PTR selfP,
MK_PTR const env )
static

Definition at line 41 of file Sq3LiteC_atl.c.

41 {
42 OT_SELF_T selfO = selfP;
43 SETUP_asq3rt(env);
44 return MK(AtomUnlink) (OT_MK_CALL selfO);
45}

Variable Documentation

◆ atlsq3lite_sInstanceDef

const OtObjProcDefS atlsq3lite_sInstanceDef[]
static

Definition at line 1079 of file Sq3LiteC_atl.c.

1079 {
1080 // BEGIN-OBJ - created by 'atl_MqS.tcl -i NHI1_HOME/theSq3Lite/c/gen/c_sq3lite.meta' - DO NOT change
1081
1082 // doc-key: Sq3LiteC,Sq3Lite,oC_
1083 { "::Sq3LiteC::Sq3LiteC" , NS(Sq3LiteC_CTOR) },
1084
1085 // doc-key: Sq3LiteC,Sq3Lite,oc_
1086 { "::Sq3LiteC::Next" , NS(Sq3LiteC_Next) },
1087 { "::Sq3LiteC::Prev" , NS(Sq3LiteC_Prev) },
1088
1089 // doc-key: Sq3LiteC,Sq3Lite,oco
1090 { "::Sq3LiteC::DbStatusBFL" , NS(Sq3LiteC_DbStatusBFL) },
1091 { "::Sq3LiteC::PrepareV2" , NS(Sq3LiteC_PrepareV2) },
1092
1093 // doc-key: Sq3LiteC,Sq3Lite,om_
1094 { "::Sq3LiteC::BusyTimeout" , NS(Sq3LiteC_BusyTimeout) },
1095 { "::Sq3LiteC::Changes" , NS(Sq3LiteC_Changes) },
1096 { "::Sq3LiteC::Changes64" , NS(Sq3LiteC_Changes64) },
1097 { "::Sq3LiteC::CloseV2" , NS(Sq3LiteC_CloseV2) },
1098 { "::Sq3LiteC::DbCacheflush" , NS(Sq3LiteC_DbCacheflush) },
1099 { "::Sq3LiteC::DbFilename" , NS(Sq3LiteC_DbFilename) },
1100 { "::Sq3LiteC::DbName" , NS(Sq3LiteC_DbName) },
1101 { "::Sq3LiteC::DbReadonly" , NS(Sq3LiteC_DbReadonly) },
1102 { "::Sq3LiteC::DbReleaseMemory" , NS(Sq3LiteC_DbReleaseMemory) },
1103 { "::Sq3LiteC::DeclareVtab" , NS(Sq3LiteC_DeclareVtab) },
1104 { "::Sq3LiteC::Deserialize" , NS(Sq3LiteC_Deserialize) },
1105 { "::Sq3LiteC::DropModules" , NS(Sq3LiteC_DropModules) },
1106 { "::Sq3LiteC::ErrCode" , NS(Sq3LiteC_ErrCode) },
1107 { "::Sq3LiteC::ErrMsg" , NS(Sq3LiteC_ErrMsg) },
1108 { "::Sq3LiteC::ErrorOffset" , NS(Sq3LiteC_ErrorOffset) },
1109 { "::Sq3LiteC::Exec" , NS(Sq3LiteC_Exec) },
1110 { "::Sq3LiteC::ExecV2" , NS(Sq3LiteC_ExecV2) },
1111 { "::Sq3LiteC::ExtendedResultCodes" , NS(Sq3LiteC_ExtendedResultCodes) },
1112 { "::Sq3LiteC::ExtendetErrCode" , NS(Sq3LiteC_ExtendetErrCode) },
1113 { "::Sq3LiteC::GetAutocommit" , NS(Sq3LiteC_GetAutocommit) },
1114 // skip class-overload: HandleGet → MkObjectHandleGet
1115 { "::Sq3LiteC::Interrupt" , NS(Sq3LiteC_Interrupt) },
1116 { "::Sq3LiteC::IsInterrupted" , NS(Sq3LiteC_IsInterrupted) },
1117 { "::Sq3LiteC::LastInsertRowid" , NS(Sq3LiteC_LastInsertRowid) },
1118 { "::Sq3LiteC::Limit" , NS(Sq3LiteC_Limit) },
1119 // skip class-overload: Log → MkObjectLog
1120 { "::Sq3LiteC::OverloadFunction" , NS(Sq3LiteC_OverloadFunction) },
1121 { "::Sq3LiteC::Serialize" , NS(Sq3LiteC_Serialize) },
1122 { "::Sq3LiteC::SetLastInsertRowid" , NS(Sq3LiteC_SetLastInsertRowid) },
1123 { "::Sq3LiteC::SystemErrno" , NS(Sq3LiteC_SystemErrno) },
1124 { "::Sq3LiteC::TotalChanges" , NS(Sq3LiteC_TotalChanges) },
1125 { "::Sq3LiteC::TotalChanges64" , NS(Sq3LiteC_TotalChanges64) },
1126 { "::Sq3LiteC::TxnState" , NS(Sq3LiteC_TxnState) },
1127 { "::Sq3LiteC::VtabOnConflict" , NS(Sq3LiteC_VtabOnConflict) },
1128 { "::Sq3LiteC::WalAutocheckpoint" , NS(Sq3LiteC_WalAutocheckpoint) },
1129
1130 // doc-key: Sq3LiteC,Sq3Lite,omo
1131 { "::Sq3LiteC::DbStatus" , NS(Sq3LiteC_DbStatus) },
1132 { "::Sq3LiteC::TableColumnMetadata" , NS(Sq3LiteC_TableColumnMetadata) },
1133 { "::Sq3LiteC::WalCheckpointV2" , NS(Sq3LiteC_WalCheckpointV2) },
1134
1135 // END-OBJ - created by 'atl_MqS.tcl -i NHI1_HOME/theSq3Lite/c/gen/c_sq3lite.meta' - DO NOT change
1136 { NULL }
1137};
#define NS(n)

◆ atlsq3lite_sOtClassDef

const OtObjProcDefS atlsq3lite_sOtClassDef[]
static
Initial value:
= {
{ "::Sq3LiteC::OpenV2" , atlsq3lite_Sq3LiteC_OpenV2 },
{ "::Sq3LiteC::GetNull" , atlsq3lite_Sq3LiteC_GetNull },
{ "::Sq3LiteC::HandleResolve" , atlsq3lite_Sq3LiteC_HandleResolve },
{ "::Sq3LiteC::Instances" , atlsq3lite_Sq3LiteC_Instances },
{ "::Sq3LiteC::ErrStr" , atlsq3lite_Sq3LiteC_ErrStr },
{ "::Sq3LiteC::Sleep" , atlsq3lite_Sq3LiteC_Sleep },
{ NULL }
}
static OT_ProcRet atlsq3lite_Sq3LiteC_GetNull(OtClass_ARGS)
Atl: (static) Sq3LiteC [Sq3LiteC::GetNull] → C-API Null-Slot - return a Sq3LiteC typed NULL inst...
static OT_ProcRet atlsq3lite_Sq3LiteC_Instances(OtClass_ARGS)
Atl: (static) Sq3LiteC [Sq3LiteC::Instances] → C-API get head-instance from linked-list of Sq3Li...
static OT_ProcRet atlsq3lite_Sq3LiteC_HandleResolve(OtClass_ARGS)
Atl: (static) Sq3LiteC [Sq3LiteC::HandleResolve netHdl:MK_HDL] → C-API Handle-Resolve-Slot - ret...
static OT_ProcRet atlsq3lite_Sq3LiteC_ErrStr(OtClass_ARGS)
Atl: (static) string [Sq3LiteC::ErrStr arg0:int32] → C-API Error Codes And Messages …
static OT_ProcRet atlsq3lite_Sq3LiteC_Sleep(OtClass_ARGS)
Atl: (static) Sq3LiteC::Sleep arg0:int32 → C-API Suspend Execution For A Short Time …
static OT_ProcRet atlsq3lite_Sq3LiteC_OpenV2(OtClass_ARGS)
Atl: (constructor,static) Sq3LiteC [Sq3LiteC::OpenV2 filename:string ?flags:Sq3OpenEF={SQ3_OPEN_READW...

Definition at line 1058 of file Sq3LiteC_atl.c.

1058 {
1059 // BEGIN-CLASS - created by 'atl_MqS.tcl -i NHI1_HOME/theSq3Lite/c/gen/c_sq3lite.meta' - DO NOT change
1060
1061 // doc-key: Sq3LiteC,Sq3Lite,sCo
1062 { "::Sq3LiteC::OpenV2" , NS(Sq3LiteC_OpenV2) },
1063
1064 // doc-key: Sq3LiteC,Sq3Lite,sc_
1065 { "::Sq3LiteC::GetNull" , NS(Sq3LiteC_GetNull) },
1066 { "::Sq3LiteC::HandleResolve" , NS(Sq3LiteC_HandleResolve) },
1067 { "::Sq3LiteC::Instances" , NS(Sq3LiteC_Instances) },
1068
1069 // doc-key: Sq3LiteC,Sq3Lite,sm_
1070 { "::Sq3LiteC::ErrStr" , NS(Sq3LiteC_ErrStr) },
1071 { "::Sq3LiteC::Sleep" , NS(Sq3LiteC_Sleep) },
1072
1073 // END-CLASS - created by 'atl_MqS.tcl -i NHI1_HOME/theSq3Lite/c/gen/c_sq3lite.meta' - DO NOT change
1074 { NULL }
1075};