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
LibSq3Lite_rb.h
Go to the documentation of this file.
1
12#pragma once
13
14#include "LibMkKernel_rb.h"
15#include "LibSq3Lite_sq3.h"
16
17/*****************************************************************************/
18/* */
19/* Macro_API */
20/* */
21/*****************************************************************************/
22
23// BEGIN-HEADER - created by 'rb_MqS.tcl -i NHI1_HOME/theSq3Lite/c/gen/c_sq3lite.meta' - DO NOT change
24
25#undef HEADER
26#define HEADER
27
28// If the source of libsq3lite is direct used in an external library
29// (without dynamic linking) and this library should *not* export
30// the symbol's of libsq3lite then the flag META_IGNORE_EXTERN have
31// to be set
32#undef SQ3_RB_EXTERN
33#if defined(META_IGNORE_EXTERN)
34# define SQ3_RB_EXTERN
35#elif defined(PIC)
36 // does we build a DLL ?
37# if defined(DLL_EXPORT)
38 // does we build the libsq3lite library ?
39# if defined(SQ3_RB_BUILD_DLL)
40# define SQ3_RB_EXTERN __declspec(dllexport)
41# else
42# define SQ3_RB_EXTERN __declspec(dllimport)
43# endif
44# else
45 // no DLL - architecture specific extern specifier
46# define SQ3_RB_EXTERN __attribute__ ((visibility("default")))
47# endif
48#else
50# define SQ3_RB_EXTERN
51#endif
52
53// external data lookup
54#undef SQ3_RB_EXTERN_DATA
55#if defined(META_PRIVATE)
56# define SQ3_RB_EXTERN_DATA extern
57#elif defined(META_IGNORE_EXTERN)
58# define SQ3_RB_EXTERN_DATA extern
59#elif defined(PIC)
60 // does we build a DLL ?
61# if defined(DLL_EXPORT)
62 // does we build the libsq3lite library ?
63# if defined(SQ3_RB_BUILD_DLL)
64# define SQ3_RB_EXTERN_DATA __declspec(dllexport)
65# else
66# define SQ3_RB_EXTERN_DATA __declspec(dllimport)
67# endif
68# else
69 // no DLL - architecture specific extern specifier
70# define SQ3_RB_EXTERN_DATA __attribute__ ((visibility("default"))) extern
71# endif
72#else
73# define SQ3_RB_EXTERN_DATA extern
74#endif
75
76#undef SQ3
77#define SQ3(n) rbsq3lite_ ## n
78#undef NS
79#define NS(n) rbsq3lite_ ## n
80
81// END-HEADER - created by 'rb_MqS.tcl -i NHI1_HOME/theSq3Lite/c/gen/c_sq3lite.meta' - DO NOT change
82
83#undef OT_PKG
84#define OT_PKG SQ3(Sq3Lite)
85
86#include "tmpl/sq3_type_S_lng.h"
88
89/*****************************************************************************/
90/* */
91/* Class_API */
92/* */
93/*****************************************************************************/
94
96
97// BEGIN-CLASS - created by 'rb_MqS.tcl -i NHI1_HOME/theSq3Lite/c/gen/c_sq3lite.meta' - DO NOT change
98
99// ----------------------------------------------------------------------
100// class: Sq3BlobC
101
103 #define Sq3BlobC_lngO SQ3(Sq3BlobC)
104 #define Sq3BlobC_base MK(MkObjectC)
105
106 // MK_NULL singelton
108 #define Sq3BlobC_MK_NULL SQ3(Sq3BlobC_MK_NULL)
109
110 // arguments
111 #define Sq3BlobC_ARGS LNG_ARGS
112 #define Sq3BlobC_ARGS_CALL LNG_ARGS_CALL
113
114 // return object
115 #define OT_retObj_SET_BLOB(nat) retObj = SQ3(Sq3BlobC_ObjNew) (MK_RT_CALL nat)
116
117 // new object
118 #define OT_TMP_BLOB_OBJ(val) SQ3(Sq3BlobC_ObjNew)(MK_RT_CALL val)
123
124 // cast from LNG to MQ
125 #define VAL2BLOB(val) ((SQ3_BLOB)DATA_PTR(val))
126
127// ----------------------------------------------------------------------
128// class: Sq3FileC
129
131 #define Sq3FileC_lngO SQ3(Sq3FileC)
132 #define Sq3FileC_base MK(MkObjectC)
133
134 // MK_NULL singelton
136 #define Sq3FileC_MK_NULL SQ3(Sq3FileC_MK_NULL)
137
138 // arguments
139 #define Sq3FileC_ARGS LNG_ARGS
140 #define Sq3FileC_ARGS_CALL LNG_ARGS_CALL
141
142 // return object
143 #define OT_retObj_SET_FILE(nat) retObj = SQ3(Sq3FileC_ObjNew) (MK_RT_CALL nat)
144
145 // new object
146 #define OT_TMP_FILE_OBJ(val) SQ3(Sq3FileC_ObjNew)(MK_RT_CALL val)
151
152 // cast from LNG to MQ
153 #define VAL2FILE(val) ((SQ3_FILE)DATA_PTR(val))
154
155// ----------------------------------------------------------------------
156// class: Sq3LiteC
157
159 #define Sq3LiteC_lngO SQ3(Sq3LiteC)
160 #define Sq3LiteC_base MK(MkObjectC)
161
162 // MK_NULL singelton
164 #define Sq3LiteC_MK_NULL SQ3(Sq3LiteC_MK_NULL)
165
166 // arguments
167 #define Sq3LiteC_ARGS LNG_ARGS
168 #define Sq3LiteC_ARGS_CALL LNG_ARGS_CALL
169
170 // return object
171 #define OT_retObj_SET_LITE(nat) retObj = SQ3(Sq3LiteC_ObjNew) (MK_RT_CALL nat)
172
173 // new object
174 #define OT_TMP_LITE_OBJ(val) SQ3(Sq3LiteC_ObjNew)(MK_RT_CALL val)
179
180 // cast from LNG to MQ
181 #define VAL2LITE(val) ((SQ3_LITE)DATA_PTR(val))
182
183// ----------------------------------------------------------------------
184// class: Sq3StmtC
185
187 #define Sq3StmtC_lngO SQ3(Sq3StmtC)
188 #define Sq3StmtC_base MK(MkObjectC)
189
190 // MK_NULL singelton
192 #define Sq3StmtC_MK_NULL SQ3(Sq3StmtC_MK_NULL)
193
194 // arguments
195 #define Sq3StmtC_ARGS LNG_ARGS
196 #define Sq3StmtC_ARGS_CALL LNG_ARGS_CALL
197
198 // return object
199 #define OT_retObj_SET_STMT(nat) retObj = SQ3(Sq3StmtC_ObjNew) (MK_RT_CALL nat)
200
201 // new object
202 #define OT_TMP_STMT_OBJ(val) SQ3(Sq3StmtC_ObjNew)(MK_RT_CALL val)
207
208 // cast from LNG to MQ
209 #define VAL2STMT(val) ((SQ3_STMT)DATA_PTR(val))
210
211// ----------------------------------------------------------------------
212// class: Sq3ValueC
213
215 #define Sq3ValueC_lngO SQ3(Sq3ValueC)
216 #define Sq3ValueC_base MK(MkObjectC)
217
218 // MK_NULL singelton
220 #define Sq3ValueC_MK_NULL SQ3(Sq3ValueC_MK_NULL)
221
222 // arguments
223 #define Sq3ValueC_ARGS LNG_ARGS
224 #define Sq3ValueC_ARGS_CALL LNG_ARGS_CALL
225
226 // return object
227 #define OT_retObj_SET_VAL(nat) retObj = SQ3(Sq3ValueC_ObjNew) (MK_RT_CALL nat)
228
229 // new object
230 #define OT_TMP_VAL_OBJ(val) SQ3(Sq3ValueC_ObjNew)(MK_RT_CALL val)
235
236 // cast from LNG to MQ
237 #define VAL2VAL(val) ((SQ3_VAL)DATA_PTR(val))
238
239// END-CLASS - created by 'rb_MqS.tcl -i NHI1_HOME/theSq3Lite/c/gen/c_sq3lite.meta' - DO NOT change
240
241/*****************************************************************************/
242/* */
243/* Enum_API */
244/* */
245/*****************************************************************************/
246
247#define OT_NEW_Sq3_enum_OBJ(typ,i) MK(OtNewInstanceWithOneArg)(SQ3(Sq3##typ),INT2VAL(i))
248
249// BEGIN-enum - created by 'rb_MqS.tcl -i NHI1_HOME/theSq3Lite/c/gen/c_sq3lite.meta' - DO NOT change
250
286
287// END-enum - created by 'rb_MqS.tcl -i NHI1_HOME/theSq3Lite/c/gen/c_sq3lite.meta' - DO NOT change
288
289#undef HEADER
LibMkKernel_rb.h - 10 Apr 2025 - aotto1968.
#define MK(n)
#define OT_CLS_T
#define OT_OBJ_T
#define SQ3(n)
#define Sq3BlobC_MK_NULL
#define Sq3ValueC_MK_NULL
#define Sq3StmtC_MK_NULL
#define Sq3FileC_MK_NULL
#define SQ3_RB_EXTERN_DATA
#define Sq3LiteC_MK_NULL
LibSq3Lite_sq3.h - 10 Apr 2025 - aotto1968.
#define mk_inline
#define MK_ARTIFICIAL
#define MK_RT_CALL
#define MK_RT_ARGS
static MK_ARTIFICIAL SQ3_BLOB Sq3BlobC_ObjNew(sqlite3_blob *hdl)
return Programming-Language-Micro-Kernel (PLMK) instance from native hdl …
#define Sq3BlobC_type
same as Sq3BlobS but useable in a class-macro as: class##_type …
#define Sq3BlobC_X2obj(x)
static MK_ARTIFICIAL SQ3_FILE Sq3FileC_ObjNew(sqlite3_file *hdl)
return Programming-Language-Micro-Kernel (PLMK) instance from native hdl …
#define Sq3FileC_type
same as Sq3FileS but useable in a class-macro as: class##_type …
#define Sq3FileC_X2obj(x)
static MK_ARTIFICIAL SQ3_LITE Sq3LiteC_ObjNew(sqlite3 *hdl)
return Programming-Language-Micro-Kernel (PLMK) instance from native hdl …
#define Sq3LiteC_type
same as Sq3LiteS but useable in a class-macro as: class##_type …
#define Sq3LiteC_X2obj(x)
static SQ3_LITE Sq3Lite(MK_MNG mng)
cast a unknown-object into an Sq3LiteS pointer or NULL if not possible
Sq3IndexConstraintEF
Virtual Table Constraint Operator Codes.
Sq3AuthActionE
Authorizer Action Codes.
Sq3VtabE
Virtual Table Configuration Options.
Sq3ChangeSetConflictE
Constants Returned By The Conflict Handler.
Sq3CheckpointE
Checkpoint Mode Values.
Definition Sq3Enum_sq3.h:37
Sq3ConfigE
Configuration Options.
Sq3StmtStatusE
Status Parameters for prepared statements.
Sq3OpenEF
Flags For File Open Operations.
Sq3TextE
Text Encodings.
Sq3FcntlE
Standard File Control Opcodes.
Sq3SessionObjConfigE
Options for sqlite3session_object_config.
Sq3LimitE
Run-Time Limit Categories.
Sq3StatusE
Status Parameters.
Sq3TypeE
Fundamental Datatypes.
Sq3MutexE
Mutex Types.
Sq3PrepareEF
Prepare Flags.
Sq3DbConfigE
Database Connection Configuration Options.
Sq3SerializeE
Flags for sqlite3_serialize.
Sq3AccessE
Flags for the xAccess VFS method.
Sq3DeSerializeEF
Flags for sqlite3_deserialize()
Sq3LockE
File Locking Levels.
Sq3AuthReturnE
Authorizer Return Codes.
Sq3ErrorE
Result Codes.
Sq3DbStatusE
Status Parameters for database connections.
Definition Sq3Enum_sq3.h:82
Sq3IoCapEF
Device Characteristics.
Sq3SyncEF
Synchronization Type Flags.
Sq3TraceEF
SQL Trace Event Codes.
Sq3ChangesetE
Constants Passed To The Conflict Handler.
Sq3TestCtrlE
Testing Interface Operation Codes.
Sq3ExtendetResultCodesE
Extended Result Codes.
Sq3ShmLockE
Flags for the xShmLock VFS method.
Sq3ScanStatE
Prepared Statement Scan Status Opcodes.
Sq3TxnE
Allowed return values from sqlite3_txn_state()
Sq3FunctionEF
Function Flags.
Sq3ConflictResolutionE
Conflict resolution modes.
static MK_ARTIFICIAL SQ3_STMT Sq3StmtC_ObjNew(sqlite3_stmt *hdl)
return Programming-Language-Micro-Kernel (PLMK) instance from native hdl …
#define Sq3StmtC_type
same as Sq3StmtS but useable in a class-macro as: class##_type …
#define Sq3StmtC_X2obj(x)
static MK_ARTIFICIAL SQ3_VAL Sq3ValueC_ObjNew(sqlite3_value *hdl)
return Programming-Language-Micro-Kernel (PLMK) instance from native hdl …
#define Sq3ValueC_X2obj(x)
#define Sq3ValueC_type
same as Sq3ValueS but useable in a class-macro as: class##_type …
sq3_misc_check_lng.h - 08 Mar 2025 - aotto1968
sq3_type_S_lng.h - 10 Apr 2025 - aotto1968