17# include "private_mk.h"
19# include "LibMkKernel_mk.h"
22#ifndef PARSE_C_HEADER_TO_META
171# undef SQ3_C_BUILD_DLL
172# define SQ3_C_BUILD_DLL
176# define SQ3_RT_ARGS_ONLY MK_RT mkrt
177# define SQ3_RT_ARGS SQ3_RT_ARGS_ONLY,
178# define SQ3_RT_CALL_ONLY mkrt
179# define SQ3_RT_CALL SQ3_RT_CALL_ONLY,
181# define SQ3_RT_ARGS_ONLY void
183# define SQ3_RT_CALL_ONLY
193#undef BEGIN_SQ3_C_DECLS
194#undef END_SQ3_C_DECLS
195#if defined(META_COMPILE_AS_CC)
196# define BEGIN_SQ3_C_DECLS namespace libsq3lite { using namespace libmkkernel;
197# define END_SQ3_C_DECLS }
198#elif defined(__cplusplus)
199# define BEGIN_SQ3_C_DECLS extern "C" {
200# define END_SQ3_C_DECLS }
202# define BEGIN_SQ3_C_DECLS
203# define END_SQ3_C_DECLS
207#ifndef PARSE_C_HEADER_TO_META
224# define SQ3_INSTANCE_HDL(x) MK_INSTANCE_HDL(x)
226# define SQ3_INSTANCE_RT_X(x) MK_INSTANCE_RT_X(x)
227# define SQ3_INSTANCE_RT_X_NULL(x) MK_INSTANCE_RT_X_NULL(x)
228# define SQ3_INSTANCE_RT_O(o) MK_INSTANCE_RT_O(o)
229# define SQ3_INSTANCE_RT_O_NULL(o) MK_INSTANCE_RT_O_NULL(o)
230# define SQ3_DESTRUCTOR_RT_X(c,x) MK_DESTRUCTOR_RT_X(c,x)
231# define SQ3_STATIC_RT MK_STATIC_RT
250#if defined(META_IGNORE_EXTERN)
254# if defined(DLL_EXPORT)
256# if defined(SQ3_C_BUILD_DLL)
257# define SQ3_EXTERN __declspec(dllexport)
259# define SQ3_EXTERN __declspec(dllimport)
263# define SQ3_EXTERN __attribute__ ((visibility("default")))
271#undef SQ3_EXTERN_DATA
272#if defined(META_PRIVATE)
273# define SQ3_EXTERN_DATA extern
274#elif defined(META_IGNORE_EXTERN)
275# define SQ3_EXTERN_DATA extern
278# if defined(DLL_EXPORT)
280# if defined(SQ3_C_BUILD_DLL)
281# define SQ3_EXTERN_DATA __declspec(dllexport)
283# define SQ3_EXTERN_DATA __declspec(dllimport)
287# define SQ3_EXTERN_DATA __attribute__ ((visibility("default"))) extern
290# define SQ3_EXTERN_DATA extern
314__parser__push__(no-rpc,
template-overload,doc-group=libsq3lite,doc-index=Setup);
337#define SQ3_SET_T(_cls,_hook,_nat) ({ \
339 (_cls##_type) MkObjCreate(_cls##_TT,_nat,NULL); \
350 __parser__(type=ME_CCC_Sq3ValueC:
"Sq3ValueC class handle":primary)
353 __parser__(type=ME_CCN_Sq3ValueC:"const - Sq3ValueC class handle":primary)
364 __parser__(type=ME_CCC_Sq3StmtC:"Sq3StmtC class handle":primary)
367 __parser__(type=ME_CCN_Sq3StmtC:"const - Sq3StmtC class handle":primary)
378 __parser__(type=ME_CCC_Sq3BlobC:"Sq3BlobC class handle":primary)
381 __parser__(type=ME_CCN_Sq3BlobC:"const - Sq3BlobC class handle":primary)
392 __parser__(type=ME_CCC_Sq3FileC:"Sq3FileC class handle":primary)
395 __parser__(type=ME_CCN_Sq3FileC:"const - Sq3FileC class handle":primary)
406 __parser__(type=ME_CCC_Sq3LiteC:"Sq3LiteC class handle":primary)
409 __parser__(type=ME_CCN_Sq3LiteC:"const - Sq3LiteC class handle":primary)
423 #include "Sq3Enum_sq3.h"
462#define Sq3ErrorE_Check(sq3_hdl,PROC) \
463 if (unlikely(Sq3ErrorCheckI(PROC))) { \
464 Sq3LiteErrorToMQ(MkOBJ(sq3_hdl), __func__,__FILE__,__LINE__); \
468#define Sq3ErrorE_Check_Package(PROC) \
469 if (unlikely(Sq3ErrorCheckI(PROC))) { \
470 Sq3LiteErrorToMQ(MK_ERROR_DEFAULT_NULL, __func__,__FILE__,__LINE__); \
474#define Sq3ErrorE_Check_Static(cls_hdl, PROC) \
475 if (unlikely(Sq3ErrorCheckI(PROC))) { \
476 Sq3LiteErrorToMQ(MkOBJ(cls_hdl), __func__,__FILE__,__LINE__); \
480#define Sq3ErrorE_Check_Ctor(__cls, __hdl, PROC) \
481 if (unlikely(Sq3ErrorCheckI(PROC))) { \
482 Sq3LiteErrorToMQ(__hdl?MkOBJ(__hdl):MkOBJ(__cls), __func__,__FILE__,__LINE__); \
528#ifndef PARSE_C_HEADER_TO_META
542#ifndef META_DOXYGEN_SHOULD_SKIP_THIS
544 #ifdef PARSE_C_HEADER_TO_META
552__parser__(type=ME_PSN_SQ3_FILENAME:
"constant string filename data-type":primary)
623#ifndef PARSE_C_HEADER_TO_META
629 #define Sq3Fupu_Sq3LiteProgressHandler_X_ret MK_I32
630 #define Sq3Fupu_Sq3LiteProgressHandler_X_args MK_PTR P
636 #define Sq3Fupu_Sq3LiteSetAuthorizer_xAuth_ret MK_I32
637 #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
647#ifndef PARSE_C_HEADER_TO_META
699#ifndef PARSE_C_HEADER_TO_META
760#ifndef PARSE_C_HEADER_TO_META
795#ifndef PARSE_C_HEADER_TO_META
819#ifndef PARSE_C_HEADER_TO_META
844#ifndef PARSE_C_HEADER_TO_META
885#ifndef PARSE_C_HEADER_TO_META
911#ifndef PARSE_C_HEADER_TO_META
979#define Sq3ErrorC_Check(hdl,PROC) \
980 if (unlikely(Sq3ErrorCheckI(PROC))) { \
981 OT_ERROR_SQ3_2_MQ(hdl); \
982 OT_ERROR_META_2_LNG(hdl); \
986#define OT_ERROR_SQ3_2_MQ(hdl) Sq3LiteErrorToMQ(MkOBJ(hdl), __func__,__FILE__,__LINE__);
1005 assert(kwd_out != NULL);
1013 strncpy(bufR.super.buf.storage.first.S,kwd,(
size_t)kwdsz);
1014 bufR.super.buf.storage.first.S[kwdsz] =
'\0';
#define BEGIN_SQ3_C_DECLS
void(* Sq3SetupThreadF)(MK_RT mkrt)
void Sq3SetupThreadCallback(Sq3SetupThreadF call)
Initialize a callback which is called at runtime-setup …
Sq3BlobC_sq3.h - 12 Dec 2024 - aotto1968.
Sq3FileC_sq3.h - 12 Dec 2024 - aotto1968.
Sq3LiteC_sq3.h - 23 Dec 2024 - aotto1968.
Sq3StmtC_sq3.h - 30 Dec 2024 - aotto1968.
Sq3ValueC_sq3.h - 12 Dec 2024 - aotto1968.
#define MkBufferSizeNew(...)
#define MkBufferCreateTLS_T(cls, name, size)
#define MkErrorStack_1X(...)
#define __parser__global__(...)
#define __parser__push__(...)
unsigned long long MK_U64
__thread MK_TYP Sq3LiteC_TT
class as MkTypeDefS-class-type …
static SQ3_LITE Sq3Lite(MK_MNG mng)
cast a unknown-object into an Sq3LiteS pointer or NULL if not possible
#define SQ3_EXTERN
static library
#define Sq3Fupu_Sq3LiteSetAuthorizer_xAuth_args
static MK_I64 Sq3MemoryHighwater(MK_I32 resetFlag)
Memory Allocator Statistics …
static MK_BOOL Sq3CompileOptionUsed(MK_STRN zOptName)
Run-Time Library Compilation Options Diagnostics …
static MK_STRN Sq3CompileOptionGet(MK_I32 N)
Run-Time Library Compilation Options Diagnostics …
#define Sq3Fupu_Sq3LiteProgressHandler_X_ret
static enum Sq3AuthReturnE Sq3LiteSetAuthorizer(SQ3_LITE sq3lite, Sq3Fupu_Sq3LiteSetAuthorizer_xAuth xAuth, MK_PTR pUserData)
Compile-Time Authorization Callbacks …
Sq3Fupu_Sq3LiteSetAuthorizer_xAuth_ret(* Sq3Fupu_Sq3LiteSetAuthorizer_xAuth)(Sq3Fupu_Sq3LiteSetAuthorizer_xAuth_args)
static void Sq3Randomness(MK_I32 N, MK_PTR P)
Pseudo-Random Number Generator …
static enum MkErrorE Sq3Threadsafe(void)
Test To See If The Library Is Threadsafe …
#define Sq3Fupu_Sq3LiteProgressHandler_X_args
#define Sq3Fupu_Sq3LiteSetAuthorizer_xAuth_ret
static MK_I64 Sq3MemoryUsed(void)
Memory Allocator Statistics …
Sq3Fupu_Sq3LiteProgressHandler_X_ret(* Sq3Fupu_Sq3LiteProgressHandler_X)(Sq3Fupu_Sq3LiteProgressHandler_X_args)
static void Sq3LiteProgressHandler(SQ3_LITE sq3lite, MK_I32 N, Sq3Fupu_Sq3LiteProgressHandler_X X, MK_PTR P)
Query Progress Callbacks …
Sq3StatusE
Status Parameters.
Sq3AuthReturnE
Authorizer Return Codes.
static bool Sq3ErrorCheckI(enum Sq3ErrorE ret)
check if ret signal an error …
#define Sq3ErrorE_Check_Package(PROC)
enum MkErrorE Sq3LiteErrorToMQ(MK_OBJN const obj, MK_STRN const func, MK_STRN const file, MK_I32 const line)
if a libsq3lite funtion return a MkErrorE use this function to convert the libsq3lite-error into the ...
static enum MkErrorE Sq3Complete(MK_STRN sql)
Determine If An SQL Statement Is Complete …
static enum MkErrorE Sq3Status64(enum Sq3StatusE op, MK_I64 *pCurrent, MK_I64 *pHighwater, MK_BOOL resetFlag)
SQLite Runtime Status …
static enum MkErrorE Sq3KeywordCount(void)
SQL Keyword Checking …
static enum MkErrorE Sq3KeywordCheck(MK_STRN arg0, MK_I32 arg1)
SQL Keyword Checking …
static enum MkErrorE Sq3KeywordNameBUF_RT(MK_RT mkrt, MK_I32 num, MK_BUF *kwd_out)
SQL Keyword Checking …
static enum MkErrorE Sq3Status(enum Sq3StatusE op, MK_I32 *pCurrent, MK_I32 *pHighwater, MK_BOOL resetFlag)
SQLite Runtime Status …
#define Sq3KeywordName_E(...)
static enum MkErrorE Sq3KeywordName(MK_I32 num, MK_STRN *kwd, MK_I32 *kwdsz)
SQL Keyword Checking …
static MK_PTR Sq3Realloc64(MK_PTR arg0, MK_I64 N)
Memory Allocation Subsystem …
static void Sq3Free(MK_PTR N)
Memory Allocation Subsystem …
static MK_I64 Sq3Msize(MK_PTR N)
Memory Allocation Subsystem …
static MK_PTR Sq3Malloc64(MK_I64 N)
Memory Allocation Subsystem …
static MK_PTR Sq3Malloc(MK_I32 N)
Memory Allocation Subsystem …
static MK_PTR Sq3Realloc(MK_PTR arg0, MK_I32 N)
Memory Allocation Subsystem …
static MK_I64 Sq3HardHeapLimit64(MK_I64 N)
Impose A Limit On Heap Size …
static enum MkErrorE Sq3ReleaseMemory(MK_I32 N)
Attempt To Free Heap Memory …
static MK_I64 Sq3SoftHeapLimit64(MK_I64 N)
Impose A Limit On Heap Size …
static MK_I32 Sq3StrGlob(MK_STRN zGlob, MK_STRN zStr)
String Globbing …
static MK_I32 Sq3StrLike(MK_STRN zGlob, MK_STRN zStr, MK_I32 cEsc)
String LIKE Matching …
static MK_I32 Sq3StrIcmp(MK_STRN arg0, MK_STRN arg1)
String Comparison …
static MK_I32 Sq3StrNicmp(MK_STRN arg0, MK_STRN arg1, MK_I32 arg2)
String Comparison …
void Sq3Cleanup(void)
cleanup libsq3lite internal memory …
void Sq3Setup(void)
setup libsq3lite internal memory …
static enum MkErrorE Sq3Shutdown(void)
Initialize The SQLite Library …
static enum MkErrorE Sq3Initialize(void)
Initialize The SQLite Library …
static enum MkErrorE Sq3OsInit(void)
Initialize The SQLite Library …
static enum MkErrorE Sq3OsEnd(void)
Initialize The SQLite Library …
static MK_STRN Sq3Libversion(void)
Run-Time Library Version Numbers …
static enum MkErrorE Sq3LibversionNumber(void)
Run-Time Library Version Numbers …
static MK_STRN Sq3Sourceid(void)
Run-Time Library Version Numbers …
static MK_STRN Sq3FilenameWal(SQ3_FILENAME F)
Translate filenames …
static void Sq3FreeFilename(SQ3_FILENAME arg0)
Create and Destroy VFS Filenames …
static MK_STRN Sq3UriKey(SQ3_FILENAME z, MK_I32 N)
Obtain Values For URI Parameters …
static MK_I64 Sq3UriInt64(SQ3_FILENAME arg0, MK_STRN arg1, MK_I64 arg2)
Obtain Values For URI Parameters …
static SQ3_FILENAME Sq3CreateFilename(MK_STRN zDatabase, MK_STRN zJournal, MK_STRN zWal, MK_I32 azParam_num, MK_STRN *azParam)
Create and Destroy VFS Filenames …
static MK_STRN Sq3FilenameDatabase(SQ3_FILENAME F)
Translate filenames …
static MK_STRN Sq3FilenameJournal(SQ3_FILENAME F)
Translate filenames …
static MK_STRN Sq3UriParameter(SQ3_FILENAME z, MK_STRN zParam)
Obtain Values For URI Parameters …
static enum MkErrorE Sq3UriBoolean(SQ3_FILENAME z, MK_STRN zParam, MK_I32 bDefault)
Obtain Values For URI Parameters …
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 - 23 Dec 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 …