33#if defined(META_IGNORE_EXTERN)
34# define SQ3_ATL_EXTERN
37# if defined(DLL_EXPORT)
39# if defined(SQ3_ATL_BUILD_DLL)
40# define SQ3_ATL_EXTERN __declspec(dllexport)
42# define SQ3_ATL_EXTERN __declspec(dllimport)
46# define SQ3_ATL_EXTERN __attribute__ ((visibility("default")))
50# define SQ3_ATL_EXTERN
54#undef SQ3_ATL_EXTERN_DATA
55#if defined(META_PRIVATE)
56# define SQ3_ATL_EXTERN_DATA extern
57#elif defined(META_IGNORE_EXTERN)
58# define SQ3_ATL_EXTERN_DATA extern
61# if defined(DLL_EXPORT)
63# if defined(SQ3_ATL_BUILD_DLL)
64# define SQ3_ATL_EXTERN_DATA __declspec(dllexport)
66# define SQ3_ATL_EXTERN_DATA __declspec(dllimport)
70# define SQ3_ATL_EXTERN_DATA __attribute__ ((visibility("default"))) extern
73# define SQ3_ATL_EXTERN_DATA extern
77#define SQ3(n) atlsq3lite_ ## n
79#define NS(n) atlsq3lite_ ## n
85#define Sq3BlobC_ARGS OBJECT_ARGS
86#define Sq3BlobC_ARGS_CALL OBJECT_ARGS_CALL
87#define Sq3FileC_ARGS OBJECT_ARGS
88#define Sq3FileC_ARGS_CALL OBJECT_ARGS_CALL
89#define Sq3LiteC_ARGS OBJECT_ARGS
90#define Sq3LiteC_ARGS_CALL OBJECT_ARGS_CALL
91#define Sq3StmtC_ARGS OBJECT_ARGS
92#define Sq3StmtC_ARGS_CALL OBJECT_ARGS_CALL
93#define Sq3ValueC_ARGS OBJECT_ARGS
94#define Sq3ValueC_ARGS_CALL OBJECT_ARGS_CALL
110#define OT_SQ3_RT_SIG 0x62626262
119 #define regTclObj(t) OT_OBJ_T t;
120 #define regTclObj2(t,v) OT_OBJ_T t;
121 #define regTclCmd(t) OT_OBJ_T t;
122 #define regTclArray(m,t) OT_OBJ_T t[m];
159#define OT_SQ3_ARGS OT_SQ3_RT_T asq3rt, OT_MK_RT_T amkrt, OT_ENV_T interp, MK_RT_ARGS
160#define OT_SQ3_CALL asq3rt, amkrt, interp, MK_RT_CALL
162#define SETUP_asq3rt_2(r) MK_UNUSED OT_SQ3_RT_T asq3rt = (r) ? (r) : &asq3rtR; \
163 assert(asq3rt && asq3rt->signature == OT_SQ3_RT_SIG); \
164 MK_UNUSED OT_MK_RT_T amkrt = asq3rt->amkrt; \
165 assert(amkrt && amkrt->signature == OT_MK_RT_SIG); \
166 MK_UNUSED OT_ENV_T interp = asq3rt->interp; \
167 MK_UNUSED MOX_RT_T moxrt = amkrt->moxrt; \
168 assert(moxrt && moxrt->signature == MOX_RT_SIG);
170#define SETUP_asq3rt(r) SETUP_asq3rt_2(r)
183 #define Sq3BlobC_rt (*asq3rt)
184 #define Sq3BlobC_lngO (Sq3BlobC_rt.AtlSq3BlobC)
186 #define Sq3BlobCTT (Sq3BlobC_rt.AtlSq3BlobCTT)
190 #define Sq3BlobC_ObjNew(nat) SQ3(Sq3BlobC_ObjNew) (OT_SQ3_CALL nat)
191 #define OT_TMP_BLOB_OBJ(nat) Sq3BlobC_ObjNew (nat)
192 #define OT_retObj_SET_BLOB(nat) retObj = Sq3BlobC_ObjNew (nat)
202 #define Sq3FileC_rt (*asq3rt)
203 #define Sq3FileC_lngO (Sq3FileC_rt.AtlSq3FileC)
205 #define Sq3FileCTT (Sq3FileC_rt.AtlSq3FileCTT)
209 #define Sq3FileC_ObjNew(nat) SQ3(Sq3FileC_ObjNew) (OT_SQ3_CALL nat)
210 #define OT_TMP_FILE_OBJ(nat) Sq3FileC_ObjNew (nat)
211 #define OT_retObj_SET_FILE(nat) retObj = Sq3FileC_ObjNew (nat)
221 #define Sq3LiteC_rt (*asq3rt)
222 #define Sq3LiteC_lngO (Sq3LiteC_rt.AtlSq3LiteC)
224 #define Sq3LiteCTT (Sq3LiteC_rt.AtlSq3LiteCTT)
228 #define Sq3LiteC_ObjNew(nat) SQ3(Sq3LiteC_ObjNew) (OT_SQ3_CALL nat)
229 #define OT_TMP_LITE_OBJ(nat) Sq3LiteC_ObjNew (nat)
230 #define OT_retObj_SET_LITE(nat) retObj = Sq3LiteC_ObjNew (nat)
240 #define Sq3StmtC_rt (*asq3rt)
241 #define Sq3StmtC_lngO (Sq3StmtC_rt.AtlSq3StmtC)
243 #define Sq3StmtCTT (Sq3StmtC_rt.AtlSq3StmtCTT)
247 #define Sq3StmtC_ObjNew(nat) SQ3(Sq3StmtC_ObjNew) (OT_SQ3_CALL nat)
248 #define OT_TMP_STMT_OBJ(nat) Sq3StmtC_ObjNew (nat)
249 #define OT_retObj_SET_STMT(nat) retObj = Sq3StmtC_ObjNew (nat)
259 #define Sq3ValueC_rt (*asq3rt)
260 #define Sq3ValueC_lngO (Sq3ValueC_rt.AtlSq3ValueC)
262 #define Sq3ValueCTT (Sq3ValueC_rt.AtlSq3ValueCTT)
266 #define Sq3ValueC_ObjNew(nat) SQ3(Sq3ValueC_ObjNew) (OT_SQ3_CALL nat)
267 #define OT_TMP_VAL_OBJ(nat) Sq3ValueC_ObjNew (nat)
268 #define OT_retObj_SET_VAL(nat) retObj = Sq3ValueC_ObjNew (nat)
294#define Get_Sq3AccessE_FromObj_path SQ3(Get_Sq3AccessE_FromObj)
297#define Get_Sq3AuthActionE_FromObj_path SQ3(Get_Sq3AuthActionE_FromObj)
300#define Get_Sq3AuthReturnE_FromObj_path SQ3(Get_Sq3AuthReturnE_FromObj)
303#define Get_Sq3ChangeSetConflictE_FromObj_path SQ3(Get_Sq3ChangeSetConflictE_FromObj)
306#define Get_Sq3ChangesetE_FromObj_path SQ3(Get_Sq3ChangesetE_FromObj)
309#define Get_Sq3CheckpointE_FromObj_path SQ3(Get_Sq3CheckpointE_FromObj)
312#define Get_Sq3ConfigE_FromObj_path SQ3(Get_Sq3ConfigE_FromObj)
315#define Get_Sq3ConflictResolutionE_FromObj_path SQ3(Get_Sq3ConflictResolutionE_FromObj)
318#define Get_Sq3DbConfigE_FromObj_path SQ3(Get_Sq3DbConfigE_FromObj)
321#define Get_Sq3DbStatusE_FromObj_path SQ3(Get_Sq3DbStatusE_FromObj)
324#define Get_Sq3DeSerializeEF_FromObj_path SQ3(Get_Sq3DeSerializeEF_FromObj)
327#define Get_Sq3ErrorE_FromObj_path SQ3(Get_Sq3ErrorE_FromObj)
330#define Get_Sq3ExtendetResultCodesE_FromObj_path SQ3(Get_Sq3ExtendetResultCodesE_FromObj)
333#define Get_Sq3FcntlE_FromObj_path SQ3(Get_Sq3FcntlE_FromObj)
336#define Get_Sq3FunctionEF_FromObj_path SQ3(Get_Sq3FunctionEF_FromObj)
339#define Get_Sq3IndexConstraintEF_FromObj_path SQ3(Get_Sq3IndexConstraintEF_FromObj)
342#define Get_Sq3IoCapEF_FromObj_path SQ3(Get_Sq3IoCapEF_FromObj)
345#define Get_Sq3LimitE_FromObj_path SQ3(Get_Sq3LimitE_FromObj)
348#define Get_Sq3LockE_FromObj_path SQ3(Get_Sq3LockE_FromObj)
351#define Get_Sq3MutexE_FromObj_path SQ3(Get_Sq3MutexE_FromObj)
354#define Get_Sq3OpenEF_FromObj_path SQ3(Get_Sq3OpenEF_FromObj)
357#define Get_Sq3PrepareEF_FromObj_path SQ3(Get_Sq3PrepareEF_FromObj)
360#define Get_Sq3ScanStatE_FromObj_path SQ3(Get_Sq3ScanStatE_FromObj)
363#define Get_Sq3SerializeE_FromObj_path SQ3(Get_Sq3SerializeE_FromObj)
366#define Get_Sq3SessionObjConfigE_FromObj_path SQ3(Get_Sq3SessionObjConfigE_FromObj)
369#define Get_Sq3ShmLockE_FromObj_path SQ3(Get_Sq3ShmLockE_FromObj)
372#define Get_Sq3StatusE_FromObj_path SQ3(Get_Sq3StatusE_FromObj)
375#define Get_Sq3StmtStatusE_FromObj_path SQ3(Get_Sq3StmtStatusE_FromObj)
378#define Get_Sq3SyncEF_FromObj_path SQ3(Get_Sq3SyncEF_FromObj)
381#define Get_Sq3TestCtrlE_FromObj_path SQ3(Get_Sq3TestCtrlE_FromObj)
384#define Get_Sq3TextE_FromObj_path SQ3(Get_Sq3TextE_FromObj)
387#define Get_Sq3TraceEF_FromObj_path SQ3(Get_Sq3TraceEF_FromObj)
390#define Get_Sq3TxnE_FromObj_path SQ3(Get_Sq3TxnE_FromObj)
393#define Get_Sq3TypeE_FromObj_path SQ3(Get_Sq3TypeE_FromObj)
396#define Get_Sq3VtabE_FromObj_path SQ3(Get_Sq3VtabE_FromObj)
402#define OT_NEW_Sq3_enum_OBJ(typ,val) SQ3(Sq3 ## typ ## _ToString(val))
#define Sq3BlobC_ObjNew(nat)
OT_SQ3_RT_S * OT_SQ3_RT_T
#define Sq3StmtC_ObjNew(nat)
#define Sq3LiteC_ObjNew(nat)
#define Sq3ValueC_ObjNew(nat)
#define SQ3_ATL_EXTERN
static library
#define Sq3FileC_ObjNew(nat)
__thread OT_SQ3_RT_S asq3rtR
initialize the Sq3Lite package
#define Sq3BlobC_type
same as Sq3BlobS but useable in a class-macro as: class##_type …
#define Sq3BlobC_X2obj(x)
#define Sq3FileC_type
same as Sq3FileS but useable in a class-macro as: class##_type …
#define Sq3FileC_X2obj(x)
#define Sq3LiteC_type
same as Sq3LiteS but useable in a class-macro as: class##_type …
#define Sq3LiteC_X2obj(x)
Sq3IndexConstraintEF
Virtual Table Constraint Operator Codes.
MK_STRN Sq3SerializeE_ToString(enum Sq3SerializeE value)
return the Sq3SerializeE as string …
MK_STRN Sq3DbStatusE_ToString(enum Sq3DbStatusE value)
return the Sq3DbStatusE as string …
MK_STRN Sq3AuthActionE_ToString(enum Sq3AuthActionE value)
return the Sq3AuthActionE as string …
Sq3AuthActionE
Authorizer Action Codes.
MK_STRN Sq3TxnE_ToString(enum Sq3TxnE value)
return the Sq3TxnE as string …
MK_STRN Sq3DbConfigE_ToString(enum Sq3DbConfigE value)
return the Sq3DbConfigE as string …
Sq3VtabE
Virtual Table Configuration Options.
Sq3ChangeSetConflictE
Constants Returned By The Conflict Handler.
Sq3CheckpointE
Checkpoint Mode Values.
MK_STRN Sq3AccessE_ToString(enum Sq3AccessE value)
return the Sq3AccessE as string …
MK_STRN Sq3IoCapEF_ToString(enum Sq3IoCapEF value)
return the Sq3IoCapEF as string …
MK_STRN Sq3ConflictResolutionE_ToString(enum Sq3ConflictResolutionE value)
return the Sq3ConflictResolutionE as string …
MK_STRN Sq3CheckpointE_ToString(enum Sq3CheckpointE value)
return the Sq3CheckpointE as string …
Sq3ConfigE
Configuration Options.
Sq3StmtStatusE
Status Parameters for prepared statements.
Sq3OpenEF
Flags For File Open Operations.
Sq3FcntlE
Standard File Control Opcodes.
MK_STRN Sq3FunctionEF_ToString(enum Sq3FunctionEF value)
return the Sq3FunctionEF as string …
MK_STRN Sq3ErrorE_ToString(enum Sq3ErrorE value)
return the Sq3ErrorE as string …
MK_STRN Sq3StmtStatusE_ToString(enum Sq3StmtStatusE value)
return the Sq3StmtStatusE as string …
MK_STRN Sq3DeSerializeEF_ToString(enum Sq3DeSerializeEF value)
return the Sq3DeSerializeEF as string …
MK_STRN Sq3ScanStatE_ToString(enum Sq3ScanStatE value)
return the Sq3ScanStatE as string …
Sq3SessionObjConfigE
Options for sqlite3session_object_config.
Sq3LimitE
Run-Time Limit Categories.
Sq3StatusE
Status Parameters.
Sq3TypeE
Fundamental Datatypes.
MK_STRN Sq3IndexConstraintEF_ToString(enum Sq3IndexConstraintEF value)
return the Sq3IndexConstraintEF as string …
Sq3PrepareEF
Prepare Flags.
Sq3DbConfigE
Database Connection Configuration Options.
Sq3SerializeE
Flags for sqlite3_serialize.
MK_STRN Sq3StatusE_ToString(enum Sq3StatusE value)
return the Sq3StatusE as string …
MK_STRN Sq3SessionObjConfigE_ToString(enum Sq3SessionObjConfigE value)
return the Sq3SessionObjConfigE as string …
Sq3AccessE
Flags for the xAccess VFS method.
MK_STRN Sq3ConfigE_ToString(enum Sq3ConfigE value)
return the Sq3ConfigE as string …
Sq3DeSerializeEF
Flags for sqlite3_deserialize()
Sq3LockE
File Locking Levels.
Sq3AuthReturnE
Authorizer Return Codes.
MK_STRN Sq3PrepareEF_ToString(enum Sq3PrepareEF value)
return the Sq3PrepareEF as string …
MK_STRN Sq3LimitE_ToString(enum Sq3LimitE value)
return the Sq3LimitE as string …
MK_STRN Sq3TraceEF_ToString(enum Sq3TraceEF value)
return the Sq3TraceEF as string …
Sq3DbStatusE
Status Parameters for database connections.
Sq3IoCapEF
Device Characteristics.
Sq3SyncEF
Synchronization Type Flags.
Sq3TraceEF
SQL Trace Event Codes.
MK_STRN Sq3LockE_ToString(enum Sq3LockE value)
return the Sq3LockE as string …
Sq3ChangesetE
Constants Passed To The Conflict Handler.
Sq3TestCtrlE
Testing Interface Operation Codes.
MK_STRN Sq3OpenEF_ToString(enum Sq3OpenEF value)
return the Sq3OpenEF as string …
MK_STRN Sq3TestCtrlE_ToString(enum Sq3TestCtrlE value)
return the Sq3TestCtrlE as string …
MK_STRN Sq3TypeE_ToString(enum Sq3TypeE value)
return the Sq3TypeE as string …
MK_STRN Sq3ShmLockE_ToString(enum Sq3ShmLockE value)
return the Sq3ShmLockE as string …
Sq3ExtendetResultCodesE
Extended Result Codes.
MK_STRN Sq3MutexE_ToString(enum Sq3MutexE value)
return the Sq3MutexE as string …
MK_STRN Sq3FcntlE_ToString(enum Sq3FcntlE value)
return the Sq3FcntlE as string …
MK_STRN Sq3ChangesetE_ToString(enum Sq3ChangesetE value)
return the Sq3ChangesetE as string …
MK_STRN Sq3ChangeSetConflictE_ToString(enum Sq3ChangeSetConflictE value)
return the Sq3ChangeSetConflictE as string …
Sq3ShmLockE
Flags for the xShmLock VFS method.
MK_STRN Sq3ExtendetResultCodesE_ToString(enum Sq3ExtendetResultCodesE value)
return the Sq3ExtendetResultCodesE as string …
MK_STRN Sq3TextE_ToString(enum Sq3TextE value)
return the Sq3TextE as string …
MK_STRN Sq3VtabE_ToString(enum Sq3VtabE value)
return the Sq3VtabE as string …
MK_STRN Sq3SyncEF_ToString(enum Sq3SyncEF value)
return the Sq3SyncEF as string …
Sq3ScanStatE
Prepared Statement Scan Status Opcodes.
Sq3TxnE
Allowed return values from sqlite3_txn_state()
MK_STRN Sq3AuthReturnE_ToString(enum Sq3AuthReturnE value)
return the Sq3AuthReturnE as string …
Sq3FunctionEF
Function Flags.
Sq3ConflictResolutionE
Conflict resolution modes.
#define Sq3StmtC_type
same as Sq3StmtS but useable in a class-macro as: class##_type …
#define Sq3StmtC_X2obj(x)
#define Sq3ValueC_X2obj(x)
#define Sq3ValueC_type
same as Sq3ValueS but useable in a class-macro as: class##_type …
OT_OBJ_T AtlSq3BlobC_MK_NULL
OT_OBJ_T AtlSq3ValueC_MK_NULL
OT_OBJ_T AtlSq3StmtC_MK_NULL
OT_OBJ_T AtlSq3LiteC_MK_NULL
OT_OBJ_T AtlSq3FileC_MK_NULL