theSq3Lite 10.0
Loading...
Searching...
No Matches
LibSq3Lite_py.c
Go to the documentation of this file.
1
9/* LABEL-NO */
10
11#include "LibSq3Lite_py.h"
12
13#define OT_SETUP_hdl MkRtSetup_NULL; \
14 MK_OBJ hdl = MK_ERROR_PRINT;
15#define OT_SETUP_hdl_static __attribute__((unused)) MK_RT mkrt = MkRT; \
16 __attribute__((unused)) MK_ERR hdl = &MkERROR;
17
18#define Sq3SetupTmpl()
19#define Sq3CleanupTmpl()
20
21// MARK_D ################################################################
22// -----------------------------------------------------------------------
23// documentation order
125// --------------------------------------------------------------------------------
126
127// MARK_E
128// BEGIN-EnumDef - created by 'py_MqS.tcl -i NHI1_HOME/theSq3Lite/c/gen/c_sq3lite.meta' - DO NOT change
129
130// UNDEF
131
132// END-EnumDef - created by 'py_MqS.tcl -i NHI1_HOME/theSq3Lite/c/gen/c_sq3lite.meta' - DO NOT change
133
139
140// BEGIN-DOC - created by 'py_MqS.tcl -i NHI1_HOME/theSq3Lite/c/gen/c_sq3lite.meta' - DO NOT change
141
142// doc-key: Sq3Lite,EnumFunc,sco,func
143#define AccessE_FromInt_doc "Sq3AccessE AccessE_FromInt(value:int32)"
144#define AuthActionE_FromInt_doc "Sq3AuthActionE AuthActionE_FromInt(value:int32)"
145#define AuthReturnE_FromInt_doc "Sq3AuthReturnE AuthReturnE_FromInt(value:int32)"
146#define ChangeSetConflictE_FromInt_doc "Sq3ChangeSetConflictE ChangeSetConflictE_FromInt(value:int32)"
147#define ChangesetE_FromInt_doc "Sq3ChangesetE ChangesetE_FromInt(value:int32)"
148#define CheckpointE_FromInt_doc "Sq3CheckpointE CheckpointE_FromInt(value:int32)"
149#define ConfigE_FromInt_doc "Sq3ConfigE ConfigE_FromInt(value:int32)"
150#define ConflictResolutionE_FromInt_doc "Sq3ConflictResolutionE ConflictResolutionE_FromInt(value:int32)"
151#define DbConfigE_FromInt_doc "Sq3DbConfigE DbConfigE_FromInt(value:int32)"
152#define DbStatusE_FromInt_doc "Sq3DbStatusE DbStatusE_FromInt(value:int32)"
153#define DeSerializeEF_FromInt_doc "Sq3DeSerializeEF DeSerializeEF_FromInt(value:int32)"
154#define ErrorE_FromInt_doc "Sq3ErrorE ErrorE_FromInt(value:int32)"
155#define ExtendetResultCodesE_FromInt_doc "Sq3ExtendetResultCodesE ExtendetResultCodesE_FromInt(value:int32)"
156#define FcntlE_FromInt_doc "Sq3FcntlE FcntlE_FromInt(value:int32)"
157#define FunctionEF_FromInt_doc "Sq3FunctionEF FunctionEF_FromInt(value:int32)"
158#define IndexConstraintEF_FromInt_doc "Sq3IndexConstraintEF IndexConstraintEF_FromInt(value:int32)"
159#define IoCapEF_FromInt_doc "Sq3IoCapEF IoCapEF_FromInt(value:int32)"
160#define LimitE_FromInt_doc "Sq3LimitE LimitE_FromInt(value:int32)"
161#define LockE_FromInt_doc "Sq3LockE LockE_FromInt(value:int32)"
162#define MutexE_FromInt_doc "Sq3MutexE MutexE_FromInt(value:int32)"
163#define OpenEF_FromInt_doc "Sq3OpenEF OpenEF_FromInt(value:int32)"
164#define PrepareEF_FromInt_doc "Sq3PrepareEF PrepareEF_FromInt(value:int32)"
165#define ScanStatE_FromInt_doc "Sq3ScanStatE ScanStatE_FromInt(value:int32)"
166#define SerializeE_FromInt_doc "Sq3SerializeE SerializeE_FromInt(value:int32)"
167#define SessionObjConfigE_FromInt_doc "Sq3SessionObjConfigE SessionObjConfigE_FromInt(value:int32)"
168#define ShmLockE_FromInt_doc "Sq3ShmLockE ShmLockE_FromInt(value:int32)"
169#define StatusE_FromInt_doc "Sq3StatusE StatusE_FromInt(value:int32)"
170#define StmtStatusE_FromInt_doc "Sq3StmtStatusE StmtStatusE_FromInt(value:int32)"
171#define SyncEF_FromInt_doc "Sq3SyncEF SyncEF_FromInt(value:int32)"
172#define TestCtrlE_FromInt_doc "Sq3TestCtrlE TestCtrlE_FromInt(value:int32)"
173#define TextE_FromInt_doc "Sq3TextE TextE_FromInt(value:int32)"
174#define TraceEF_FromInt_doc "Sq3TraceEF TraceEF_FromInt(value:int32)"
175#define TxnE_FromInt_doc "Sq3TxnE TxnE_FromInt(value:int32)"
176#define TypeE_FromInt_doc "Sq3TypeE TypeE_FromInt(value:int32)"
177#define VtabE_FromInt_doc "Sq3VtabE VtabE_FromInt(value:int32)"
178
179// doc-key: Sq3Lite,EnumFunc,sm_,func
180#define AccessE_ToInt_doc "int32 AccessE_ToInt(value:Sq3AccessE)"
181#define AccessE_ToString_doc "string AccessE_ToString(value:Sq3AccessE)"
182#define AuthActionE_ToInt_doc "int32 AuthActionE_ToInt(value:Sq3AuthActionE)"
183#define AuthActionE_ToString_doc "string AuthActionE_ToString(value:Sq3AuthActionE)"
184#define AuthReturnE_ToInt_doc "int32 AuthReturnE_ToInt(value:Sq3AuthReturnE)"
185#define AuthReturnE_ToString_doc "string AuthReturnE_ToString(value:Sq3AuthReturnE)"
186#define ChangeSetConflictE_ToInt_doc "int32 ChangeSetConflictE_ToInt(value:Sq3ChangeSetConflictE)"
187#define ChangeSetConflictE_ToString_doc "string ChangeSetConflictE_ToString(value:Sq3ChangeSetConflictE)"
188#define ChangesetE_ToInt_doc "int32 ChangesetE_ToInt(value:Sq3ChangesetE)"
189#define ChangesetE_ToString_doc "string ChangesetE_ToString(value:Sq3ChangesetE)"
190#define CheckpointE_ToInt_doc "int32 CheckpointE_ToInt(value:Sq3CheckpointE)"
191#define CheckpointE_ToString_doc "string CheckpointE_ToString(value:Sq3CheckpointE)"
192#define ConfigE_ToInt_doc "int32 ConfigE_ToInt(value:Sq3ConfigE)"
193#define ConfigE_ToString_doc "string ConfigE_ToString(value:Sq3ConfigE)"
194#define ConflictResolutionE_ToInt_doc "int32 ConflictResolutionE_ToInt(value:Sq3ConflictResolutionE)"
195#define ConflictResolutionE_ToString_doc "string ConflictResolutionE_ToString(value:Sq3ConflictResolutionE)"
196#define DbConfigE_ToInt_doc "int32 DbConfigE_ToInt(value:Sq3DbConfigE)"
197#define DbConfigE_ToString_doc "string DbConfigE_ToString(value:Sq3DbConfigE)"
198#define DbStatusE_ToInt_doc "int32 DbStatusE_ToInt(value:Sq3DbStatusE)"
199#define DbStatusE_ToString_doc "string DbStatusE_ToString(value:Sq3DbStatusE)"
200#define DeSerializeEF_ToInt_doc "int32 DeSerializeEF_ToInt(value:Sq3DeSerializeEF)"
201#define DeSerializeEF_ToString_doc "string DeSerializeEF_ToString(value:Sq3DeSerializeEF)"
202#define ErrorE_ToInt_doc "int32 ErrorE_ToInt(value:Sq3ErrorE)"
203#define ErrorE_ToString_doc "string ErrorE_ToString(value:Sq3ErrorE)"
204#define ExtendetResultCodesE_ToInt_doc "int32 ExtendetResultCodesE_ToInt(value:Sq3ExtendetResultCodesE)"
205#define ExtendetResultCodesE_ToString_doc "string ExtendetResultCodesE_ToString(value:Sq3ExtendetResultCodesE)"
206#define FcntlE_ToInt_doc "int32 FcntlE_ToInt(value:Sq3FcntlE)"
207#define FcntlE_ToString_doc "string FcntlE_ToString(value:Sq3FcntlE)"
208#define FunctionEF_ToInt_doc "int32 FunctionEF_ToInt(value:Sq3FunctionEF)"
209#define FunctionEF_ToString_doc "string FunctionEF_ToString(value:Sq3FunctionEF)"
210#define IndexConstraintEF_ToInt_doc "int32 IndexConstraintEF_ToInt(value:Sq3IndexConstraintEF)"
211#define IndexConstraintEF_ToString_doc "string IndexConstraintEF_ToString(value:Sq3IndexConstraintEF)"
212#define IoCapEF_ToInt_doc "int32 IoCapEF_ToInt(value:Sq3IoCapEF)"
213#define IoCapEF_ToString_doc "string IoCapEF_ToString(value:Sq3IoCapEF)"
214#define LimitE_ToInt_doc "int32 LimitE_ToInt(value:Sq3LimitE)"
215#define LimitE_ToString_doc "string LimitE_ToString(value:Sq3LimitE)"
216#define LockE_ToInt_doc "int32 LockE_ToInt(value:Sq3LockE)"
217#define LockE_ToString_doc "string LockE_ToString(value:Sq3LockE)"
218#define MutexE_ToInt_doc "int32 MutexE_ToInt(value:Sq3MutexE)"
219#define MutexE_ToString_doc "string MutexE_ToString(value:Sq3MutexE)"
220#define OpenEF_ToInt_doc "int32 OpenEF_ToInt(value:Sq3OpenEF)"
221#define OpenEF_ToString_doc "string OpenEF_ToString(value:Sq3OpenEF)"
222#define PrepareEF_ToInt_doc "int32 PrepareEF_ToInt(value:Sq3PrepareEF)"
223#define PrepareEF_ToString_doc "string PrepareEF_ToString(value:Sq3PrepareEF)"
224#define ScanStatE_ToInt_doc "int32 ScanStatE_ToInt(value:Sq3ScanStatE)"
225#define ScanStatE_ToString_doc "string ScanStatE_ToString(value:Sq3ScanStatE)"
226#define SerializeE_ToInt_doc "int32 SerializeE_ToInt(value:Sq3SerializeE)"
227#define SerializeE_ToString_doc "string SerializeE_ToString(value:Sq3SerializeE)"
228#define SessionObjConfigE_ToInt_doc "int32 SessionObjConfigE_ToInt(value:Sq3SessionObjConfigE)"
229#define SessionObjConfigE_ToString_doc "string SessionObjConfigE_ToString(value:Sq3SessionObjConfigE)"
230#define ShmLockE_ToInt_doc "int32 ShmLockE_ToInt(value:Sq3ShmLockE)"
231#define ShmLockE_ToString_doc "string ShmLockE_ToString(value:Sq3ShmLockE)"
232#define StatusE_ToInt_doc "int32 StatusE_ToInt(value:Sq3StatusE)"
233#define StatusE_ToString_doc "string StatusE_ToString(value:Sq3StatusE)"
234#define StmtStatusE_ToInt_doc "int32 StmtStatusE_ToInt(value:Sq3StmtStatusE)"
235#define StmtStatusE_ToString_doc "string StmtStatusE_ToString(value:Sq3StmtStatusE)"
236#define SyncEF_ToInt_doc "int32 SyncEF_ToInt(value:Sq3SyncEF)"
237#define SyncEF_ToString_doc "string SyncEF_ToString(value:Sq3SyncEF)"
238#define TestCtrlE_ToInt_doc "int32 TestCtrlE_ToInt(value:Sq3TestCtrlE)"
239#define TestCtrlE_ToString_doc "string TestCtrlE_ToString(value:Sq3TestCtrlE)"
240#define TextE_ToInt_doc "int32 TextE_ToInt(value:Sq3TextE)"
241#define TextE_ToString_doc "string TextE_ToString(value:Sq3TextE)"
242#define TraceEF_ToInt_doc "int32 TraceEF_ToInt(value:Sq3TraceEF)"
243#define TraceEF_ToString_doc "string TraceEF_ToString(value:Sq3TraceEF)"
244#define TxnE_ToInt_doc "int32 TxnE_ToInt(value:Sq3TxnE)"
245#define TxnE_ToString_doc "string TxnE_ToString(value:Sq3TxnE)"
246#define TypeE_ToInt_doc "int32 TypeE_ToInt(value:Sq3TypeE)"
247#define TypeE_ToString_doc "string TypeE_ToString(value:Sq3TypeE)"
248#define VtabE_ToInt_doc "int32 VtabE_ToInt(value:Sq3VtabE)"
249#define VtabE_ToString_doc "string VtabE_ToString(value:Sq3VtabE)"
250
251// doc-key: Sq3Lite,Sq3,sco,func
252#define KeywordNameBUF_doc "MkBufferC KeywordNameBUF(num:int32)"
253
254// doc-key: Sq3Lite,Sq3,sm_,func
255#define Cleanup_doc "Cleanup()"
256#define CompileOptionGet_doc "string CompileOptionGet(N:int32)"
257#define CompileOptionUsed_doc "bool CompileOptionUsed(zOptName:string)"
258#define Complete_doc "Complete(sql:string)"
259#define ErrorCheckI_doc "bool ErrorCheckI(ret:Sq3ErrorE)"
260#define FilenameDatabase_doc "string FilenameDatabase(F:string)"
261#define FilenameJournal_doc "string FilenameJournal(F:string)"
262#define FilenameWal_doc "string FilenameWal(F:string)"
263#define FreeFilename_doc "FreeFilename(arg0:string)"
264#define HardHeapLimit64_doc "int64 HardHeapLimit64(N:int64)"
265#define Initialize_doc "Initialize()"
266#define KeywordCheck_doc "KeywordCheck(arg0:string, arg1:int32)"
267#define KeywordCount_doc "KeywordCount()"
268#define Libversion_doc "string Libversion()"
269#define LibversionNumber_doc "LibversionNumber()"
270#define MemoryHighwater_doc "int64 MemoryHighwater(resetFlag:int32)"
271#define MemoryUsed_doc "int64 MemoryUsed()"
272#define OsEnd_doc "OsEnd()"
273#define OsInit_doc "OsInit()"
274#define ReleaseMemory_doc "ReleaseMemory(N:int32)"
275#define Setup_doc "Setup()"
276#define Shutdown_doc "Shutdown()"
277#define SoftHeapLimit64_doc "int64 SoftHeapLimit64(N:int64)"
278#define Sourceid_doc "string Sourceid()"
279#define StrGlob_doc "int32 StrGlob(zGlob:string, zStr:string)"
280#define StrIcmp_doc "int32 StrIcmp(arg0:string, arg1:string)"
281#define StrLike_doc "int32 StrLike(zGlob:string, zStr:string, cEsc:int32)"
282#define StrNicmp_doc "int32 StrNicmp(arg0:string, arg1:string, arg2:int32)"
283#define Threadsafe_doc "Threadsafe()"
284#define UriBoolean_doc "UriBoolean(z:string, zParam:string, bDefault:int32)"
285#define UriInt64_doc "int64 UriInt64(arg0:string, arg1:string, arg2:int64)"
286#define UriKey_doc "string UriKey(z:string, N:int32)"
287#define UriParameter_doc "string UriParameter(z:string, zParam:string)"
288
289// doc-key: Sq3Lite,Sq3,smo,func
290#define KeywordName_doc "{kwd:string kwdsz:int32} KeywordName(num:int32)"
291#define Status_doc "{pCurrent:int32 pHighwater:int32} Status(op:Sq3StatusE, resetFlag:bool)"
292#define Status64_doc "{pCurrent:int64 pHighwater:int64} Status64(op:Sq3StatusE, resetFlag:bool)"
293
294// END-DOC - created by 'py_MqS.tcl -i NHI1_HOME/theSq3Lite/c/gen/c_sq3lite.meta' - DO NOT change
295
296/*****************************************************************************/
297/* */
298/* Check */
299/* */
300/*****************************************************************************/
301
303
304// MARK_M
310
311// BEGIN-Sq3Lite - created by 'py_MqC.tcl -i NHI1_HOME/theSq3Lite/c/gen/c_sq3lite.meta' - DO NOT change
312
316
317// doc-key: Sq3Lite,Sq3Lite-Config,sm_
318
320static OT_ProcRet NS(Sq3Lite_CompileOptionGet) (OtClass_ARGS) {
323 MK_I32 N = 0;
327 goto end;
328 error:
330 end:
332}
333
335static OT_ProcRet NS(Sq3Lite_CompileOptionUsed) (OtClass_ARGS) {
338 MK_STRN zOptName = 0;
342 goto end;
343 error:
345 end:
347}
348
350static OT_ProcRet NS(Sq3Lite_MemoryHighwater) (OtClass_ARGS) {
353 MK_I32 resetFlag = 0;
357 goto end;
358 error:
360 end:
362}
363
365static OT_ProcRet NS(Sq3Lite_MemoryUsed) (OtClass_ARGS) {
370 goto end;
371 error:
373 end:
375}
376
378static OT_ProcRet NS(Sq3Lite_Threadsafe) (OtClass_ARGS) {
384 goto end;
385 error:
387 end:
389}
390
392// Sq3Lite_Config_PY_API
393
397
398// doc-key: Sq3Lite,Sq3Lite-Enum,sco
399
401static OT_ProcRet NS(Sq3Lite_AccessE_FromInt) (OtClass_ARGS) {
404 MK_I32 value = 0;
407 enum Sq3AccessE value_out;
409 OT_retObj_SET(OT_NEW_Sq3_enum_OBJ(AccessE,value_out));
410 goto end;
411 error:
413 end:
415}
416
418static OT_ProcRet NS(Sq3Lite_AuthActionE_FromInt) (OtClass_ARGS) {
421 MK_I32 value = 0;
424 enum Sq3AuthActionE value_out;
426 OT_retObj_SET(OT_NEW_Sq3_enum_OBJ(AuthActionE,value_out));
427 goto end;
428 error:
430 end:
432}
433
435static OT_ProcRet NS(Sq3Lite_AuthReturnE_FromInt) (OtClass_ARGS) {
438 MK_I32 value = 0;
441 enum Sq3AuthReturnE value_out;
443 OT_retObj_SET(OT_NEW_Sq3_enum_OBJ(AuthReturnE,value_out));
444 goto end;
445 error:
447 end:
449}
450
452static OT_ProcRet NS(Sq3Lite_ChangeSetConflictE_FromInt) (OtClass_ARGS) {
455 MK_I32 value = 0;
458 enum Sq3ChangeSetConflictE value_out;
460 OT_retObj_SET(OT_NEW_Sq3_enum_OBJ(ChangeSetConflictE,value_out));
461 goto end;
462 error:
464 end:
466}
467
469static OT_ProcRet NS(Sq3Lite_ChangesetE_FromInt) (OtClass_ARGS) {
472 MK_I32 value = 0;
475 enum Sq3ChangesetE value_out;
477 OT_retObj_SET(OT_NEW_Sq3_enum_OBJ(ChangesetE,value_out));
478 goto end;
479 error:
481 end:
483}
484
486static OT_ProcRet NS(Sq3Lite_CheckpointE_FromInt) (OtClass_ARGS) {
489 MK_I32 value = 0;
492 enum Sq3CheckpointE value_out;
494 OT_retObj_SET(OT_NEW_Sq3_enum_OBJ(CheckpointE,value_out));
495 goto end;
496 error:
498 end:
500}
501
503static OT_ProcRet NS(Sq3Lite_ConfigE_FromInt) (OtClass_ARGS) {
506 MK_I32 value = 0;
509 enum Sq3ConfigE value_out;
511 OT_retObj_SET(OT_NEW_Sq3_enum_OBJ(ConfigE,value_out));
512 goto end;
513 error:
515 end:
517}
518
520static OT_ProcRet NS(Sq3Lite_ConflictResolutionE_FromInt) (OtClass_ARGS) {
523 MK_I32 value = 0;
526 enum Sq3ConflictResolutionE value_out;
528 OT_retObj_SET(OT_NEW_Sq3_enum_OBJ(ConflictResolutionE,value_out));
529 goto end;
530 error:
532 end:
534}
535
537static OT_ProcRet NS(Sq3Lite_DbConfigE_FromInt) (OtClass_ARGS) {
540 MK_I32 value = 0;
543 enum Sq3DbConfigE value_out;
545 OT_retObj_SET(OT_NEW_Sq3_enum_OBJ(DbConfigE,value_out));
546 goto end;
547 error:
549 end:
551}
552
554static OT_ProcRet NS(Sq3Lite_DbStatusE_FromInt) (OtClass_ARGS) {
557 MK_I32 value = 0;
560 enum Sq3DbStatusE value_out;
562 OT_retObj_SET(OT_NEW_Sq3_enum_OBJ(DbStatusE,value_out));
563 goto end;
564 error:
566 end:
568}
569
571static OT_ProcRet NS(Sq3Lite_DeSerializeEF_FromInt) (OtClass_ARGS) {
574 MK_I32 value = 0;
577 enum Sq3DeSerializeEF value_out;
579 OT_retObj_SET(OT_NEW_Sq3_enum_OBJ(DeSerializeEF,value_out));
580 goto end;
581 error:
583 end:
585}
586
588static OT_ProcRet NS(Sq3Lite_ErrorE_FromInt) (OtClass_ARGS) {
591 MK_I32 value = 0;
594 enum Sq3ErrorE value_out;
596 OT_retObj_SET(OT_NEW_Sq3_enum_OBJ(ErrorE,value_out));
597 goto end;
598 error:
600 end:
602}
603
605static OT_ProcRet NS(Sq3Lite_ExtendetResultCodesE_FromInt) (OtClass_ARGS) {
608 MK_I32 value = 0;
611 enum Sq3ExtendetResultCodesE value_out;
613 OT_retObj_SET(OT_NEW_Sq3_enum_OBJ(ExtendetResultCodesE,value_out));
614 goto end;
615 error:
617 end:
619}
620
622static OT_ProcRet NS(Sq3Lite_FcntlE_FromInt) (OtClass_ARGS) {
625 MK_I32 value = 0;
628 enum Sq3FcntlE value_out;
630 OT_retObj_SET(OT_NEW_Sq3_enum_OBJ(FcntlE,value_out));
631 goto end;
632 error:
634 end:
636}
637
639static OT_ProcRet NS(Sq3Lite_FunctionEF_FromInt) (OtClass_ARGS) {
642 MK_I32 value = 0;
645 enum Sq3FunctionEF value_out;
647 OT_retObj_SET(OT_NEW_Sq3_enum_OBJ(FunctionEF,value_out));
648 goto end;
649 error:
651 end:
653}
654
656static OT_ProcRet NS(Sq3Lite_IndexConstraintEF_FromInt) (OtClass_ARGS) {
659 MK_I32 value = 0;
662 enum Sq3IndexConstraintEF value_out;
664 OT_retObj_SET(OT_NEW_Sq3_enum_OBJ(IndexConstraintEF,value_out));
665 goto end;
666 error:
668 end:
670}
671
673static OT_ProcRet NS(Sq3Lite_IoCapEF_FromInt) (OtClass_ARGS) {
676 MK_I32 value = 0;
679 enum Sq3IoCapEF value_out;
681 OT_retObj_SET(OT_NEW_Sq3_enum_OBJ(IoCapEF,value_out));
682 goto end;
683 error:
685 end:
687}
688
690static OT_ProcRet NS(Sq3Lite_LimitE_FromInt) (OtClass_ARGS) {
693 MK_I32 value = 0;
696 enum Sq3LimitE value_out;
698 OT_retObj_SET(OT_NEW_Sq3_enum_OBJ(LimitE,value_out));
699 goto end;
700 error:
702 end:
704}
705
707static OT_ProcRet NS(Sq3Lite_LockE_FromInt) (OtClass_ARGS) {
710 MK_I32 value = 0;
713 enum Sq3LockE value_out;
715 OT_retObj_SET(OT_NEW_Sq3_enum_OBJ(LockE,value_out));
716 goto end;
717 error:
719 end:
721}
722
724static OT_ProcRet NS(Sq3Lite_MutexE_FromInt) (OtClass_ARGS) {
727 MK_I32 value = 0;
730 enum Sq3MutexE value_out;
732 OT_retObj_SET(OT_NEW_Sq3_enum_OBJ(MutexE,value_out));
733 goto end;
734 error:
736 end:
738}
739
741static OT_ProcRet NS(Sq3Lite_OpenEF_FromInt) (OtClass_ARGS) {
744 MK_I32 value = 0;
747 enum Sq3OpenEF value_out;
749 OT_retObj_SET(OT_NEW_Sq3_enum_OBJ(OpenEF,value_out));
750 goto end;
751 error:
753 end:
755}
756
758static OT_ProcRet NS(Sq3Lite_PrepareEF_FromInt) (OtClass_ARGS) {
761 MK_I32 value = 0;
764 enum Sq3PrepareEF value_out;
766 OT_retObj_SET(OT_NEW_Sq3_enum_OBJ(PrepareEF,value_out));
767 goto end;
768 error:
770 end:
772}
773
775static OT_ProcRet NS(Sq3Lite_ScanStatE_FromInt) (OtClass_ARGS) {
778 MK_I32 value = 0;
781 enum Sq3ScanStatE value_out;
783 OT_retObj_SET(OT_NEW_Sq3_enum_OBJ(ScanStatE,value_out));
784 goto end;
785 error:
787 end:
789}
790
792static OT_ProcRet NS(Sq3Lite_SerializeE_FromInt) (OtClass_ARGS) {
795 MK_I32 value = 0;
798 enum Sq3SerializeE value_out;
800 OT_retObj_SET(OT_NEW_Sq3_enum_OBJ(SerializeE,value_out));
801 goto end;
802 error:
804 end:
806}
807
809static OT_ProcRet NS(Sq3Lite_SessionObjConfigE_FromInt) (OtClass_ARGS) {
812 MK_I32 value = 0;
815 enum Sq3SessionObjConfigE value_out;
817 OT_retObj_SET(OT_NEW_Sq3_enum_OBJ(SessionObjConfigE,value_out));
818 goto end;
819 error:
821 end:
823}
824
826static OT_ProcRet NS(Sq3Lite_ShmLockE_FromInt) (OtClass_ARGS) {
829 MK_I32 value = 0;
832 enum Sq3ShmLockE value_out;
834 OT_retObj_SET(OT_NEW_Sq3_enum_OBJ(ShmLockE,value_out));
835 goto end;
836 error:
838 end:
840}
841
843static OT_ProcRet NS(Sq3Lite_StatusE_FromInt) (OtClass_ARGS) {
846 MK_I32 value = 0;
849 enum Sq3StatusE value_out;
851 OT_retObj_SET(OT_NEW_Sq3_enum_OBJ(StatusE,value_out));
852 goto end;
853 error:
855 end:
857}
858
860static OT_ProcRet NS(Sq3Lite_StmtStatusE_FromInt) (OtClass_ARGS) {
863 MK_I32 value = 0;
866 enum Sq3StmtStatusE value_out;
868 OT_retObj_SET(OT_NEW_Sq3_enum_OBJ(StmtStatusE,value_out));
869 goto end;
870 error:
872 end:
874}
875
877static OT_ProcRet NS(Sq3Lite_SyncEF_FromInt) (OtClass_ARGS) {
880 MK_I32 value = 0;
883 enum Sq3SyncEF value_out;
885 OT_retObj_SET(OT_NEW_Sq3_enum_OBJ(SyncEF,value_out));
886 goto end;
887 error:
889 end:
891}
892
894static OT_ProcRet NS(Sq3Lite_TestCtrlE_FromInt) (OtClass_ARGS) {
897 MK_I32 value = 0;
900 enum Sq3TestCtrlE value_out;
902 OT_retObj_SET(OT_NEW_Sq3_enum_OBJ(TestCtrlE,value_out));
903 goto end;
904 error:
906 end:
908}
909
911static OT_ProcRet NS(Sq3Lite_TextE_FromInt) (OtClass_ARGS) {
914 MK_I32 value = 0;
917 enum Sq3TextE value_out;
919 OT_retObj_SET(OT_NEW_Sq3_enum_OBJ(TextE,value_out));
920 goto end;
921 error:
923 end:
925}
926
928static OT_ProcRet NS(Sq3Lite_TraceEF_FromInt) (OtClass_ARGS) {
931 MK_I32 value = 0;
934 enum Sq3TraceEF value_out;
936 OT_retObj_SET(OT_NEW_Sq3_enum_OBJ(TraceEF,value_out));
937 goto end;
938 error:
940 end:
942}
943
945static OT_ProcRet NS(Sq3Lite_TxnE_FromInt) (OtClass_ARGS) {
948 MK_I32 value = 0;
951 enum Sq3TxnE value_out;
953 OT_retObj_SET(OT_NEW_Sq3_enum_OBJ(TxnE,value_out));
954 goto end;
955 error:
957 end:
959}
960
962static OT_ProcRet NS(Sq3Lite_TypeE_FromInt) (OtClass_ARGS) {
965 MK_I32 value = 0;
968 enum Sq3TypeE value_out;
970 OT_retObj_SET(OT_NEW_Sq3_enum_OBJ(TypeE,value_out));
971 goto end;
972 error:
974 end:
976}
977
979static OT_ProcRet NS(Sq3Lite_VtabE_FromInt) (OtClass_ARGS) {
982 MK_I32 value = 0;
985 enum Sq3VtabE value_out;
987 OT_retObj_SET(OT_NEW_Sq3_enum_OBJ(VtabE,value_out));
988 goto end;
989 error:
991 end:
993}
994
995// doc-key: Sq3Lite,Sq3Lite-Enum,sm_
996
998static OT_ProcRet NS(Sq3Lite_AccessE_ToInt) (OtClass_ARGS) {
1001 enum Sq3AccessE value = 0;
1005 goto end;
1006 error:
1008 end:
1010}
1011
1013static OT_ProcRet NS(Sq3Lite_AccessE_ToString) (OtClass_ARGS) {
1016 enum Sq3AccessE value = 0;
1020 goto end;
1021 error:
1023 end:
1025}
1026
1028static OT_ProcRet NS(Sq3Lite_AuthActionE_ToInt) (OtClass_ARGS) {
1031 enum Sq3AuthActionE value = 0;
1035 goto end;
1036 error:
1038 end:
1040}
1041
1043static OT_ProcRet NS(Sq3Lite_AuthActionE_ToString) (OtClass_ARGS) {
1046 enum Sq3AuthActionE value = 0;
1050 goto end;
1051 error:
1053 end:
1055}
1056
1058static OT_ProcRet NS(Sq3Lite_AuthReturnE_ToInt) (OtClass_ARGS) {
1061 enum Sq3AuthReturnE value = 0;
1065 goto end;
1066 error:
1068 end:
1070}
1071
1073static OT_ProcRet NS(Sq3Lite_AuthReturnE_ToString) (OtClass_ARGS) {
1076 enum Sq3AuthReturnE value = 0;
1080 goto end;
1081 error:
1083 end:
1085}
1086
1088static OT_ProcRet NS(Sq3Lite_ChangeSetConflictE_ToInt) (OtClass_ARGS) {
1091 enum Sq3ChangeSetConflictE value = 0;
1095 goto end;
1096 error:
1098 end:
1100}
1101
1103static OT_ProcRet NS(Sq3Lite_ChangeSetConflictE_ToString) (OtClass_ARGS) {
1106 enum Sq3ChangeSetConflictE value = 0;
1110 goto end;
1111 error:
1113 end:
1115}
1116
1118static OT_ProcRet NS(Sq3Lite_ChangesetE_ToInt) (OtClass_ARGS) {
1121 enum Sq3ChangesetE value = 0;
1125 goto end;
1126 error:
1128 end:
1130}
1131
1133static OT_ProcRet NS(Sq3Lite_ChangesetE_ToString) (OtClass_ARGS) {
1136 enum Sq3ChangesetE value = 0;
1140 goto end;
1141 error:
1143 end:
1145}
1146
1148static OT_ProcRet NS(Sq3Lite_CheckpointE_ToInt) (OtClass_ARGS) {
1151 enum Sq3CheckpointE value = 0;
1155 goto end;
1156 error:
1158 end:
1160}
1161
1163static OT_ProcRet NS(Sq3Lite_CheckpointE_ToString) (OtClass_ARGS) {
1166 enum Sq3CheckpointE value = 0;
1170 goto end;
1171 error:
1173 end:
1175}
1176
1178static OT_ProcRet NS(Sq3Lite_ConfigE_ToInt) (OtClass_ARGS) {
1181 enum Sq3ConfigE value = 0;
1185 goto end;
1186 error:
1188 end:
1190}
1191
1193static OT_ProcRet NS(Sq3Lite_ConfigE_ToString) (OtClass_ARGS) {
1196 enum Sq3ConfigE value = 0;
1200 goto end;
1201 error:
1203 end:
1205}
1206
1208static OT_ProcRet NS(Sq3Lite_ConflictResolutionE_ToInt) (OtClass_ARGS) {
1211 enum Sq3ConflictResolutionE value = 0;
1215 goto end;
1216 error:
1218 end:
1220}
1221
1223static OT_ProcRet NS(Sq3Lite_ConflictResolutionE_ToString) (OtClass_ARGS) {
1226 enum Sq3ConflictResolutionE value = 0;
1230 goto end;
1231 error:
1233 end:
1235}
1236
1238static OT_ProcRet NS(Sq3Lite_DbConfigE_ToInt) (OtClass_ARGS) {
1241 enum Sq3DbConfigE value = 0;
1245 goto end;
1246 error:
1248 end:
1250}
1251
1253static OT_ProcRet NS(Sq3Lite_DbConfigE_ToString) (OtClass_ARGS) {
1256 enum Sq3DbConfigE value = 0;
1260 goto end;
1261 error:
1263 end:
1265}
1266
1268static OT_ProcRet NS(Sq3Lite_DbStatusE_ToInt) (OtClass_ARGS) {
1271 enum Sq3DbStatusE value = 0;
1275 goto end;
1276 error:
1278 end:
1280}
1281
1283static OT_ProcRet NS(Sq3Lite_DbStatusE_ToString) (OtClass_ARGS) {
1286 enum Sq3DbStatusE value = 0;
1290 goto end;
1291 error:
1293 end:
1295}
1296
1298static OT_ProcRet NS(Sq3Lite_DeSerializeEF_ToInt) (OtClass_ARGS) {
1301 enum Sq3DeSerializeEF value = 0;
1305 goto end;
1306 error:
1308 end:
1310}
1311
1313static OT_ProcRet NS(Sq3Lite_DeSerializeEF_ToString) (OtClass_ARGS) {
1316 enum Sq3DeSerializeEF value = 0;
1320 goto end;
1321 error:
1323 end:
1325}
1326
1328static OT_ProcRet NS(Sq3Lite_ErrorE_ToInt) (OtClass_ARGS) {
1331 enum Sq3ErrorE value = 0;
1335 goto end;
1336 error:
1338 end:
1340}
1341
1343static OT_ProcRet NS(Sq3Lite_ErrorE_ToString) (OtClass_ARGS) {
1346 enum Sq3ErrorE value = 0;
1350 goto end;
1351 error:
1353 end:
1355}
1356
1358static OT_ProcRet NS(Sq3Lite_ExtendetResultCodesE_ToInt) (OtClass_ARGS) {
1361 enum Sq3ExtendetResultCodesE value = 0;
1365 goto end;
1366 error:
1368 end:
1370}
1371
1373static OT_ProcRet NS(Sq3Lite_ExtendetResultCodesE_ToString) (OtClass_ARGS) {
1376 enum Sq3ExtendetResultCodesE value = 0;
1380 goto end;
1381 error:
1383 end:
1385}
1386
1388static OT_ProcRet NS(Sq3Lite_FcntlE_ToInt) (OtClass_ARGS) {
1391 enum Sq3FcntlE value = 0;
1395 goto end;
1396 error:
1398 end:
1400}
1401
1403static OT_ProcRet NS(Sq3Lite_FcntlE_ToString) (OtClass_ARGS) {
1406 enum Sq3FcntlE value = 0;
1410 goto end;
1411 error:
1413 end:
1415}
1416
1418static OT_ProcRet NS(Sq3Lite_FunctionEF_ToInt) (OtClass_ARGS) {
1421 enum Sq3FunctionEF value = 0;
1425 goto end;
1426 error:
1428 end:
1430}
1431
1433static OT_ProcRet NS(Sq3Lite_FunctionEF_ToString) (OtClass_ARGS) {
1436 enum Sq3FunctionEF value = 0;
1440 goto end;
1441 error:
1443 end:
1445}
1446
1448static OT_ProcRet NS(Sq3Lite_IndexConstraintEF_ToInt) (OtClass_ARGS) {
1451 enum Sq3IndexConstraintEF value = 0;
1455 goto end;
1456 error:
1458 end:
1460}
1461
1463static OT_ProcRet NS(Sq3Lite_IndexConstraintEF_ToString) (OtClass_ARGS) {
1466 enum Sq3IndexConstraintEF value = 0;
1470 goto end;
1471 error:
1473 end:
1475}
1476
1478static OT_ProcRet NS(Sq3Lite_IoCapEF_ToInt) (OtClass_ARGS) {
1481 enum Sq3IoCapEF value = 0;
1485 goto end;
1486 error:
1488 end:
1490}
1491
1493static OT_ProcRet NS(Sq3Lite_IoCapEF_ToString) (OtClass_ARGS) {
1496 enum Sq3IoCapEF value = 0;
1500 goto end;
1501 error:
1503 end:
1505}
1506
1508static OT_ProcRet NS(Sq3Lite_LimitE_ToInt) (OtClass_ARGS) {
1511 enum Sq3LimitE value = 0;
1515 goto end;
1516 error:
1518 end:
1520}
1521
1523static OT_ProcRet NS(Sq3Lite_LimitE_ToString) (OtClass_ARGS) {
1526 enum Sq3LimitE value = 0;
1530 goto end;
1531 error:
1533 end:
1535}
1536
1538static OT_ProcRet NS(Sq3Lite_LockE_ToInt) (OtClass_ARGS) {
1541 enum Sq3LockE value = 0;
1545 goto end;
1546 error:
1548 end:
1550}
1551
1553static OT_ProcRet NS(Sq3Lite_LockE_ToString) (OtClass_ARGS) {
1556 enum Sq3LockE value = 0;
1560 goto end;
1561 error:
1563 end:
1565}
1566
1568static OT_ProcRet NS(Sq3Lite_MutexE_ToInt) (OtClass_ARGS) {
1571 enum Sq3MutexE value = 0;
1575 goto end;
1576 error:
1578 end:
1580}
1581
1583static OT_ProcRet NS(Sq3Lite_MutexE_ToString) (OtClass_ARGS) {
1586 enum Sq3MutexE value = 0;
1590 goto end;
1591 error:
1593 end:
1595}
1596
1598static OT_ProcRet NS(Sq3Lite_OpenEF_ToInt) (OtClass_ARGS) {
1601 enum Sq3OpenEF value = 0;
1605 goto end;
1606 error:
1608 end:
1610}
1611
1613static OT_ProcRet NS(Sq3Lite_OpenEF_ToString) (OtClass_ARGS) {
1616 enum Sq3OpenEF value = 0;
1620 goto end;
1621 error:
1623 end:
1625}
1626
1628static OT_ProcRet NS(Sq3Lite_PrepareEF_ToInt) (OtClass_ARGS) {
1631 enum Sq3PrepareEF value = 0;
1635 goto end;
1636 error:
1638 end:
1640}
1641
1643static OT_ProcRet NS(Sq3Lite_PrepareEF_ToString) (OtClass_ARGS) {
1646 enum Sq3PrepareEF value = 0;
1650 goto end;
1651 error:
1653 end:
1655}
1656
1658static OT_ProcRet NS(Sq3Lite_ScanStatE_ToInt) (OtClass_ARGS) {
1661 enum Sq3ScanStatE value = 0;
1665 goto end;
1666 error:
1668 end:
1670}
1671
1673static OT_ProcRet NS(Sq3Lite_ScanStatE_ToString) (OtClass_ARGS) {
1676 enum Sq3ScanStatE value = 0;
1680 goto end;
1681 error:
1683 end:
1685}
1686
1688static OT_ProcRet NS(Sq3Lite_SerializeE_ToInt) (OtClass_ARGS) {
1691 enum Sq3SerializeE value = 0;
1695 goto end;
1696 error:
1698 end:
1700}
1701
1703static OT_ProcRet NS(Sq3Lite_SerializeE_ToString) (OtClass_ARGS) {
1706 enum Sq3SerializeE value = 0;
1710 goto end;
1711 error:
1713 end:
1715}
1716
1718static OT_ProcRet NS(Sq3Lite_SessionObjConfigE_ToInt) (OtClass_ARGS) {
1721 enum Sq3SessionObjConfigE value = 0;
1725 goto end;
1726 error:
1728 end:
1730}
1731
1733static OT_ProcRet NS(Sq3Lite_SessionObjConfigE_ToString) (OtClass_ARGS) {
1736 enum Sq3SessionObjConfigE value = 0;
1740 goto end;
1741 error:
1743 end:
1745}
1746
1748static OT_ProcRet NS(Sq3Lite_ShmLockE_ToInt) (OtClass_ARGS) {
1751 enum Sq3ShmLockE value = 0;
1755 goto end;
1756 error:
1758 end:
1760}
1761
1763static OT_ProcRet NS(Sq3Lite_ShmLockE_ToString) (OtClass_ARGS) {
1766 enum Sq3ShmLockE value = 0;
1770 goto end;
1771 error:
1773 end:
1775}
1776
1778static OT_ProcRet NS(Sq3Lite_StatusE_ToInt) (OtClass_ARGS) {
1781 enum Sq3StatusE value = 0;
1785 goto end;
1786 error:
1788 end:
1790}
1791
1793static OT_ProcRet NS(Sq3Lite_StatusE_ToString) (OtClass_ARGS) {
1796 enum Sq3StatusE value = 0;
1800 goto end;
1801 error:
1803 end:
1805}
1806
1808static OT_ProcRet NS(Sq3Lite_StmtStatusE_ToInt) (OtClass_ARGS) {
1811 enum Sq3StmtStatusE value = 0;
1815 goto end;
1816 error:
1818 end:
1820}
1821
1823static OT_ProcRet NS(Sq3Lite_StmtStatusE_ToString) (OtClass_ARGS) {
1826 enum Sq3StmtStatusE value = 0;
1830 goto end;
1831 error:
1833 end:
1835}
1836
1838static OT_ProcRet NS(Sq3Lite_SyncEF_ToInt) (OtClass_ARGS) {
1841 enum Sq3SyncEF value = 0;
1845 goto end;
1846 error:
1848 end:
1850}
1851
1853static OT_ProcRet NS(Sq3Lite_SyncEF_ToString) (OtClass_ARGS) {
1856 enum Sq3SyncEF value = 0;
1860 goto end;
1861 error:
1863 end:
1865}
1866
1868static OT_ProcRet NS(Sq3Lite_TestCtrlE_ToInt) (OtClass_ARGS) {
1871 enum Sq3TestCtrlE value = 0;
1875 goto end;
1876 error:
1878 end:
1880}
1881
1883static OT_ProcRet NS(Sq3Lite_TestCtrlE_ToString) (OtClass_ARGS) {
1886 enum Sq3TestCtrlE value = 0;
1890 goto end;
1891 error:
1893 end:
1895}
1896
1898static OT_ProcRet NS(Sq3Lite_TextE_ToInt) (OtClass_ARGS) {
1901 enum Sq3TextE value = 0;
1905 goto end;
1906 error:
1908 end:
1910}
1911
1913static OT_ProcRet NS(Sq3Lite_TextE_ToString) (OtClass_ARGS) {
1916 enum Sq3TextE value = 0;
1920 goto end;
1921 error:
1923 end:
1925}
1926
1928static OT_ProcRet NS(Sq3Lite_TraceEF_ToInt) (OtClass_ARGS) {
1931 enum Sq3TraceEF value = 0;
1935 goto end;
1936 error:
1938 end:
1940}
1941
1943static OT_ProcRet NS(Sq3Lite_TraceEF_ToString) (OtClass_ARGS) {
1946 enum Sq3TraceEF value = 0;
1950 goto end;
1951 error:
1953 end:
1955}
1956
1958static OT_ProcRet NS(Sq3Lite_TxnE_ToInt) (OtClass_ARGS) {
1961 enum Sq3TxnE value = 0;
1965 goto end;
1966 error:
1968 end:
1970}
1971
1973static OT_ProcRet NS(Sq3Lite_TxnE_ToString) (OtClass_ARGS) {
1976 enum Sq3TxnE value = 0;
1980 goto end;
1981 error:
1983 end:
1985}
1986
1988static OT_ProcRet NS(Sq3Lite_TypeE_ToInt) (OtClass_ARGS) {
1991 enum Sq3TypeE value = 0;
1995 goto end;
1996 error:
1998 end:
2000}
2001
2003static OT_ProcRet NS(Sq3Lite_TypeE_ToString) (OtClass_ARGS) {
2006 enum Sq3TypeE value = 0;
2010 goto end;
2011 error:
2013 end:
2015}
2016
2018static OT_ProcRet NS(Sq3Lite_VtabE_ToInt) (OtClass_ARGS) {
2021 enum Sq3VtabE value = 0;
2025 goto end;
2026 error:
2028 end:
2030}
2031
2033static OT_ProcRet NS(Sq3Lite_VtabE_ToString) (OtClass_ARGS) {
2036 enum Sq3VtabE value = 0;
2040 goto end;
2041 error:
2043 end:
2045}
2046
2048// Sq3Lite_Enum_PY_API
2049
2053
2054// doc-key: Sq3Lite,Sq3Lite-Error,sm_
2055
2057static OT_ProcRet NS(Sq3Lite_ErrorCheckI) (OtClass_ARGS) {
2060 enum Sq3ErrorE ret = 0;
2064 goto end;
2065 error:
2067 end:
2069}
2070
2072// Sq3Lite_Error_PY_API
2073
2077
2078// doc-key: Sq3Lite,Sq3Lite-Info,sco
2079
2081static OT_ProcRet NS(Sq3Lite_KeywordNameBUF) (OtClass_ARGS) {
2084 MK_I32 num = 0;
2087 MK_BUF kwd_out;
2089 OT_retObj_SET_BUF(kwd_out);
2090 goto end;
2091 error:
2093 end:
2095}
2096
2097// doc-key: Sq3Lite,Sq3Lite-Info,sm_
2098
2100static OT_ProcRet NS(Sq3Lite_Complete) (OtClass_ARGS) {
2103 MK_STRN sql = 0;
2106 MkErrorC_Check(hdl,Sq3Complete (sql));
2108 goto end;
2109 error:
2111 end:
2113}
2114
2116static OT_ProcRet NS(Sq3Lite_KeywordCheck) (OtClass_ARGS) {
2119 MK_STRN arg0 = 0;
2121 MK_I32 arg1 = 0;
2124 MkErrorC_Check(hdl,Sq3KeywordCheck (arg0, arg1));
2126 goto end;
2127 error:
2129 end:
2131}
2132
2134static OT_ProcRet NS(Sq3Lite_KeywordCount) (OtClass_ARGS) {
2140 goto end;
2141 error:
2143 end:
2145}
2146
2147// doc-key: Sq3Lite,Sq3Lite-Info,smo
2148
2150static OT_ProcRet NS(Sq3Lite_KeywordName) (OtClass_ARGS) {
2153 MK_I32 num = 0;
2156 MK_STRN kwd;
2157 MK_I32 kwdsz;
2158 MkErrorC_Check(MK_ERROR_FORMAT,Sq3KeywordName (num, &kwd, &kwdsz));
2162 goto end;
2163 error:
2165 end:
2167}
2168
2170static OT_ProcRet NS(Sq3Lite_Status) (OtClass_ARGS) {
2173 enum Sq3StatusE op = 0;
2175 MK_BOOL resetFlag = 0;
2176 OT_CHECK_REQUIRED(OT_CHECK_bool (resetFlag))
2178 MK_I32 pCurrent;
2179 MK_I32 pHighwater;
2180 MkErrorC_Check(MK_ERROR_FORMAT,Sq3Status (op, &pCurrent, &pHighwater, resetFlag));
2183 OT_retObj_APPEND(OT_TMP_I32_OBJ(pHighwater));
2184 goto end;
2185 error:
2187 end:
2189}
2190
2192static OT_ProcRet NS(Sq3Lite_Status64) (OtClass_ARGS) {
2195 enum Sq3StatusE op = 0;
2197 MK_BOOL resetFlag = 0;
2198 OT_CHECK_REQUIRED(OT_CHECK_bool (resetFlag))
2200 MK_I64 pCurrent;
2201 MK_I64 pHighwater;
2202 MkErrorC_Check(MK_ERROR_FORMAT,Sq3Status64 (op, &pCurrent, &pHighwater, resetFlag));
2205 OT_retObj_APPEND(OT_TMP_I64_OBJ(pHighwater));
2206 goto end;
2207 error:
2209 end:
2211}
2212
2214// Sq3Lite_Info_PY_API
2215
2219
2220// doc-key: Sq3Lite,Sq3Lite-Internal-Memory,sm_
2221
2223static OT_ProcRet NS(Sq3Lite_HardHeapLimit64) (OtClass_ARGS) {
2226 MK_I64 N = 0;
2230 goto end;
2231 error:
2233 end:
2235}
2236
2238static OT_ProcRet NS(Sq3Lite_ReleaseMemory) (OtClass_ARGS) {
2241 MK_I32 N = 0;
2246 goto end;
2247 error:
2249 end:
2251}
2252
2254static OT_ProcRet NS(Sq3Lite_SoftHeapLimit64) (OtClass_ARGS) {
2257 MK_I64 N = 0;
2261 goto end;
2262 error:
2264 end:
2266}
2267
2269// Sq3Lite_Internal_Memory_PY_API
2270
2274
2275// doc-key: Sq3Lite,Sq3Lite-Internal-String,sm_
2276
2278static OT_ProcRet NS(Sq3Lite_StrGlob) (OtClass_ARGS) {
2281 MK_STRN zGlob = 0;
2283 MK_STRN zStr = 0;
2286 OT_retObj_SET_I32(Sq3StrGlob (zGlob, zStr));
2287 goto end;
2288 error:
2290 end:
2292}
2293
2295static OT_ProcRet NS(Sq3Lite_StrIcmp) (OtClass_ARGS) {
2298 MK_STRN arg0 = 0;
2300 MK_STRN arg1 = 0;
2303 OT_retObj_SET_I32(Sq3StrIcmp (arg0, arg1));
2304 goto end;
2305 error:
2307 end:
2309}
2310
2312static OT_ProcRet NS(Sq3Lite_StrLike) (OtClass_ARGS) {
2315 MK_STRN zGlob = 0;
2317 MK_STRN zStr = 0;
2319 MK_I32 cEsc = 0;
2322 OT_retObj_SET_I32(Sq3StrLike (zGlob, zStr, cEsc));
2323 goto end;
2324 error:
2326 end:
2328}
2329
2331static OT_ProcRet NS(Sq3Lite_StrNicmp) (OtClass_ARGS) {
2334 MK_STRN arg0 = 0;
2336 MK_STRN arg1 = 0;
2338 MK_I32 arg2 = 0;
2341 OT_retObj_SET_I32(Sq3StrNicmp (arg0, arg1, arg2));
2342 goto end;
2343 error:
2345 end:
2347}
2348
2350// Sq3Lite_Internal_String_PY_API
2351
2355
2356// doc-key: Sq3Lite,Sq3Lite-Setup-libsq3lite,sm_
2357
2359static OT_ProcRet NS(Sq3Lite_Cleanup) (OtClass_ARGS) {
2363 Sq3CleanupTmpl ();
2365 goto end;
2366 error:
2368 end:
2370}
2371
2373static OT_ProcRet NS(Sq3Lite_Setup) (OtClass_ARGS) {
2377 Sq3SetupTmpl ();
2379 goto end;
2380 error:
2382 end:
2384}
2385
2387// Sq3Lite_Setup_libsq3lite_PY_API
2388
2392
2393// doc-key: Sq3Lite,Sq3Lite-Setup-libsqlite3,sm_
2394
2396static OT_ProcRet NS(Sq3Lite_Initialize) (OtClass_ARGS) {
2402 goto end;
2403 error:
2405 end:
2407}
2408
2410static OT_ProcRet NS(Sq3Lite_OsEnd) (OtClass_ARGS) {
2414 MkErrorC_Check(hdl,Sq3OsEnd ());
2416 goto end;
2417 error:
2419 end:
2421}
2422
2424static OT_ProcRet NS(Sq3Lite_OsInit) (OtClass_ARGS) {
2428 MkErrorC_Check(hdl,Sq3OsInit ());
2430 goto end;
2431 error:
2433 end:
2435}
2436
2438static OT_ProcRet NS(Sq3Lite_Shutdown) (OtClass_ARGS) {
2444 goto end;
2445 error:
2447 end:
2449}
2450
2452// Sq3Lite_Setup_libsqlite3_PY_API
2453
2457
2458// doc-key: Sq3Lite,Sq3Lite-Version,sm_
2459
2461static OT_ProcRet NS(Sq3Lite_Libversion) (OtClass_ARGS) {
2466 goto end;
2467 error:
2469 end:
2471}
2472
2474static OT_ProcRet NS(Sq3Lite_LibversionNumber) (OtClass_ARGS) {
2480 goto end;
2481 error:
2483 end:
2485}
2486
2488static OT_ProcRet NS(Sq3Lite_Sourceid) (OtClass_ARGS) {
2493 goto end;
2494 error:
2496 end:
2498}
2499
2501// Sq3Lite_Version_PY_API
2502
2506
2507// doc-key: Sq3Lite,Sq3Lite-Vfs,sm_
2508
2510static OT_ProcRet NS(Sq3Lite_FilenameDatabase) (OtClass_ARGS) {
2513 SQ3_FILENAME F = 0;
2517 goto end;
2518 error:
2520 end:
2522}
2523
2525static OT_ProcRet NS(Sq3Lite_FilenameJournal) (OtClass_ARGS) {
2528 SQ3_FILENAME F = 0;
2532 goto end;
2533 error:
2535 end:
2537}
2538
2540static OT_ProcRet NS(Sq3Lite_FilenameWal) (OtClass_ARGS) {
2543 SQ3_FILENAME F = 0;
2547 goto end;
2548 error:
2550 end:
2552}
2553
2555static OT_ProcRet NS(Sq3Lite_FreeFilename) (OtClass_ARGS) {
2558 SQ3_FILENAME arg0 = 0;
2561 Sq3FreeFilename (arg0);
2563 goto end;
2564 error:
2566 end:
2568}
2569
2571static OT_ProcRet NS(Sq3Lite_UriBoolean) (OtClass_ARGS) {
2574 SQ3_FILENAME z = 0;
2576 MK_STRN zParam = 0;
2578 MK_I32 bDefault = 0;
2581 MkErrorC_Check(hdl,Sq3UriBoolean (z, zParam, bDefault));
2583 goto end;
2584 error:
2586 end:
2588}
2589
2591static OT_ProcRet NS(Sq3Lite_UriInt64) (OtClass_ARGS) {
2594 SQ3_FILENAME arg0 = 0;
2596 MK_STRN arg1 = 0;
2598 MK_I64 arg2 = 0;
2601 OT_retObj_SET_I64(Sq3UriInt64 (arg0, arg1, arg2));
2602 goto end;
2603 error:
2605 end:
2607}
2608
2610static OT_ProcRet NS(Sq3Lite_UriKey) (OtClass_ARGS) {
2613 SQ3_FILENAME z = 0;
2615 MK_I32 N = 0;
2619 goto end;
2620 error:
2622 end:
2624}
2625
2627static OT_ProcRet NS(Sq3Lite_UriParameter) (OtClass_ARGS) {
2630 SQ3_FILENAME z = 0;
2632 MK_STRN zParam = 0;
2636 goto end;
2637 error:
2639 end:
2641}
2642
2644// Sq3Lite_Vfs_PY_API
2645
2646// END-Sq3Lite - created by 'py_MqC.tcl -i NHI1_HOME/theSq3Lite/c/gen/c_sq3lite.meta' - DO NOT change
2647
2648// MARK_T
2654
2655static PyMethodDef NS(sSq3LiteMethods)[] = {
2656
2657 // BEGIN-CLASS - created by 'py_MqS.tcl -i NHI1_HOME/theSq3Lite/c/gen/c_sq3lite.meta' - DO NOT change
2658
2659 // doc-key: Sq3Lite,EnumFunc,sco
2660 { "AccessE_FromInt" , (PyCFunction) NS(Sq3Lite_AccessE_FromInt) , METH_O , AccessE_FromInt_doc },
2661 { "AuthActionE_FromInt" , (PyCFunction) NS(Sq3Lite_AuthActionE_FromInt) , METH_O , AuthActionE_FromInt_doc },
2662 { "AuthReturnE_FromInt" , (PyCFunction) NS(Sq3Lite_AuthReturnE_FromInt) , METH_O , AuthReturnE_FromInt_doc },
2663 { "ChangeSetConflictE_FromInt" , (PyCFunction) NS(Sq3Lite_ChangeSetConflictE_FromInt) , METH_O , ChangeSetConflictE_FromInt_doc },
2664 { "ChangesetE_FromInt" , (PyCFunction) NS(Sq3Lite_ChangesetE_FromInt) , METH_O , ChangesetE_FromInt_doc },
2665 { "CheckpointE_FromInt" , (PyCFunction) NS(Sq3Lite_CheckpointE_FromInt) , METH_O , CheckpointE_FromInt_doc },
2666 { "ConfigE_FromInt" , (PyCFunction) NS(Sq3Lite_ConfigE_FromInt) , METH_O , ConfigE_FromInt_doc },
2667 { "ConflictResolutionE_FromInt" , (PyCFunction) NS(Sq3Lite_ConflictResolutionE_FromInt) , METH_O , ConflictResolutionE_FromInt_doc },
2668 { "DbConfigE_FromInt" , (PyCFunction) NS(Sq3Lite_DbConfigE_FromInt) , METH_O , DbConfigE_FromInt_doc },
2669 { "DbStatusE_FromInt" , (PyCFunction) NS(Sq3Lite_DbStatusE_FromInt) , METH_O , DbStatusE_FromInt_doc },
2670 { "DeSerializeEF_FromInt" , (PyCFunction) NS(Sq3Lite_DeSerializeEF_FromInt) , METH_O , DeSerializeEF_FromInt_doc },
2671 { "ErrorE_FromInt" , (PyCFunction) NS(Sq3Lite_ErrorE_FromInt) , METH_O , ErrorE_FromInt_doc },
2672 { "ExtendetResultCodesE_FromInt" , (PyCFunction) NS(Sq3Lite_ExtendetResultCodesE_FromInt) , METH_O , ExtendetResultCodesE_FromInt_doc },
2673 { "FcntlE_FromInt" , (PyCFunction) NS(Sq3Lite_FcntlE_FromInt) , METH_O , FcntlE_FromInt_doc },
2674 { "FunctionEF_FromInt" , (PyCFunction) NS(Sq3Lite_FunctionEF_FromInt) , METH_O , FunctionEF_FromInt_doc },
2675 { "IndexConstraintEF_FromInt" , (PyCFunction) NS(Sq3Lite_IndexConstraintEF_FromInt) , METH_O , IndexConstraintEF_FromInt_doc },
2676 { "IoCapEF_FromInt" , (PyCFunction) NS(Sq3Lite_IoCapEF_FromInt) , METH_O , IoCapEF_FromInt_doc },
2677 { "LimitE_FromInt" , (PyCFunction) NS(Sq3Lite_LimitE_FromInt) , METH_O , LimitE_FromInt_doc },
2678 { "LockE_FromInt" , (PyCFunction) NS(Sq3Lite_LockE_FromInt) , METH_O , LockE_FromInt_doc },
2679 { "MutexE_FromInt" , (PyCFunction) NS(Sq3Lite_MutexE_FromInt) , METH_O , MutexE_FromInt_doc },
2680 { "OpenEF_FromInt" , (PyCFunction) NS(Sq3Lite_OpenEF_FromInt) , METH_O , OpenEF_FromInt_doc },
2681 { "PrepareEF_FromInt" , (PyCFunction) NS(Sq3Lite_PrepareEF_FromInt) , METH_O , PrepareEF_FromInt_doc },
2682 { "ScanStatE_FromInt" , (PyCFunction) NS(Sq3Lite_ScanStatE_FromInt) , METH_O , ScanStatE_FromInt_doc },
2683 { "SerializeE_FromInt" , (PyCFunction) NS(Sq3Lite_SerializeE_FromInt) , METH_O , SerializeE_FromInt_doc },
2684 { "SessionObjConfigE_FromInt" , (PyCFunction) NS(Sq3Lite_SessionObjConfigE_FromInt) , METH_O , SessionObjConfigE_FromInt_doc },
2685 { "ShmLockE_FromInt" , (PyCFunction) NS(Sq3Lite_ShmLockE_FromInt) , METH_O , ShmLockE_FromInt_doc },
2686 { "StatusE_FromInt" , (PyCFunction) NS(Sq3Lite_StatusE_FromInt) , METH_O , StatusE_FromInt_doc },
2687 { "StmtStatusE_FromInt" , (PyCFunction) NS(Sq3Lite_StmtStatusE_FromInt) , METH_O , StmtStatusE_FromInt_doc },
2688 { "SyncEF_FromInt" , (PyCFunction) NS(Sq3Lite_SyncEF_FromInt) , METH_O , SyncEF_FromInt_doc },
2689 { "TestCtrlE_FromInt" , (PyCFunction) NS(Sq3Lite_TestCtrlE_FromInt) , METH_O , TestCtrlE_FromInt_doc },
2690 { "TextE_FromInt" , (PyCFunction) NS(Sq3Lite_TextE_FromInt) , METH_O , TextE_FromInt_doc },
2691 { "TraceEF_FromInt" , (PyCFunction) NS(Sq3Lite_TraceEF_FromInt) , METH_O , TraceEF_FromInt_doc },
2692 { "TxnE_FromInt" , (PyCFunction) NS(Sq3Lite_TxnE_FromInt) , METH_O , TxnE_FromInt_doc },
2693 { "TypeE_FromInt" , (PyCFunction) NS(Sq3Lite_TypeE_FromInt) , METH_O , TypeE_FromInt_doc },
2694 { "VtabE_FromInt" , (PyCFunction) NS(Sq3Lite_VtabE_FromInt) , METH_O , VtabE_FromInt_doc },
2695
2696 // doc-key: Sq3Lite,EnumFunc,sm_
2697 { "AccessE_ToInt" , (PyCFunction) NS(Sq3Lite_AccessE_ToInt) , METH_O , AccessE_ToInt_doc },
2698 { "AccessE_ToString" , (PyCFunction) NS(Sq3Lite_AccessE_ToString) , METH_O , AccessE_ToString_doc },
2699 { "AuthActionE_ToInt" , (PyCFunction) NS(Sq3Lite_AuthActionE_ToInt) , METH_O , AuthActionE_ToInt_doc },
2700 { "AuthActionE_ToString" , (PyCFunction) NS(Sq3Lite_AuthActionE_ToString) , METH_O , AuthActionE_ToString_doc },
2701 { "AuthReturnE_ToInt" , (PyCFunction) NS(Sq3Lite_AuthReturnE_ToInt) , METH_O , AuthReturnE_ToInt_doc },
2702 { "AuthReturnE_ToString" , (PyCFunction) NS(Sq3Lite_AuthReturnE_ToString) , METH_O , AuthReturnE_ToString_doc },
2703 { "ChangeSetConflictE_ToInt" , (PyCFunction) NS(Sq3Lite_ChangeSetConflictE_ToInt) , METH_O , ChangeSetConflictE_ToInt_doc },
2704 { "ChangeSetConflictE_ToString" , (PyCFunction) NS(Sq3Lite_ChangeSetConflictE_ToString) , METH_O , ChangeSetConflictE_ToString_doc },
2705 { "ChangesetE_ToInt" , (PyCFunction) NS(Sq3Lite_ChangesetE_ToInt) , METH_O , ChangesetE_ToInt_doc },
2706 { "ChangesetE_ToString" , (PyCFunction) NS(Sq3Lite_ChangesetE_ToString) , METH_O , ChangesetE_ToString_doc },
2707 { "CheckpointE_ToInt" , (PyCFunction) NS(Sq3Lite_CheckpointE_ToInt) , METH_O , CheckpointE_ToInt_doc },
2708 { "CheckpointE_ToString" , (PyCFunction) NS(Sq3Lite_CheckpointE_ToString) , METH_O , CheckpointE_ToString_doc },
2709 { "ConfigE_ToInt" , (PyCFunction) NS(Sq3Lite_ConfigE_ToInt) , METH_O , ConfigE_ToInt_doc },
2710 { "ConfigE_ToString" , (PyCFunction) NS(Sq3Lite_ConfigE_ToString) , METH_O , ConfigE_ToString_doc },
2711 { "ConflictResolutionE_ToInt" , (PyCFunction) NS(Sq3Lite_ConflictResolutionE_ToInt) , METH_O , ConflictResolutionE_ToInt_doc },
2712 { "ConflictResolutionE_ToString" , (PyCFunction) NS(Sq3Lite_ConflictResolutionE_ToString) , METH_O , ConflictResolutionE_ToString_doc },
2713 { "DbConfigE_ToInt" , (PyCFunction) NS(Sq3Lite_DbConfigE_ToInt) , METH_O , DbConfigE_ToInt_doc },
2714 { "DbConfigE_ToString" , (PyCFunction) NS(Sq3Lite_DbConfigE_ToString) , METH_O , DbConfigE_ToString_doc },
2715 { "DbStatusE_ToInt" , (PyCFunction) NS(Sq3Lite_DbStatusE_ToInt) , METH_O , DbStatusE_ToInt_doc },
2716 { "DbStatusE_ToString" , (PyCFunction) NS(Sq3Lite_DbStatusE_ToString) , METH_O , DbStatusE_ToString_doc },
2717 { "DeSerializeEF_ToInt" , (PyCFunction) NS(Sq3Lite_DeSerializeEF_ToInt) , METH_O , DeSerializeEF_ToInt_doc },
2718 { "DeSerializeEF_ToString" , (PyCFunction) NS(Sq3Lite_DeSerializeEF_ToString) , METH_O , DeSerializeEF_ToString_doc },
2719 { "ErrorE_ToInt" , (PyCFunction) NS(Sq3Lite_ErrorE_ToInt) , METH_O , ErrorE_ToInt_doc },
2720 { "ErrorE_ToString" , (PyCFunction) NS(Sq3Lite_ErrorE_ToString) , METH_O , ErrorE_ToString_doc },
2721 { "ExtendetResultCodesE_ToInt" , (PyCFunction) NS(Sq3Lite_ExtendetResultCodesE_ToInt) , METH_O , ExtendetResultCodesE_ToInt_doc },
2722 { "ExtendetResultCodesE_ToString" , (PyCFunction) NS(Sq3Lite_ExtendetResultCodesE_ToString) , METH_O , ExtendetResultCodesE_ToString_doc },
2723 { "FcntlE_ToInt" , (PyCFunction) NS(Sq3Lite_FcntlE_ToInt) , METH_O , FcntlE_ToInt_doc },
2724 { "FcntlE_ToString" , (PyCFunction) NS(Sq3Lite_FcntlE_ToString) , METH_O , FcntlE_ToString_doc },
2725 { "FunctionEF_ToInt" , (PyCFunction) NS(Sq3Lite_FunctionEF_ToInt) , METH_O , FunctionEF_ToInt_doc },
2726 { "FunctionEF_ToString" , (PyCFunction) NS(Sq3Lite_FunctionEF_ToString) , METH_O , FunctionEF_ToString_doc },
2727 { "IndexConstraintEF_ToInt" , (PyCFunction) NS(Sq3Lite_IndexConstraintEF_ToInt) , METH_O , IndexConstraintEF_ToInt_doc },
2728 { "IndexConstraintEF_ToString" , (PyCFunction) NS(Sq3Lite_IndexConstraintEF_ToString) , METH_O , IndexConstraintEF_ToString_doc },
2729 { "IoCapEF_ToInt" , (PyCFunction) NS(Sq3Lite_IoCapEF_ToInt) , METH_O , IoCapEF_ToInt_doc },
2730 { "IoCapEF_ToString" , (PyCFunction) NS(Sq3Lite_IoCapEF_ToString) , METH_O , IoCapEF_ToString_doc },
2731 { "LimitE_ToInt" , (PyCFunction) NS(Sq3Lite_LimitE_ToInt) , METH_O , LimitE_ToInt_doc },
2732 { "LimitE_ToString" , (PyCFunction) NS(Sq3Lite_LimitE_ToString) , METH_O , LimitE_ToString_doc },
2733 { "LockE_ToInt" , (PyCFunction) NS(Sq3Lite_LockE_ToInt) , METH_O , LockE_ToInt_doc },
2734 { "LockE_ToString" , (PyCFunction) NS(Sq3Lite_LockE_ToString) , METH_O , LockE_ToString_doc },
2735 { "MutexE_ToInt" , (PyCFunction) NS(Sq3Lite_MutexE_ToInt) , METH_O , MutexE_ToInt_doc },
2736 { "MutexE_ToString" , (PyCFunction) NS(Sq3Lite_MutexE_ToString) , METH_O , MutexE_ToString_doc },
2737 { "OpenEF_ToInt" , (PyCFunction) NS(Sq3Lite_OpenEF_ToInt) , METH_O , OpenEF_ToInt_doc },
2738 { "OpenEF_ToString" , (PyCFunction) NS(Sq3Lite_OpenEF_ToString) , METH_O , OpenEF_ToString_doc },
2739 { "PrepareEF_ToInt" , (PyCFunction) NS(Sq3Lite_PrepareEF_ToInt) , METH_O , PrepareEF_ToInt_doc },
2740 { "PrepareEF_ToString" , (PyCFunction) NS(Sq3Lite_PrepareEF_ToString) , METH_O , PrepareEF_ToString_doc },
2741 { "ScanStatE_ToInt" , (PyCFunction) NS(Sq3Lite_ScanStatE_ToInt) , METH_O , ScanStatE_ToInt_doc },
2742 { "ScanStatE_ToString" , (PyCFunction) NS(Sq3Lite_ScanStatE_ToString) , METH_O , ScanStatE_ToString_doc },
2743 { "SerializeE_ToInt" , (PyCFunction) NS(Sq3Lite_SerializeE_ToInt) , METH_O , SerializeE_ToInt_doc },
2744 { "SerializeE_ToString" , (PyCFunction) NS(Sq3Lite_SerializeE_ToString) , METH_O , SerializeE_ToString_doc },
2745 { "SessionObjConfigE_ToInt" , (PyCFunction) NS(Sq3Lite_SessionObjConfigE_ToInt) , METH_O , SessionObjConfigE_ToInt_doc },
2746 { "SessionObjConfigE_ToString" , (PyCFunction) NS(Sq3Lite_SessionObjConfigE_ToString) , METH_O , SessionObjConfigE_ToString_doc },
2747 { "ShmLockE_ToInt" , (PyCFunction) NS(Sq3Lite_ShmLockE_ToInt) , METH_O , ShmLockE_ToInt_doc },
2748 { "ShmLockE_ToString" , (PyCFunction) NS(Sq3Lite_ShmLockE_ToString) , METH_O , ShmLockE_ToString_doc },
2749 { "StatusE_ToInt" , (PyCFunction) NS(Sq3Lite_StatusE_ToInt) , METH_O , StatusE_ToInt_doc },
2750 { "StatusE_ToString" , (PyCFunction) NS(Sq3Lite_StatusE_ToString) , METH_O , StatusE_ToString_doc },
2751 { "StmtStatusE_ToInt" , (PyCFunction) NS(Sq3Lite_StmtStatusE_ToInt) , METH_O , StmtStatusE_ToInt_doc },
2752 { "StmtStatusE_ToString" , (PyCFunction) NS(Sq3Lite_StmtStatusE_ToString) , METH_O , StmtStatusE_ToString_doc },
2753 { "SyncEF_ToInt" , (PyCFunction) NS(Sq3Lite_SyncEF_ToInt) , METH_O , SyncEF_ToInt_doc },
2754 { "SyncEF_ToString" , (PyCFunction) NS(Sq3Lite_SyncEF_ToString) , METH_O , SyncEF_ToString_doc },
2755 { "TestCtrlE_ToInt" , (PyCFunction) NS(Sq3Lite_TestCtrlE_ToInt) , METH_O , TestCtrlE_ToInt_doc },
2756 { "TestCtrlE_ToString" , (PyCFunction) NS(Sq3Lite_TestCtrlE_ToString) , METH_O , TestCtrlE_ToString_doc },
2757 { "TextE_ToInt" , (PyCFunction) NS(Sq3Lite_TextE_ToInt) , METH_O , TextE_ToInt_doc },
2758 { "TextE_ToString" , (PyCFunction) NS(Sq3Lite_TextE_ToString) , METH_O , TextE_ToString_doc },
2759 { "TraceEF_ToInt" , (PyCFunction) NS(Sq3Lite_TraceEF_ToInt) , METH_O , TraceEF_ToInt_doc },
2760 { "TraceEF_ToString" , (PyCFunction) NS(Sq3Lite_TraceEF_ToString) , METH_O , TraceEF_ToString_doc },
2761 { "TxnE_ToInt" , (PyCFunction) NS(Sq3Lite_TxnE_ToInt) , METH_O , TxnE_ToInt_doc },
2762 { "TxnE_ToString" , (PyCFunction) NS(Sq3Lite_TxnE_ToString) , METH_O , TxnE_ToString_doc },
2763 { "TypeE_ToInt" , (PyCFunction) NS(Sq3Lite_TypeE_ToInt) , METH_O , TypeE_ToInt_doc },
2764 { "TypeE_ToString" , (PyCFunction) NS(Sq3Lite_TypeE_ToString) , METH_O , TypeE_ToString_doc },
2765 { "VtabE_ToInt" , (PyCFunction) NS(Sq3Lite_VtabE_ToInt) , METH_O , VtabE_ToInt_doc },
2766 { "VtabE_ToString" , (PyCFunction) NS(Sq3Lite_VtabE_ToString) , METH_O , VtabE_ToString_doc },
2767
2768 // doc-key: Sq3Lite,Sq3,sco
2769 { "KeywordNameBUF" , (PyCFunction) NS(Sq3Lite_KeywordNameBUF) , METH_O , KeywordNameBUF_doc },
2770
2771 // doc-key: Sq3Lite,Sq3,sm_
2772 { "Cleanup" , (PyCFunction) NS(Sq3Lite_Cleanup) , METH_NOARGS , Cleanup_doc },
2773 { "CompileOptionGet" , (PyCFunction) NS(Sq3Lite_CompileOptionGet) , METH_O , CompileOptionGet_doc },
2774 { "CompileOptionUsed" , (PyCFunction) NS(Sq3Lite_CompileOptionUsed) , METH_O , CompileOptionUsed_doc },
2775 { "Complete" , (PyCFunction) NS(Sq3Lite_Complete) , METH_O , Complete_doc },
2776 { "ErrorCheckI" , (PyCFunction) NS(Sq3Lite_ErrorCheckI) , METH_O , ErrorCheckI_doc },
2777 { "FilenameDatabase" , (PyCFunction) NS(Sq3Lite_FilenameDatabase) , METH_O , FilenameDatabase_doc },
2778 { "FilenameJournal" , (PyCFunction) NS(Sq3Lite_FilenameJournal) , METH_O , FilenameJournal_doc },
2779 { "FilenameWal" , (PyCFunction) NS(Sq3Lite_FilenameWal) , METH_O , FilenameWal_doc },
2780 { "FreeFilename" , (PyCFunction) NS(Sq3Lite_FreeFilename) , METH_O , FreeFilename_doc },
2781 { "HardHeapLimit64" , (PyCFunction) NS(Sq3Lite_HardHeapLimit64) , METH_O , HardHeapLimit64_doc },
2782 { "Initialize" , (PyCFunction) NS(Sq3Lite_Initialize) , METH_NOARGS , Initialize_doc },
2783 { "KeywordCheck" , (PyCFunction) NS(Sq3Lite_KeywordCheck) , METH_VARARGS , KeywordCheck_doc },
2784 { "KeywordCount" , (PyCFunction) NS(Sq3Lite_KeywordCount) , METH_NOARGS , KeywordCount_doc },
2785 { "Libversion" , (PyCFunction) NS(Sq3Lite_Libversion) , METH_NOARGS , Libversion_doc },
2786 { "LibversionNumber" , (PyCFunction) NS(Sq3Lite_LibversionNumber) , METH_NOARGS , LibversionNumber_doc },
2787 { "MemoryHighwater" , (PyCFunction) NS(Sq3Lite_MemoryHighwater) , METH_O , MemoryHighwater_doc },
2788 { "MemoryUsed" , (PyCFunction) NS(Sq3Lite_MemoryUsed) , METH_NOARGS , MemoryUsed_doc },
2789 { "OsEnd" , (PyCFunction) NS(Sq3Lite_OsEnd) , METH_NOARGS , OsEnd_doc },
2790 { "OsInit" , (PyCFunction) NS(Sq3Lite_OsInit) , METH_NOARGS , OsInit_doc },
2791 { "ReleaseMemory" , (PyCFunction) NS(Sq3Lite_ReleaseMemory) , METH_O , ReleaseMemory_doc },
2792 { "Setup" , (PyCFunction) NS(Sq3Lite_Setup) , METH_NOARGS , Setup_doc },
2793 { "Shutdown" , (PyCFunction) NS(Sq3Lite_Shutdown) , METH_NOARGS , Shutdown_doc },
2794 { "SoftHeapLimit64" , (PyCFunction) NS(Sq3Lite_SoftHeapLimit64) , METH_O , SoftHeapLimit64_doc },
2795 { "Sourceid" , (PyCFunction) NS(Sq3Lite_Sourceid) , METH_NOARGS , Sourceid_doc },
2796 { "StrGlob" , (PyCFunction) NS(Sq3Lite_StrGlob) , METH_VARARGS , StrGlob_doc },
2797 { "StrIcmp" , (PyCFunction) NS(Sq3Lite_StrIcmp) , METH_VARARGS , StrIcmp_doc },
2798 { "StrLike" , (PyCFunction) NS(Sq3Lite_StrLike) , METH_VARARGS , StrLike_doc },
2799 { "StrNicmp" , (PyCFunction) NS(Sq3Lite_StrNicmp) , METH_VARARGS , StrNicmp_doc },
2800 { "Threadsafe" , (PyCFunction) NS(Sq3Lite_Threadsafe) , METH_NOARGS , Threadsafe_doc },
2801 { "UriBoolean" , (PyCFunction) NS(Sq3Lite_UriBoolean) , METH_VARARGS , UriBoolean_doc },
2802 { "UriInt64" , (PyCFunction) NS(Sq3Lite_UriInt64) , METH_VARARGS , UriInt64_doc },
2803 { "UriKey" , (PyCFunction) NS(Sq3Lite_UriKey) , METH_VARARGS , UriKey_doc },
2804 { "UriParameter" , (PyCFunction) NS(Sq3Lite_UriParameter) , METH_VARARGS , UriParameter_doc },
2805
2806 // doc-key: Sq3Lite,Sq3,smo
2807 { "KeywordName" , (PyCFunction) NS(Sq3Lite_KeywordName) , METH_O , KeywordName_doc },
2808 { "Status" , (PyCFunction) NS(Sq3Lite_Status) , METH_VARARGS , Status_doc },
2809 { "Status64" , (PyCFunction) NS(Sq3Lite_Status64) , METH_VARARGS , Status64_doc },
2810
2811 // END-CLASS - created by 'py_MqS.tcl -i NHI1_HOME/theSq3Lite/c/gen/c_sq3lite.meta' - DO NOT change
2812
2813 // BEGIN-OBJ - created by 'py_MqS.tcl -i NHI1_HOME/theSq3Lite/c/gen/c_sq3lite.meta' - DO NOT change
2814
2815 // → no data
2816
2817 // END-OBJ - created by 'py_MqS.tcl -i NHI1_HOME/theSq3Lite/c/gen/c_sq3lite.meta' - DO NOT change
2818
2819 {NULL, NULL, 0, NULL} /* Sentinel */
2820};
2821
2822// MARK_P
2828
2830// MODULE
2831
2833
2834typedef struct {
2836} NS(sSq3LiteStateS);
2837
2838MK_UNUSED static inline NS(sSq3LiteStateS)*
2839NS(sSq3LiteGetState)(PyObject *module)
2840{
2841 void *state = PyModule_GetState(module);
2842 assert(state != NULL);
2843 return (NS(sSq3LiteStateS)*)state;
2844}
2845
2846static int
2847NS(sSq3LiteTraverse)(PyObject *module, visitproc visit, void *arg)
2848{
2849 // BEGIN-EnumTraverse - created by 'py_MqS.tcl -i NHI1_HOME/theSq3Lite/c/gen/c_sq3lite.meta' - DO NOT change
2850
2851 Py_VISIT(Sq3AccessE_lngO);
2852 Py_VISIT(Sq3AuthActionE_lngO);
2853 Py_VISIT(Sq3AuthReturnE_lngO);
2855 Py_VISIT(Sq3ChangesetE_lngO);
2856 Py_VISIT(Sq3CheckpointE_lngO);
2857 Py_VISIT(Sq3ConfigE_lngO);
2859 Py_VISIT(Sq3DbConfigE_lngO);
2860 Py_VISIT(Sq3DbStatusE_lngO);
2861 Py_VISIT(Sq3DeSerializeEF_lngO);
2862 Py_VISIT(Sq3ErrorE_lngO);
2864 Py_VISIT(Sq3FcntlE_lngO);
2865 Py_VISIT(Sq3FunctionEF_lngO);
2866 Py_VISIT(Sq3IndexConstraintEF_lngO);
2867 Py_VISIT(Sq3IoCapEF_lngO);
2868 Py_VISIT(Sq3LimitE_lngO);
2869 Py_VISIT(Sq3LockE_lngO);
2870 Py_VISIT(Sq3MutexE_lngO);
2871 Py_VISIT(Sq3OpenEF_lngO);
2872 Py_VISIT(Sq3PrepareEF_lngO);
2873 Py_VISIT(Sq3ScanStatE_lngO);
2874 Py_VISIT(Sq3SerializeE_lngO);
2875 Py_VISIT(Sq3SessionObjConfigE_lngO);
2876 Py_VISIT(Sq3ShmLockE_lngO);
2877 Py_VISIT(Sq3StatusE_lngO);
2878 Py_VISIT(Sq3StmtStatusE_lngO);
2879 Py_VISIT(Sq3SyncEF_lngO);
2880 Py_VISIT(Sq3TestCtrlE_lngO);
2881 Py_VISIT(Sq3TextE_lngO);
2882 Py_VISIT(Sq3TraceEF_lngO);
2883 Py_VISIT(Sq3TxnE_lngO);
2884 Py_VISIT(Sq3TypeE_lngO);
2885 Py_VISIT(Sq3VtabE_lngO);
2886
2887 // END-EnumTraverse - created by 'py_MqS.tcl -i NHI1_HOME/theSq3Lite/c/gen/c_sq3lite.meta' - DO NOT change
2888 // BEGIN-ClassTraverse - created by 'py_MqS.tcl -i NHI1_HOME/theSq3Lite/c/gen/c_sq3lite.meta' - DO NOT change
2889
2890 Py_VISIT(Sq3LiteC_MK_NULL);
2891 Py_VISIT(Sq3ValueC_MK_NULL);
2892 Py_VISIT(Sq3StmtC_MK_NULL);
2893 Py_VISIT(Sq3BlobC_MK_NULL);
2894 Py_VISIT(Sq3FileC_MK_NULL);
2895
2896 // END-ClassTraverse - created by 'py_MqS.tcl -i NHI1_HOME/theSq3Lite/c/gen/c_sq3lite.meta' - DO NOT change
2897 return 0;
2898}
2899
2900static int
2901NS(sSq3LiteClear)(PyObject *module)
2902{
2903 // BEGIN-EnumClear - created by 'py_MqS.tcl -i NHI1_HOME/theSq3Lite/c/gen/c_sq3lite.meta' - DO NOT change
2904
2905 Py_CLEAR(Sq3AccessE_lngO);
2906 Py_CLEAR(Sq3AuthActionE_lngO);
2907 Py_CLEAR(Sq3AuthReturnE_lngO);
2909 Py_CLEAR(Sq3ChangesetE_lngO);
2910 Py_CLEAR(Sq3CheckpointE_lngO);
2911 Py_CLEAR(Sq3ConfigE_lngO);
2913 Py_CLEAR(Sq3DbConfigE_lngO);
2914 Py_CLEAR(Sq3DbStatusE_lngO);
2915 Py_CLEAR(Sq3DeSerializeEF_lngO);
2916 Py_CLEAR(Sq3ErrorE_lngO);
2918 Py_CLEAR(Sq3FcntlE_lngO);
2919 Py_CLEAR(Sq3FunctionEF_lngO);
2920 Py_CLEAR(Sq3IndexConstraintEF_lngO);
2921 Py_CLEAR(Sq3IoCapEF_lngO);
2922 Py_CLEAR(Sq3LimitE_lngO);
2923 Py_CLEAR(Sq3LockE_lngO);
2924 Py_CLEAR(Sq3MutexE_lngO);
2925 Py_CLEAR(Sq3OpenEF_lngO);
2926 Py_CLEAR(Sq3PrepareEF_lngO);
2927 Py_CLEAR(Sq3ScanStatE_lngO);
2928 Py_CLEAR(Sq3SerializeE_lngO);
2929 Py_CLEAR(Sq3SessionObjConfigE_lngO);
2930 Py_CLEAR(Sq3ShmLockE_lngO);
2931 Py_CLEAR(Sq3StatusE_lngO);
2932 Py_CLEAR(Sq3StmtStatusE_lngO);
2933 Py_CLEAR(Sq3SyncEF_lngO);
2934 Py_CLEAR(Sq3TestCtrlE_lngO);
2935 Py_CLEAR(Sq3TextE_lngO);
2936 Py_CLEAR(Sq3TraceEF_lngO);
2937 Py_CLEAR(Sq3TxnE_lngO);
2938 Py_CLEAR(Sq3TypeE_lngO);
2939 Py_CLEAR(Sq3VtabE_lngO);
2940
2941 // END-EnumClear - created by 'py_MqS.tcl -i NHI1_HOME/theSq3Lite/c/gen/c_sq3lite.meta' - DO NOT change
2942 // BEGIN-ClassClear - created by 'py_MqS.tcl -i NHI1_HOME/theSq3Lite/c/gen/c_sq3lite.meta' - DO NOT change
2943
2944 Py_CLEAR(Sq3LiteC_MK_NULL);
2945 Py_CLEAR(Sq3ValueC_MK_NULL);
2946 Py_CLEAR(Sq3StmtC_MK_NULL);
2947 Py_CLEAR(Sq3BlobC_MK_NULL);
2948 Py_CLEAR(Sq3FileC_MK_NULL);
2949
2950 // END-ClassClear - created by 'py_MqS.tcl -i NHI1_HOME/theSq3Lite/c/gen/c_sq3lite.meta' - DO NOT change
2951 return 0;
2952}
2953
2954static void
2955NS(sSq3LiteFree)(void *module)
2956{
2957 NS(sSq3LiteClear)((PyObject *)module);
2958}
2959
2960static int
2961NS(sSq3LiteExec)(PyObject *module)
2962{
2963 int ret;
2964 Sq3Setup();
2966
2967 NS(sSq3LiteStateS) *state = NS(sSq3LiteGetState)(module);
2968 state->mkrt = MK_RT_PTR;
2969
2970 PyObject *mainM = PyImport_AddModule("__main__");
2971
2972 PyObject *mkM = PyImport_ImportModule("pymkkernel");
2973 LngErrorCheckN(mkM);
2974 ret = PyObject_SetAttrString(mainM,"pymkkernel",mkM);
2975 OtErrorCheckLng(ret);
2976 Py_CLEAR(mkM);
2977
2978 // BEGIN-CLASS-DEF - created by 'py_MqS.tcl -i NHI1_HOME/theSq3Lite/c/gen/c_sq3lite.meta' - DO NOT change
2979
2980 OtErrorCheckLng( NS(pSq3LiteC_Init) (MK_RT_CALL module) ) ;
2981 OtErrorCheckLng( NS(pSq3ValueC_Init) (MK_RT_CALL module) ) ;
2982 OtErrorCheckLng( NS(pSq3StmtC_Init) (MK_RT_CALL module) ) ;
2983 OtErrorCheckLng( NS(pSq3BlobC_Init) (MK_RT_CALL module) ) ;
2984 OtErrorCheckLng( NS(pSq3FileC_Init) (MK_RT_CALL module) ) ;
2985
2986 // END-CLASS-DEF - created by 'py_MqS.tcl -i NHI1_HOME/theSq3Lite/c/gen/c_sq3lite.meta' - DO NOT change
2987
2988 // init NULL object… on EVERY thread
2989 //NS(inMain) = false;
2990
2991 // init ENUM
2992 MK_STR enumCode =
2993 "from enum import IntEnum, IntFlag\n"
2994
2995 // BEGIN-EnumCode - created by 'py_MqS.tcl -i NHI1_HOME/theSq3Lite/c/gen/c_sq3lite.meta' - DO NOT change
2996
2997 "class Sq3AccessE(IntEnum):\n"
2998 " EXISTS = 0\n"
2999 " READWRITE = 1\n"
3000 " READ = 2\n"
3001
3002 "class Sq3AuthActionE(IntEnum):\n"
3003 " CREATE_INDEX = 1\n"
3004 " CREATE_TABLE = 2\n"
3005 " CREATE_TEMP_INDEX = 3\n"
3006 " CREATE_TEMP_TABLE = 4\n"
3007 " CREATE_TEMP_TRIGGER = 5\n"
3008 " CREATE_TEMP_VIEW = 6\n"
3009 " CREATE_TRIGGER = 7\n"
3010 " CREATE_VIEW = 8\n"
3011 " DELETE = 9\n"
3012 " DROP_INDEX = 10\n"
3013 " DROP_TABLE = 11\n"
3014 " DROP_TEMP_INDEX = 12\n"
3015 " DROP_TEMP_TABLE = 13\n"
3016 " DROP_TEMP_TRIGGER = 14\n"
3017 " DROP_TEMP_VIEW = 15\n"
3018 " DROP_TRIGGER = 16\n"
3019 " DROP_VIEW = 17\n"
3020 " INSERT = 18\n"
3021 " PRAGMA = 19\n"
3022 " READ = 20\n"
3023 " SELECT = 21\n"
3024 " TRANSACTION = 22\n"
3025 " UPDATE = 23\n"
3026 " ATTACH = 24\n"
3027 " DETACH = 25\n"
3028 " ALTER_TABLE = 26\n"
3029 " REINDEX = 27\n"
3030 " ANALYZE = 28\n"
3031 " CREATE_VTABLE = 29\n"
3032 " DROP_VTABLE = 30\n"
3033 " FUNCTION = 31\n"
3034 " SAVEPOINT = 32\n"
3035 " COPY = 0\n"
3036 " RECURSIVE = 33\n"
3037
3038 "class Sq3AuthReturnE(IntEnum):\n"
3039 " OK = 0\n"
3040 " DENY = 1\n"
3041 " IGNORE = 2\n"
3042
3043 "class Sq3ChangeSetConflictE(IntEnum):\n"
3044 " OMIT = 0\n"
3045 " REPLACE = 1\n"
3046 " ABORT = 2\n"
3047
3048 "class Sq3ChangesetE(IntEnum):\n"
3049 " DATA = 1\n"
3050 " NOTFOUND = 2\n"
3051 " CONFLICT = 3\n"
3052 " CONSTRAINT = 4\n"
3053 " FOREIGN_KEY = 5\n"
3054
3055 "class Sq3CheckpointE(IntEnum):\n"
3056 " PASSIVE = 0\n"
3057 " FULL = 1\n"
3058 " RESTART = 2\n"
3059 " TRUNCATE = 3\n"
3060
3061 "class Sq3ConfigE(IntEnum):\n"
3062 " SINGLETHREAD = 1\n"
3063 " MULTITHREAD = 2\n"
3064 " SERIALIZED = 3\n"
3065 " MALLOC = 4\n"
3066 " GETMALLOC = 5\n"
3067 " SCRATCH = 6\n"
3068 " PAGECACHE = 7\n"
3069 " HEAP = 8\n"
3070 " MEMSTATUS = 9\n"
3071 " MUTEX = 10\n"
3072 " GETMUTEX = 11\n"
3073 " LOOKASIDE = 13\n"
3074 " PCACHE = 14\n"
3075 " GETPCACHE = 15\n"
3076 " LOG = 16\n"
3077 " URI = 17\n"
3078 " PCACHE2 = 18\n"
3079 " GETPCACHE2 = 19\n"
3080 " COVERING_INDEX_SCAN = 20\n"
3081 " SQLLOG = 21\n"
3082 " MMAP_SIZE = 22\n"
3083 " WIN32_HEAPSIZE = 23\n"
3084 " PCACHE_HDRSZ = 24\n"
3085 " PMASZ = 25\n"
3086 " STMTJRNL_SPILL = 26\n"
3087 " SMALL_MALLOC = 27\n"
3088 " SORTERREF_SIZE = 28\n"
3089 " MEMDB_MAXSIZE = 29\n"
3090
3091 "class Sq3ConflictResolutionE(IntEnum):\n"
3092 " ROLLBACK = 1\n"
3093 " FAIL = 3\n"
3094 " REPLACE = 5\n"
3095
3096 "class Sq3DbConfigE(IntEnum):\n"
3097 " MAINDBNAME = 1000\n"
3098 " LOOKASIDE = 1001\n"
3099 " ENABLE_FKEY = 1002\n"
3100 " ENABLE_TRIGGER = 1003\n"
3101 " ENABLE_FTS3_TOKENIZER = 1004\n"
3102 " ENABLE_LOAD_EXTENSION = 1005\n"
3103 " NO_CKPT_ON_CLOSE = 1006\n"
3104 " ENABLE_QPSG = 1007\n"
3105 " TRIGGER_EQP = 1008\n"
3106 " RESET_DATABASE = 1009\n"
3107 " DEFENSIVE = 1010\n"
3108 " WRITABLE_SCHEMA = 1011\n"
3109 " LEGACY_ALTER_TABLE = 1012\n"
3110 " DQS_DML = 1013\n"
3111 " DQS_DDL = 1014\n"
3112 " ENABLE_VIEW = 1015\n"
3113 " LEGACY_FILE_FORMAT = 1016\n"
3114 " TRUSTED_SCHEMA = 1017\n"
3115 " STMT_SCANSTATUS = 1018\n"
3116 " REVERSE_SCANORDER = 1019\n"
3117 " MAX = 1019\n"
3118
3119 "class Sq3DbStatusE(IntEnum):\n"
3120 " LOOKASIDE_USED = 0\n"
3121 " CACHE_USED = 1\n"
3122 " SCHEMA_USED = 2\n"
3123 " STMT_USED = 3\n"
3124 " LOOKASIDE_HIT = 4\n"
3125 " LOOKASIDE_MISS_SIZE = 5\n"
3126 " LOOKASIDE_MISS_FULL = 6\n"
3127 " CACHE_HIT = 7\n"
3128 " CACHE_MISS = 8\n"
3129 " CACHE_WRITE = 9\n"
3130 " DEFERRED_FKS = 10\n"
3131 " CACHE_USED_SHARED = 11\n"
3132 " CACHE_SPILL = 12\n"
3133 " MAX = 12\n"
3134
3135 "class Sq3DeSerializeEF(IntFlag):\n"
3136 " NO = 0\n"
3137 " FREEONCLOSE = 1\n"
3138 " RESIZEABLE = 2\n"
3139 " READONLY = 4\n"
3140
3141 "class Sq3ErrorE(IntEnum):\n"
3142 " OK = 0\n"
3143 " ERROR = 1\n"
3144 " INTERNAL = 2\n"
3145 " PERM = 3\n"
3146 " ABORT = 4\n"
3147 " BUSY = 5\n"
3148 " LOCKED = 6\n"
3149 " NOMEM = 7\n"
3150 " READONLY = 8\n"
3151 " INTERRUPT = 9\n"
3152 " IOERR = 10\n"
3153 " CORRUPT = 11\n"
3154 " NOTFOUND = 12\n"
3155 " FULL = 13\n"
3156 " CANTOPEN = 14\n"
3157 " PROTOCOL = 15\n"
3158 " EMPTY = 16\n"
3159 " SCHEMA = 17\n"
3160 " TOOBIG = 18\n"
3161 " CONSTRAINT = 19\n"
3162 " MISMATCH = 20\n"
3163 " MISUSE = 21\n"
3164 " NOLFS = 22\n"
3165 " AUTH = 23\n"
3166 " FORMAT = 24\n"
3167 " RANGE = 25\n"
3168 " NOTADB = 26\n"
3169 " NOTICE = 27\n"
3170 " WARNING = 28\n"
3171 " ROW = 100\n"
3172 " DONE = 101\n"
3173
3174 "class Sq3ExtendetResultCodesE(IntEnum):\n"
3175 " OK = 0\n"
3176 " ERROR = 1\n"
3177 " INTERNAL = 2\n"
3178 " PERM = 3\n"
3179 " ABORT = 4\n"
3180 " BUSY = 5\n"
3181 " LOCKED = 6\n"
3182 " NOMEM = 7\n"
3183 " READONLY = 8\n"
3184 " INTERRUPT = 9\n"
3185 " IOERR = 10\n"
3186 " CORRUPT = 11\n"
3187 " NOTFOUND = 12\n"
3188 " FULL = 13\n"
3189 " CANTOPEN = 14\n"
3190 " PROTOCOL = 15\n"
3191 " EMPTY = 16\n"
3192 " SCHEMA = 17\n"
3193 " TOOBIG = 18\n"
3194 " CONSTRAINT = 19\n"
3195 " MISMATCH = 20\n"
3196 " MISUSE = 21\n"
3197 " NOLFS = 22\n"
3198 " AUTH = 23\n"
3199 " FORMAT = 24\n"
3200 " RANGE = 25\n"
3201 " NOTADB = 26\n"
3202 " NOTICE = 27\n"
3203 " WARNING = 28\n"
3204 " ROW = 100\n"
3205 " DONE = 101\n"
3206 " ERROR_MISSING_COLLSEQ = 257\n"
3207 " ERROR_RETRY = 513\n"
3208 " ERROR_SNAPSHOT = 769\n"
3209 " IOERR_READ = 266\n"
3210 " IOERR_SHORT_READ = 522\n"
3211 " IOERR_WRITE = 778\n"
3212 " IOERR_FSYNC = 1034\n"
3213 " IOERR_DIR_FSYNC = 1290\n"
3214 " IOERR_TRUNCATE = 1546\n"
3215 " IOERR_FSTAT = 1802\n"
3216 " IOERR_UNLOCK = 2058\n"
3217 " IOERR_RDLOCK = 2314\n"
3218 " IOERR_DELETE = 2570\n"
3219 " IOERR_BLOCKED = 2826\n"
3220 " IOERR_NOMEM = 3082\n"
3221 " IOERR_ACCESS = 3338\n"
3222 " IOERR_CHECKRESERVEDLOCK = 3594\n"
3223 " IOERR_LOCK = 3850\n"
3224 " IOERR_CLOSE = 4106\n"
3225 " IOERR_DIR_CLOSE = 4362\n"
3226 " IOERR_SHMOPEN = 4618\n"
3227 " IOERR_SHMSIZE = 4874\n"
3228 " IOERR_SHMLOCK = 5130\n"
3229 " IOERR_SHMMAP = 5386\n"
3230 " IOERR_SEEK = 5642\n"
3231 " IOERR_DELETE_NOENT = 5898\n"
3232 " IOERR_MMAP = 6154\n"
3233 " IOERR_GETTEMPPATH = 6410\n"
3234 " IOERR_CONVPATH = 6666\n"
3235 " IOERR_VNODE = 6922\n"
3236 " IOERR_AUTH = 7178\n"
3237 " IOERR_BEGIN_ATOMIC = 7434\n"
3238 " IOERR_COMMIT_ATOMIC = 7690\n"
3239 " IOERR_ROLLBACK_ATOMIC = 7946\n"
3240 " IOERR_DATA = 8202\n"
3241 " IOERR_CORRUPTFS = 8458\n"
3242 " IOERR_IN_PAGE = 8714\n"
3243 " LOCKED_SHAREDCACHE = 262\n"
3244 " LOCKED_VTAB = 518\n"
3245 " BUSY_RECOVERY = 261\n"
3246 " BUSY_SNAPSHOT = 517\n"
3247 " BUSY_TIMEOUT = 773\n"
3248 " CANTOPEN_NOTEMPDIR = 270\n"
3249 " CANTOPEN_ISDIR = 526\n"
3250 " CANTOPEN_FULLPATH = 782\n"
3251 " CANTOPEN_CONVPATH = 1038\n"
3252 " CANTOPEN_DIRTYWAL = 1294\n"
3253 " CANTOPEN_SYMLINK = 1550\n"
3254 " CORRUPT_VTAB = 267\n"
3255 " CORRUPT_SEQUENCE = 523\n"
3256 " CORRUPT_INDEX = 779\n"
3257 " READONLY_RECOVERY = 264\n"
3258 " READONLY_CANTLOCK = 520\n"
3259 " READONLY_ROLLBACK = 776\n"
3260 " READONLY_DBMOVED = 1032\n"
3261 " READONLY_CANTINIT = 1288\n"
3262 " READONLY_DIRECTORY = 1544\n"
3263 " ABORT_ROLLBACK = 516\n"
3264 " CONSTRAINT_CHECK = 275\n"
3265 " CONSTRAINT_COMMITHOOK = 531\n"
3266 " CONSTRAINT_FOREIGNKEY = 787\n"
3267 " CONSTRAINT_FUNCTION = 1043\n"
3268 " CONSTRAINT_NOTNULL = 1299\n"
3269 " CONSTRAINT_PRIMARYKEY = 1555\n"
3270 " CONSTRAINT_TRIGGER = 1811\n"
3271 " CONSTRAINT_UNIQUE = 2067\n"
3272 " CONSTRAINT_VTAB = 2323\n"
3273 " CONSTRAINT_ROWID = 2579\n"
3274 " CONSTRAINT_PINNED = 2835\n"
3275 " CONSTRAINT_DATATYPE = 3091\n"
3276 " NOTICE_RECOVER_WAL = 283\n"
3277 " NOTICE_RECOVER_ROLLBACK = 539\n"
3278 " NOTICE_RBU = 795\n"
3279 " WARNING_AUTOINDEX = 284\n"
3280 " AUTH_USER = 279\n"
3281 " OK_LOAD_PERMANENTLY = 256\n"
3282 " OK_SYMLINK = 512\n"
3283
3284 "class Sq3FcntlE(IntEnum):\n"
3285 " LOCKSTATE = 1\n"
3286 " GET_LOCKPROXYFILE = 2\n"
3287 " SET_LOCKPROXYFILE = 3\n"
3288 " LAST_ERRNO = 4\n"
3289 " SIZE_HINT = 5\n"
3290 " CHUNK_SIZE = 6\n"
3291 " FILE_POINTER = 7\n"
3292 " SYNC_OMITTED = 8\n"
3293 " WIN32_AV_RETRY = 9\n"
3294 " PERSIST_WAL = 10\n"
3295 " OVERWRITE = 11\n"
3296 " VFSNAME = 12\n"
3297 " POWERSAFE_OVERWRITE = 13\n"
3298 " PRAGMA = 14\n"
3299 " BUSYHANDLER = 15\n"
3300 " TEMPFILENAME = 16\n"
3301 " MMAP_SIZE = 18\n"
3302 " TRACE = 19\n"
3303 " HAS_MOVED = 20\n"
3304 " SYNC = 21\n"
3305 " COMMIT_PHASETWO = 22\n"
3306 " WIN32_SET_HANDLE = 23\n"
3307 " WAL_BLOCK = 24\n"
3308 " ZIPVFS = 25\n"
3309 " RBU = 26\n"
3310 " VFS_POINTER = 27\n"
3311 " JOURNAL_POINTER = 28\n"
3312 " WIN32_GET_HANDLE = 29\n"
3313 " PDB = 30\n"
3314 " BEGIN_ATOMIC_WRITE = 31\n"
3315 " COMMIT_ATOMIC_WRITE = 32\n"
3316 " ROLLBACK_ATOMIC_WRITE = 33\n"
3317 " LOCK_TIMEOUT = 34\n"
3318 " DATA_VERSION = 35\n"
3319 " SIZE_LIMIT = 36\n"
3320 " CKPT_DONE = 37\n"
3321 " RESERVE_BYTES = 38\n"
3322 " CKPT_START = 39\n"
3323 " EXTERNAL_READER = 40\n"
3324 " CKSM_FILE = 41\n"
3325 " RESET_CACHE = 42\n"
3326
3327 "class Sq3FunctionEF(IntFlag):\n"
3328 " DETERMINISTIC = 2048\n"
3329 " DIRECTONLY = 524288\n"
3330 " SUBTYPE = 1048576\n"
3331 " INNOCUOUS = 2097152\n"
3332 " RESULT_SUBTYPE = 16777216\n"
3333
3334 "class Sq3IndexConstraintEF(IntFlag):\n"
3335 " EQ = 2\n"
3336 " GT = 4\n"
3337 " LE = 8\n"
3338 " LT = 16\n"
3339 " GE = 32\n"
3340 " MATCH = 64\n"
3341 " LIKE = 65\n"
3342 " GLOB = 66\n"
3343 " REGEXP = 67\n"
3344 " NE = 68\n"
3345 " ISNOT = 69\n"
3346 " ISNOTNULL = 70\n"
3347 " ISNULL = 71\n"
3348 " IS = 72\n"
3349 " LIMIT = 73\n"
3350 " OFFSET = 74\n"
3351 " FUNCTION = 150\n"
3352
3353 "class Sq3IoCapEF(IntFlag):\n"
3354 " ATOMIC = 1\n"
3355 " ATOMIC512 = 2\n"
3356 " ATOMIC1K = 4\n"
3357 " ATOMIC2K = 8\n"
3358 " ATOMIC4K = 16\n"
3359 " ATOMIC8K = 32\n"
3360 " ATOMIC16K = 64\n"
3361 " ATOMIC32K = 128\n"
3362 " ATOMIC64K = 256\n"
3363 " SAFE_APPEND = 512\n"
3364 " SEQUENTIAL = 1024\n"
3365 " UNDELETABLE_WHEN_OPEN = 2048\n"
3366 " POWERSAFE_OVERWRITE = 4096\n"
3367 " IMMUTABLE = 8192\n"
3368 " BATCH_ATOMIC = 16384\n"
3369
3370 "class Sq3LimitE(IntEnum):\n"
3371 " LENGTH = 0\n"
3372 " SQL_LENGTH = 1\n"
3373 " COLUMN = 2\n"
3374 " EXPR_DEPTH = 3\n"
3375 " COMPOUND_SELECT = 4\n"
3376 " VDBE_OP = 5\n"
3377 " FUNCTION_ARG = 6\n"
3378 " ATTACHED = 7\n"
3379 " LIKE_PATTERN_LENGTH = 8\n"
3380 " VARIABLE_NUMBER = 9\n"
3381 " TRIGGER_DEPTH = 10\n"
3382 " WORKER_THREADS = 11\n"
3383
3384 "class Sq3LockE(IntEnum):\n"
3385 " NONE = 0\n"
3386 " SHARED = 1\n"
3387 " RESERVED = 2\n"
3388 " PENDING = 3\n"
3389 " EXCLUSIVE = 4\n"
3390
3391 "class Sq3MutexE(IntEnum):\n"
3392 " FAST = 0\n"
3393 " RECURSIVE = 1\n"
3394 " STATIC_MAIN = 2\n"
3395 " STATIC_MEM = 3\n"
3396 " STATIC_MEM2 = 4\n"
3397 " STATIC_OPEN = 4\n"
3398 " STATIC_PRNG = 5\n"
3399 " STATIC_LRU = 6\n"
3400 " STATIC_LRU2 = 7\n"
3401 " STATIC_PMEM = 7\n"
3402 " STATIC_APP1 = 8\n"
3403 " STATIC_APP2 = 9\n"
3404 " STATIC_APP3 = 10\n"
3405 " STATIC_VFS1 = 11\n"
3406 " STATIC_VFS2 = 12\n"
3407 " STATIC_VFS3 = 13\n"
3408
3409 "class Sq3OpenEF(IntFlag):\n"
3410 " READONLY = 1\n"
3411 " READWRITE = 2\n"
3412 " CREATE = 4\n"
3413 " DELETEONCLOSE = 8\n"
3414 " EXCLUSIVE = 16\n"
3415 " AUTOPROXY = 32\n"
3416 " URI = 64\n"
3417 " MEMORY = 128\n"
3418 " MAIN_DB = 256\n"
3419 " TEMP_DB = 512\n"
3420 " TRANSIENT_DB = 1024\n"
3421 " MAIN_JOURNAL = 2048\n"
3422 " TEMP_JOURNAL = 4096\n"
3423 " SUBJOURNAL = 8192\n"
3424 " SUPER_JOURNAL = 16384\n"
3425 " NOMUTEX = 32768\n"
3426 " FULLMUTEX = 65536\n"
3427 " SHAREDCACHE = 131072\n"
3428 " PRIVATECACHE = 262144\n"
3429 " WAL = 524288\n"
3430 " NOFOLLOW = 16777216\n"
3431 " EXRESCODE = 33554432\n"
3432
3433 "class Sq3PrepareEF(IntFlag):\n"
3434 " NO = 0\n"
3435 " PERSISTENT = 1\n"
3436 " NORMALIZE = 2\n"
3437 " NO_VTAB = 4\n"
3438
3439 "class Sq3ScanStatE(IntEnum):\n"
3440 " NLOOP = 0\n"
3441 " NVISIT = 1\n"
3442 " EST = 2\n"
3443 " NAME = 3\n"
3444 " EXPLAIN = 4\n"
3445 " SELECTID = 5\n"
3446 " PARENTID = 6\n"
3447 " NCYCLE = 7\n"
3448
3449 "class Sq3SerializeE(IntEnum):\n"
3450 " NO = 0\n"
3451 " NOCOPY = 1\n"
3452
3453 "class Sq3SessionObjConfigE(IntEnum):\n"
3454 " SIZE = 1\n"
3455 " ROWID = 2\n"
3456
3457 "class Sq3ShmLockE(IntEnum):\n"
3458 " UNLOCK = 1\n"
3459 " LOCK = 2\n"
3460 " SHARED = 4\n"
3461 " EXCLUSIVE = 8\n"
3462
3463 "class Sq3StatusE(IntEnum):\n"
3464 " MEMORY_USED = 0\n"
3465 " PAGECACHE_USED = 1\n"
3466 " PAGECACHE_OVERFLOW = 2\n"
3467 " SCRATCH_USED = 3\n"
3468 " SCRATCH_OVERFLOW = 4\n"
3469 " MALLOC_SIZE = 5\n"
3470 " PARSER_STACK = 6\n"
3471 " PAGECACHE_SIZE = 7\n"
3472 " SCRATCH_SIZE = 8\n"
3473 " MALLOC_COUNT = 9\n"
3474
3475 "class Sq3StmtStatusE(IntEnum):\n"
3476 " FULLSCAN_STEP = 1\n"
3477 " SORT = 2\n"
3478 " AUTOINDEX = 3\n"
3479 " VM_STEP = 4\n"
3480 " REPREPARE = 5\n"
3481 " RUN = 6\n"
3482 " FILTER_MISS = 7\n"
3483 " FILTER_HIT = 8\n"
3484 " MEMUSED = 99\n"
3485
3486 "class Sq3SyncEF(IntFlag):\n"
3487 " NORMAL = 2\n"
3488 " FULL = 3\n"
3489 " DATAONLY = 16\n"
3490
3491 "class Sq3TestCtrlE(IntEnum):\n"
3492 " FIRST = 5\n"
3493 " PRNG_SAVE = 5\n"
3494 " PRNG_RESTORE = 6\n"
3495 " PRNG_RESET = 7\n"
3496 " FK_NO_ACTION = 7\n"
3497 " BITVEC_TEST = 8\n"
3498 " FAULT_INSTALL = 9\n"
3499 " BENIGN_MALLOC_HOOKS = 10\n"
3500 " PENDING_BYTE = 11\n"
3501 " ASSERT = 12\n"
3502 " ALWAYS = 13\n"
3503 " RESERVE = 14\n"
3504 " OPTIMIZATIONS = 15\n"
3505 " ISKEYWORD = 16\n"
3506 " SCRATCHMALLOC = 17\n"
3507 " INTERNAL_FUNCTIONS = 17\n"
3508 " LOCALTIME_FAULT = 18\n"
3509 " EXPLAIN_STMT = 19\n"
3510 " ONCE_RESET_THRESHOLD = 19\n"
3511 " NEVER_CORRUPT = 20\n"
3512 " VDBE_COVERAGE = 21\n"
3513 " BYTEORDER = 22\n"
3514 " ISINIT = 23\n"
3515 " SORTER_MMAP = 24\n"
3516 " IMPOSTER = 25\n"
3517 " PARSER_COVERAGE = 26\n"
3518 " RESULT_INTREAL = 27\n"
3519 " PRNG_SEED = 28\n"
3520 " EXTRA_SCHEMA_CHECKS = 29\n"
3521 " SEEK_COUNT = 30\n"
3522 " TRACEFLAGS = 31\n"
3523 " TUNE = 32\n"
3524 " LOGEST = 33\n"
3525 " USELONGDOUBLE = 34\n"
3526 " LAST = 34\n"
3527
3528 "class Sq3TextE(IntEnum):\n"
3529 " UTF8 = 1\n"
3530 " UTF16LE = 2\n"
3531 " UTF16BE = 3\n"
3532 " UTF16 = 4\n"
3533 " ANY = 5\n"
3534 " UTF16_ALIGNED = 8\n"
3535
3536 "class Sq3TraceEF(IntFlag):\n"
3537 " STMT = 1\n"
3538 " PROFILE = 2\n"
3539 " ROW = 4\n"
3540 " CLOSE = 8\n"
3541
3542 "class Sq3TxnE(IntEnum):\n"
3543 " NONE = 0\n"
3544 " READ = 1\n"
3545 " WRITE = 2\n"
3546
3547 "class Sq3TypeE(IntEnum):\n"
3548 " INTEGER = 1\n"
3549 " FLOAT = 2\n"
3550 " BLOB = 4\n"
3551 " NULL = 5\n"
3552 " TEXT = 3\n"
3553
3554 "class Sq3VtabE(IntEnum):\n"
3555 " CONSTRAINT_SUPPORT = 1\n"
3556 " INNOCUOUS = 2\n"
3557 " DIRECTONLY = 3\n"
3558 " USES_ALL_SCHEMAS = 4\n"
3559
3560 // END-EnumCode - created by 'py_MqS.tcl -i NHI1_HOME/theSq3Lite/c/gen/c_sq3lite.meta' - DO NOT change
3561 ;
3562
3563 PyObject *myD, *mainD, *tmpO;
3564 mainD = PyModule_GetDict(mainM);
3565 myD = PyModule_GetDict(module);
3566 tmpO = PyRun_String(enumCode, Py_file_input, mainD, myD);
3567 LngErrorCheckN(tmpO);
3568 Py_CLEAR(tmpO);
3569
3570 // BEGIN-EnumSet - created by 'py_MqS.tcl -i NHI1_HOME/theSq3Lite/c/gen/c_sq3lite.meta' - DO NOT change
3571
3572 Sq3AccessE_lngO = (PyTypeObject*) Py_NewRef(PyDict_GetItemString(myD,"Sq3AccessE"));
3573 Sq3AuthActionE_lngO = (PyTypeObject*) Py_NewRef(PyDict_GetItemString(myD,"Sq3AuthActionE"));
3574 Sq3AuthReturnE_lngO = (PyTypeObject*) Py_NewRef(PyDict_GetItemString(myD,"Sq3AuthReturnE"));
3575 Sq3ChangeSetConflictE_lngO = (PyTypeObject*) Py_NewRef(PyDict_GetItemString(myD,"Sq3ChangeSetConflictE"));
3576 Sq3ChangesetE_lngO = (PyTypeObject*) Py_NewRef(PyDict_GetItemString(myD,"Sq3ChangesetE"));
3577 Sq3CheckpointE_lngO = (PyTypeObject*) Py_NewRef(PyDict_GetItemString(myD,"Sq3CheckpointE"));
3578 Sq3ConfigE_lngO = (PyTypeObject*) Py_NewRef(PyDict_GetItemString(myD,"Sq3ConfigE"));
3579 Sq3ConflictResolutionE_lngO = (PyTypeObject*) Py_NewRef(PyDict_GetItemString(myD,"Sq3ConflictResolutionE"));
3580 Sq3DbConfigE_lngO = (PyTypeObject*) Py_NewRef(PyDict_GetItemString(myD,"Sq3DbConfigE"));
3581 Sq3DbStatusE_lngO = (PyTypeObject*) Py_NewRef(PyDict_GetItemString(myD,"Sq3DbStatusE"));
3582 Sq3DeSerializeEF_lngO = (PyTypeObject*) Py_NewRef(PyDict_GetItemString(myD,"Sq3DeSerializeEF"));
3583 Sq3ErrorE_lngO = (PyTypeObject*) Py_NewRef(PyDict_GetItemString(myD,"Sq3ErrorE"));
3584 Sq3ExtendetResultCodesE_lngO = (PyTypeObject*) Py_NewRef(PyDict_GetItemString(myD,"Sq3ExtendetResultCodesE"));
3585 Sq3FcntlE_lngO = (PyTypeObject*) Py_NewRef(PyDict_GetItemString(myD,"Sq3FcntlE"));
3586 Sq3FunctionEF_lngO = (PyTypeObject*) Py_NewRef(PyDict_GetItemString(myD,"Sq3FunctionEF"));
3587 Sq3IndexConstraintEF_lngO = (PyTypeObject*) Py_NewRef(PyDict_GetItemString(myD,"Sq3IndexConstraintEF"));
3588 Sq3IoCapEF_lngO = (PyTypeObject*) Py_NewRef(PyDict_GetItemString(myD,"Sq3IoCapEF"));
3589 Sq3LimitE_lngO = (PyTypeObject*) Py_NewRef(PyDict_GetItemString(myD,"Sq3LimitE"));
3590 Sq3LockE_lngO = (PyTypeObject*) Py_NewRef(PyDict_GetItemString(myD,"Sq3LockE"));
3591 Sq3MutexE_lngO = (PyTypeObject*) Py_NewRef(PyDict_GetItemString(myD,"Sq3MutexE"));
3592 Sq3OpenEF_lngO = (PyTypeObject*) Py_NewRef(PyDict_GetItemString(myD,"Sq3OpenEF"));
3593 Sq3PrepareEF_lngO = (PyTypeObject*) Py_NewRef(PyDict_GetItemString(myD,"Sq3PrepareEF"));
3594 Sq3ScanStatE_lngO = (PyTypeObject*) Py_NewRef(PyDict_GetItemString(myD,"Sq3ScanStatE"));
3595 Sq3SerializeE_lngO = (PyTypeObject*) Py_NewRef(PyDict_GetItemString(myD,"Sq3SerializeE"));
3596 Sq3SessionObjConfigE_lngO = (PyTypeObject*) Py_NewRef(PyDict_GetItemString(myD,"Sq3SessionObjConfigE"));
3597 Sq3ShmLockE_lngO = (PyTypeObject*) Py_NewRef(PyDict_GetItemString(myD,"Sq3ShmLockE"));
3598 Sq3StatusE_lngO = (PyTypeObject*) Py_NewRef(PyDict_GetItemString(myD,"Sq3StatusE"));
3599 Sq3StmtStatusE_lngO = (PyTypeObject*) Py_NewRef(PyDict_GetItemString(myD,"Sq3StmtStatusE"));
3600 Sq3SyncEF_lngO = (PyTypeObject*) Py_NewRef(PyDict_GetItemString(myD,"Sq3SyncEF"));
3601 Sq3TestCtrlE_lngO = (PyTypeObject*) Py_NewRef(PyDict_GetItemString(myD,"Sq3TestCtrlE"));
3602 Sq3TextE_lngO = (PyTypeObject*) Py_NewRef(PyDict_GetItemString(myD,"Sq3TextE"));
3603 Sq3TraceEF_lngO = (PyTypeObject*) Py_NewRef(PyDict_GetItemString(myD,"Sq3TraceEF"));
3604 Sq3TxnE_lngO = (PyTypeObject*) Py_NewRef(PyDict_GetItemString(myD,"Sq3TxnE"));
3605 Sq3TypeE_lngO = (PyTypeObject*) Py_NewRef(PyDict_GetItemString(myD,"Sq3TypeE"));
3606 Sq3VtabE_lngO = (PyTypeObject*) Py_NewRef(PyDict_GetItemString(myD,"Sq3VtabE"));
3607
3608 // END-EnumSet - created by 'py_MqS.tcl -i NHI1_HOME/theSq3Lite/c/gen/c_sq3lite.meta' - DO NOT change
3609
3610 return 0;
3611error:
3612 return -1;
3613}
3614
3615MK_UNUSED static PyModuleDef_Slot NS(sSq3LiteDefSlots)[] = {
3616 {Py_mod_exec, NS(sSq3LiteExec)},
3617 {Py_mod_multiple_interpreters, Py_MOD_PER_INTERPRETER_GIL_SUPPORTED},
3618 {0, NULL}
3619};
3620
3621static PyModuleDef NS(sSq3LiteDef) = {
3622 PyModuleDef_HEAD_INIT,
3623 .m_name = "pysq3lite",
3624 .m_doc = "python language binding for 'theSq3Lite'",
3625 .m_size = sizeof(NS(sSq3LiteStateS)),
3626 .m_methods = NS(sSq3LiteMethods),
3627 .m_slots = NS(sSq3LiteDefSlots),
3628 .m_traverse = NS(sSq3LiteTraverse), // garbage collection
3629 .m_clear = NS(sSq3LiteClear),
3630 .m_free = NS(sSq3LiteFree),
3631};
3632
3633// MARK_P
3639
3640PyMODINIT_FUNC
3642{
3643 // Multi-phase initialization
3644 return PyModuleDef_Init(&NS(sSq3LiteDef));
3645}
3646
3647// vim: nowrap
#define LngErrorCheckN(PROC)
#define OT_CHECK_bool(val)
#define OT_SETUP_VARARGS(min, max, d)
#define OT_retObj_SET_BOL(nat)
#define OT_SETUP_NOARG(d)
#define OT_SETUP_ONEARG(d)
#define OtErrorCheckLng(PROC)
#define OT_CHECK_NI4(val)
#define OT_CHECK_NI8(val)
#define OT_retObj_SET_Error
#define OT_retObj_SET_BUF(nat)
#define OT_retObj_SET_I64(nat)
#define OT_retObj_SET_List
#define OT_CHECK_REQUIRED(val)
#define OT_retObj_SET_None
#define OT_retObj_SET_I32(nat)
#define OT_TMP_I32_OBJ(val)
#define OT_TMP_I64_OBJ(val)
#define OT_retObj_RETURN
#define OT_retObj_APPEND(var)
#define OT_retObj_SET_STR(nat)
#define OT_TMP_STR_OBJ(val)
#define OT_retObj_SET(val)
#define OT_CHECK_NOARGS
#define MkErrorC_Check(mng, PROC)
#define OT_ProcRet
#define OtClass_ARGS
#define OT_CHECK_STRN(val)
#define ShmLockE_ToInt_doc
#define ConfigE_FromInt_doc
#define ScanStatE_FromInt_doc
#define KeywordNameBUF_doc
#define CompileOptionGet_doc
#define StatusE_ToString_doc
#define ExtendetResultCodesE_FromInt_doc
#define OpenEF_ToString_doc
#define AuthReturnE_ToString_doc
#define MemoryUsed_doc
#define ConflictResolutionE_ToInt_doc
#define FcntlE_FromInt_doc
#define MutexE_FromInt_doc
#define AccessE_ToString_doc
#define TraceEF_ToString_doc
#define SerializeE_ToInt_doc
#define FunctionEF_ToString_doc
#define MemoryHighwater_doc
#define FunctionEF_FromInt_doc
#define FreeFilename_doc
#define StmtStatusE_ToInt_doc
#define DbStatusE_ToInt_doc
#define Threadsafe_doc
#define KeywordCheck_doc
#define TraceEF_ToInt_doc
#define ErrorCheckI_doc
#define ExtendetResultCodesE_ToString_doc
#define TraceEF_FromInt_doc
#define Sq3SetupTmpl()
#define Libversion_doc
#define VtabE_ToInt_doc
#define ScanStatE_ToInt_doc
#define AccessE_FromInt_doc
#define OpenEF_ToInt_doc
#define CompileOptionUsed_doc
#define DeSerializeEF_ToInt_doc
#define ConfigE_ToInt_doc
#define ConflictResolutionE_ToString_doc
#define AuthReturnE_ToInt_doc
#define SerializeE_ToString_doc
#define OsEnd_doc
#define DbConfigE_ToString_doc
#define LimitE_FromInt_doc
#define ChangeSetConflictE_FromInt_doc
PyMODINIT_FUNC LibSq3Lite(void)
#define LockE_ToInt_doc
#define StrNicmp_doc
#define PrepareEF_ToString_doc
#define MutexE_ToInt_doc
#define AccessE_ToInt_doc
#define StmtStatusE_FromInt_doc
#define ScanStatE_ToString_doc
#define VtabE_FromInt_doc
#define DbStatusE_FromInt_doc
#define SessionObjConfigE_ToString_doc
#define StrIcmp_doc
#define Shutdown_doc
#define Sourceid_doc
#define DbConfigE_FromInt_doc
#define PrepareEF_ToInt_doc
#define ChangesetE_ToInt_doc
#define TxnE_FromInt_doc
#define HardHeapLimit64_doc
#define Complete_doc
#define SoftHeapLimit64_doc
#define FilenameDatabase_doc
#define DeSerializeEF_ToString_doc
#define SessionObjConfigE_ToInt_doc
#define ConfigE_ToString_doc
#define LimitE_ToInt_doc
#define StmtStatusE_ToString_doc
#define StrLike_doc
#define FilenameWal_doc
#define AuthReturnE_FromInt_doc
#define KeywordName_doc
#define StatusE_FromInt_doc
#define IoCapEF_FromInt_doc
#define Initialize_doc
#define TextE_ToInt_doc
#define SyncEF_ToInt_doc
#define ShmLockE_FromInt_doc
#define ErrorE_ToString_doc
#define TestCtrlE_ToInt_doc
#define ChangeSetConflictE_ToInt_doc
#define LibversionNumber_doc
#define LockE_ToString_doc
#define UriParameter_doc
#define LimitE_ToString_doc
#define IndexConstraintEF_ToInt_doc
#define IndexConstraintEF_FromInt_doc
#define CheckpointE_FromInt_doc
#define Sq3CleanupTmpl()
#define PrepareEF_FromInt_doc
#define MutexE_ToString_doc
#define OT_SETUP_hdl_static
#define TextE_ToString_doc
#define ErrorE_FromInt_doc
#define IoCapEF_ToString_doc
#define ErrorE_ToInt_doc
#define FcntlE_ToInt_doc
#define SerializeE_FromInt_doc
#define TypeE_ToInt_doc
#define Status64_doc
#define OsInit_doc
#define UriBoolean_doc
#define DbStatusE_ToString_doc
#define ShmLockE_ToString_doc
#define ConflictResolutionE_FromInt_doc
#define TextE_FromInt_doc
#define Status_doc
#define ExtendetResultCodesE_ToInt_doc
#define TypeE_FromInt_doc
#define StatusE_ToInt_doc
#define CheckpointE_ToInt_doc
#define TxnE_ToString_doc
#define AuthActionE_ToString_doc
#define SessionObjConfigE_FromInt_doc
#define Cleanup_doc
#define ChangeSetConflictE_ToString_doc
#define IoCapEF_ToInt_doc
#define ChangesetE_FromInt_doc
#define SyncEF_ToString_doc
#define TxnE_ToInt_doc
#define ReleaseMemory_doc
#define TestCtrlE_ToString_doc
#define UriKey_doc
#define DbConfigE_ToInt_doc
#define SyncEF_FromInt_doc
#define KeywordCount_doc
#define FcntlE_ToString_doc
#define OpenEF_FromInt_doc
#define Setup_doc
#define ChangesetE_ToString_doc
#define FunctionEF_ToInt_doc
#define StrGlob_doc
#define IndexConstraintEF_ToString_doc
#define DeSerializeEF_FromInt_doc
#define AuthActionE_FromInt_doc
#define CheckpointE_ToString_doc
#define TestCtrlE_FromInt_doc
#define AuthActionE_ToInt_doc
#define FilenameJournal_doc
#define UriInt64_doc
#define TypeE_ToString_doc
#define LockE_FromInt_doc
#define VtabE_ToString_doc
tag: nhi1-release-250425
#define SQ3(n)
#define Sq3ScanStatE_lngO
#define Sq3AccessE_lngO
#define Sq3ShmLockE_lngO
#define Sq3BlobC_MK_NULL
#define Sq3AuthReturnE_lngO
#define Sq3ValueC_MK_NULL
#define Sq3ExtendetResultCodesE_lngO
#define OT_NEW_Sq3_enum_OBJ(typ, val)
#define Sq3VtabE_lngO
#define Sq3SerializeE_lngO
#define Sq3DeSerializeEF_lngO
#define Sq3SessionObjConfigE_lngO
#define Sq3IndexConstraintEF_lngO
#define Sq3PrepareEF_lngO
#define Sq3StmtC_MK_NULL
#define Sq3ChangesetE_lngO
#define Sq3FileC_MK_NULL
#define Sq3ChangeSetConflictE_lngO
#define Sq3ConfigE_lngO
#define NS(n)
#define Sq3FcntlE_lngO
#define Sq3StmtStatusE_lngO
#define Sq3LockE_lngO
#define Sq3SyncEF_lngO
#define Sq3IoCapEF_lngO
#define Sq3ErrorE_lngO
#define Sq3OpenEF_lngO
#define Sq3TestCtrlE_lngO
#define Sq3TraceEF_lngO
#define Sq3TxnE_lngO
#define Sq3MutexE_lngO
#define Sq3AuthActionE_lngO
#define Sq3TextE_lngO
#define Sq3DbStatusE_lngO
#define Sq3ConflictResolutionE_lngO
#define Sq3TypeE_lngO
#define Sq3DbConfigE_lngO
#define Sq3LimitE_lngO
#define Sq3LiteC_MK_NULL
#define Sq3CheckpointE_lngO
#define Sq3StatusE_lngO
#define Sq3FunctionEF_lngO
#define MK_ERROR_FORMAT
#define MK_UNUSED
const MK_STRB * MK_STRN
signed long long MK_I64
bool MK_BOOL
MK_STRB * MK_STR
signed int MK_I32
#define MkThreadLocal
#define MK_RT_PTR
#define MK_RT_CALL
#define MkRtSetup_NULL
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 …
static enum MkErrorE Sq3Threadsafe(void)
Test To See If The Library Is Threadsafe …
static MK_I64 Sq3MemoryUsed(void)
Memory Allocator Statistics …
enum MkErrorE Sq3DbStatusE_FromInt(MK_I32 const value, enum Sq3DbStatusE *value_out)
return the Sq3DbStatusE from integer …
enum MkErrorE Sq3ExtendetResultCodesE_FromInt(MK_I32 const value, enum Sq3ExtendetResultCodesE *value_out)
return the Sq3ExtendetResultCodesE from integer …
enum MkErrorE Sq3MutexE_FromInt(MK_I32 const value, enum Sq3MutexE *value_out)
return the Sq3MutexE from integer …
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 …
enum MkErrorE Sq3IoCapEF_FromInt(MK_I32 const value, enum Sq3IoCapEF *value_out)
return the Sq3IoCapEF from integer …
enum MkErrorE Sq3ConflictResolutionE_FromInt(MK_I32 const value, enum Sq3ConflictResolutionE *value_out)
return the Sq3ConflictResolutionE from integer …
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 …
enum MkErrorE Sq3DbConfigE_FromInt(MK_I32 const value, enum Sq3DbConfigE *value_out)
return the Sq3DbConfigE from integer …
MK_STRN Sq3DbConfigE_ToString(enum Sq3DbConfigE value)
return the Sq3DbConfigE as string …
Sq3VtabE
Virtual Table Configuration Options.
Sq3ChangeSetConflictE
Constants Returned By The Conflict Handler.
enum MkErrorE Sq3AuthActionE_FromInt(MK_I32 const value, enum Sq3AuthActionE *value_out)
return the Sq3AuthActionE from integer …
enum MkErrorE Sq3PrepareEF_FromInt(MK_I32 const value, enum Sq3PrepareEF *value_out)
return the Sq3PrepareEF from integer …
Sq3CheckpointE
Checkpoint Mode Values.
Definition Sq3Enum_sq3.h:34
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 …
static MK_I32 Sq3DbStatusE_ToInt(enum Sq3DbStatusE value)
return the Sq3DbStatusE as integer …
MK_STRN Sq3CheckpointE_ToString(enum Sq3CheckpointE value)
return the Sq3CheckpointE as string …
Sq3ConfigE
Configuration Options.
Sq3StmtStatusE
Status Parameters for prepared statements.
static MK_I32 Sq3ScanStatE_ToInt(enum Sq3ScanStatE value)
return the Sq3ScanStatE as integer …
Sq3OpenEF
Flags For File Open Operations.
static MK_I32 Sq3SyncEF_ToInt(enum Sq3SyncEF value)
return the Sq3SyncEF as integer …
static MK_I32 Sq3StatusE_ToInt(enum Sq3StatusE value)
return the Sq3StatusE as integer …
static MK_I32 Sq3ExtendetResultCodesE_ToInt(enum Sq3ExtendetResultCodesE value)
return the Sq3ExtendetResultCodesE as integer …
Sq3TextE
Text Encodings.
static MK_I32 Sq3IndexConstraintEF_ToInt(enum Sq3IndexConstraintEF value)
return the Sq3IndexConstraintEF as integer …
Sq3FcntlE
Standard File Control Opcodes.
enum MkErrorE Sq3TxnE_FromInt(MK_I32 const value, enum Sq3TxnE *value_out)
return the Sq3TxnE from integer …
enum MkErrorE Sq3FunctionEF_FromInt(MK_I32 const value, enum Sq3FunctionEF *value_out)
return the Sq3FunctionEF from integer …
static MK_I32 Sq3FunctionEF_ToInt(enum Sq3FunctionEF value)
return the Sq3FunctionEF as integer …
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 …
enum MkErrorE Sq3ScanStatE_FromInt(MK_I32 const value, enum Sq3ScanStatE *value_out)
return the Sq3ScanStatE from integer …
static MK_I32 Sq3TxnE_ToInt(enum Sq3TxnE value)
return the Sq3TxnE as integer …
MK_STRN Sq3ScanStatE_ToString(enum Sq3ScanStatE value)
return the Sq3ScanStatE as string …
Sq3SessionObjConfigE
Options for sqlite3session_object_config.
Sq3LimitE
Run-Time Limit Categories.
enum MkErrorE Sq3VtabE_FromInt(MK_I32 const value, enum Sq3VtabE *value_out)
return the Sq3VtabE from integer …
static MK_I32 Sq3CheckpointE_ToInt(enum Sq3CheckpointE value)
return the Sq3CheckpointE as integer …
Definition Sq3Enum_sq3.h:55
static MK_I32 Sq3AuthReturnE_ToInt(enum Sq3AuthReturnE value)
return the Sq3AuthReturnE as integer …
Sq3StatusE
Status Parameters.
Sq3TypeE
Fundamental Datatypes.
enum MkErrorE Sq3DeSerializeEF_FromInt(MK_I32 const value, enum Sq3DeSerializeEF *value_out)
return the Sq3DeSerializeEF from integer …
static MK_I32 Sq3VtabE_ToInt(enum Sq3VtabE value)
return the Sq3VtabE as integer …
MK_STRN Sq3IndexConstraintEF_ToString(enum Sq3IndexConstraintEF value)
return the Sq3IndexConstraintEF as string …
Sq3MutexE
Mutex Types.
Sq3PrepareEF
Prepare Flags.
enum MkErrorE Sq3StmtStatusE_FromInt(MK_I32 const value, enum Sq3StmtStatusE *value_out)
return the Sq3StmtStatusE from integer …
static MK_I32 Sq3TestCtrlE_ToInt(enum Sq3TestCtrlE value)
return the Sq3TestCtrlE as integer …
Sq3DbConfigE
Database Connection Configuration Options.
enum MkErrorE Sq3SyncEF_FromInt(MK_I32 const value, enum Sq3SyncEF *value_out)
return the Sq3SyncEF from integer …
enum MkErrorE Sq3TestCtrlE_FromInt(MK_I32 const value, enum Sq3TestCtrlE *value_out)
return the Sq3TestCtrlE from integer …
Sq3SerializeE
Flags for sqlite3_serialize.
MK_STRN Sq3StatusE_ToString(enum Sq3StatusE value)
return the Sq3StatusE as string …
static MK_I32 Sq3AccessE_ToInt(enum Sq3AccessE value)
return the Sq3AccessE as integer …
enum MkErrorE Sq3OpenEF_FromInt(MK_I32 const value, enum Sq3OpenEF *value_out)
return the Sq3OpenEF from integer …
static MK_I32 Sq3SerializeE_ToInt(enum Sq3SerializeE value)
return the Sq3SerializeE as integer …
enum MkErrorE Sq3FcntlE_FromInt(MK_I32 const value, enum Sq3FcntlE *value_out)
return the Sq3FcntlE from integer …
MK_STRN Sq3SessionObjConfigE_ToString(enum Sq3SessionObjConfigE value)
return the Sq3SessionObjConfigE as string …
Sq3AccessE
Flags for the xAccess VFS method.
static MK_I32 Sq3ConflictResolutionE_ToInt(enum Sq3ConflictResolutionE value)
return the Sq3ConflictResolutionE as integer …
MK_STRN Sq3ConfigE_ToString(enum Sq3ConfigE value)
return the Sq3ConfigE as string …
Sq3DeSerializeEF
Flags for sqlite3_deserialize()
Sq3LockE
File Locking Levels.
static MK_I32 Sq3TraceEF_ToInt(enum Sq3TraceEF value)
return the Sq3TraceEF as integer …
enum MkErrorE Sq3ChangeSetConflictE_FromInt(MK_I32 const value, enum Sq3ChangeSetConflictE *value_out)
return the Sq3ChangeSetConflictE from integer …
enum MkErrorE Sq3ConfigE_FromInt(MK_I32 const value, enum Sq3ConfigE *value_out)
return the Sq3ConfigE from integer …
static MK_I32 Sq3ErrorE_ToInt(enum Sq3ErrorE value)
return the Sq3ErrorE as integer …
static MK_I32 Sq3IoCapEF_ToInt(enum Sq3IoCapEF value)
return the Sq3IoCapEF as integer …
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 …
Sq3ErrorE
Result Codes.
static MK_I32 Sq3MutexE_ToInt(enum Sq3MutexE value)
return the Sq3MutexE as integer …
enum MkErrorE Sq3CheckpointE_FromInt(MK_I32 const value, enum Sq3CheckpointE *value_out)
return the Sq3CheckpointE from integer …
static MK_I32 Sq3AuthActionE_ToInt(enum Sq3AuthActionE value)
return the Sq3AuthActionE as integer …
enum MkErrorE Sq3AuthReturnE_FromInt(MK_I32 const value, enum Sq3AuthReturnE *value_out)
return the Sq3AuthReturnE from integer …
static MK_I32 Sq3TextE_ToInt(enum Sq3TextE value)
return the Sq3TextE as integer …
static MK_I32 Sq3ConfigE_ToInt(enum Sq3ConfigE value)
return the Sq3ConfigE as integer …
enum MkErrorE Sq3ShmLockE_FromInt(MK_I32 const value, enum Sq3ShmLockE *value_out)
return the Sq3ShmLockE from integer …
Sq3DbStatusE
Status Parameters for database connections.
Definition Sq3Enum_sq3.h:79
Sq3IoCapEF
Device Characteristics.
static MK_I32 Sq3ChangesetE_ToInt(enum Sq3ChangesetE value)
return the Sq3ChangesetE as integer …
static MK_I32 Sq3LimitE_ToInt(enum Sq3LimitE value)
return the Sq3LimitE as integer …
enum MkErrorE Sq3TypeE_FromInt(MK_I32 const value, enum Sq3TypeE *value_out)
return the Sq3TypeE from integer …
static MK_I32 Sq3ShmLockE_ToInt(enum Sq3ShmLockE value)
return the Sq3ShmLockE as integer …
Sq3SyncEF
Synchronization Type Flags.
static MK_I32 Sq3LockE_ToInt(enum Sq3LockE value)
return the Sq3LockE as integer …
enum MkErrorE Sq3LockE_FromInt(MK_I32 const value, enum Sq3LockE *value_out)
return the Sq3LockE from integer …
Sq3TraceEF
SQL Trace Event Codes.
MK_STRN Sq3LockE_ToString(enum Sq3LockE value)
return the Sq3LockE as string …
static MK_I32 Sq3OpenEF_ToInt(enum Sq3OpenEF value)
return the Sq3OpenEF as integer …
Sq3ChangesetE
Constants Passed To The Conflict Handler.
enum MkErrorE Sq3StatusE_FromInt(MK_I32 const value, enum Sq3StatusE *value_out)
return the Sq3StatusE from integer …
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.
enum MkErrorE Sq3SessionObjConfigE_FromInt(MK_I32 const value, enum Sq3SessionObjConfigE *value_out)
return the Sq3SessionObjConfigE from integer …
static MK_I32 Sq3ChangeSetConflictE_ToInt(enum Sq3ChangeSetConflictE value)
return the Sq3ChangeSetConflictE as integer …
MK_STRN Sq3MutexE_ToString(enum Sq3MutexE value)
return the Sq3MutexE as string …
enum MkErrorE Sq3AccessE_FromInt(MK_I32 const value, enum Sq3AccessE *value_out)
return the Sq3AccessE from integer …
MK_STRN Sq3FcntlE_ToString(enum Sq3FcntlE value)
return the Sq3FcntlE as string …
enum MkErrorE Sq3SerializeE_FromInt(MK_I32 const value, enum Sq3SerializeE *value_out)
return the Sq3SerializeE from integer …
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.
static MK_I32 Sq3DeSerializeEF_ToInt(enum Sq3DeSerializeEF value)
return the Sq3DeSerializeEF as integer …
enum MkErrorE Sq3TraceEF_FromInt(MK_I32 const value, enum Sq3TraceEF *value_out)
return the Sq3TraceEF from integer …
MK_STRN Sq3ExtendetResultCodesE_ToString(enum Sq3ExtendetResultCodesE value)
return the Sq3ExtendetResultCodesE as string …
MK_STRN Sq3TextE_ToString(enum Sq3TextE value)
return the Sq3TextE as string …
enum MkErrorE Sq3ErrorE_FromInt(MK_I32 const value, enum Sq3ErrorE *value_out)
return the Sq3ErrorE from integer …
MK_STRN Sq3VtabE_ToString(enum Sq3VtabE value)
return the Sq3VtabE as string …
enum MkErrorE Sq3ChangesetE_FromInt(MK_I32 const value, enum Sq3ChangesetE *value_out)
return the Sq3ChangesetE from integer …
MK_STRN Sq3SyncEF_ToString(enum Sq3SyncEF value)
return the Sq3SyncEF as string …
Sq3ScanStatE
Prepared Statement Scan Status Opcodes.
static MK_I32 Sq3FcntlE_ToInt(enum Sq3FcntlE value)
return the Sq3FcntlE as integer …
Sq3TxnE
Allowed return values from sqlite3_txn_state()
static MK_I32 Sq3PrepareEF_ToInt(enum Sq3PrepareEF value)
return the Sq3PrepareEF as integer …
MK_STRN Sq3AuthReturnE_ToString(enum Sq3AuthReturnE value)
return the Sq3AuthReturnE as string …
Sq3FunctionEF
Function Flags.
static MK_I32 Sq3DbConfigE_ToInt(enum Sq3DbConfigE value)
return the Sq3DbConfigE as integer …
Sq3ConflictResolutionE
Conflict resolution modes.
enum MkErrorE Sq3TextE_FromInt(MK_I32 const value, enum Sq3TextE *value_out)
return the Sq3TextE from integer …
static MK_I32 Sq3SessionObjConfigE_ToInt(enum Sq3SessionObjConfigE value)
return the Sq3SessionObjConfigE as integer …
enum MkErrorE Sq3LimitE_FromInt(MK_I32 const value, enum Sq3LimitE *value_out)
return the Sq3LimitE from integer …
static MK_I32 Sq3StmtStatusE_ToInt(enum Sq3StmtStatusE value)
return the Sq3StmtStatusE as integer …
static MK_I32 Sq3TypeE_ToInt(enum Sq3TypeE value)
return the Sq3TypeE as integer …
enum MkErrorE Sq3IndexConstraintEF_FromInt(MK_I32 const value, enum Sq3IndexConstraintEF *value_out)
return the Sq3IndexConstraintEF from integer …
static bool Sq3ErrorCheckI(enum Sq3ErrorE ret)
check if ret signal an error …
#define Sq3KeywordNameBUF(...)
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 Sq3Status(enum Sq3StatusE op, MK_I32 *pCurrent, MK_I32 *pHighwater, MK_BOOL resetFlag)
SQLite Runtime Status …
static enum MkErrorE Sq3KeywordName(MK_I32 num, MK_STRN *kwd, MK_I32 *kwdsz)
SQL Keyword Checking …
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 Sq3Setup(void)
setup pysq3lite 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 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 …
#define OT_CHECK_ENUM(ename, val)
tag: nhi1-release-250425