theSq3Lite 10.0
Loading...
Searching...
No Matches
LibSq3Lite_rb.h
Go to the documentation of this file.
1
9#pragma once
10
11#include "LibMkKernel_rb.h"
12#include "LibSq3Lite_sq3.h"
13
14/*****************************************************************************/
15/* */
16/* Macro_API */
17/* */
18/*****************************************************************************/
19
20// BEGIN-HEADER - created by 'rb_MqS.tcl -i NHI1_HOME/theSq3Lite/c/gen/c_sq3lite.meta' - DO NOT change
21
22#undef HEADER
23#define HEADER
24
25// If the source of libsq3lite is direct used in an external library
26// (without dynamic linking) and this library should *not* export
27// the symbol's of libsq3lite then the flag META_IGNORE_EXTERN have
28// to be set
29#undef SQ3_RB_EXTERN
30#if defined(META_IGNORE_EXTERN)
31# define SQ3_RB_EXTERN
32#elif defined(PIC)
33 // does we build a DLL ?
34# if defined(DLL_EXPORT)
35 // does we build the libsq3lite library ?
36# if defined(SQ3_RB_BUILD_DLL)
37# define SQ3_RB_EXTERN __declspec(dllexport)
38# else
39# define SQ3_RB_EXTERN __declspec(dllimport)
40# endif
41# else
42 // no DLL - architecture specific extern specifier
43# define SQ3_RB_EXTERN __attribute__ ((visibility("default")))
44# endif
45#else
47# define SQ3_RB_EXTERN
48#endif
49
50// external data lookup
51#undef SQ3_RB_EXTERN_DATA
52#if defined(META_PRIVATE)
53# define SQ3_RB_EXTERN_DATA extern
54#elif defined(META_IGNORE_EXTERN)
55# define SQ3_RB_EXTERN_DATA extern
56#elif defined(PIC)
57 // does we build a DLL ?
58# if defined(DLL_EXPORT)
59 // does we build the libsq3lite library ?
60# if defined(SQ3_RB_BUILD_DLL)
61# define SQ3_RB_EXTERN_DATA __declspec(dllexport)
62# else
63# define SQ3_RB_EXTERN_DATA __declspec(dllimport)
64# endif
65# else
66 // no DLL - architecture specific extern specifier
67# define SQ3_RB_EXTERN_DATA __attribute__ ((visibility("default"))) extern
68# endif
69#else
70# define SQ3_RB_EXTERN_DATA extern
71#endif
72
73#undef SQ3
74#define SQ3(n) rbsq3lite_ ## n
75#undef NS
76#define NS(n) rbsq3lite_ ## n
77
78// END-HEADER - created by 'rb_MqS.tcl -i NHI1_HOME/theSq3Lite/c/gen/c_sq3lite.meta' - DO NOT change
79
80#undef OT_PKG
81#define OT_PKG SQ3(Sq3Lite)
82
83#include "tmpl/sq3_type_S_lng.h"
85
86/*****************************************************************************/
87/* */
88/* Class_API */
89/* */
90/*****************************************************************************/
91
93
94// BEGIN-CLASS - created by 'rb_MqS.tcl -i NHI1_HOME/theSq3Lite/c/gen/c_sq3lite.meta' - DO NOT change
95
96// ----------------------------------------------------------------------
97// class: Sq3BlobC
98
100 #define Sq3BlobC_lngO SQ3(Sq3BlobC)
101 #define Sq3BlobC_base MK(MkObjectC)
102
103 // MK_NULL singelton
105 #define Sq3BlobC_MK_NULL SQ3(Sq3BlobC_MK_NULL)
106
107 // arguments
108 #define Sq3BlobC_ARGS LNG_ARGS
109 #define Sq3BlobC_ARGS_CALL LNG_ARGS_CALL
110
111 // return object
112 #define OT_retObj_SET_BLOB(nat) retObj = SQ3(Sq3BlobC_ObjNew) (MK_RT_CALL nat)
113
114 // new object
115 #define OT_TMP_BLOB_OBJ(val) SQ3(Sq3BlobC_ObjNew)(MK_RT_CALL val)
120
121 // cast from LNG to MQ
122 #define VAL2BLOB(val) ((SQ3_BLOB)DATA_PTR(val))
123
124// ----------------------------------------------------------------------
125// class: Sq3FileC
126
128 #define Sq3FileC_lngO SQ3(Sq3FileC)
129 #define Sq3FileC_base MK(MkObjectC)
130
131 // MK_NULL singelton
133 #define Sq3FileC_MK_NULL SQ3(Sq3FileC_MK_NULL)
134
135 // arguments
136 #define Sq3FileC_ARGS LNG_ARGS
137 #define Sq3FileC_ARGS_CALL LNG_ARGS_CALL
138
139 // return object
140 #define OT_retObj_SET_FILE(nat) retObj = SQ3(Sq3FileC_ObjNew) (MK_RT_CALL nat)
141
142 // new object
143 #define OT_TMP_FILE_OBJ(val) SQ3(Sq3FileC_ObjNew)(MK_RT_CALL val)
148
149 // cast from LNG to MQ
150 #define VAL2FILE(val) ((SQ3_FILE)DATA_PTR(val))
151
152// ----------------------------------------------------------------------
153// class: Sq3LiteC
154
156 #define Sq3LiteC_lngO SQ3(Sq3LiteC)
157 #define Sq3LiteC_base MK(MkObjectC)
158
159 // MK_NULL singelton
161 #define Sq3LiteC_MK_NULL SQ3(Sq3LiteC_MK_NULL)
162
163 // arguments
164 #define Sq3LiteC_ARGS LNG_ARGS
165 #define Sq3LiteC_ARGS_CALL LNG_ARGS_CALL
166
167 // return object
168 #define OT_retObj_SET_LITE(nat) retObj = SQ3(Sq3LiteC_ObjNew) (MK_RT_CALL nat)
169
170 // new object
171 #define OT_TMP_LITE_OBJ(val) SQ3(Sq3LiteC_ObjNew)(MK_RT_CALL val)
176
177 // cast from LNG to MQ
178 #define VAL2LITE(val) ((SQ3_LITE)DATA_PTR(val))
179
180// ----------------------------------------------------------------------
181// class: Sq3StmtC
182
184 #define Sq3StmtC_lngO SQ3(Sq3StmtC)
185 #define Sq3StmtC_base MK(MkObjectC)
186
187 // MK_NULL singelton
189 #define Sq3StmtC_MK_NULL SQ3(Sq3StmtC_MK_NULL)
190
191 // arguments
192 #define Sq3StmtC_ARGS LNG_ARGS
193 #define Sq3StmtC_ARGS_CALL LNG_ARGS_CALL
194
195 // return object
196 #define OT_retObj_SET_STMT(nat) retObj = SQ3(Sq3StmtC_ObjNew) (MK_RT_CALL nat)
197
198 // new object
199 #define OT_TMP_STMT_OBJ(val) SQ3(Sq3StmtC_ObjNew)(MK_RT_CALL val)
204
205 // cast from LNG to MQ
206 #define VAL2STMT(val) ((SQ3_STMT)DATA_PTR(val))
207
208// ----------------------------------------------------------------------
209// class: Sq3ValueC
210
212 #define Sq3ValueC_lngO SQ3(Sq3ValueC)
213 #define Sq3ValueC_base MK(MkObjectC)
214
215 // MK_NULL singelton
217 #define Sq3ValueC_MK_NULL SQ3(Sq3ValueC_MK_NULL)
218
219 // arguments
220 #define Sq3ValueC_ARGS LNG_ARGS
221 #define Sq3ValueC_ARGS_CALL LNG_ARGS_CALL
222
223 // return object
224 #define OT_retObj_SET_VAL(nat) retObj = SQ3(Sq3ValueC_ObjNew) (MK_RT_CALL nat)
225
226 // new object
227 #define OT_TMP_VAL_OBJ(val) SQ3(Sq3ValueC_ObjNew)(MK_RT_CALL val)
232
233 // cast from LNG to MQ
234 #define VAL2VAL(val) ((SQ3_VAL)DATA_PTR(val))
235
236// END-CLASS - created by 'rb_MqS.tcl -i NHI1_HOME/theSq3Lite/c/gen/c_sq3lite.meta' - DO NOT change
237
238/*****************************************************************************/
239/* */
240/* Enum_API */
241/* */
242/*****************************************************************************/
243
244#define OT_NEW_Sq3_enum_OBJ(typ,i) MK(OtNewInstanceWithOneArg)(SQ3(Sq3##typ),INT2VAL(i))
245
246// BEGIN-enum - created by 'rb_MqS.tcl -i NHI1_HOME/theSq3Lite/c/gen/c_sq3lite.meta' - DO NOT change
247
283
284// END-enum - created by 'rb_MqS.tcl -i NHI1_HOME/theSq3Lite/c/gen/c_sq3lite.meta' - DO NOT change
285
286#undef HEADER
tag: nhi1-release-250425
#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
tag: nhi1-release-250425
#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:34
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:79
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 …
tag: nhi1-release-250425
tag: nhi1-release-250425