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

Sq3StmtC_tcl.c - 10 Apr 2025 - aotto1968. More...

+ Include dependency graph for Sq3StmtC_tcl.c:

Go to the source code of this file.

Macros

#define META_FILE_NAME   "Sq3StmtC_tcl.c"
 
#define OT_CLASS   NS(Sq3StmtC)
 
#define OT_CLASS_NAME   "Sq3StmtC"
 
#define OBJECT2STMT(O)
 
#define OT_SETUP_hdl_static_constr_pre
 
#define OT_SETUP_hdl_static_constr
 
#define OT_SETUP_hdl_static
 
#define OT_SETUP_hdl   SetupHdlFromMetaData_2(STMT,SQ3_STMT);
 
#define OT_SETUP_hdl__null_allow   SetupHdlFromMetaData__null_allow_2(STMT,SQ3_STMT);
 
#define OT_SETUP_hdl_destr   SetupHdlFromMetaData__null_allow_2(STMT,SQ3_STMT);
 
#define OT_SETUP_hdl_constr_pre
 
#define OT_SETUP_hdl_constr
 
#define SetupRtFromHdl_XN(hdl)
 
#define SetupRtFromHdl_X(hdl)
 
#define ClassInit
 
#define VER   TCL_OO_METHOD_VERSION_CURRENT
 
#define CTOR_doc   "Sq3StmtC [Sq3StmtC CTOR db:Sq3LiteC zSql:string]"
 
#define PrepareV2_doc   "Sq3StmtC [Sq3StmtC PrepareV2 db:Sq3LiteC zSql:string]"
 
#define PrepareV3_doc   "Sq3StmtC [Sq3StmtC PrepareV3 db:Sq3LiteC zSql:string ?prepFlags:Sq3PrepareEF=SQ3_PREPARE_NO?]"
 
#define GetNull_doc   "Sq3StmtC [Sq3StmtC GetNull]"
 
#define HandleResolve_doc   "Sq3StmtC [Sq3StmtC HandleResolve netHdl:MK_HDL]"
 
#define Instances_doc   "Sq3StmtC [Sq3StmtC Instances]"
 
#define NextStmt_doc   "Sq3StmtC [Sq3StmtC NextStmt pDb:Sq3LiteC ?pStmt:Sq3StmtC=\"MK_NULL\"?]"
 
#define ColumnValue_doc   "Sq3ValueC [$sq3stmt ColumnValue iCol:int32]"
 
#define DbHandle_doc   "Sq3LiteC [$sq3stmt DbHandle]"
 
#define Next_doc   "Sq3StmtC [$stmt Next]"
 
#define Prev_doc   "Sq3StmtC [$stmt Prev]"
 
#define BindBlob_doc   "$sq3stmt BindBlob pos:int32 blob:binary"
 
#define BindDouble_doc   "$sq3stmt BindDouble arg1:int32 arg2:double"
 
#define BindInt_doc   "$sq3stmt BindInt arg1:int32 arg2:int32"
 
#define BindInt64_doc   "$sq3stmt BindInt64 arg1:int32 arg2:int64"
 
#define BindNull_doc   "$sq3stmt BindNull arg1:int32"
 
#define BindParameterCount_doc   "$sq3stmt BindParameterCount"
 
#define BindParameterIndex_doc   "$sq3stmt BindParameterIndex zName:string"
 
#define BindParameterName_doc   "string [$sq3stmt BindParameterName arg1:int32]"
 
#define BindText_doc   "$sq3stmt BindText pos:int32 text:string"
 
#define BindValue_doc   "$sq3stmt BindValue arg1:int32 arg2:Sq3ValueC"
 
#define BindZeroblob_doc   "$sq3stmt BindZeroblob arg1:int32 n:int32"
 
#define BindZeroblob64_doc   "$sq3stmt BindZeroblob64 arg1:int32 arg2:int64"
 
#define Busy_doc   "$sq3stmt Busy"
 
#define ClearBindings_doc   "$sq3stmt ClearBindings"
 
#define ColumnBlob_doc   "binary [$sq3stmt ColumnBlob iCol:int32]"
 
#define ColumnBytes_doc   "int32 [$sq3stmt ColumnBytes iCol:int32]"
 
#define ColumnCount_doc   "int32 [$pStmt ColumnCount]"
 
#define ColumnDouble_doc   "double [$sq3stmt ColumnDouble iCol:int32]"
 
#define ColumnInt_doc   "int32 [$sq3stmt ColumnInt iCol:int32]"
 
#define ColumnInt64_doc   "int64 [$sq3stmt ColumnInt64 iCol:int32]"
 
#define ColumnName_doc   "string [$sq3stmt ColumnName N:int32]"
 
#define ColumnText_doc   "string [$sq3stmt ColumnText iCol:int32]"
 
#define ColumnType_doc   "Sq3TypeE [$sq3stmt ColumnType iCol:int32]"
 
#define DataCount_doc   "$pStmt DataCount"
 
#define ExpandedSql_doc   "string [$pStmt ExpandedSql]"
 
#define Explain_doc   "$pStmt Explain eMode:int32"
 
#define Finalize_doc   "$pStmt Finalize"
 
#define GetPzTail_doc   "string [$sq3stmt GetPzTail]"
 
#define IsExplain_doc   "$pStmt IsExplain"
 
#define Readonly_doc   "$pStmt Readonly"
 
#define Reset_doc   "$pStmt Reset"
 
#define Sql_doc   "string [$pStmt Sql]"
 
#define Status_doc   "$sq3stmt Status op:Sq3StmtStatusE resetFlg:bool"
 
#define Step_doc   "Sq3ErrorE [$sq3stmt Step]"
 

Functions

static MK_PTR tclsq3lite_Sq3StmtC_selfCreate (MK_RT mkrt, MK_OBJ const obj, MK_PTR const env)
 
static void tclsq3lite_Sq3StmtC_selfDelete (MK_RT mkrt, MK_PTR selfP, MK_PTR const env)
 
static void tclsq3lite_Sq3StmtC_selfUnlink (MK_RT mkrt, MK_PTR selfP, MK_PTR const env)
 
static OT_ProcRet tclsq3lite_Sq3StmtC_BindBlob (Sq3StmtC_ARGS)
  Tcl: $sq3stmt BindBlob pos:int32 blob:binary C-API
Bind a MkBinaryR Value To a Prepared Statement …
 
static OT_ProcRet tclsq3lite_Sq3StmtC_BindDouble (Sq3StmtC_ARGS)
  Tcl: $sq3stmt BindDouble arg1:int32 arg2:double C-API
Binding Values To Prepared Statements …
 
static OT_ProcRet tclsq3lite_Sq3StmtC_BindInt (Sq3StmtC_ARGS)
  Tcl: $sq3stmt BindInt arg1:int32 arg2:int32 C-API
Binding Values To Prepared Statements …
 
static OT_ProcRet tclsq3lite_Sq3StmtC_BindInt64 (Sq3StmtC_ARGS)
  Tcl: $sq3stmt BindInt64 arg1:int32 arg2:int64 C-API
Binding Values To Prepared Statements …
 
static OT_ProcRet tclsq3lite_Sq3StmtC_BindNull (Sq3StmtC_ARGS)
  Tcl: $sq3stmt BindNull arg1:int32 C-API
Binding Values To Prepared Statements …
 
static OT_ProcRet tclsq3lite_Sq3StmtC_BindParameterCount (Sq3StmtC_ARGS)
  Tcl: $sq3stmt BindParameterCount C-API
Number Of SQL Parameters …
 
static OT_ProcRet tclsq3lite_Sq3StmtC_BindParameterIndex (Sq3StmtC_ARGS)
  Tcl: $sq3stmt BindParameterIndex zName:string C-API
Index Of A Parameter With A Given Name …
 
static OT_ProcRet tclsq3lite_Sq3StmtC_BindParameterName (Sq3StmtC_ARGS)
  Tcl: string [$sq3stmt BindParameterName arg1:int32] C-API
Name Of A Host Parameter …
 
static OT_ProcRet tclsq3lite_Sq3StmtC_BindText (Sq3StmtC_ARGS)
  Tcl: $sq3stmt BindText pos:int32 text:string C-API
Bind a MkStringR Value To a Prepared Statement …
 
static OT_ProcRet tclsq3lite_Sq3StmtC_BindValue (Sq3StmtC_ARGS)
  Tcl: $sq3stmt BindValue arg1:int32 arg2:Sq3ValueC C-API
Binding Values To Prepared Statements …
 
static OT_ProcRet tclsq3lite_Sq3StmtC_BindZeroblob (Sq3StmtC_ARGS)
  Tcl: $sq3stmt BindZeroblob arg1:int32 n:int32 C-API
Binding Values To Prepared Statements …
 
static OT_ProcRet tclsq3lite_Sq3StmtC_BindZeroblob64 (Sq3StmtC_ARGS)
  Tcl: $sq3stmt BindZeroblob64 arg1:int32 arg2:int64 C-API
Binding Values To Prepared Statements …
 
static OT_ProcRet tclsq3lite_Sq3StmtC_HandleResolve (OtClass_ARGS)
  Tcl: (static) Sq3StmtC [Sq3StmtC HandleResolve netHdl:MK_HDL] C-API
Handle-Resolve-Slot - return a Sq3StmtC from netHdl or "MK_NULL" if invalid…
 
MK_DEPRECATED static MK_UNUSED OT_ProcRet tclsq3lite_Sq3StmtC_HandleGet (Sq3StmtC_ARGS)
 
static OT_ProcRet tclsq3lite_Sq3StmtC_Next (Sq3StmtC_ARGS)
  Tcl: Sq3StmtC [$stmt Next] C-API
get next instance from linked-list of Sq3StmtS type
 
static OT_ProcRet tclsq3lite_Sq3StmtC_Prev (Sq3StmtC_ARGS)
  Tcl: Sq3StmtC [$stmt Prev] C-API
get previous instance from linked-list of Sq3StmtS type
 
static OT_ProcRet tclsq3lite_Sq3StmtC_Instances (OtClass_ARGS)
  Tcl: (static) Sq3StmtC [Sq3StmtC Instances] C-API
get head-instance from linked-list of Sq3StmtS type …
 
static OT_ProcRet tclsq3lite_Sq3StmtC_GetNull (OtClass_ARGS)
  Tcl: (static) Sq3StmtC [Sq3StmtC GetNull] C-API
Null-Slot - return a Sq3StmtC typed NULL instance …
 
static OT_ProcRet tclsq3lite_Sq3StmtC_ColumnValue (Sq3StmtC_ARGS)
  Tcl: Sq3ValueC [$sq3stmt ColumnValue iCol:int32] C-API
Result Values From A Query …
 
static OT_ProcRet tclsq3lite_Sq3StmtC_ColumnBlob (Sq3StmtC_ARGS)
  Tcl: binary [$sq3stmt ColumnBlob iCol:int32] C-API
Result a MkBinaryR Value From A Query.
 
static OT_ProcRet tclsq3lite_Sq3StmtC_ColumnBytes (Sq3StmtC_ARGS)
  Tcl: int32 [$sq3stmt ColumnBytes iCol:int32] C-API
Result Values From A Query …
 
static OT_ProcRet tclsq3lite_Sq3StmtC_ColumnCount (Sq3StmtC_ARGS)
  Tcl: int32 [$pStmt ColumnCount] C-API
Number Of Columns In A Result Set …
 
static OT_ProcRet tclsq3lite_Sq3StmtC_ColumnDouble (Sq3StmtC_ARGS)
  Tcl: double [$sq3stmt ColumnDouble iCol:int32] C-API
Result Values From A Query …
 
static OT_ProcRet tclsq3lite_Sq3StmtC_ColumnInt (Sq3StmtC_ARGS)
  Tcl: int32 [$sq3stmt ColumnInt iCol:int32] C-API
Result Values From A Query …
 
static OT_ProcRet tclsq3lite_Sq3StmtC_ColumnInt64 (Sq3StmtC_ARGS)
  Tcl: int64 [$sq3stmt ColumnInt64 iCol:int32] C-API
Result Values From A Query …
 
static OT_ProcRet tclsq3lite_Sq3StmtC_ColumnName (Sq3StmtC_ARGS)
  Tcl: string [$sq3stmt ColumnName N:int32] C-API
Column Names In A Result Set …
 
static OT_ProcRet tclsq3lite_Sq3StmtC_ColumnText (Sq3StmtC_ARGS)
  Tcl: string [$sq3stmt ColumnText iCol:int32] C-API
Result a MkStringR Value From A Query.
 
static OT_ProcRet tclsq3lite_Sq3StmtC_ColumnType (Sq3StmtC_ARGS)
  Tcl: Sq3TypeE [$sq3stmt ColumnType iCol:int32] C-API
Result Values From A Query …
 
static OT_ProcRet tclsq3lite_Sq3StmtC_DbHandle (Sq3StmtC_ARGS)
  Tcl: Sq3LiteC [$sq3stmt DbHandle] C-API
Find The Database Handle Of A Prepared Statement …
 
static OT_ProcRet tclsq3lite_Sq3StmtC_Busy (Sq3StmtC_ARGS)
  Tcl: $sq3stmt Busy C-API
Determine If A Prepared Statement Has Been Reset …
 
static OT_ProcRet tclsq3lite_Sq3StmtC_DataCount (Sq3StmtC_ARGS)
  Tcl: $pStmt DataCount C-API
Number of columns in a result set …
 
static OT_ProcRet tclsq3lite_Sq3StmtC_IsExplain (Sq3StmtC_ARGS)
  Tcl: $pStmt IsExplain C-API
Query The EXPLAIN Setting For A Prepared Statement …
 
MK_DEPRECATED static MK_UNUSED OT_ProcRet tclsq3lite_Sq3StmtC_Log (Sq3StmtC_ARGS)
 
static OT_ProcRet tclsq3lite_Sq3StmtC_Readonly (Sq3StmtC_ARGS)
  Tcl: $pStmt Readonly C-API
Determine If An SQL Statement Writes The Database …
 
static OT_ProcRet tclsq3lite_Sq3StmtC_Status (Sq3StmtC_ARGS)
  Tcl: $sq3stmt Status op:Sq3StmtStatusE resetFlg:bool C-API
Prepared Statement Status …
 
static OT_ProcRet tclsq3lite_Sq3StmtC_NextStmt (OtClass_ARGS)
  Tcl: (static) Sq3StmtC [Sq3StmtC NextStmt pDb:Sq3LiteC ?pStmt:Sq3StmtC="MK_NULL"?] C-API
Find the next prepared statement …
 
static OT_ProcRet tclsq3lite_Sq3StmtC_ClearBindings (Sq3StmtC_ARGS)
  Tcl: $sq3stmt ClearBindings C-API
Reset All Bindings On A Prepared Statement …
 
static OT_ProcRet tclsq3lite_Sq3StmtC_Explain (Sq3StmtC_ARGS)
  Tcl: $pStmt Explain eMode:int32 C-API
Change The EXPLAIN Setting For A Prepared Statement …
 
static OT_ProcRet tclsq3lite_Sq3StmtC_Reset (Sq3StmtC_ARGS)
  Tcl: $pStmt Reset C-API
Reset A Prepared Statement Object …
 
static OT_ProcRet tclsq3lite_Sq3StmtC_Step (Sq3StmtC_ARGS)
  Tcl: Sq3ErrorE [$sq3stmt Step] C-API
Evaluate An SQL Statement …
 
static OT_ProcRet tclsq3lite_Sq3StmtC_ExpandedSql (Sq3StmtC_ARGS)
  Tcl: string [$pStmt ExpandedSql] C-API
Retrieving Statement SQL …
 
static OT_ProcRet tclsq3lite_Sq3StmtC_GetPzTail (Sq3StmtC_ARGS)
  Tcl: string [$sq3stmt GetPzTail] C-API
return the non compiled sql-statement from Sq3StmtPrepareV2 and Sq3StmtPrepareV3
 
static OT_ProcRet tclsq3lite_Sq3StmtC_Sql (Sq3StmtC_ARGS)
  Tcl: string [$pStmt Sql] C-API
Retrieving Statement SQL …
 
static OT_ProcRet tclsq3lite_Sq3StmtC_CTOR (CONSTR_ARGS)
  Tcl: (constructor,static) Sq3StmtC [Sq3StmtC CTOR db:Sq3LiteC zSql:string] C-API
Compiling An SQL Statement …
 
static OT_ProcRet tclsq3lite_Sq3StmtC_PrepareV2 (OtClass_ARGS)
  Tcl: (constructor,static) Sq3StmtC [Sq3StmtC PrepareV2 db:Sq3LiteC zSql:string] C-API
Compiling An SQL Statement …
 
static OT_ProcRet tclsq3lite_Sq3StmtC_PrepareV3 (OtClass_ARGS)
  Tcl: (constructor,static) Sq3StmtC [Sq3StmtC PrepareV3 db:Sq3LiteC zSql:string ?prepFlags:Sq3PrepareEF=SQ3_PREPARE_NO?] C-API
Compiling An SQL Statement …
 
static OT_ProcRet tclsq3lite_Sq3StmtC_Finalize (Sq3StmtC_ARGS)
  Tcl: (destructor) $pStmt Finalize C-API
Destroy A Prepared Statement Object …
 
int tclsq3lite_pSq3StmtC_Init (MK_RT mkrt, Tcl_Interp *interp, Tcl_Namespace *ns)
 

Variables

__thread OT_CLS_T OT_CLASS = NULL
 
static __thread MK_TYP Sq3StmtCTT = NULL
 
__thread OT_OBJ_T tclsq3lite_Sq3StmtC_MK_NULL = NULL
 
static Tcl_MethodType tclsq3lite_sOtClassDef []
 
static Tcl_MethodType tclsq3lite_sInstanceDef []
 

Detailed Description

Sq3StmtC_tcl.c - 10 Apr 2025 - aotto1968.

Version
220e89cf9473580117e04029d678fcf7e7736959
Date
Thu Apr 10 14:00:03 2025 +0200
Author
aotto1968 aotto.nosp@m.1968.nosp@m.@t-on.nosp@m.line.nosp@m..de

Definition in file Sq3StmtC_tcl.c.

Macro Definition Documentation

◆ BindBlob_doc

#define BindBlob_doc   "$sq3stmt BindBlob pos:int32 blob:binary"

Definition at line 135 of file Sq3StmtC_tcl.c.

◆ BindDouble_doc

#define BindDouble_doc   "$sq3stmt BindDouble arg1:int32 arg2:double"

Definition at line 136 of file Sq3StmtC_tcl.c.

◆ BindInt64_doc

#define BindInt64_doc   "$sq3stmt BindInt64 arg1:int32 arg2:int64"

Definition at line 138 of file Sq3StmtC_tcl.c.

◆ BindInt_doc

#define BindInt_doc   "$sq3stmt BindInt arg1:int32 arg2:int32"

Definition at line 137 of file Sq3StmtC_tcl.c.

◆ BindNull_doc

#define BindNull_doc   "$sq3stmt BindNull arg1:int32"

Definition at line 139 of file Sq3StmtC_tcl.c.

◆ BindParameterCount_doc

#define BindParameterCount_doc   "$sq3stmt BindParameterCount"

Definition at line 140 of file Sq3StmtC_tcl.c.

◆ BindParameterIndex_doc

#define BindParameterIndex_doc   "$sq3stmt BindParameterIndex zName:string"

Definition at line 141 of file Sq3StmtC_tcl.c.

◆ BindParameterName_doc

#define BindParameterName_doc   "string [$sq3stmt BindParameterName arg1:int32]"

Definition at line 142 of file Sq3StmtC_tcl.c.

◆ BindText_doc

#define BindText_doc   "$sq3stmt BindText pos:int32 text:string"

Definition at line 143 of file Sq3StmtC_tcl.c.

◆ BindValue_doc

#define BindValue_doc   "$sq3stmt BindValue arg1:int32 arg2:Sq3ValueC"

Definition at line 144 of file Sq3StmtC_tcl.c.

◆ BindZeroblob64_doc

#define BindZeroblob64_doc   "$sq3stmt BindZeroblob64 arg1:int32 arg2:int64"

Definition at line 146 of file Sq3StmtC_tcl.c.

◆ BindZeroblob_doc

#define BindZeroblob_doc   "$sq3stmt BindZeroblob arg1:int32 n:int32"

Definition at line 145 of file Sq3StmtC_tcl.c.

◆ Busy_doc

#define Busy_doc   "$sq3stmt Busy"

Definition at line 147 of file Sq3StmtC_tcl.c.

◆ ClassInit

#define ClassInit
Value:
/* if not already done, initialize NEW MQ type */ \
if (Sq3StmtCTT == NULL) Sq3StmtCTT = Sq3StmtSTT; \
\
/* protect against double call */ \
if (Sq3StmtCTT->selfCreate == NS(Sq3StmtC_selfCreate)) return MK_OK; \
\
/* add "selfCreate" and "selfDelete" feature to the MQ-Class */ \
Sq3StmtCTT->selfCreate = NS(Sq3StmtC_selfCreate); \
Sq3StmtCTT->selfDelete = NS(Sq3StmtC_selfDelete); \
Sq3StmtCTT->selfUnlink = NS(Sq3StmtC_selfUnlink); \
\
/* create the TCL-class */ \
OT_SELF_T classO = MK(ClassDef)(interp,ns,Sq3StmtCTT); \
check_NULL(classO) goto error; \
OT_CLASS = Tcl_GetObjectAsClass(classO); \
\
/* create the TCL static Methods */ \
static MkThreadLocal OtUnknownS NS(sClassUnknown) = {OT_UNKNOWN_CLASS}; \
check_LNG(MK(UnknownSetup) (interp,classO,NS(sOtClassDef),&NS(sClassUnknown))) goto error; \
\
/* create the TCL instance Methods */ \
static MkThreadLocal OtUnknownS NS(sInstanceUnknown) = {OT_UNKNOWN_INSTANCE}; \
check_LNG(MK(UnknownSetup) (interp,classO,NS(sInstanceDef),&NS(sInstanceUnknown))) goto error; \
\
/* define the "NULL" object */ \
SQ3(Sq3StmtC_MK_NULL) = Tcl_GetObjectName(interp, \
MK(AtomCreate) (MK_RT_CALL interp, NULL /*obj*/, OT_CLASS, "MK_NULL" /*name*/, "::tclsq3lite::Sq3StmtC" /*ns*/) \
); \
Tcl_IncrRefCount(SQ3(Sq3StmtC_MK_NULL));
#define MK(n)
@ OT_UNKNOWN_CLASS
@ OT_UNKNOWN_INSTANCE
Tcl_Object OT_SELF_T
#define SQ3(n)
#define NS(n)
static __thread MK_TYP Sq3StmtCTT
#define OT_CLASS
MK_OK
#define MkThreadLocal
#define MK_RT_CALL
#define Sq3StmtSTT
instance-type as MkTypeS-class-type (cast from Sq3StmtST into MkTypeS) …
MkSelfUnlinkF selfUnlink
MkSelfDeleteF selfDelete
MkSelfCreateF selfCreate

Definition at line 80 of file Sq3StmtC_tcl.c.

80#define ClassInit \
81 /* if not already done, initialize NEW MQ type */ \
82 if (Sq3StmtCTT == NULL) Sq3StmtCTT = Sq3StmtSTT; \
83 \
84 /* protect against double call */ \
85 if (Sq3StmtCTT->selfCreate == NS(Sq3StmtC_selfCreate)) return MK_OK; \
86 \
87 /* add "selfCreate" and "selfDelete" feature to the MQ-Class */ \
88 Sq3StmtCTT->selfCreate = NS(Sq3StmtC_selfCreate); \
89 Sq3StmtCTT->selfDelete = NS(Sq3StmtC_selfDelete); \
90 Sq3StmtCTT->selfUnlink = NS(Sq3StmtC_selfUnlink); \
91 \
92 /* create the TCL-class */ \
93 OT_SELF_T classO = MK(ClassDef)(interp,ns,Sq3StmtCTT); \
94 check_NULL(classO) goto error; \
95 OT_CLASS = Tcl_GetObjectAsClass(classO); \
96 \
97 /* create the TCL static Methods */ \
98 static MkThreadLocal OtUnknownS NS(sClassUnknown) = {OT_UNKNOWN_CLASS}; \
99 check_LNG(MK(UnknownSetup) (interp,classO,NS(sOtClassDef),&NS(sClassUnknown))) goto error; \
100 \
101 /* create the TCL instance Methods */ \
102 static MkThreadLocal OtUnknownS NS(sInstanceUnknown) = {OT_UNKNOWN_INSTANCE}; \
103 check_LNG(MK(UnknownSetup) (interp,classO,NS(sInstanceDef),&NS(sInstanceUnknown))) goto error; \
104 \
105 /* define the "NULL" object */ \
106 SQ3(Sq3StmtC_MK_NULL) = Tcl_GetObjectName(interp, \
107 MK(AtomCreate) (MK_RT_CALL interp, NULL /*obj*/, OT_CLASS, "MK_NULL" /*name*/, "::tclsq3lite::Sq3StmtC" /*ns*/) \
108 ); \
109 Tcl_IncrRefCount(SQ3(Sq3StmtC_MK_NULL));

◆ ClearBindings_doc

#define ClearBindings_doc   "$sq3stmt ClearBindings"

Definition at line 148 of file Sq3StmtC_tcl.c.

◆ ColumnBlob_doc

#define ColumnBlob_doc   "binary [$sq3stmt ColumnBlob iCol:int32]"

Definition at line 149 of file Sq3StmtC_tcl.c.

◆ ColumnBytes_doc

#define ColumnBytes_doc   "int32 [$sq3stmt ColumnBytes iCol:int32]"

Definition at line 150 of file Sq3StmtC_tcl.c.

◆ ColumnCount_doc

#define ColumnCount_doc   "int32 [$pStmt ColumnCount]"

Definition at line 151 of file Sq3StmtC_tcl.c.

◆ ColumnDouble_doc

#define ColumnDouble_doc   "double [$sq3stmt ColumnDouble iCol:int32]"

Definition at line 152 of file Sq3StmtC_tcl.c.

◆ ColumnInt64_doc

#define ColumnInt64_doc   "int64 [$sq3stmt ColumnInt64 iCol:int32]"

Definition at line 154 of file Sq3StmtC_tcl.c.

◆ ColumnInt_doc

#define ColumnInt_doc   "int32 [$sq3stmt ColumnInt iCol:int32]"

Definition at line 153 of file Sq3StmtC_tcl.c.

◆ ColumnName_doc

#define ColumnName_doc   "string [$sq3stmt ColumnName N:int32]"

Definition at line 155 of file Sq3StmtC_tcl.c.

◆ ColumnText_doc

#define ColumnText_doc   "string [$sq3stmt ColumnText iCol:int32]"

Definition at line 156 of file Sq3StmtC_tcl.c.

◆ ColumnType_doc

#define ColumnType_doc   "Sq3TypeE [$sq3stmt ColumnType iCol:int32]"

Definition at line 157 of file Sq3StmtC_tcl.c.

◆ ColumnValue_doc

#define ColumnValue_doc   "Sq3ValueC [$sq3stmt ColumnValue iCol:int32]"

Definition at line 129 of file Sq3StmtC_tcl.c.

◆ CTOR_doc

#define CTOR_doc   "Sq3StmtC [Sq3StmtC CTOR db:Sq3LiteC zSql:string]"

Definition at line 118 of file Sq3StmtC_tcl.c.

◆ DataCount_doc

#define DataCount_doc   "$pStmt DataCount"

Definition at line 158 of file Sq3StmtC_tcl.c.

◆ DbHandle_doc

#define DbHandle_doc   "Sq3LiteC [$sq3stmt DbHandle]"

Definition at line 130 of file Sq3StmtC_tcl.c.

◆ ExpandedSql_doc

#define ExpandedSql_doc   "string [$pStmt ExpandedSql]"

Definition at line 159 of file Sq3StmtC_tcl.c.

◆ Explain_doc

#define Explain_doc   "$pStmt Explain eMode:int32"

Definition at line 160 of file Sq3StmtC_tcl.c.

◆ Finalize_doc

#define Finalize_doc   "$pStmt Finalize"

Definition at line 161 of file Sq3StmtC_tcl.c.

◆ GetNull_doc

#define GetNull_doc   "Sq3StmtC [Sq3StmtC GetNull]"

Definition at line 123 of file Sq3StmtC_tcl.c.

◆ GetPzTail_doc

#define GetPzTail_doc   "string [$sq3stmt GetPzTail]"

Definition at line 162 of file Sq3StmtC_tcl.c.

◆ HandleResolve_doc

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

Definition at line 124 of file Sq3StmtC_tcl.c.

◆ Instances_doc

#define Instances_doc   "Sq3StmtC [Sq3StmtC Instances]"

Definition at line 125 of file Sq3StmtC_tcl.c.

◆ IsExplain_doc

#define IsExplain_doc   "$pStmt IsExplain"

Definition at line 164 of file Sq3StmtC_tcl.c.

◆ META_FILE_NAME

#define META_FILE_NAME   "Sq3StmtC_tcl.c"

Definition at line 14 of file Sq3StmtC_tcl.c.

◆ Next_doc

#define Next_doc   "Sq3StmtC [$stmt Next]"

Definition at line 131 of file Sq3StmtC_tcl.c.

◆ NextStmt_doc

#define NextStmt_doc   "Sq3StmtC [Sq3StmtC NextStmt pDb:Sq3LiteC ?pStmt:Sq3StmtC=\"MK_NULL\"?]"

Definition at line 126 of file Sq3StmtC_tcl.c.

◆ OBJECT2STMT

#define OBJECT2STMT ( O)
Value:
MkAssertCastM(Sq3StmtC,(Tcl_ObjectGetMetadata(O, &MK(AtomMeta))))
#define MkAssertCastM(cls, m)

Definition at line 21 of file Sq3StmtC_tcl.c.

◆ OT_CLASS

#define OT_CLASS   NS(Sq3StmtC)

Definition at line 18 of file Sq3StmtC_tcl.c.

◆ OT_CLASS_NAME

#define OT_CLASS_NAME   "Sq3StmtC"

Definition at line 19 of file Sq3StmtC_tcl.c.

◆ OT_SETUP_hdl

#define OT_SETUP_hdl   SetupHdlFromMetaData_2(STMT,SQ3_STMT);

Definition at line 62 of file Sq3StmtC_tcl.c.

◆ OT_SETUP_hdl__null_allow

#define OT_SETUP_hdl__null_allow   SetupHdlFromMetaData__null_allow_2(STMT,SQ3_STMT);

Definition at line 63 of file Sq3StmtC_tcl.c.

◆ OT_SETUP_hdl_constr

#define OT_SETUP_hdl_constr
Value:
int __skip=Tcl_ObjectContextSkippedArgs(objCtx); \
MK_RT_UNUSED OT_SELF_T selfO = Tcl_ObjectContextObject(objCtx); \
#define OT_SETUP_hdl_constr_pre
#define MkERROR
#define AllRtSetup_NULL
#define MK_RT_UNUSED
struct Sq3StmtS * SQ3_STMT
class-shortcut for struct Sq3StmtS *, all shortcut using the XX_YYY syntax (only for public API) …
Struct to represent the data of the Sq3StmtC …

Definition at line 67 of file Sq3StmtC_tcl.c.

67#define OT_SETUP_hdl_constr \
68 OT_SETUP_hdl_constr_pre; \
69 int __skip=Tcl_ObjectContextSkippedArgs(objCtx); \
70 AllRtSetup_NULL; \
71 MK_RT_UNUSED OT_SELF_T selfO = Tcl_ObjectContextObject(objCtx); \
72 SQ3_STMT hdl = (SQ3_STMT) &MkERROR;

◆ OT_SETUP_hdl_constr_pre

#define OT_SETUP_hdl_constr_pre

Definition at line 66 of file Sq3StmtC_tcl.c.

◆ OT_SETUP_hdl_destr

#define OT_SETUP_hdl_destr   SetupHdlFromMetaData__null_allow_2(STMT,SQ3_STMT);

Definition at line 64 of file Sq3StmtC_tcl.c.

◆ OT_SETUP_hdl_static

#define OT_SETUP_hdl_static
Value:
int __skip=Tcl_ObjectContextSkippedArgs(objCtx); \
__attribute__((unused)) OT_SELF_T selfO = Tcl_ObjectContextObject(objCtx); \
__attribute__((unused)) MK_TYP hdl = Sq3StmtC##_TT;

Definition at line 56 of file Sq3StmtC_tcl.c.

56#define OT_SETUP_hdl_static \
57 int __skip=Tcl_ObjectContextSkippedArgs(objCtx); \
58 AllRtSetup_NULL; \
59 __attribute__((unused)) OT_SELF_T selfO = Tcl_ObjectContextObject(objCtx); \
60 __attribute__((unused)) MK_TYP hdl = Sq3StmtC##_TT;

◆ OT_SETUP_hdl_static_constr

#define OT_SETUP_hdl_static_constr
Value:
#define OT_SETUP_hdl_static_constr_pre
#define OT_SETUP_hdl_static

Definition at line 52 of file Sq3StmtC_tcl.c.

52#define OT_SETUP_hdl_static_constr \
53 OT_SETUP_hdl_static_constr_pre; \
54 OT_SETUP_hdl_static

◆ OT_SETUP_hdl_static_constr_pre

#define OT_SETUP_hdl_static_constr_pre

Definition at line 51 of file Sq3StmtC_tcl.c.

◆ PrepareV2_doc

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

Definition at line 119 of file Sq3StmtC_tcl.c.

◆ PrepareV3_doc

#define PrepareV3_doc   "Sq3StmtC [Sq3StmtC PrepareV3 db:Sq3LiteC zSql:string ?prepFlags:Sq3PrepareEF=SQ3_PREPARE_NO?]"

Definition at line 120 of file Sq3StmtC_tcl.c.

◆ Prev_doc

#define Prev_doc   "Sq3StmtC [$stmt Prev]"

Definition at line 132 of file Sq3StmtC_tcl.c.

◆ Readonly_doc

#define Readonly_doc   "$pStmt Readonly"

Definition at line 166 of file Sq3StmtC_tcl.c.

◆ Reset_doc

#define Reset_doc   "$pStmt Reset"

Definition at line 167 of file Sq3StmtC_tcl.c.

◆ SetupRtFromHdl_X

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

Definition at line 76 of file Sq3StmtC_tcl.c.

◆ SetupRtFromHdl_XN

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

Definition at line 75 of file Sq3StmtC_tcl.c.

◆ Sql_doc

#define Sql_doc   "string [$pStmt Sql]"

Definition at line 168 of file Sq3StmtC_tcl.c.

◆ Status_doc

#define Status_doc   "$sq3stmt Status op:Sq3StmtStatusE resetFlg:bool"

Definition at line 169 of file Sq3StmtC_tcl.c.

◆ Step_doc

#define Step_doc   "Sq3ErrorE [$sq3stmt Step]"

Definition at line 172 of file Sq3StmtC_tcl.c.

◆ VER

#define VER   TCL_OO_METHOD_VERSION_CURRENT

Definition at line 111 of file Sq3StmtC_tcl.c.

Function Documentation

◆ tclsq3lite_pSq3StmtC_Init()

int tclsq3lite_pSq3StmtC_Init ( MK_RT mkrt,
Tcl_Interp * interp,
Tcl_Namespace * ns )

Public API

Definition at line 1078 of file Sq3StmtC_tcl.c.

1079{
1080 ClassInit
1081
1082 return TCL_OK;
1083error:
1084 return TCL_ERROR;
1085}
#define ClassInit

◆ tclsq3lite_Sq3StmtC_selfCreate()

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

Definition at line 31 of file Sq3StmtC_tcl.c.

31 {
32 OT_ENV_T interp = env;
33 return MK(AtomCreate) (MK_RT_CALL interp,obj,OT_CLASS,NULL,NULL);
34}
Tcl_Interp * OT_ENV_T

◆ tclsq3lite_Sq3StmtC_selfDelete()

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

Definition at line 36 of file Sq3StmtC_tcl.c.

36 {
37 OT_SELF_T selfO = selfP;
38 OT_ENV_T interp = env;
39 MK(AtomDeleteHard) (MK_RT_CALL interp, selfO);
40}

◆ tclsq3lite_Sq3StmtC_selfUnlink()

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

Definition at line 42 of file Sq3StmtC_tcl.c.

42 {
43 OT_SELF_T selfO = selfP;
44 OT_ENV_T interp = env;
45 MK(AtomUnlink) (MK_RT_CALL interp, selfO);
46}

Variable Documentation

◆ OT_CLASS

__thread OT_CLS_T OT_CLASS = NULL

Definition at line 24 of file Sq3StmtC_tcl.c.

◆ Sq3StmtCTT

__thread MK_TYP Sq3StmtCTT = NULL
static

Definition at line 27 of file Sq3StmtC_tcl.c.

◆ tclsq3lite_sInstanceDef

Tcl_MethodType tclsq3lite_sInstanceDef[]
static

Definition at line 1016 of file Sq3StmtC_tcl.c.

1016 {
1017// BEGIN-OBJ - created by 'tcl_MqS.tcl -i NHI1_HOME/theSq3Lite/c/gen/c_sq3lite.meta' - DO NOT change
1018
1019// doc-key: Sq3StmtC,Sq3Stmt,oC_
1020 {VER, "<constructor>" , NS(Sq3StmtC_CTOR) , NULL, NULL},
1021
1022// doc-key: Sq3StmtC,Sq3Stmt,oc_
1023 {VER, "ColumnValue" , NS(Sq3StmtC_ColumnValue) , NULL, NULL},
1024 {VER, "DbHandle" , NS(Sq3StmtC_DbHandle) , NULL, NULL},
1025 {VER, "Next" , NS(Sq3StmtC_Next) , NULL, NULL},
1026 {VER, "Prev" , NS(Sq3StmtC_Prev) , NULL, NULL},
1027
1028// doc-key: Sq3StmtC,Sq3Stmt,om_
1029 {VER, "BindBlob" , NS(Sq3StmtC_BindBlob) , NULL, NULL},
1030 {VER, "BindDouble" , NS(Sq3StmtC_BindDouble) , NULL, NULL},
1031 {VER, "BindInt" , NS(Sq3StmtC_BindInt) , NULL, NULL},
1032 {VER, "BindInt64" , NS(Sq3StmtC_BindInt64) , NULL, NULL},
1033 {VER, "BindNull" , NS(Sq3StmtC_BindNull) , NULL, NULL},
1034 {VER, "BindParameterCount" , NS(Sq3StmtC_BindParameterCount) , NULL, NULL},
1035 {VER, "BindParameterIndex" , NS(Sq3StmtC_BindParameterIndex) , NULL, NULL},
1036 {VER, "BindParameterName" , NS(Sq3StmtC_BindParameterName) , NULL, NULL},
1037 {VER, "BindText" , NS(Sq3StmtC_BindText) , NULL, NULL},
1038 {VER, "BindValue" , NS(Sq3StmtC_BindValue) , NULL, NULL},
1039 {VER, "BindZeroblob" , NS(Sq3StmtC_BindZeroblob) , NULL, NULL},
1040 {VER, "BindZeroblob64" , NS(Sq3StmtC_BindZeroblob64) , NULL, NULL},
1041 {VER, "Busy" , NS(Sq3StmtC_Busy) , NULL, NULL},
1042 {VER, "ClearBindings" , NS(Sq3StmtC_ClearBindings) , NULL, NULL},
1043 {VER, "ColumnBlob" , NS(Sq3StmtC_ColumnBlob) , NULL, NULL},
1044 {VER, "ColumnBytes" , NS(Sq3StmtC_ColumnBytes) , NULL, NULL},
1045 {VER, "ColumnCount" , NS(Sq3StmtC_ColumnCount) , NULL, NULL},
1046 {VER, "ColumnDouble" , NS(Sq3StmtC_ColumnDouble) , NULL, NULL},
1047 {VER, "ColumnInt" , NS(Sq3StmtC_ColumnInt) , NULL, NULL},
1048 {VER, "ColumnInt64" , NS(Sq3StmtC_ColumnInt64) , NULL, NULL},
1049 {VER, "ColumnName" , NS(Sq3StmtC_ColumnName) , NULL, NULL},
1050 {VER, "ColumnText" , NS(Sq3StmtC_ColumnText) , NULL, NULL},
1051 {VER, "ColumnType" , NS(Sq3StmtC_ColumnType) , NULL, NULL},
1052 {VER, "DataCount" , NS(Sq3StmtC_DataCount) , NULL, NULL},
1053 {VER, "ExpandedSql" , NS(Sq3StmtC_ExpandedSql) , NULL, NULL},
1054 {VER, "Explain" , NS(Sq3StmtC_Explain) , NULL, NULL},
1055 {VER, "Finalize" , NS(Sq3StmtC_Finalize) , NULL, NULL},
1056 {VER, "GetPzTail" , NS(Sq3StmtC_GetPzTail) , NULL, NULL},
1057 // skip class-overload: Sq3StmtHandleGet → HandleGet, NS(Sq3StmtC_HandleGet)
1058 {VER, "IsExplain" , NS(Sq3StmtC_IsExplain) , NULL, NULL},
1059 // skip class-overload: Sq3StmtLog → Log, NS(Sq3StmtC_Log)
1060 {VER, "Readonly" , NS(Sq3StmtC_Readonly) , NULL, NULL},
1061 {VER, "Reset" , NS(Sq3StmtC_Reset) , NULL, NULL},
1062 {VER, "Sql" , NS(Sq3StmtC_Sql) , NULL, NULL},
1063 {VER, "Status" , NS(Sq3StmtC_Status) , NULL, NULL},
1064
1065// doc-key: Sq3StmtC,Sq3Stmt,omo
1066 {VER, "Step" , NS(Sq3StmtC_Step) , NULL, NULL},
1067
1068// END-OBJ - created by 'tcl_MqS.tcl -i NHI1_HOME/theSq3Lite/c/gen/c_sq3lite.meta' - DO NOT change
1069 {0, NULL, NULL, NULL, NULL}
1070};
#define VER

◆ tclsq3lite_sOtClassDef

Tcl_MethodType tclsq3lite_sOtClassDef[]
static
Initial value:
= {
{VER, "PrepareV2" , tclsq3lite_Sq3StmtC_PrepareV2 , NULL, NULL},
{VER, "PrepareV3" , tclsq3lite_Sq3StmtC_PrepareV3 , NULL, NULL},
{VER, "GetNull" , tclsq3lite_Sq3StmtC_GetNull , NULL, NULL},
{VER, "HandleResolve" , tclsq3lite_Sq3StmtC_HandleResolve , NULL, NULL},
{VER, "Instances" , tclsq3lite_Sq3StmtC_Instances , NULL, NULL},
{VER, "NextStmt" , tclsq3lite_Sq3StmtC_NextStmt , NULL, NULL},
{0, NULL, NULL, NULL}
}
static OT_ProcRet tclsq3lite_Sq3StmtC_GetNull(OtClass_ARGS)
Tcl: (static) Sq3StmtC [Sq3StmtC GetNull] → C-API Null-Slot - return a Sq3StmtC typed NULL insta...
static OT_ProcRet tclsq3lite_Sq3StmtC_Instances(OtClass_ARGS)
Tcl: (static) Sq3StmtC [Sq3StmtC Instances] → C-API get head-instance from linked-list of Sq3Stm...
static OT_ProcRet tclsq3lite_Sq3StmtC_HandleResolve(OtClass_ARGS)
Tcl: (static) Sq3StmtC [Sq3StmtC HandleResolve netHdl:MK_HDL] → C-API Handle-Resolve-Slot - retu...
static OT_ProcRet tclsq3lite_Sq3StmtC_NextStmt(OtClass_ARGS)
Tcl: (static) Sq3StmtC [Sq3StmtC NextStmt pDb:Sq3LiteC ?pStmt:Sq3StmtC="MK_NULL"?] → C-API Find ...
static OT_ProcRet tclsq3lite_Sq3StmtC_PrepareV3(OtClass_ARGS)
Tcl: (constructor,static) Sq3StmtC [Sq3StmtC PrepareV3 db:Sq3LiteC zSql:string ?prepFlags:Sq3PrepareE...
static OT_ProcRet tclsq3lite_Sq3StmtC_PrepareV2(OtClass_ARGS)
Tcl: (constructor,static) Sq3StmtC [Sq3StmtC PrepareV2 db:Sq3LiteC zSql:string] → C-API Compil...

Definition at line 997 of file Sq3StmtC_tcl.c.

997 {
998// BEGIN-CLASS - created by 'tcl_MqS.tcl -i NHI1_HOME/theSq3Lite/c/gen/c_sq3lite.meta' - DO NOT change
999
1000// doc-key: Sq3StmtC,Sq3Stmt,sCo
1001 {VER, "PrepareV2" , NS(Sq3StmtC_PrepareV2) , NULL, NULL},
1002 {VER, "PrepareV3" , NS(Sq3StmtC_PrepareV3) , NULL, NULL},
1003
1004// doc-key: Sq3StmtC,Sq3Stmt,sc_
1005 {VER, "GetNull" , NS(Sq3StmtC_GetNull) , NULL, NULL},
1006 {VER, "HandleResolve" , NS(Sq3StmtC_HandleResolve) , NULL, NULL},
1007 {VER, "Instances" , NS(Sq3StmtC_Instances) , NULL, NULL},
1008 {VER, "NextStmt" , NS(Sq3StmtC_NextStmt) , NULL, NULL},
1009
1010// END-CLASS - created by 'tcl_MqS.tcl -i NHI1_HOME/theSq3Lite/c/gen/c_sq3lite.meta' - DO NOT change
1011 {0, NULL, NULL, NULL}
1012};

◆ tclsq3lite_Sq3StmtC_MK_NULL

__thread OT_OBJ_T tclsq3lite_Sq3StmtC_MK_NULL = NULL

Definition at line 28 of file Sq3StmtC_tcl.c.