17# include "private_mk.h"
19# include "kernel_mk.h"
22#ifndef PARSE_C_HEADER_TO_META
171# undef SQ3_C_BUILD_DLL
172# define SQ3_C_BUILD_DLL
181#undef BEGIN_SQ3_C_DECLS
182#undef END_SQ3_C_DECLS
183#if defined(META_COMPILE_AS_CC)
184# define BEGIN_SQ3_C_DECLS namespace libsq3lite { using namespace libmkkernel;
185# define END_SQ3_C_DECLS }
186#elif defined(__cplusplus)
187# define BEGIN_SQ3_C_DECLS extern "C" {
188# define END_SQ3_C_DECLS }
190# define BEGIN_SQ3_C_DECLS
191# define END_SQ3_C_DECLS
195#ifndef PARSE_C_HEADER_TO_META
211# define SQ3_RT_ARGS_ONLY MK_RT_ARGS_ONLY
212# define SQ3_RT_ARGS MK_RT_ARGS
213# define SQ3_RT_CALL_ONLY MK_RT_CALL_ONLY
214# define SQ3_RT_CALL MK_RT_CALL
215# define SQ3_RT_CALL_NULL_ONLY MK_RT_CALL_NULL_ONLY
216# define SQ3_RT_CALL_NULL MK_RT_CALL_NULL
217# define SQ3_RT_REF MK_RT_REF
218# define SQ3_RT_PARSER_ONLY MK_RT_PARSER_ONLY
219# define SQ3_RT_PARSER MK_RT_PARSER
220# define SQ3_RT_PTR MK_RT_PTR
222# define Sq3RtSetup_O(o) MkRtSetup_O(o)
223# define Sq3RtSetup_X(x) MkRtSetup_X(x)
224# define Sq3RtSetup_XN(x) MkRtSetup_XN(x)
225# define Sq3RtSetup_ON(o) MkRtSetup_ON(o)
226# define Sq3RtSetup_NULL MkRtSetup_NULL
227# define Sq3RtSetup_NULL_RT MkRtSetup_NULL_RT
229# define Sq3ERROR_R(r) MkERROR_R(r)
230# define Sq3ERROR_RT MkERROR
231# define Sq3ERROR_O(o) MkERROR_O(o)
232# define Sq3ERROR_X(x) MkERROR_X(x)
233# define Sq3ERROR_XN(x) MkERROR_XN(x)
234# define Sq3ERROR MkERROR
253#if defined(META_IGNORE_EXTERN)
257# if defined(DLL_EXPORT)
259# if defined(SQ3_C_BUILD_DLL)
260# define SQ3_EXTERN __declspec(dllexport)
262# define SQ3_EXTERN __declspec(dllimport)
266# define SQ3_EXTERN __attribute__ ((visibility("default")))
274#undef SQ3_EXTERN_DATA
275#if defined(META_PRIVATE)
276# define SQ3_EXTERN_DATA extern
277#elif defined(META_IGNORE_EXTERN)
278# define SQ3_EXTERN_DATA extern
281# if defined(DLL_EXPORT)
283# if defined(SQ3_C_BUILD_DLL)
284# define SQ3_EXTERN_DATA __declspec(dllexport)
286# define SQ3_EXTERN_DATA __declspec(dllimport)
290# define SQ3_EXTERN_DATA __attribute__ ((visibility("default"))) extern
293# define SQ3_EXTERN_DATA extern
317__parser__push__(no-rpc,
template-overload,doc-group=libsq3lite,doc-index=Setup);
343#define SQ3_SET_T(_cls,_hook,_nat) ({ \
345 (_cls##_type) MkObjCreate(_cls##_TT,_nat,NULL); \
356 __parser__(type=ME_CCC_Sq3ValueC:
"Sq3ValueC class handle":primary)
359 __parser__(type=ME_CCN_Sq3ValueC:"const - Sq3ValueC class handle":primary)
370 __parser__(type=ME_CCC_Sq3StmtC:"Sq3StmtC class handle":primary)
373 __parser__(type=ME_CCN_Sq3StmtC:"const - Sq3StmtC class handle":primary)
384 __parser__(type=ME_CCC_Sq3BlobC:"Sq3BlobC class handle":primary)
387 __parser__(type=ME_CCN_Sq3BlobC:"const - Sq3BlobC class handle":primary)
398 __parser__(type=ME_CCC_Sq3FileC:"Sq3FileC class handle":primary)
401 __parser__(type=ME_CCN_Sq3FileC:"const - Sq3FileC class handle":primary)
412 __parser__(type=ME_CCC_Sq3LiteC:"Sq3LiteC class handle":primary)
415 __parser__(type=ME_CCN_Sq3LiteC:"const - Sq3LiteC class handle":primary)
429 #include "Sq3Enum_sq3.h"
467#define Sq3ErrorE_Check(sq3_hdl,PROC) \
468 if (unlikely(Sq3ErrorCheckI(PROC))) { \
469 Sq3LiteErrorToMQ(MkOBJ(sq3_hdl), __func__,__FILE__,__LINE__); \
473#define Sq3ErrorE_Check_Package(PROC) \
474 if (unlikely(Sq3ErrorCheckI(PROC))) { \
475 Sq3LiteErrorToMQ(MK_ERROR_DEFAULT_NULL, __func__,__FILE__,__LINE__); \
479#define Sq3ErrorE_Check_Static(cls_hdl, PROC) \
480 if (unlikely(Sq3ErrorCheckI(PROC))) { \
481 Sq3LiteErrorToMQ(MkOBJ(cls_hdl), __func__,__FILE__,__LINE__); \
485#define Sq3ErrorE_Check_Ctor(__cls, __hdl, PROC) \
486 if (unlikely(Sq3ErrorCheckI(PROC))) { \
487 Sq3LiteErrorToMQ(__hdl?MkOBJ(__hdl):MkOBJ(__cls), __func__,__FILE__,__LINE__); \
533#ifndef PARSE_C_HEADER_TO_META
547#ifndef META_DOXYGEN_SHOULD_SKIP_THIS
549 #ifdef PARSE_C_HEADER_TO_META
557__parser__(type=ME_PSN_SQ3_FILENAME:
"constant string filename data-type":primary)
628#ifndef PARSE_C_HEADER_TO_META
634 #define Sq3Fupu_Sq3LiteProgressHandler_X_ret MK_I32
635 #define Sq3Fupu_Sq3LiteProgressHandler_X_args MK_PTR P
641 #define Sq3Fupu_Sq3LiteSetAuthorizer_xAuth_ret MK_I32
642 #define Sq3Fupu_Sq3LiteSetAuthorizer_xAuth_args MK_PTR pUserData, MK_I32 auth_action_code, MK_STRN arg2, MK_STRN arg3, MK_STRN arg4, MK_STRN arg5
652#ifndef PARSE_C_HEADER_TO_META
704#ifndef PARSE_C_HEADER_TO_META
765#ifndef PARSE_C_HEADER_TO_META
800#ifndef PARSE_C_HEADER_TO_META
824#ifndef PARSE_C_HEADER_TO_META
849#ifndef PARSE_C_HEADER_TO_META
890#ifndef PARSE_C_HEADER_TO_META
916#ifndef PARSE_C_HEADER_TO_META
984#define Sq3ErrorC_Check(hdl,PROC) \
985 if (unlikely(Sq3ErrorCheckI(PROC))) { \
986 OT_ERROR_SQ3_2_MQ(hdl); \
987 OT_ERROR_MQ_2_LNG(hdl); \
991#define OT_ERROR_SQ3_2_MQ(hdl) Sq3LiteErrorToMQ(MkOBJ(hdl), __func__,__FILE__,__LINE__);
1004 assert(kwd_out != NULL);
1011 strncpy(bufR.super.buf.storage.first.S,kwd,(
size_t)kwdsz);
1012 bufR.super.buf.storage.first.S[kwdsz] =
'\0';
#define BEGIN_SQ3_C_DECLS
SQ3_EXTERN void Sq3SetupThreadCallback(Sq3SetupThreadF call)
Initialize a callback which is called at runtime-setup …
void(* Sq3SetupThreadF)(MK_RT_ARGS_ONLY)
Sq3BlobC_sq3.h - 26 Jun 2024 - aotto1968.
Sq3FileC_sq3.h - 26 Jun 2024 - aotto1968.
Sq3LiteC_sq3.h - 07 Aug 2024 - aotto1968.
Sq3StmtC_sq3.h - 27 Jul 2024 - aotto1968.
Sq3ValueC_sq3.h - 26 Jun 2024 - aotto1968.
#define MkBufferSizeNew(...)
#define MkBufferCreateTLS_T(cls, name, size)
#define MkErrorStack_1X(...)
#define __parser__global__(...)
#define __parser__push__(...)
unsigned long long MK_U64
SQ3_LITE Sq3Lite(MK_MNG mng)
cast a unknown-object into an Sq3LiteS pointer or NULL if not possible
MkThreadLocal MK_TYP Sq3LiteC_TT
class as MkSuperTypeS-class-type …
#define SQ3_EXTERN
static library
#define Sq3Fupu_Sq3LiteSetAuthorizer_xAuth_args
void Sq3LiteProgressHandler(SQ3_LITE sq3lite, MK_I32 N, Sq3Fupu_Sq3LiteProgressHandler_X X, MK_PTR P)
Query Progress Callbacks …
void Sq3Randomness(MK_I32 N, MK_PTR P)
Pseudo-Random Number Generator …
#define Sq3Fupu_Sq3LiteProgressHandler_X_ret
MK_STRN Sq3CompileOptionGet(MK_I32 N)
Run-Time Library Compilation Options Diagnostics …
enum MkErrorE Sq3Threadsafe(void)
Test To See If The Library Is Threadsafe …
Sq3Fupu_Sq3LiteSetAuthorizer_xAuth_ret(* Sq3Fupu_Sq3LiteSetAuthorizer_xAuth)(Sq3Fupu_Sq3LiteSetAuthorizer_xAuth_args)
MK_I64 Sq3MemoryUsed(void)
Memory Allocator Statistics …
enum Sq3AuthReturnE Sq3LiteSetAuthorizer(SQ3_LITE sq3lite, Sq3Fupu_Sq3LiteSetAuthorizer_xAuth xAuth, MK_PTR pUserData)
Compile-Time Authorization Callbacks …
#define Sq3Fupu_Sq3LiteProgressHandler_X_args
#define Sq3Fupu_Sq3LiteSetAuthorizer_xAuth_ret
MK_I64 Sq3MemoryHighwater(MK_I32 resetFlag)
Memory Allocator Statistics …
Sq3Fupu_Sq3LiteProgressHandler_X_ret(* Sq3Fupu_Sq3LiteProgressHandler_X)(Sq3Fupu_Sq3LiteProgressHandler_X_args)
MK_BOOL Sq3CompileOptionUsed(MK_STRN zOptName)
Run-Time Library Compilation Options Diagnostics …
Sq3StatusE
Status Parameters.
Sq3AuthReturnE
Authorizer Return Codes.
#define Sq3ErrorE_Check_Package(PROC)
SQ3_EXTERN enum MkErrorE Sq3LiteErrorToMQ(MK_OBJN const obj, MK_STRN const func, MK_STRN const file, MK_I32 const line) MK_ATTR_HDL
if a libsq3lite funtion return a MkErrorE use this function to convert the libsq3lite-error into the ...
bool Sq3ErrorCheckI(enum Sq3ErrorE ret)
check if ret signal an error …
enum MkErrorE Sq3KeywordCheck(MK_STRN arg0, MK_I32 arg1)
SQL Keyword Checking …
enum MkErrorE Sq3KeywordName(MK_I32 num, MK_STRN *kwd, MK_I32 *kwdsz)
SQL Keyword Checking …
enum MkErrorE Sq3Status(enum Sq3StatusE op, MK_I32 *pCurrent, MK_I32 *pHighwater, MK_BOOL resetFlag)
SQLite Runtime Status …
enum MkErrorE Sq3Status64(enum Sq3StatusE op, MK_I64 *pCurrent, MK_I64 *pHighwater, MK_BOOL resetFlag)
SQLite Runtime Status …
enum MkErrorE Sq3KeywordCount(void)
SQL Keyword Checking …
#define Sq3KeywordName_E(...)
enum MkErrorE Sq3KeywordNameBUF(MK_I32 num, MK_BUF *kwd_out)
SQL Keyword Checking …
enum MkErrorE Sq3Complete(MK_STRN sql)
Determine If An SQL Statement Is Complete …
MK_PTR Sq3Malloc64(MK_I64 N)
Memory Allocation Subsystem …
MK_I64 Sq3Msize(MK_PTR N)
Memory Allocation Subsystem …
MK_PTR Sq3Malloc(MK_I32 N)
Memory Allocation Subsystem …
MK_PTR Sq3Realloc64(MK_PTR arg0, MK_I64 N)
Memory Allocation Subsystem …
MK_PTR Sq3Realloc(MK_PTR arg0, MK_I32 N)
Memory Allocation Subsystem …
void Sq3Free(MK_PTR N)
Memory Allocation Subsystem …
MK_I64 Sq3SoftHeapLimit64(MK_I64 N)
Impose A Limit On Heap Size …
enum MkErrorE Sq3ReleaseMemory(MK_I32 N)
Attempt To Free Heap Memory …
MK_I64 Sq3HardHeapLimit64(MK_I64 N)
Impose A Limit On Heap Size …
MK_I32 Sq3StrGlob(MK_STRN zGlob, MK_STRN zStr)
String Globbing …
MK_I32 Sq3StrIcmp(MK_STRN arg0, MK_STRN arg1)
String Comparison …
MK_I32 Sq3StrLike(MK_STRN zGlob, MK_STRN zStr, MK_I32 cEsc)
String LIKE Matching …
MK_I32 Sq3StrNicmp(MK_STRN arg0, MK_STRN arg1, MK_I32 arg2)
String Comparison …
SQ3_EXTERN void Sq3Setup(void)
setup libsq3lite internal memory …
SQ3_EXTERN void Sq3Cleanup(void)
cleanup libsq3lite internal memory …
enum MkErrorE Sq3Initialize(void)
Initialize The SQLite Library …
enum MkErrorE Sq3Shutdown(void)
Initialize The SQLite Library …
enum MkErrorE Sq3OsInit(void)
Initialize The SQLite Library …
enum MkErrorE Sq3OsEnd(void)
Initialize The SQLite Library …
enum MkErrorE Sq3LibversionNumber(void)
Run-Time Library Version Numbers …
MK_STRN Sq3Sourceid(void)
Run-Time Library Version Numbers …
MK_STRN Sq3Libversion(void)
Run-Time Library Version Numbers …
SQ3_FILENAME Sq3CreateFilename(MK_STRN zDatabase, MK_STRN zJournal, MK_STRN zWal, MK_I32 azParam_num, MK_STRN *azParam)
Create and Destroy VFS Filenames …
MK_STRN Sq3UriParameter(SQ3_FILENAME z, MK_STRN zParam)
Obtain Values For URI Parameters …
MK_STRN Sq3UriKey(SQ3_FILENAME z, MK_I32 N)
Obtain Values For URI Parameters …
MK_STRN Sq3FilenameDatabase(SQ3_FILENAME F)
Translate filenames …
MK_I64 Sq3UriInt64(SQ3_FILENAME arg0, MK_STRN arg1, MK_I64 arg2)
Obtain Values For URI Parameters …
enum MkErrorE Sq3UriBoolean(SQ3_FILENAME z, MK_STRN zParam, MK_I32 bDefault)
Obtain Values For URI Parameters …
void Sq3FreeFilename(SQ3_FILENAME arg0)
Create and Destroy VFS Filenames …
MK_STRN Sq3FilenameJournal(SQ3_FILENAME F)
Translate filenames …
MK_STRN Sq3FilenameWal(SQ3_FILENAME F)
Translate filenames …
SQLITE_API void * sqlite3_malloc64(sqlite3_uint64)
SQLITE_API const char * sqlite3_uri_parameter(sqlite3_filename z, const char *zParam)
SQLITE_API int sqlite3_keyword_check(const char *, int)
SQLITE_API int sqlite3_strglob(const char *zGlob, const char *zStr)
SQLITE_API int sqlite3_os_end(void)
SQLITE_API int sqlite3_status64(int op, sqlite3_int64 *pCurrent, sqlite3_int64 *pHighwater, int resetFlag)
SQLITE_API int sqlite3_strlike(const char *zGlob, const char *zStr, unsigned int cEsc)
SQLITE_API const char * sqlite3_compileoption_get(int N)
SQLITE_API const char * sqlite3_sourceid(void)
SQLITE_API void * sqlite3_realloc64(void *, sqlite3_uint64)
SQLITE_API void sqlite3_free_filename(sqlite3_filename)
const char * sqlite3_filename
SQLITE_API int sqlite3_strnicmp(const char *, const char *, int)
SQLITE_API sqlite3_uint64 sqlite3_msize(void *)
SQLITE_API const char * sqlite3_libversion(void)
SQLITE_API int sqlite3_compileoption_used(const char *zOptName)
SQLITE_API sqlite3_int64 sqlite3_memory_highwater(int resetFlag)
SQLITE_API void sqlite3_free(void *)
SQLITE_API const char * sqlite3_filename_journal(sqlite3_filename)
SQLITE_API int sqlite3_set_authorizer(sqlite3 *, int(*xAuth)(void *, int, const char *, const char *, const char *, const char *), void *pUserData)
SQLITE_API void sqlite3_progress_handler(sqlite3 *, int, int(*)(void *), void *)
SQLITE_API const char * sqlite3_filename_database(sqlite3_filename)
SQLITE_API const char * sqlite3_filename_wal(sqlite3_filename)
SQLITE_API void * sqlite3_realloc(void *, int)
SQLITE_API int sqlite3_libversion_number(void)
SQLITE_API int sqlite3_keyword_name(int, const char **, int *)
SQLITE_API int sqlite3_release_memory(int)
SQLITE_API sqlite3_filename sqlite3_create_filename(const char *zDatabase, const char *zJournal, const char *zWal, int nParam, const char **azParam)
SQLITE_API int sqlite3_complete(const char *sql)
SQLITE_API sqlite3_int64 sqlite3_hard_heap_limit64(sqlite3_int64 N)
SQLITE_API void sqlite3_randomness(int N, void *P)
SQLITE_API const char * sqlite3_uri_key(sqlite3_filename z, int N)
SQLITE_API int sqlite3_stricmp(const char *, const char *)
SQLITE_API int sqlite3_initialize(void)
SQLITE_API int sqlite3_threadsafe(void)
SQLITE_API sqlite3_int64 sqlite3_soft_heap_limit64(sqlite3_int64 N)
SQLITE_API sqlite3_int64 sqlite3_memory_used(void)
SQLITE_API int sqlite3_status(int op, int *pCurrent, int *pHighwater, int resetFlag)
SQLITE_API void * sqlite3_malloc(int)
SQLITE_API int sqlite3_keyword_count(void)
SQLITE_API int sqlite3_os_init(void)
SQLITE_API int sqlite3_shutdown(void)
SQLITE_API int sqlite3_uri_boolean(sqlite3_filename z, const char *zParam, int bDefault)
SQLITE_API sqlite3_int64 sqlite3_uri_int64(sqlite3_filename, const char *, sqlite3_int64)
sqlite3_overload_sq3.h - 07 Aug 2024 - aotto1968
Struct to represent the data of the Sq3BlobC …
Struct to represent the data of the Sq3FileC …
Struct to represent the data of the Sq3LiteC …
sqlite3 * nat
internal - link between Sq3LiteS and native library
Struct to represent the data of the Sq3StmtC …
Struct to represent the data of the Sq3ValueC …