theSq3Lite 10.0 NHI1 - theKernel - theLink - theConfig - theSq3Lite - theCompiler - theBrain - theGuard - theLib - theATL
c - tcl - atl - cs - py - rb - jv - cc
Loading...
Searching...
No Matches
LibSq3Lite_py.c
Go to the documentation of this file.
1
12/* LABEL-NO */
13
14#include "LibSq3Lite_py.h"
15
16#define OT_SETUP_hdl MkRtSetup_NULL; \
17 MK_OBJ hdl = MK_ERROR_PRINT;
18#define OT_SETUP_hdl_static __attribute__((unused)) MK_RT mkrt = MkRT; \
19 __attribute__((unused)) MK_ERR hdl = &MkERROR;
20
21#define Sq3SetupTmpl()
22#define Sq3CleanupTmpl()
23
24// MARK_D ################################################################
25// -----------------------------------------------------------------------
26// documentation order
128// --------------------------------------------------------------------------------
129
130// MARK_E
131// BEGIN-EnumDef - created by 'py_MqS.tcl -i NHI1_HOME/theSq3Lite/c/gen/c_sq3lite.meta' - DO NOT change
132
133// UNDEF
134
135// END-EnumDef - created by 'py_MqS.tcl -i NHI1_HOME/theSq3Lite/c/gen/c_sq3lite.meta' - DO NOT change
136
142
143// BEGIN-DOC - created by 'py_MqS.tcl -i NHI1_HOME/theSq3Lite/c/gen/c_sq3lite.meta' - DO NOT change
144
145// doc-key: Sq3Lite,EnumFunc,sco,func
146#define AccessE_FromInt_doc "Sq3AccessE AccessE_FromInt(value:int32)"
147#define AuthActionE_FromInt_doc "Sq3AuthActionE AuthActionE_FromInt(value:int32)"
148#define AuthReturnE_FromInt_doc "Sq3AuthReturnE AuthReturnE_FromInt(value:int32)"
149#define ChangeSetConflictE_FromInt_doc "Sq3ChangeSetConflictE ChangeSetConflictE_FromInt(value:int32)"
150#define ChangesetE_FromInt_doc "Sq3ChangesetE ChangesetE_FromInt(value:int32)"
151#define CheckpointE_FromInt_doc "Sq3CheckpointE CheckpointE_FromInt(value:int32)"
152#define ConfigE_FromInt_doc "Sq3ConfigE ConfigE_FromInt(value:int32)"
153#define ConflictResolutionE_FromInt_doc "Sq3ConflictResolutionE ConflictResolutionE_FromInt(value:int32)"
154#define DbConfigE_FromInt_doc "Sq3DbConfigE DbConfigE_FromInt(value:int32)"
155#define DbStatusE_FromInt_doc "Sq3DbStatusE DbStatusE_FromInt(value:int32)"
156#define DeSerializeEF_FromInt_doc "Sq3DeSerializeEF DeSerializeEF_FromInt(value:int32)"
157#define ErrorE_FromInt_doc "Sq3ErrorE ErrorE_FromInt(value:int32)"
158#define ExtendetResultCodesE_FromInt_doc "Sq3ExtendetResultCodesE ExtendetResultCodesE_FromInt(value:int32)"
159#define FcntlE_FromInt_doc "Sq3FcntlE FcntlE_FromInt(value:int32)"
160#define FunctionEF_FromInt_doc "Sq3FunctionEF FunctionEF_FromInt(value:int32)"
161#define IndexConstraintEF_FromInt_doc "Sq3IndexConstraintEF IndexConstraintEF_FromInt(value:int32)"
162#define IoCapEF_FromInt_doc "Sq3IoCapEF IoCapEF_FromInt(value:int32)"
163#define LimitE_FromInt_doc "Sq3LimitE LimitE_FromInt(value:int32)"
164#define LockE_FromInt_doc "Sq3LockE LockE_FromInt(value:int32)"
165#define MutexE_FromInt_doc "Sq3MutexE MutexE_FromInt(value:int32)"
166#define OpenEF_FromInt_doc "Sq3OpenEF OpenEF_FromInt(value:int32)"
167#define PrepareEF_FromInt_doc "Sq3PrepareEF PrepareEF_FromInt(value:int32)"
168#define ScanStatE_FromInt_doc "Sq3ScanStatE ScanStatE_FromInt(value:int32)"
169#define SerializeE_FromInt_doc "Sq3SerializeE SerializeE_FromInt(value:int32)"
170#define SessionObjConfigE_FromInt_doc "Sq3SessionObjConfigE SessionObjConfigE_FromInt(value:int32)"
171#define ShmLockE_FromInt_doc "Sq3ShmLockE ShmLockE_FromInt(value:int32)"
172#define StatusE_FromInt_doc "Sq3StatusE StatusE_FromInt(value:int32)"
173#define StmtStatusE_FromInt_doc "Sq3StmtStatusE StmtStatusE_FromInt(value:int32)"
174#define SyncEF_FromInt_doc "Sq3SyncEF SyncEF_FromInt(value:int32)"
175#define TestCtrlE_FromInt_doc "Sq3TestCtrlE TestCtrlE_FromInt(value:int32)"
176#define TextE_FromInt_doc "Sq3TextE TextE_FromInt(value:int32)"
177#define TraceEF_FromInt_doc "Sq3TraceEF TraceEF_FromInt(value:int32)"
178#define TxnE_FromInt_doc "Sq3TxnE TxnE_FromInt(value:int32)"
179#define TypeE_FromInt_doc "Sq3TypeE TypeE_FromInt(value:int32)"
180#define VtabE_FromInt_doc "Sq3VtabE VtabE_FromInt(value:int32)"
181
182// doc-key: Sq3Lite,EnumFunc,sm_,func
183#define AccessE_ToInt_doc "int32 AccessE_ToInt(value:Sq3AccessE)"
184#define AccessE_ToString_doc "string AccessE_ToString(value:Sq3AccessE)"
185#define AuthActionE_ToInt_doc "int32 AuthActionE_ToInt(value:Sq3AuthActionE)"
186#define AuthActionE_ToString_doc "string AuthActionE_ToString(value:Sq3AuthActionE)"
187#define AuthReturnE_ToInt_doc "int32 AuthReturnE_ToInt(value:Sq3AuthReturnE)"
188#define AuthReturnE_ToString_doc "string AuthReturnE_ToString(value:Sq3AuthReturnE)"
189#define ChangeSetConflictE_ToInt_doc "int32 ChangeSetConflictE_ToInt(value:Sq3ChangeSetConflictE)"
190#define ChangeSetConflictE_ToString_doc "string ChangeSetConflictE_ToString(value:Sq3ChangeSetConflictE)"
191#define ChangesetE_ToInt_doc "int32 ChangesetE_ToInt(value:Sq3ChangesetE)"
192#define ChangesetE_ToString_doc "string ChangesetE_ToString(value:Sq3ChangesetE)"
193#define CheckpointE_ToInt_doc "int32 CheckpointE_ToInt(value:Sq3CheckpointE)"
194#define CheckpointE_ToString_doc "string CheckpointE_ToString(value:Sq3CheckpointE)"
195#define ConfigE_ToInt_doc "int32 ConfigE_ToInt(value:Sq3ConfigE)"
196#define ConfigE_ToString_doc "string ConfigE_ToString(value:Sq3ConfigE)"
197#define ConflictResolutionE_ToInt_doc "int32 ConflictResolutionE_ToInt(value:Sq3ConflictResolutionE)"
198#define ConflictResolutionE_ToString_doc "string ConflictResolutionE_ToString(value:Sq3ConflictResolutionE)"
199#define DbConfigE_ToInt_doc "int32 DbConfigE_ToInt(value:Sq3DbConfigE)"
200#define DbConfigE_ToString_doc "string DbConfigE_ToString(value:Sq3DbConfigE)"
201#define DbStatusE_ToInt_doc "int32 DbStatusE_ToInt(value:Sq3DbStatusE)"
202#define DbStatusE_ToString_doc "string DbStatusE_ToString(value:Sq3DbStatusE)"
203#define DeSerializeEF_ToInt_doc "int32 DeSerializeEF_ToInt(value:Sq3DeSerializeEF)"
204#define DeSerializeEF_ToString_doc "string DeSerializeEF_ToString(value:Sq3DeSerializeEF)"
205#define ErrorE_ToInt_doc "int32 ErrorE_ToInt(value:Sq3ErrorE)"
206#define ErrorE_ToString_doc "string ErrorE_ToString(value:Sq3ErrorE)"
207#define ExtendetResultCodesE_ToInt_doc "int32 ExtendetResultCodesE_ToInt(value:Sq3ExtendetResultCodesE)"
208#define ExtendetResultCodesE_ToString_doc "string ExtendetResultCodesE_ToString(value:Sq3ExtendetResultCodesE)"
209#define FcntlE_ToInt_doc "int32 FcntlE_ToInt(value:Sq3FcntlE)"
210#define FcntlE_ToString_doc "string FcntlE_ToString(value:Sq3FcntlE)"
211#define FunctionEF_ToInt_doc "int32 FunctionEF_ToInt(value:Sq3FunctionEF)"
212#define FunctionEF_ToString_doc "string FunctionEF_ToString(value:Sq3FunctionEF)"
213#define IndexConstraintEF_ToInt_doc "int32 IndexConstraintEF_ToInt(value:Sq3IndexConstraintEF)"
214#define IndexConstraintEF_ToString_doc "string IndexConstraintEF_ToString(value:Sq3IndexConstraintEF)"
215#define IoCapEF_ToInt_doc "int32 IoCapEF_ToInt(value:Sq3IoCapEF)"
216#define IoCapEF_ToString_doc "string IoCapEF_ToString(value:Sq3IoCapEF)"
217#define LimitE_ToInt_doc "int32 LimitE_ToInt(value:Sq3LimitE)"
218#define LimitE_ToString_doc "string LimitE_ToString(value:Sq3LimitE)"
219#define LockE_ToInt_doc "int32 LockE_ToInt(value:Sq3LockE)"
220#define LockE_ToString_doc "string LockE_ToString(value:Sq3LockE)"
221#define MutexE_ToInt_doc "int32 MutexE_ToInt(value:Sq3MutexE)"
222#define MutexE_ToString_doc "string MutexE_ToString(value:Sq3MutexE)"
223#define OpenEF_ToInt_doc "int32 OpenEF_ToInt(value:Sq3OpenEF)"
224#define OpenEF_ToString_doc "string OpenEF_ToString(value:Sq3OpenEF)"
225#define PrepareEF_ToInt_doc "int32 PrepareEF_ToInt(value:Sq3PrepareEF)"
226#define PrepareEF_ToString_doc "string PrepareEF_ToString(value:Sq3PrepareEF)"
227#define ScanStatE_ToInt_doc "int32 ScanStatE_ToInt(value:Sq3ScanStatE)"
228#define ScanStatE_ToString_doc "string ScanStatE_ToString(value:Sq3ScanStatE)"
229#define SerializeE_ToInt_doc "int32 SerializeE_ToInt(value:Sq3SerializeE)"
230#define SerializeE_ToString_doc "string SerializeE_ToString(value:Sq3SerializeE)"
231#define SessionObjConfigE_ToInt_doc "int32 SessionObjConfigE_ToInt(value:Sq3SessionObjConfigE)"
232#define SessionObjConfigE_ToString_doc "string SessionObjConfigE_ToString(value:Sq3SessionObjConfigE)"
233#define ShmLockE_ToInt_doc "int32 ShmLockE_ToInt(value:Sq3ShmLockE)"
234#define ShmLockE_ToString_doc "string ShmLockE_ToString(value:Sq3ShmLockE)"
235#define StatusE_ToInt_doc "int32 StatusE_ToInt(value:Sq3StatusE)"
236#define StatusE_ToString_doc "string StatusE_ToString(value:Sq3StatusE)"
237#define StmtStatusE_ToInt_doc "int32 StmtStatusE_ToInt(value:Sq3StmtStatusE)"
238#define StmtStatusE_ToString_doc "string StmtStatusE_ToString(value:Sq3StmtStatusE)"
239#define SyncEF_ToInt_doc "int32 SyncEF_ToInt(value:Sq3SyncEF)"
240#define SyncEF_ToString_doc "string SyncEF_ToString(value:Sq3SyncEF)"
241#define TestCtrlE_ToInt_doc "int32 TestCtrlE_ToInt(value:Sq3TestCtrlE)"
242#define TestCtrlE_ToString_doc "string TestCtrlE_ToString(value:Sq3TestCtrlE)"
243#define TextE_ToInt_doc "int32 TextE_ToInt(value:Sq3TextE)"
244#define TextE_ToString_doc "string TextE_ToString(value:Sq3TextE)"
245#define TraceEF_ToInt_doc "int32 TraceEF_ToInt(value:Sq3TraceEF)"
246#define TraceEF_ToString_doc "string TraceEF_ToString(value:Sq3TraceEF)"
247#define TxnE_ToInt_doc "int32 TxnE_ToInt(value:Sq3TxnE)"
248#define TxnE_ToString_doc "string TxnE_ToString(value:Sq3TxnE)"
249#define TypeE_ToInt_doc "int32 TypeE_ToInt(value:Sq3TypeE)"
250#define TypeE_ToString_doc "string TypeE_ToString(value:Sq3TypeE)"
251#define VtabE_ToInt_doc "int32 VtabE_ToInt(value:Sq3VtabE)"
252#define VtabE_ToString_doc "string VtabE_ToString(value:Sq3VtabE)"
253
254// doc-key: Sq3Lite,Sq3,sco,func
255#define KeywordNameBUF_doc "MkBufferC KeywordNameBUF(num:int32)"
256
257// doc-key: Sq3Lite,Sq3,sm_,func
258#define Cleanup_doc "Cleanup()"
259#define CompileOptionGet_doc "string CompileOptionGet(N:int32)"
260#define CompileOptionUsed_doc "bool CompileOptionUsed(zOptName:string)"
261#define Complete_doc "Complete(sql:string)"
262#define ErrorCheckI_doc "bool ErrorCheckI(ret:Sq3ErrorE)"
263#define FilenameDatabase_doc "string FilenameDatabase(F:string)"
264#define FilenameJournal_doc "string FilenameJournal(F:string)"
265#define FilenameWal_doc "string FilenameWal(F:string)"
266#define FreeFilename_doc "FreeFilename(arg0:string)"
267#define HardHeapLimit64_doc "int64 HardHeapLimit64(N:int64)"
268#define Initialize_doc "Initialize()"
269#define KeywordCheck_doc "KeywordCheck(arg0:string, arg1:int32)"
270#define KeywordCount_doc "KeywordCount()"
271#define Libversion_doc "string Libversion()"
272#define LibversionNumber_doc "LibversionNumber()"
273#define MemoryHighwater_doc "int64 MemoryHighwater(resetFlag:int32)"
274#define MemoryUsed_doc "int64 MemoryUsed()"
275#define OsEnd_doc "OsEnd()"
276#define OsInit_doc "OsInit()"
277#define ReleaseMemory_doc "ReleaseMemory(N:int32)"
278#define Setup_doc "Setup()"
279#define Shutdown_doc "Shutdown()"
280#define SoftHeapLimit64_doc "int64 SoftHeapLimit64(N:int64)"
281#define Sourceid_doc "string Sourceid()"
282#define StrGlob_doc "int32 StrGlob(zGlob:string, zStr:string)"
283#define StrIcmp_doc "int32 StrIcmp(arg0:string, arg1:string)"
284#define StrLike_doc "int32 StrLike(zGlob:string, zStr:string, cEsc:int32)"
285#define StrNicmp_doc "int32 StrNicmp(arg0:string, arg1:string, arg2:int32)"
286#define Threadsafe_doc "Threadsafe()"
287#define UriBoolean_doc "UriBoolean(z:string, zParam:string, bDefault:int32)"
288#define UriInt64_doc "int64 UriInt64(arg0:string, arg1:string, arg2:int64)"
289#define UriKey_doc "string UriKey(z:string, N:int32)"
290#define UriParameter_doc "string UriParameter(z:string, zParam:string)"
291
292// doc-key: Sq3Lite,Sq3,smo,func
293#define KeywordName_doc "{kwd:string kwdsz:int32} KeywordName(num:int32)"
294#define Status_doc "{pCurrent:int32 pHighwater:int32} Status(op:Sq3StatusE, resetFlag:bool)"
295#define Status64_doc "{pCurrent:int64 pHighwater:int64} Status64(op:Sq3StatusE, resetFlag:bool)"
296
297// END-DOC - created by 'py_MqS.tcl -i NHI1_HOME/theSq3Lite/c/gen/c_sq3lite.meta' - DO NOT change
298
299/*****************************************************************************/
300/* */
301/* Check */
302/* */
303/*****************************************************************************/
304
306
307// MARK_M
313
314// BEGIN-Sq3Lite - created by 'py_MqC.tcl -i NHI1_HOME/theSq3Lite/c/gen/c_sq3lite.meta' - DO NOT change
315
319
320// doc-key: Sq3Lite,Sq3Lite-Config,sm_
321
323static OT_ProcRet NS(Sq3Lite_CompileOptionGet) (OtClass_ARGS) {
326 MK_I32 N = 0;
330 goto end;
331 error:
333 end:
335}
336
338static OT_ProcRet NS(Sq3Lite_CompileOptionUsed) (OtClass_ARGS) {
341 MK_STRN zOptName = 0;
345 goto end;
346 error:
348 end:
350}
351
353static OT_ProcRet NS(Sq3Lite_MemoryHighwater) (OtClass_ARGS) {
356 MK_I32 resetFlag = 0;
360 goto end;
361 error:
363 end:
365}
366
368static OT_ProcRet NS(Sq3Lite_MemoryUsed) (OtClass_ARGS) {
373 goto end;
374 error:
376 end:
378}
379
381static OT_ProcRet NS(Sq3Lite_Threadsafe) (OtClass_ARGS) {
387 goto end;
388 error:
390 end:
392}
393
395// Sq3Lite_Config_PY_API
396
400
401// doc-key: Sq3Lite,Sq3Lite-Enum,sco
402
404static OT_ProcRet NS(Sq3Lite_AccessE_FromInt) (OtClass_ARGS) {
407 MK_I32 value = 0;
410 enum Sq3AccessE value_out;
412 OT_retObj_SET(OT_NEW_Sq3_enum_OBJ(AccessE,value_out));
413 goto end;
414 error:
416 end:
418}
419
421static OT_ProcRet NS(Sq3Lite_AuthActionE_FromInt) (OtClass_ARGS) {
424 MK_I32 value = 0;
427 enum Sq3AuthActionE value_out;
429 OT_retObj_SET(OT_NEW_Sq3_enum_OBJ(AuthActionE,value_out));
430 goto end;
431 error:
433 end:
435}
436
438static OT_ProcRet NS(Sq3Lite_AuthReturnE_FromInt) (OtClass_ARGS) {
441 MK_I32 value = 0;
444 enum Sq3AuthReturnE value_out;
446 OT_retObj_SET(OT_NEW_Sq3_enum_OBJ(AuthReturnE,value_out));
447 goto end;
448 error:
450 end:
452}
453
455static OT_ProcRet NS(Sq3Lite_ChangeSetConflictE_FromInt) (OtClass_ARGS) {
458 MK_I32 value = 0;
461 enum Sq3ChangeSetConflictE value_out;
463 OT_retObj_SET(OT_NEW_Sq3_enum_OBJ(ChangeSetConflictE,value_out));
464 goto end;
465 error:
467 end:
469}
470
472static OT_ProcRet NS(Sq3Lite_ChangesetE_FromInt) (OtClass_ARGS) {
475 MK_I32 value = 0;
478 enum Sq3ChangesetE value_out;
480 OT_retObj_SET(OT_NEW_Sq3_enum_OBJ(ChangesetE,value_out));
481 goto end;
482 error:
484 end:
486}
487
489static OT_ProcRet NS(Sq3Lite_CheckpointE_FromInt) (OtClass_ARGS) {
492 MK_I32 value = 0;
495 enum Sq3CheckpointE value_out;
497 OT_retObj_SET(OT_NEW_Sq3_enum_OBJ(CheckpointE,value_out));
498 goto end;
499 error:
501 end:
503}
504
506static OT_ProcRet NS(Sq3Lite_ConfigE_FromInt) (OtClass_ARGS) {
509 MK_I32 value = 0;
512 enum Sq3ConfigE value_out;
514 OT_retObj_SET(OT_NEW_Sq3_enum_OBJ(ConfigE,value_out));
515 goto end;
516 error:
518 end:
520}
521
523static OT_ProcRet NS(Sq3Lite_ConflictResolutionE_FromInt) (OtClass_ARGS) {
526 MK_I32 value = 0;
529 enum Sq3ConflictResolutionE value_out;
531 OT_retObj_SET(OT_NEW_Sq3_enum_OBJ(ConflictResolutionE,value_out));
532 goto end;
533 error:
535 end:
537}
538
540static OT_ProcRet NS(Sq3Lite_DbConfigE_FromInt) (OtClass_ARGS) {
543 MK_I32 value = 0;
546 enum Sq3DbConfigE value_out;
548 OT_retObj_SET(OT_NEW_Sq3_enum_OBJ(DbConfigE,value_out));
549 goto end;
550 error:
552 end:
554}
555
557static OT_ProcRet NS(Sq3Lite_DbStatusE_FromInt) (OtClass_ARGS) {
560 MK_I32 value = 0;
563 enum Sq3DbStatusE value_out;
565 OT_retObj_SET(OT_NEW_Sq3_enum_OBJ(DbStatusE,value_out));
566 goto end;
567 error:
569 end:
571}
572
574static OT_ProcRet NS(Sq3Lite_DeSerializeEF_FromInt) (OtClass_ARGS) {
577 MK_I32 value = 0;
580 enum Sq3DeSerializeEF value_out;
582 OT_retObj_SET(OT_NEW_Sq3_enum_OBJ(DeSerializeEF,value_out));
583 goto end;
584 error:
586 end:
588}
589
591static OT_ProcRet NS(Sq3Lite_ErrorE_FromInt) (OtClass_ARGS) {
594 MK_I32 value = 0;
597 enum Sq3ErrorE value_out;
599 OT_retObj_SET(OT_NEW_Sq3_enum_OBJ(ErrorE,value_out));
600 goto end;
601 error:
603 end:
605}
606
608static OT_ProcRet NS(Sq3Lite_ExtendetResultCodesE_FromInt) (OtClass_ARGS) {
611 MK_I32 value = 0;
614 enum Sq3ExtendetResultCodesE value_out;
616 OT_retObj_SET(OT_NEW_Sq3_enum_OBJ(ExtendetResultCodesE,value_out));
617 goto end;
618 error:
620 end:
622}
623
625static OT_ProcRet NS(Sq3Lite_FcntlE_FromInt) (OtClass_ARGS) {
628 MK_I32 value = 0;
631 enum Sq3FcntlE value_out;
633 OT_retObj_SET(OT_NEW_Sq3_enum_OBJ(FcntlE,value_out));
634 goto end;
635 error:
637 end:
639}
640
642static OT_ProcRet NS(Sq3Lite_FunctionEF_FromInt) (OtClass_ARGS) {
645 MK_I32 value = 0;
648 enum Sq3FunctionEF value_out;
650 OT_retObj_SET(OT_NEW_Sq3_enum_OBJ(FunctionEF,value_out));
651 goto end;
652 error:
654 end:
656}
657
659static OT_ProcRet NS(Sq3Lite_IndexConstraintEF_FromInt) (OtClass_ARGS) {
662 MK_I32 value = 0;
665 enum Sq3IndexConstraintEF value_out;
667 OT_retObj_SET(OT_NEW_Sq3_enum_OBJ(IndexConstraintEF,value_out));
668 goto end;
669 error:
671 end:
673}
674
676static OT_ProcRet NS(Sq3Lite_IoCapEF_FromInt) (OtClass_ARGS) {
679 MK_I32 value = 0;
682 enum Sq3IoCapEF value_out;
684 OT_retObj_SET(OT_NEW_Sq3_enum_OBJ(IoCapEF,value_out));
685 goto end;
686 error:
688 end:
690}
691
693static OT_ProcRet NS(Sq3Lite_LimitE_FromInt) (OtClass_ARGS) {
696 MK_I32 value = 0;
699 enum Sq3LimitE value_out;
701 OT_retObj_SET(OT_NEW_Sq3_enum_OBJ(LimitE,value_out));
702 goto end;
703 error:
705 end:
707}
708
710static OT_ProcRet NS(Sq3Lite_LockE_FromInt) (OtClass_ARGS) {
713 MK_I32 value = 0;
716 enum Sq3LockE value_out;
718 OT_retObj_SET(OT_NEW_Sq3_enum_OBJ(LockE,value_out));
719 goto end;
720 error:
722 end:
724}
725
727static OT_ProcRet NS(Sq3Lite_MutexE_FromInt) (OtClass_ARGS) {
730 MK_I32 value = 0;
733 enum Sq3MutexE value_out;
735 OT_retObj_SET(OT_NEW_Sq3_enum_OBJ(MutexE,value_out));
736 goto end;
737 error:
739 end:
741}
742
744static OT_ProcRet NS(Sq3Lite_OpenEF_FromInt) (OtClass_ARGS) {
747 MK_I32 value = 0;
750 enum Sq3OpenEF value_out;
752 OT_retObj_SET(OT_NEW_Sq3_enum_OBJ(OpenEF,value_out));
753 goto end;
754 error:
756 end:
758}
759
761static OT_ProcRet NS(Sq3Lite_PrepareEF_FromInt) (OtClass_ARGS) {
764 MK_I32 value = 0;
767 enum Sq3PrepareEF value_out;
769 OT_retObj_SET(OT_NEW_Sq3_enum_OBJ(PrepareEF,value_out));
770 goto end;
771 error:
773 end:
775}
776
778static OT_ProcRet NS(Sq3Lite_ScanStatE_FromInt) (OtClass_ARGS) {
781 MK_I32 value = 0;
784 enum Sq3ScanStatE value_out;
786 OT_retObj_SET(OT_NEW_Sq3_enum_OBJ(ScanStatE,value_out));
787 goto end;
788 error:
790 end:
792}
793
795static OT_ProcRet NS(Sq3Lite_SerializeE_FromInt) (OtClass_ARGS) {
798 MK_I32 value = 0;
801 enum Sq3SerializeE value_out;
803 OT_retObj_SET(OT_NEW_Sq3_enum_OBJ(SerializeE,value_out));
804 goto end;
805 error:
807 end:
809}
810
812static OT_ProcRet NS(Sq3Lite_SessionObjConfigE_FromInt) (OtClass_ARGS) {
815 MK_I32 value = 0;
818 enum Sq3SessionObjConfigE value_out;
820 OT_retObj_SET(OT_NEW_Sq3_enum_OBJ(SessionObjConfigE,value_out));
821 goto end;
822 error:
824 end:
826}
827
829static OT_ProcRet NS(Sq3Lite_ShmLockE_FromInt) (OtClass_ARGS) {
832 MK_I32 value = 0;
835 enum Sq3ShmLockE value_out;
837 OT_retObj_SET(OT_NEW_Sq3_enum_OBJ(ShmLockE,value_out));
838 goto end;
839 error:
841 end:
843}
844
846static OT_ProcRet NS(Sq3Lite_StatusE_FromInt) (OtClass_ARGS) {
849 MK_I32 value = 0;
852 enum Sq3StatusE value_out;
854 OT_retObj_SET(OT_NEW_Sq3_enum_OBJ(StatusE,value_out));
855 goto end;
856 error:
858 end:
860}
861
863static OT_ProcRet NS(Sq3Lite_StmtStatusE_FromInt) (OtClass_ARGS) {
866 MK_I32 value = 0;
869 enum Sq3StmtStatusE value_out;
871 OT_retObj_SET(OT_NEW_Sq3_enum_OBJ(StmtStatusE,value_out));
872 goto end;
873 error:
875 end:
877}
878
880static OT_ProcRet NS(Sq3Lite_SyncEF_FromInt) (OtClass_ARGS) {
883 MK_I32 value = 0;
886 enum Sq3SyncEF value_out;
888 OT_retObj_SET(OT_NEW_Sq3_enum_OBJ(SyncEF,value_out));
889 goto end;
890 error:
892 end:
894}
895
897static OT_ProcRet NS(Sq3Lite_TestCtrlE_FromInt) (OtClass_ARGS) {
900 MK_I32 value = 0;
903 enum Sq3TestCtrlE value_out;
905 OT_retObj_SET(OT_NEW_Sq3_enum_OBJ(TestCtrlE,value_out));
906 goto end;
907 error:
909 end:
911}
912
914static OT_ProcRet NS(Sq3Lite_TextE_FromInt) (OtClass_ARGS) {
917 MK_I32 value = 0;
920 enum Sq3TextE value_out;
922 OT_retObj_SET(OT_NEW_Sq3_enum_OBJ(TextE,value_out));
923 goto end;
924 error:
926 end:
928}
929
931static OT_ProcRet NS(Sq3Lite_TraceEF_FromInt) (OtClass_ARGS) {
934 MK_I32 value = 0;
937 enum Sq3TraceEF value_out;
939 OT_retObj_SET(OT_NEW_Sq3_enum_OBJ(TraceEF,value_out));
940 goto end;
941 error:
943 end:
945}
946
948static OT_ProcRet NS(Sq3Lite_TxnE_FromInt) (OtClass_ARGS) {
951 MK_I32 value = 0;
954 enum Sq3TxnE value_out;
956 OT_retObj_SET(OT_NEW_Sq3_enum_OBJ(TxnE,value_out));
957 goto end;
958 error:
960 end:
962}
963
965static OT_ProcRet NS(Sq3Lite_TypeE_FromInt) (OtClass_ARGS) {
968 MK_I32 value = 0;
971 enum Sq3TypeE value_out;
973 OT_retObj_SET(OT_NEW_Sq3_enum_OBJ(TypeE,value_out));
974 goto end;
975 error:
977 end:
979}
980
982static OT_ProcRet NS(Sq3Lite_VtabE_FromInt) (OtClass_ARGS) {
985 MK_I32 value = 0;
988 enum Sq3VtabE value_out;
990 OT_retObj_SET(OT_NEW_Sq3_enum_OBJ(VtabE,value_out));
991 goto end;
992 error:
994 end:
996}
997
998// doc-key: Sq3Lite,Sq3Lite-Enum,sm_
999
1001static OT_ProcRet NS(Sq3Lite_AccessE_ToInt) (OtClass_ARGS) {
1004 enum Sq3AccessE value = 0;
1008 goto end;
1009 error:
1011 end:
1013}
1014
1016static OT_ProcRet NS(Sq3Lite_AccessE_ToString) (OtClass_ARGS) {
1019 enum Sq3AccessE value = 0;
1023 goto end;
1024 error:
1026 end:
1028}
1029
1031static OT_ProcRet NS(Sq3Lite_AuthActionE_ToInt) (OtClass_ARGS) {
1034 enum Sq3AuthActionE value = 0;
1038 goto end;
1039 error:
1041 end:
1043}
1044
1046static OT_ProcRet NS(Sq3Lite_AuthActionE_ToString) (OtClass_ARGS) {
1049 enum Sq3AuthActionE value = 0;
1053 goto end;
1054 error:
1056 end:
1058}
1059
1061static OT_ProcRet NS(Sq3Lite_AuthReturnE_ToInt) (OtClass_ARGS) {
1064 enum Sq3AuthReturnE value = 0;
1068 goto end;
1069 error:
1071 end:
1073}
1074
1076static OT_ProcRet NS(Sq3Lite_AuthReturnE_ToString) (OtClass_ARGS) {
1079 enum Sq3AuthReturnE value = 0;
1083 goto end;
1084 error:
1086 end:
1088}
1089
1091static OT_ProcRet NS(Sq3Lite_ChangeSetConflictE_ToInt) (OtClass_ARGS) {
1094 enum Sq3ChangeSetConflictE value = 0;
1098 goto end;
1099 error:
1101 end:
1103}
1104
1106static OT_ProcRet NS(Sq3Lite_ChangeSetConflictE_ToString) (OtClass_ARGS) {
1109 enum Sq3ChangeSetConflictE value = 0;
1113 goto end;
1114 error:
1116 end:
1118}
1119
1121static OT_ProcRet NS(Sq3Lite_ChangesetE_ToInt) (OtClass_ARGS) {
1124 enum Sq3ChangesetE value = 0;
1128 goto end;
1129 error:
1131 end:
1133}
1134
1136static OT_ProcRet NS(Sq3Lite_ChangesetE_ToString) (OtClass_ARGS) {
1139 enum Sq3ChangesetE value = 0;
1143 goto end;
1144 error:
1146 end:
1148}
1149
1151static OT_ProcRet NS(Sq3Lite_CheckpointE_ToInt) (OtClass_ARGS) {
1154 enum Sq3CheckpointE value = 0;
1158 goto end;
1159 error:
1161 end:
1163}
1164
1166static OT_ProcRet NS(Sq3Lite_CheckpointE_ToString) (OtClass_ARGS) {
1169 enum Sq3CheckpointE value = 0;
1173 goto end;
1174 error:
1176 end:
1178}
1179
1181static OT_ProcRet NS(Sq3Lite_ConfigE_ToInt) (OtClass_ARGS) {
1184 enum Sq3ConfigE value = 0;
1188 goto end;
1189 error:
1191 end:
1193}
1194
1196static OT_ProcRet NS(Sq3Lite_ConfigE_ToString) (OtClass_ARGS) {
1199 enum Sq3ConfigE value = 0;
1203 goto end;
1204 error:
1206 end:
1208}
1209
1211static OT_ProcRet NS(Sq3Lite_ConflictResolutionE_ToInt) (OtClass_ARGS) {
1214 enum Sq3ConflictResolutionE value = 0;
1218 goto end;
1219 error:
1221 end:
1223}
1224
1226static OT_ProcRet NS(Sq3Lite_ConflictResolutionE_ToString) (OtClass_ARGS) {
1229 enum Sq3ConflictResolutionE value = 0;
1233 goto end;
1234 error:
1236 end:
1238}
1239
1241static OT_ProcRet NS(Sq3Lite_DbConfigE_ToInt) (OtClass_ARGS) {
1244 enum Sq3DbConfigE value = 0;
1248 goto end;
1249 error:
1251 end:
1253}
1254
1256static OT_ProcRet NS(Sq3Lite_DbConfigE_ToString) (OtClass_ARGS) {
1259 enum Sq3DbConfigE value = 0;
1263 goto end;
1264 error:
1266 end:
1268}
1269
1271static OT_ProcRet NS(Sq3Lite_DbStatusE_ToInt) (OtClass_ARGS) {
1274 enum Sq3DbStatusE value = 0;
1278 goto end;
1279 error:
1281 end:
1283}
1284
1286static OT_ProcRet NS(Sq3Lite_DbStatusE_ToString) (OtClass_ARGS) {
1289 enum Sq3DbStatusE value = 0;
1293 goto end;
1294 error:
1296 end:
1298}
1299
1301static OT_ProcRet NS(Sq3Lite_DeSerializeEF_ToInt) (OtClass_ARGS) {
1304 enum Sq3DeSerializeEF value = 0;
1308 goto end;
1309 error:
1311 end:
1313}
1314
1316static OT_ProcRet NS(Sq3Lite_DeSerializeEF_ToString) (OtClass_ARGS) {
1319 enum Sq3DeSerializeEF value = 0;
1323 goto end;
1324 error:
1326 end:
1328}
1329
1331static OT_ProcRet NS(Sq3Lite_ErrorE_ToInt) (OtClass_ARGS) {
1334 enum Sq3ErrorE value = 0;
1338 goto end;
1339 error:
1341 end:
1343}
1344
1346static OT_ProcRet NS(Sq3Lite_ErrorE_ToString) (OtClass_ARGS) {
1349 enum Sq3ErrorE value = 0;
1353 goto end;
1354 error:
1356 end:
1358}
1359
1361static OT_ProcRet NS(Sq3Lite_ExtendetResultCodesE_ToInt) (OtClass_ARGS) {
1364 enum Sq3ExtendetResultCodesE value = 0;
1368 goto end;
1369 error:
1371 end:
1373}
1374
1376static OT_ProcRet NS(Sq3Lite_ExtendetResultCodesE_ToString) (OtClass_ARGS) {
1379 enum Sq3ExtendetResultCodesE value = 0;
1383 goto end;
1384 error:
1386 end:
1388}
1389
1391static OT_ProcRet NS(Sq3Lite_FcntlE_ToInt) (OtClass_ARGS) {
1394 enum Sq3FcntlE value = 0;
1398 goto end;
1399 error:
1401 end:
1403}
1404
1406static OT_ProcRet NS(Sq3Lite_FcntlE_ToString) (OtClass_ARGS) {
1409 enum Sq3FcntlE value = 0;
1413 goto end;
1414 error:
1416 end:
1418}
1419
1421static OT_ProcRet NS(Sq3Lite_FunctionEF_ToInt) (OtClass_ARGS) {
1424 enum Sq3FunctionEF value = 0;
1428 goto end;
1429 error:
1431 end:
1433}
1434
1436static OT_ProcRet NS(Sq3Lite_FunctionEF_ToString) (OtClass_ARGS) {
1439 enum Sq3FunctionEF value = 0;
1443 goto end;
1444 error:
1446 end:
1448}
1449
1451static OT_ProcRet NS(Sq3Lite_IndexConstraintEF_ToInt) (OtClass_ARGS) {
1454 enum Sq3IndexConstraintEF value = 0;
1458 goto end;
1459 error:
1461 end:
1463}
1464
1466static OT_ProcRet NS(Sq3Lite_IndexConstraintEF_ToString) (OtClass_ARGS) {
1469 enum Sq3IndexConstraintEF value = 0;
1473 goto end;
1474 error:
1476 end:
1478}
1479
1481static OT_ProcRet NS(Sq3Lite_IoCapEF_ToInt) (OtClass_ARGS) {
1484 enum Sq3IoCapEF value = 0;
1488 goto end;
1489 error:
1491 end:
1493}
1494
1496static OT_ProcRet NS(Sq3Lite_IoCapEF_ToString) (OtClass_ARGS) {
1499 enum Sq3IoCapEF value = 0;
1503 goto end;
1504 error:
1506 end:
1508}
1509
1511static OT_ProcRet NS(Sq3Lite_LimitE_ToInt) (OtClass_ARGS) {
1514 enum Sq3LimitE value = 0;
1518 goto end;
1519 error:
1521 end:
1523}
1524
1526static OT_ProcRet NS(Sq3Lite_LimitE_ToString) (OtClass_ARGS) {
1529 enum Sq3LimitE value = 0;
1533 goto end;
1534 error:
1536 end:
1538}
1539
1541static OT_ProcRet NS(Sq3Lite_LockE_ToInt) (OtClass_ARGS) {
1544 enum Sq3LockE value = 0;
1548 goto end;
1549 error:
1551 end:
1553}
1554
1556static OT_ProcRet NS(Sq3Lite_LockE_ToString) (OtClass_ARGS) {
1559 enum Sq3LockE value = 0;
1563 goto end;
1564 error:
1566 end:
1568}
1569
1571static OT_ProcRet NS(Sq3Lite_MutexE_ToInt) (OtClass_ARGS) {
1574 enum Sq3MutexE value = 0;
1578 goto end;
1579 error:
1581 end:
1583}
1584
1586static OT_ProcRet NS(Sq3Lite_MutexE_ToString) (OtClass_ARGS) {
1589 enum Sq3MutexE value = 0;
1593 goto end;
1594 error:
1596 end:
1598}
1599
1601static OT_ProcRet NS(Sq3Lite_OpenEF_ToInt) (OtClass_ARGS) {
1604 enum Sq3OpenEF value = 0;
1608 goto end;
1609 error:
1611 end:
1613}
1614
1616static OT_ProcRet NS(Sq3Lite_OpenEF_ToString) (OtClass_ARGS) {
1619 enum Sq3OpenEF value = 0;
1623 goto end;
1624 error:
1626 end:
1628}
1629
1631static OT_ProcRet NS(Sq3Lite_PrepareEF_ToInt) (OtClass_ARGS) {
1634 enum Sq3PrepareEF value = 0;
1638 goto end;
1639 error:
1641 end:
1643}
1644
1646static OT_ProcRet NS(Sq3Lite_PrepareEF_ToString) (OtClass_ARGS) {
1649 enum Sq3PrepareEF value = 0;
1653 goto end;
1654 error:
1656 end:
1658}
1659
1661static OT_ProcRet NS(Sq3Lite_ScanStatE_ToInt) (OtClass_ARGS) {
1664 enum Sq3ScanStatE value = 0;
1668 goto end;
1669 error:
1671 end:
1673}
1674
1676static OT_ProcRet NS(Sq3Lite_ScanStatE_ToString) (OtClass_ARGS) {
1679 enum Sq3ScanStatE value = 0;
1683 goto end;
1684 error:
1686 end:
1688}
1689
1691static OT_ProcRet NS(Sq3Lite_SerializeE_ToInt) (OtClass_ARGS) {
1694 enum Sq3SerializeE value = 0;
1698 goto end;
1699 error:
1701 end:
1703}
1704
1706static OT_ProcRet NS(Sq3Lite_SerializeE_ToString) (OtClass_ARGS) {
1709 enum Sq3SerializeE value = 0;
1713 goto end;
1714 error:
1716 end:
1718}
1719
1721static OT_ProcRet NS(Sq3Lite_SessionObjConfigE_ToInt) (OtClass_ARGS) {
1724 enum Sq3SessionObjConfigE value = 0;
1728 goto end;
1729 error:
1731 end:
1733}
1734
1736static OT_ProcRet NS(Sq3Lite_SessionObjConfigE_ToString) (OtClass_ARGS) {
1739 enum Sq3SessionObjConfigE value = 0;
1743 goto end;
1744 error:
1746 end:
1748}
1749
1751static OT_ProcRet NS(Sq3Lite_ShmLockE_ToInt) (OtClass_ARGS) {
1754 enum Sq3ShmLockE value = 0;
1758 goto end;
1759 error:
1761 end:
1763}
1764
1766static OT_ProcRet NS(Sq3Lite_ShmLockE_ToString) (OtClass_ARGS) {
1769 enum Sq3ShmLockE value = 0;
1773 goto end;
1774 error:
1776 end:
1778}
1779
1781static OT_ProcRet NS(Sq3Lite_StatusE_ToInt) (OtClass_ARGS) {
1784 enum Sq3StatusE value = 0;
1788 goto end;
1789 error:
1791 end:
1793}
1794
1796static OT_ProcRet NS(Sq3Lite_StatusE_ToString) (OtClass_ARGS) {
1799 enum Sq3StatusE value = 0;
1803 goto end;
1804 error:
1806 end:
1808}
1809
1811static OT_ProcRet NS(Sq3Lite_StmtStatusE_ToInt) (OtClass_ARGS) {
1814 enum Sq3StmtStatusE value = 0;
1818 goto end;
1819 error:
1821 end:
1823}
1824
1826static OT_ProcRet NS(Sq3Lite_StmtStatusE_ToString) (OtClass_ARGS) {
1829 enum Sq3StmtStatusE value = 0;
1833 goto end;
1834 error:
1836 end:
1838}
1839
1841static OT_ProcRet NS(Sq3Lite_SyncEF_ToInt) (OtClass_ARGS) {
1844 enum Sq3SyncEF value = 0;
1848 goto end;
1849 error:
1851 end:
1853}
1854
1856static OT_ProcRet NS(Sq3Lite_SyncEF_ToString) (OtClass_ARGS) {
1859 enum Sq3SyncEF value = 0;
1863 goto end;
1864 error:
1866 end:
1868}
1869
1871static OT_ProcRet NS(Sq3Lite_TestCtrlE_ToInt) (OtClass_ARGS) {
1874 enum Sq3TestCtrlE value = 0;
1878 goto end;
1879 error:
1881 end:
1883}
1884
1886static OT_ProcRet NS(Sq3Lite_TestCtrlE_ToString) (OtClass_ARGS) {
1889 enum Sq3TestCtrlE value = 0;
1893 goto end;
1894 error:
1896 end:
1898}
1899
1901static OT_ProcRet NS(Sq3Lite_TextE_ToInt) (OtClass_ARGS) {
1904 enum Sq3TextE value = 0;
1908 goto end;
1909 error:
1911 end:
1913}
1914
1916static OT_ProcRet NS(Sq3Lite_TextE_ToString) (OtClass_ARGS) {
1919 enum Sq3TextE value = 0;
1923 goto end;
1924 error:
1926 end:
1928}
1929
1931static OT_ProcRet NS(Sq3Lite_TraceEF_ToInt) (OtClass_ARGS) {
1934 enum Sq3TraceEF value = 0;
1938 goto end;
1939 error:
1941 end:
1943}
1944
1946static OT_ProcRet NS(Sq3Lite_TraceEF_ToString) (OtClass_ARGS) {
1949 enum Sq3TraceEF value = 0;
1953 goto end;
1954 error:
1956 end:
1958}
1959
1961static OT_ProcRet NS(Sq3Lite_TxnE_ToInt) (OtClass_ARGS) {
1964 enum Sq3TxnE value = 0;
1968 goto end;
1969 error:
1971 end:
1973}
1974
1976static OT_ProcRet NS(Sq3Lite_TxnE_ToString) (OtClass_ARGS) {
1979 enum Sq3TxnE value = 0;
1983 goto end;
1984 error:
1986 end:
1988}
1989
1991static OT_ProcRet NS(Sq3Lite_TypeE_ToInt) (OtClass_ARGS) {
1994 enum Sq3TypeE value = 0;
1998 goto end;
1999 error:
2001 end:
2003}
2004
2006static OT_ProcRet NS(Sq3Lite_TypeE_ToString) (OtClass_ARGS) {
2009 enum Sq3TypeE value = 0;
2013 goto end;
2014 error:
2016 end:
2018}
2019
2021static OT_ProcRet NS(Sq3Lite_VtabE_ToInt) (OtClass_ARGS) {
2024 enum Sq3VtabE value = 0;
2028 goto end;
2029 error:
2031 end:
2033}
2034
2036static OT_ProcRet NS(Sq3Lite_VtabE_ToString) (OtClass_ARGS) {
2039 enum Sq3VtabE value = 0;
2043 goto end;
2044 error:
2046 end:
2048}
2049
2051// Sq3Lite_Enum_PY_API
2052
2056
2057// doc-key: Sq3Lite,Sq3Lite-Error,sm_
2058
2060static OT_ProcRet NS(Sq3Lite_ErrorCheckI) (OtClass_ARGS) {
2063 enum Sq3ErrorE ret = 0;
2067 goto end;
2068 error:
2070 end:
2072}
2073
2075// Sq3Lite_Error_PY_API
2076
2080
2081// doc-key: Sq3Lite,Sq3Lite-Info,sco
2082
2084static OT_ProcRet NS(Sq3Lite_KeywordNameBUF) (OtClass_ARGS) {
2087 MK_I32 num = 0;
2090 MK_BUF kwd_out;
2092 OT_retObj_SET_BUF(kwd_out);
2093 goto end;
2094 error:
2096 end:
2098}
2099
2100// doc-key: Sq3Lite,Sq3Lite-Info,sm_
2101
2103static OT_ProcRet NS(Sq3Lite_Complete) (OtClass_ARGS) {
2106 MK_STRN sql = 0;
2109 MkErrorC_Check(hdl,Sq3Complete (sql));
2111 goto end;
2112 error:
2114 end:
2116}
2117
2119static OT_ProcRet NS(Sq3Lite_KeywordCheck) (OtClass_ARGS) {
2122 MK_STRN arg0 = 0;
2124 MK_I32 arg1 = 0;
2127 MkErrorC_Check(hdl,Sq3KeywordCheck (arg0, arg1));
2129 goto end;
2130 error:
2132 end:
2134}
2135
2137static OT_ProcRet NS(Sq3Lite_KeywordCount) (OtClass_ARGS) {
2143 goto end;
2144 error:
2146 end:
2148}
2149
2150// doc-key: Sq3Lite,Sq3Lite-Info,smo
2151
2153static OT_ProcRet NS(Sq3Lite_KeywordName) (OtClass_ARGS) {
2156 MK_I32 num = 0;
2159 MK_STRN kwd;
2160 MK_I32 kwdsz;
2161 MkErrorC_Check(MK_ERROR_FORMAT,Sq3KeywordName (num, &kwd, &kwdsz));
2165 goto end;
2166 error:
2168 end:
2170}
2171
2173static OT_ProcRet NS(Sq3Lite_Status) (OtClass_ARGS) {
2176 enum Sq3StatusE op = 0;
2178 MK_BOOL resetFlag = 0;
2179 OT_CHECK_REQUIRED(OT_CHECK_bool (resetFlag))
2181 MK_I32 pCurrent;
2182 MK_I32 pHighwater;
2183 MkErrorC_Check(MK_ERROR_FORMAT,Sq3Status (op, &pCurrent, &pHighwater, resetFlag));
2186 OT_retObj_APPEND(OT_TMP_I32_OBJ(pHighwater));
2187 goto end;
2188 error:
2190 end:
2192}
2193
2195static OT_ProcRet NS(Sq3Lite_Status64) (OtClass_ARGS) {
2198 enum Sq3StatusE op = 0;
2200 MK_BOOL resetFlag = 0;
2201 OT_CHECK_REQUIRED(OT_CHECK_bool (resetFlag))
2203 MK_I64 pCurrent;
2204 MK_I64 pHighwater;
2205 MkErrorC_Check(MK_ERROR_FORMAT,Sq3Status64 (op, &pCurrent, &pHighwater, resetFlag));
2208 OT_retObj_APPEND(OT_TMP_I64_OBJ(pHighwater));
2209 goto end;
2210 error:
2212 end:
2214}
2215
2217// Sq3Lite_Info_PY_API
2218
2222
2223// doc-key: Sq3Lite,Sq3Lite-Internal-Memory,sm_
2224
2226static OT_ProcRet NS(Sq3Lite_HardHeapLimit64) (OtClass_ARGS) {
2229 MK_I64 N = 0;
2233 goto end;
2234 error:
2236 end:
2238}
2239
2241static OT_ProcRet NS(Sq3Lite_ReleaseMemory) (OtClass_ARGS) {
2244 MK_I32 N = 0;
2249 goto end;
2250 error:
2252 end:
2254}
2255
2257static OT_ProcRet NS(Sq3Lite_SoftHeapLimit64) (OtClass_ARGS) {
2260 MK_I64 N = 0;
2264 goto end;
2265 error:
2267 end:
2269}
2270
2272// Sq3Lite_Internal_Memory_PY_API
2273
2277
2278// doc-key: Sq3Lite,Sq3Lite-Internal-String,sm_
2279
2281static OT_ProcRet NS(Sq3Lite_StrGlob) (OtClass_ARGS) {
2284 MK_STRN zGlob = 0;
2286 MK_STRN zStr = 0;
2289 OT_retObj_SET_I32(Sq3StrGlob (zGlob, zStr));
2290 goto end;
2291 error:
2293 end:
2295}
2296
2298static OT_ProcRet NS(Sq3Lite_StrIcmp) (OtClass_ARGS) {
2301 MK_STRN arg0 = 0;
2303 MK_STRN arg1 = 0;
2306 OT_retObj_SET_I32(Sq3StrIcmp (arg0, arg1));
2307 goto end;
2308 error:
2310 end:
2312}
2313
2315static OT_ProcRet NS(Sq3Lite_StrLike) (OtClass_ARGS) {
2318 MK_STRN zGlob = 0;
2320 MK_STRN zStr = 0;
2322 MK_I32 cEsc = 0;
2325 OT_retObj_SET_I32(Sq3StrLike (zGlob, zStr, cEsc));
2326 goto end;
2327 error:
2329 end:
2331}
2332
2334static OT_ProcRet NS(Sq3Lite_StrNicmp) (OtClass_ARGS) {
2337 MK_STRN arg0 = 0;
2339 MK_STRN arg1 = 0;
2341 MK_I32 arg2 = 0;
2344 OT_retObj_SET_I32(Sq3StrNicmp (arg0, arg1, arg2));
2345 goto end;
2346 error:
2348 end:
2350}
2351
2353// Sq3Lite_Internal_String_PY_API
2354
2358
2359// doc-key: Sq3Lite,Sq3Lite-Setup-libsq3lite,sm_
2360
2362static OT_ProcRet NS(Sq3Lite_Cleanup) (OtClass_ARGS) {
2366 Sq3CleanupTmpl ();
2368 goto end;
2369 error:
2371 end:
2373}
2374
2376static OT_ProcRet NS(Sq3Lite_Setup) (OtClass_ARGS) {
2380 Sq3SetupTmpl ();
2382 goto end;
2383 error:
2385 end:
2387}
2388
2390// Sq3Lite_Setup_libsq3lite_PY_API
2391
2395
2396// doc-key: Sq3Lite,Sq3Lite-Setup-libsqlite3,sm_
2397
2399static OT_ProcRet NS(Sq3Lite_Initialize) (OtClass_ARGS) {
2405 goto end;
2406 error:
2408 end:
2410}
2411
2413static OT_ProcRet NS(Sq3Lite_OsEnd) (OtClass_ARGS) {
2417 MkErrorC_Check(hdl,Sq3OsEnd ());
2419 goto end;
2420 error:
2422 end:
2424}
2425
2427static OT_ProcRet NS(Sq3Lite_OsInit) (OtClass_ARGS) {
2431 MkErrorC_Check(hdl,Sq3OsInit ());
2433 goto end;
2434 error:
2436 end:
2438}
2439
2441static OT_ProcRet NS(Sq3Lite_Shutdown) (OtClass_ARGS) {
2447 goto end;
2448 error:
2450 end:
2452}
2453
2455// Sq3Lite_Setup_libsqlite3_PY_API
2456
2460
2461// doc-key: Sq3Lite,Sq3Lite-Version,sm_
2462
2464static OT_ProcRet NS(Sq3Lite_Libversion) (OtClass_ARGS) {
2469 goto end;
2470 error:
2472 end:
2474}
2475
2477static OT_ProcRet NS(Sq3Lite_LibversionNumber) (OtClass_ARGS) {
2483 goto end;
2484 error:
2486 end:
2488}
2489
2491static OT_ProcRet NS(Sq3Lite_Sourceid) (OtClass_ARGS) {
2496 goto end;
2497 error:
2499 end:
2501}
2502
2504// Sq3Lite_Version_PY_API
2505
2509
2510// doc-key: Sq3Lite,Sq3Lite-Vfs,sm_
2511
2513static OT_ProcRet NS(Sq3Lite_FilenameDatabase) (OtClass_ARGS) {
2516 SQ3_FILENAME F = 0;
2520 goto end;
2521 error:
2523 end:
2525}
2526
2528static OT_ProcRet NS(Sq3Lite_FilenameJournal) (OtClass_ARGS) {
2531 SQ3_FILENAME F = 0;
2535 goto end;
2536 error:
2538 end:
2540}
2541
2543static OT_ProcRet NS(Sq3Lite_FilenameWal) (OtClass_ARGS) {
2546 SQ3_FILENAME F = 0;
2550 goto end;
2551 error:
2553 end:
2555}
2556
2558static OT_ProcRet NS(Sq3Lite_FreeFilename) (OtClass_ARGS) {
2561 SQ3_FILENAME arg0 = 0;
2564 Sq3FreeFilename (arg0);
2566 goto end;
2567 error:
2569 end:
2571}
2572
2574static OT_ProcRet NS(Sq3Lite_UriBoolean) (OtClass_ARGS) {
2577 SQ3_FILENAME z = 0;
2579 MK_STRN zParam = 0;
2581 MK_I32 bDefault = 0;
2584 MkErrorC_Check(hdl,Sq3UriBoolean (z, zParam, bDefault));
2586 goto end;
2587 error:
2589 end:
2591}
2592
2594static OT_ProcRet NS(Sq3Lite_UriInt64) (OtClass_ARGS) {
2597 SQ3_FILENAME arg0 = 0;
2599 MK_STRN arg1 = 0;
2601 MK_I64 arg2 = 0;
2604 OT_retObj_SET_I64(Sq3UriInt64 (arg0, arg1, arg2));
2605 goto end;
2606 error:
2608 end:
2610}
2611
2613static OT_ProcRet NS(Sq3Lite_UriKey) (OtClass_ARGS) {
2616 SQ3_FILENAME z = 0;
2618 MK_I32 N = 0;
2622 goto end;
2623 error:
2625 end:
2627}
2628
2630static OT_ProcRet NS(Sq3Lite_UriParameter) (OtClass_ARGS) {
2633 SQ3_FILENAME z = 0;
2635 MK_STRN zParam = 0;
2639 goto end;
2640 error:
2642 end:
2644}
2645
2647// Sq3Lite_Vfs_PY_API
2648
2649// END-Sq3Lite - created by 'py_MqC.tcl -i NHI1_HOME/theSq3Lite/c/gen/c_sq3lite.meta' - DO NOT change
2650
2651// MARK_T
2657
2658static PyMethodDef NS(sSq3LiteMethods)[] = {
2659
2660 // BEGIN-CLASS - created by 'py_MqS.tcl -i NHI1_HOME/theSq3Lite/c/gen/c_sq3lite.meta' - DO NOT change
2661
2662 // doc-key: Sq3Lite,EnumFunc,sco
2663 { "AccessE_FromInt" , (PyCFunction) NS(Sq3Lite_AccessE_FromInt) , METH_O , AccessE_FromInt_doc },
2664 { "AuthActionE_FromInt" , (PyCFunction) NS(Sq3Lite_AuthActionE_FromInt) , METH_O , AuthActionE_FromInt_doc },
2665 { "AuthReturnE_FromInt" , (PyCFunction) NS(Sq3Lite_AuthReturnE_FromInt) , METH_O , AuthReturnE_FromInt_doc },
2666 { "ChangeSetConflictE_FromInt" , (PyCFunction) NS(Sq3Lite_ChangeSetConflictE_FromInt) , METH_O , ChangeSetConflictE_FromInt_doc },
2667 { "ChangesetE_FromInt" , (PyCFunction) NS(Sq3Lite_ChangesetE_FromInt) , METH_O , ChangesetE_FromInt_doc },
2668 { "CheckpointE_FromInt" , (PyCFunction) NS(Sq3Lite_CheckpointE_FromInt) , METH_O , CheckpointE_FromInt_doc },
2669 { "ConfigE_FromInt" , (PyCFunction) NS(Sq3Lite_ConfigE_FromInt) , METH_O , ConfigE_FromInt_doc },
2670 { "ConflictResolutionE_FromInt" , (PyCFunction) NS(Sq3Lite_ConflictResolutionE_FromInt) , METH_O , ConflictResolutionE_FromInt_doc },
2671 { "DbConfigE_FromInt" , (PyCFunction) NS(Sq3Lite_DbConfigE_FromInt) , METH_O , DbConfigE_FromInt_doc },
2672 { "DbStatusE_FromInt" , (PyCFunction) NS(Sq3Lite_DbStatusE_FromInt) , METH_O , DbStatusE_FromInt_doc },
2673 { "DeSerializeEF_FromInt" , (PyCFunction) NS(Sq3Lite_DeSerializeEF_FromInt) , METH_O , DeSerializeEF_FromInt_doc },
2674 { "ErrorE_FromInt" , (PyCFunction) NS(Sq3Lite_ErrorE_FromInt) , METH_O , ErrorE_FromInt_doc },
2675 { "ExtendetResultCodesE_FromInt" , (PyCFunction) NS(Sq3Lite_ExtendetResultCodesE_FromInt) , METH_O , ExtendetResultCodesE_FromInt_doc },
2676 { "FcntlE_FromInt" , (PyCFunction) NS(Sq3Lite_FcntlE_FromInt) , METH_O , FcntlE_FromInt_doc },
2677 { "FunctionEF_FromInt" , (PyCFunction) NS(Sq3Lite_FunctionEF_FromInt) , METH_O , FunctionEF_FromInt_doc },
2678 { "IndexConstraintEF_FromInt" , (PyCFunction) NS(Sq3Lite_IndexConstraintEF_FromInt) , METH_O , IndexConstraintEF_FromInt_doc },
2679 { "IoCapEF_FromInt" , (PyCFunction) NS(Sq3Lite_IoCapEF_FromInt) , METH_O , IoCapEF_FromInt_doc },
2680 { "LimitE_FromInt" , (PyCFunction) NS(Sq3Lite_LimitE_FromInt) , METH_O , LimitE_FromInt_doc },
2681 { "LockE_FromInt" , (PyCFunction) NS(Sq3Lite_LockE_FromInt) , METH_O , LockE_FromInt_doc },
2682 { "MutexE_FromInt" , (PyCFunction) NS(Sq3Lite_MutexE_FromInt) , METH_O , MutexE_FromInt_doc },
2683 { "OpenEF_FromInt" , (PyCFunction) NS(Sq3Lite_OpenEF_FromInt) , METH_O , OpenEF_FromInt_doc },
2684 { "PrepareEF_FromInt" , (PyCFunction) NS(Sq3Lite_PrepareEF_FromInt) , METH_O , PrepareEF_FromInt_doc },
2685 { "ScanStatE_FromInt" , (PyCFunction) NS(Sq3Lite_ScanStatE_FromInt) , METH_O , ScanStatE_FromInt_doc },
2686 { "SerializeE_FromInt" , (PyCFunction) NS(Sq3Lite_SerializeE_FromInt) , METH_O , SerializeE_FromInt_doc },
2687 { "SessionObjConfigE_FromInt" , (PyCFunction) NS(Sq3Lite_SessionObjConfigE_FromInt) , METH_O , SessionObjConfigE_FromInt_doc },
2688 { "ShmLockE_FromInt" , (PyCFunction) NS(Sq3Lite_ShmLockE_FromInt) , METH_O , ShmLockE_FromInt_doc },
2689 { "StatusE_FromInt" , (PyCFunction) NS(Sq3Lite_StatusE_FromInt) , METH_O , StatusE_FromInt_doc },
2690 { "StmtStatusE_FromInt" , (PyCFunction) NS(Sq3Lite_StmtStatusE_FromInt) , METH_O , StmtStatusE_FromInt_doc },
2691 { "SyncEF_FromInt" , (PyCFunction) NS(Sq3Lite_SyncEF_FromInt) , METH_O , SyncEF_FromInt_doc },
2692 { "TestCtrlE_FromInt" , (PyCFunction) NS(Sq3Lite_TestCtrlE_FromInt) , METH_O , TestCtrlE_FromInt_doc },
2693 { "TextE_FromInt" , (PyCFunction) NS(Sq3Lite_TextE_FromInt) , METH_O , TextE_FromInt_doc },
2694 { "TraceEF_FromInt" , (PyCFunction) NS(Sq3Lite_TraceEF_FromInt) , METH_O , TraceEF_FromInt_doc },
2695 { "TxnE_FromInt" , (PyCFunction) NS(Sq3Lite_TxnE_FromInt) , METH_O , TxnE_FromInt_doc },
2696 { "TypeE_FromInt" , (PyCFunction) NS(Sq3Lite_TypeE_FromInt) , METH_O , TypeE_FromInt_doc },
2697 { "VtabE_FromInt" , (PyCFunction) NS(Sq3Lite_VtabE_FromInt) , METH_O , VtabE_FromInt_doc },
2698
2699 // doc-key: Sq3Lite,EnumFunc,sm_
2700 { "AccessE_ToInt" , (PyCFunction) NS(Sq3Lite_AccessE_ToInt) , METH_O , AccessE_ToInt_doc },
2701 { "AccessE_ToString" , (PyCFunction) NS(Sq3Lite_AccessE_ToString) , METH_O , AccessE_ToString_doc },
2702 { "AuthActionE_ToInt" , (PyCFunction) NS(Sq3Lite_AuthActionE_ToInt) , METH_O , AuthActionE_ToInt_doc },
2703 { "AuthActionE_ToString" , (PyCFunction) NS(Sq3Lite_AuthActionE_ToString) , METH_O , AuthActionE_ToString_doc },
2704 { "AuthReturnE_ToInt" , (PyCFunction) NS(Sq3Lite_AuthReturnE_ToInt) , METH_O , AuthReturnE_ToInt_doc },
2705 { "AuthReturnE_ToString" , (PyCFunction) NS(Sq3Lite_AuthReturnE_ToString) , METH_O , AuthReturnE_ToString_doc },
2706 { "ChangeSetConflictE_ToInt" , (PyCFunction) NS(Sq3Lite_ChangeSetConflictE_ToInt) , METH_O , ChangeSetConflictE_ToInt_doc },
2707 { "ChangeSetConflictE_ToString" , (PyCFunction) NS(Sq3Lite_ChangeSetConflictE_ToString) , METH_O , ChangeSetConflictE_ToString_doc },
2708 { "ChangesetE_ToInt" , (PyCFunction) NS(Sq3Lite_ChangesetE_ToInt) , METH_O , ChangesetE_ToInt_doc },
2709 { "ChangesetE_ToString" , (PyCFunction) NS(Sq3Lite_ChangesetE_ToString) , METH_O , ChangesetE_ToString_doc },
2710 { "CheckpointE_ToInt" , (PyCFunction) NS(Sq3Lite_CheckpointE_ToInt) , METH_O , CheckpointE_ToInt_doc },
2711 { "CheckpointE_ToString" , (PyCFunction) NS(Sq3Lite_CheckpointE_ToString) , METH_O , CheckpointE_ToString_doc },
2712 { "ConfigE_ToInt" , (PyCFunction) NS(Sq3Lite_ConfigE_ToInt) , METH_O , ConfigE_ToInt_doc },
2713 { "ConfigE_ToString" , (PyCFunction) NS(Sq3Lite_ConfigE_ToString) , METH_O , ConfigE_ToString_doc },
2714 { "ConflictResolutionE_ToInt" , (PyCFunction) NS(Sq3Lite_ConflictResolutionE_ToInt) , METH_O , ConflictResolutionE_ToInt_doc },
2715 { "ConflictResolutionE_ToString" , (PyCFunction) NS(Sq3Lite_ConflictResolutionE_ToString) , METH_O , ConflictResolutionE_ToString_doc },
2716 { "DbConfigE_ToInt" , (PyCFunction) NS(Sq3Lite_DbConfigE_ToInt) , METH_O , DbConfigE_ToInt_doc },
2717 { "DbConfigE_ToString" , (PyCFunction) NS(Sq3Lite_DbConfigE_ToString) , METH_O , DbConfigE_ToString_doc },
2718 { "DbStatusE_ToInt" , (PyCFunction) NS(Sq3Lite_DbStatusE_ToInt) , METH_O , DbStatusE_ToInt_doc },
2719 { "DbStatusE_ToString" , (PyCFunction) NS(Sq3Lite_DbStatusE_ToString) , METH_O , DbStatusE_ToString_doc },
2720 { "DeSerializeEF_ToInt" , (PyCFunction) NS(Sq3Lite_DeSerializeEF_ToInt) , METH_O , DeSerializeEF_ToInt_doc },
2721 { "DeSerializeEF_ToString" , (PyCFunction) NS(Sq3Lite_DeSerializeEF_ToString) , METH_O , DeSerializeEF_ToString_doc },
2722 { "ErrorE_ToInt" , (PyCFunction) NS(Sq3Lite_ErrorE_ToInt) , METH_O , ErrorE_ToInt_doc },
2723 { "ErrorE_ToString" , (PyCFunction) NS(Sq3Lite_ErrorE_ToString) , METH_O , ErrorE_ToString_doc },
2724 { "ExtendetResultCodesE_ToInt" , (PyCFunction) NS(Sq3Lite_ExtendetResultCodesE_ToInt) , METH_O , ExtendetResultCodesE_ToInt_doc },
2725 { "ExtendetResultCodesE_ToString" , (PyCFunction) NS(Sq3Lite_ExtendetResultCodesE_ToString) , METH_O , ExtendetResultCodesE_ToString_doc },
2726 { "FcntlE_ToInt" , (PyCFunction) NS(Sq3Lite_FcntlE_ToInt) , METH_O , FcntlE_ToInt_doc },
2727 { "FcntlE_ToString" , (PyCFunction) NS(Sq3Lite_FcntlE_ToString) , METH_O , FcntlE_ToString_doc },
2728 { "FunctionEF_ToInt" , (PyCFunction) NS(Sq3Lite_FunctionEF_ToInt) , METH_O , FunctionEF_ToInt_doc },
2729 { "FunctionEF_ToString" , (PyCFunction) NS(Sq3Lite_FunctionEF_ToString) , METH_O , FunctionEF_ToString_doc },
2730 { "IndexConstraintEF_ToInt" , (PyCFunction) NS(Sq3Lite_IndexConstraintEF_ToInt) , METH_O , IndexConstraintEF_ToInt_doc },
2731 { "IndexConstraintEF_ToString" , (PyCFunction) NS(Sq3Lite_IndexConstraintEF_ToString) , METH_O , IndexConstraintEF_ToString_doc },
2732 { "IoCapEF_ToInt" , (PyCFunction) NS(Sq3Lite_IoCapEF_ToInt) , METH_O , IoCapEF_ToInt_doc },
2733 { "IoCapEF_ToString" , (PyCFunction) NS(Sq3Lite_IoCapEF_ToString) , METH_O , IoCapEF_ToString_doc },
2734 { "LimitE_ToInt" , (PyCFunction) NS(Sq3Lite_LimitE_ToInt) , METH_O , LimitE_ToInt_doc },
2735 { "LimitE_ToString" , (PyCFunction) NS(Sq3Lite_LimitE_ToString) , METH_O , LimitE_ToString_doc },
2736 { "LockE_ToInt" , (PyCFunction) NS(Sq3Lite_LockE_ToInt) , METH_O , LockE_ToInt_doc },
2737 { "LockE_ToString" , (PyCFunction) NS(Sq3Lite_LockE_ToString) , METH_O , LockE_ToString_doc },
2738 { "MutexE_ToInt" , (PyCFunction) NS(Sq3Lite_MutexE_ToInt) , METH_O , MutexE_ToInt_doc },
2739 { "MutexE_ToString" , (PyCFunction) NS(Sq3Lite_MutexE_ToString) , METH_O , MutexE_ToString_doc },
2740 { "OpenEF_ToInt" , (PyCFunction) NS(Sq3Lite_OpenEF_ToInt) , METH_O , OpenEF_ToInt_doc },
2741 { "OpenEF_ToString" , (PyCFunction) NS(Sq3Lite_OpenEF_ToString) , METH_O , OpenEF_ToString_doc },
2742 { "PrepareEF_ToInt" , (PyCFunction) NS(Sq3Lite_PrepareEF_ToInt) , METH_O , PrepareEF_ToInt_doc },
2743 { "PrepareEF_ToString" , (PyCFunction) NS(Sq3Lite_PrepareEF_ToString) , METH_O , PrepareEF_ToString_doc },
2744 { "ScanStatE_ToInt" , (PyCFunction) NS(Sq3Lite_ScanStatE_ToInt) , METH_O , ScanStatE_ToInt_doc },
2745 { "ScanStatE_ToString" , (PyCFunction) NS(Sq3Lite_ScanStatE_ToString) , METH_O , ScanStatE_ToString_doc },
2746 { "SerializeE_ToInt" , (PyCFunction) NS(Sq3Lite_SerializeE_ToInt) , METH_O , SerializeE_ToInt_doc },
2747 { "SerializeE_ToString" , (PyCFunction) NS(Sq3Lite_SerializeE_ToString) , METH_O , SerializeE_ToString_doc },
2748 { "SessionObjConfigE_ToInt" , (PyCFunction) NS(Sq3Lite_SessionObjConfigE_ToInt) , METH_O , SessionObjConfigE_ToInt_doc },
2749 { "SessionObjConfigE_ToString" , (PyCFunction) NS(Sq3Lite_SessionObjConfigE_ToString) , METH_O , SessionObjConfigE_ToString_doc },
2750 { "ShmLockE_ToInt" , (PyCFunction) NS(Sq3Lite_ShmLockE_ToInt) , METH_O , ShmLockE_ToInt_doc },
2751 { "ShmLockE_ToString" , (PyCFunction) NS(Sq3Lite_ShmLockE_ToString) , METH_O , ShmLockE_ToString_doc },
2752 { "StatusE_ToInt" , (PyCFunction) NS(Sq3Lite_StatusE_ToInt) , METH_O , StatusE_ToInt_doc },
2753 { "StatusE_ToString" , (PyCFunction) NS(Sq3Lite_StatusE_ToString) , METH_O , StatusE_ToString_doc },
2754 { "StmtStatusE_ToInt" , (PyCFunction) NS(Sq3Lite_StmtStatusE_ToInt) , METH_O , StmtStatusE_ToInt_doc },
2755 { "StmtStatusE_ToString" , (PyCFunction) NS(Sq3Lite_StmtStatusE_ToString) , METH_O , StmtStatusE_ToString_doc },
2756 { "SyncEF_ToInt" , (PyCFunction) NS(Sq3Lite_SyncEF_ToInt) , METH_O , SyncEF_ToInt_doc },
2757 { "SyncEF_ToString" , (PyCFunction) NS(Sq3Lite_SyncEF_ToString) , METH_O , SyncEF_ToString_doc },
2758 { "TestCtrlE_ToInt" , (PyCFunction) NS(Sq3Lite_TestCtrlE_ToInt) , METH_O , TestCtrlE_ToInt_doc },
2759 { "TestCtrlE_ToString" , (PyCFunction) NS(Sq3Lite_TestCtrlE_ToString) , METH_O , TestCtrlE_ToString_doc },
2760 { "TextE_ToInt" , (PyCFunction) NS(Sq3Lite_TextE_ToInt) , METH_O , TextE_ToInt_doc },
2761 { "TextE_ToString" , (PyCFunction) NS(Sq3Lite_TextE_ToString) , METH_O , TextE_ToString_doc },
2762 { "TraceEF_ToInt" , (PyCFunction) NS(Sq3Lite_TraceEF_ToInt) , METH_O , TraceEF_ToInt_doc },
2763 { "TraceEF_ToString" , (PyCFunction) NS(Sq3Lite_TraceEF_ToString) , METH_O , TraceEF_ToString_doc },
2764 { "TxnE_ToInt" , (PyCFunction) NS(Sq3Lite_TxnE_ToInt) , METH_O , TxnE_ToInt_doc },
2765 { "TxnE_ToString" , (PyCFunction) NS(Sq3Lite_TxnE_ToString) , METH_O , TxnE_ToString_doc },
2766 { "TypeE_ToInt" , (PyCFunction) NS(Sq3Lite_TypeE_ToInt) , METH_O , TypeE_ToInt_doc },
2767 { "TypeE_ToString" , (PyCFunction) NS(Sq3Lite_TypeE_ToString) , METH_O , TypeE_ToString_doc },
2768 { "VtabE_ToInt" , (PyCFunction) NS(Sq3Lite_VtabE_ToInt) , METH_O , VtabE_ToInt_doc },
2769 { "VtabE_ToString" , (PyCFunction) NS(Sq3Lite_VtabE_ToString) , METH_O , VtabE_ToString_doc },
2770
2771 // doc-key: Sq3Lite,Sq3,sco
2772 { "KeywordNameBUF" , (PyCFunction) NS(Sq3Lite_KeywordNameBUF) , METH_O , KeywordNameBUF_doc },
2773
2774 // doc-key: Sq3Lite,Sq3,sm_
2775 { "Cleanup" , (PyCFunction) NS(Sq3Lite_Cleanup) , METH_NOARGS , Cleanup_doc },
2776 { "CompileOptionGet" , (PyCFunction) NS(Sq3Lite_CompileOptionGet) , METH_O , CompileOptionGet_doc },
2777 { "CompileOptionUsed" , (PyCFunction) NS(Sq3Lite_CompileOptionUsed) , METH_O , CompileOptionUsed_doc },
2778 { "Complete" , (PyCFunction) NS(Sq3Lite_Complete) , METH_O , Complete_doc },
2779 { "ErrorCheckI" , (PyCFunction) NS(Sq3Lite_ErrorCheckI) , METH_O , ErrorCheckI_doc },
2780 { "FilenameDatabase" , (PyCFunction) NS(Sq3Lite_FilenameDatabase) , METH_O , FilenameDatabase_doc },
2781 { "FilenameJournal" , (PyCFunction) NS(Sq3Lite_FilenameJournal) , METH_O , FilenameJournal_doc },
2782 { "FilenameWal" , (PyCFunction) NS(Sq3Lite_FilenameWal) , METH_O , FilenameWal_doc },
2783 { "FreeFilename" , (PyCFunction) NS(Sq3Lite_FreeFilename) , METH_O , FreeFilename_doc },
2784 { "HardHeapLimit64" , (PyCFunction) NS(Sq3Lite_HardHeapLimit64) , METH_O , HardHeapLimit64_doc },
2785 { "Initialize" , (PyCFunction) NS(Sq3Lite_Initialize) , METH_NOARGS , Initialize_doc },
2786 { "KeywordCheck" , (PyCFunction) NS(Sq3Lite_KeywordCheck) , METH_VARARGS , KeywordCheck_doc },
2787 { "KeywordCount" , (PyCFunction) NS(Sq3Lite_KeywordCount) , METH_NOARGS , KeywordCount_doc },
2788 { "Libversion" , (PyCFunction) NS(Sq3Lite_Libversion) , METH_NOARGS , Libversion_doc },
2789 { "LibversionNumber" , (PyCFunction) NS(Sq3Lite_LibversionNumber) , METH_NOARGS , LibversionNumber_doc },
2790 { "MemoryHighwater" , (PyCFunction) NS(Sq3Lite_MemoryHighwater) , METH_O , MemoryHighwater_doc },
2791 { "MemoryUsed" , (PyCFunction) NS(Sq3Lite_MemoryUsed) , METH_NOARGS , MemoryUsed_doc },
2792 { "OsEnd" , (PyCFunction) NS(Sq3Lite_OsEnd) , METH_NOARGS , OsEnd_doc },
2793 { "OsInit" , (PyCFunction) NS(Sq3Lite_OsInit) , METH_NOARGS , OsInit_doc },
2794 { "ReleaseMemory" , (PyCFunction) NS(Sq3Lite_ReleaseMemory) , METH_O , ReleaseMemory_doc },
2795 { "Setup" , (PyCFunction) NS(Sq3Lite_Setup) , METH_NOARGS , Setup_doc },
2796 { "Shutdown" , (PyCFunction) NS(Sq3Lite_Shutdown) , METH_NOARGS , Shutdown_doc },
2797 { "SoftHeapLimit64" , (PyCFunction) NS(Sq3Lite_SoftHeapLimit64) , METH_O , SoftHeapLimit64_doc },
2798 { "Sourceid" , (PyCFunction) NS(Sq3Lite_Sourceid) , METH_NOARGS , Sourceid_doc },
2799 { "StrGlob" , (PyCFunction) NS(Sq3Lite_StrGlob) , METH_VARARGS , StrGlob_doc },
2800 { "StrIcmp" , (PyCFunction) NS(Sq3Lite_StrIcmp) , METH_VARARGS , StrIcmp_doc },
2801 { "StrLike" , (PyCFunction) NS(Sq3Lite_StrLike) , METH_VARARGS , StrLike_doc },
2802 { "StrNicmp" , (PyCFunction) NS(Sq3Lite_StrNicmp) , METH_VARARGS , StrNicmp_doc },
2803 { "Threadsafe" , (PyCFunction) NS(Sq3Lite_Threadsafe) , METH_NOARGS , Threadsafe_doc },
2804 { "UriBoolean" , (PyCFunction) NS(Sq3Lite_UriBoolean) , METH_VARARGS , UriBoolean_doc },
2805 { "UriInt64" , (PyCFunction) NS(Sq3Lite_UriInt64) , METH_VARARGS , UriInt64_doc },
2806 { "UriKey" , (PyCFunction) NS(Sq3Lite_UriKey) , METH_VARARGS , UriKey_doc },
2807 { "UriParameter" , (PyCFunction) NS(Sq3Lite_UriParameter) , METH_VARARGS , UriParameter_doc },
2808
2809 // doc-key: Sq3Lite,Sq3,smo
2810 { "KeywordName" , (PyCFunction) NS(Sq3Lite_KeywordName) , METH_O , KeywordName_doc },
2811 { "Status" , (PyCFunction) NS(Sq3Lite_Status) , METH_VARARGS , Status_doc },
2812 { "Status64" , (PyCFunction) NS(Sq3Lite_Status64) , METH_VARARGS , Status64_doc },
2813
2814 // END-CLASS - created by 'py_MqS.tcl -i NHI1_HOME/theSq3Lite/c/gen/c_sq3lite.meta' - DO NOT change
2815
2816 // BEGIN-OBJ - created by 'py_MqS.tcl -i NHI1_HOME/theSq3Lite/c/gen/c_sq3lite.meta' - DO NOT change
2817
2818 // → no data
2819
2820 // END-OBJ - created by 'py_MqS.tcl -i NHI1_HOME/theSq3Lite/c/gen/c_sq3lite.meta' - DO NOT change
2821
2822 {NULL, NULL, 0, NULL} /* Sentinel */
2823};
2824
2825// MARK_P
2831
2833// MODULE
2834
2836
2837typedef struct {
2839} NS(sSq3LiteStateS);
2840
2841MK_UNUSED static inline NS(sSq3LiteStateS)*
2842NS(sSq3LiteGetState)(PyObject *module)
2843{
2844 void *state = PyModule_GetState(module);
2845 assert(state != NULL);
2846 return (NS(sSq3LiteStateS)*)state;
2847}
2848
2849static int
2850NS(sSq3LiteTraverse)(PyObject *module, visitproc visit, void *arg)
2851{
2852 // BEGIN-EnumTraverse - created by 'py_MqS.tcl -i NHI1_HOME/theSq3Lite/c/gen/c_sq3lite.meta' - DO NOT change
2853
2854 Py_VISIT(Sq3AccessE_lngO);
2855 Py_VISIT(Sq3AuthActionE_lngO);
2856 Py_VISIT(Sq3AuthReturnE_lngO);
2858 Py_VISIT(Sq3ChangesetE_lngO);
2859 Py_VISIT(Sq3CheckpointE_lngO);
2860 Py_VISIT(Sq3ConfigE_lngO);
2862 Py_VISIT(Sq3DbConfigE_lngO);
2863 Py_VISIT(Sq3DbStatusE_lngO);
2864 Py_VISIT(Sq3DeSerializeEF_lngO);
2865 Py_VISIT(Sq3ErrorE_lngO);
2867 Py_VISIT(Sq3FcntlE_lngO);
2868 Py_VISIT(Sq3FunctionEF_lngO);
2869 Py_VISIT(Sq3IndexConstraintEF_lngO);
2870 Py_VISIT(Sq3IoCapEF_lngO);
2871 Py_VISIT(Sq3LimitE_lngO);
2872 Py_VISIT(Sq3LockE_lngO);
2873 Py_VISIT(Sq3MutexE_lngO);
2874 Py_VISIT(Sq3OpenEF_lngO);
2875 Py_VISIT(Sq3PrepareEF_lngO);
2876 Py_VISIT(Sq3ScanStatE_lngO);
2877 Py_VISIT(Sq3SerializeE_lngO);
2878 Py_VISIT(Sq3SessionObjConfigE_lngO);
2879 Py_VISIT(Sq3ShmLockE_lngO);
2880 Py_VISIT(Sq3StatusE_lngO);
2881 Py_VISIT(Sq3StmtStatusE_lngO);
2882 Py_VISIT(Sq3SyncEF_lngO);
2883 Py_VISIT(Sq3TestCtrlE_lngO);
2884 Py_VISIT(Sq3TextE_lngO);
2885 Py_VISIT(Sq3TraceEF_lngO);
2886 Py_VISIT(Sq3TxnE_lngO);
2887 Py_VISIT(Sq3TypeE_lngO);
2888 Py_VISIT(Sq3VtabE_lngO);
2889
2890 // END-EnumTraverse - created by 'py_MqS.tcl -i NHI1_HOME/theSq3Lite/c/gen/c_sq3lite.meta' - DO NOT change
2891 // BEGIN-ClassTraverse - created by 'py_MqS.tcl -i NHI1_HOME/theSq3Lite/c/gen/c_sq3lite.meta' - DO NOT change
2892
2893 Py_VISIT(Sq3LiteC_MK_NULL);
2894 Py_VISIT(Sq3ValueC_MK_NULL);
2895 Py_VISIT(Sq3StmtC_MK_NULL);
2896 Py_VISIT(Sq3BlobC_MK_NULL);
2897 Py_VISIT(Sq3FileC_MK_NULL);
2898
2899 // END-ClassTraverse - created by 'py_MqS.tcl -i NHI1_HOME/theSq3Lite/c/gen/c_sq3lite.meta' - DO NOT change
2900 return 0;
2901}
2902
2903static int
2904NS(sSq3LiteClear)(PyObject *module)
2905{
2906 // BEGIN-EnumClear - created by 'py_MqS.tcl -i NHI1_HOME/theSq3Lite/c/gen/c_sq3lite.meta' - DO NOT change
2907
2908 Py_CLEAR(Sq3AccessE_lngO);
2909 Py_CLEAR(Sq3AuthActionE_lngO);
2910 Py_CLEAR(Sq3AuthReturnE_lngO);
2912 Py_CLEAR(Sq3ChangesetE_lngO);
2913 Py_CLEAR(Sq3CheckpointE_lngO);
2914 Py_CLEAR(Sq3ConfigE_lngO);
2916 Py_CLEAR(Sq3DbConfigE_lngO);
2917 Py_CLEAR(Sq3DbStatusE_lngO);
2918 Py_CLEAR(Sq3DeSerializeEF_lngO);
2919 Py_CLEAR(Sq3ErrorE_lngO);
2921 Py_CLEAR(Sq3FcntlE_lngO);
2922 Py_CLEAR(Sq3FunctionEF_lngO);
2923 Py_CLEAR(Sq3IndexConstraintEF_lngO);
2924 Py_CLEAR(Sq3IoCapEF_lngO);
2925 Py_CLEAR(Sq3LimitE_lngO);
2926 Py_CLEAR(Sq3LockE_lngO);
2927 Py_CLEAR(Sq3MutexE_lngO);
2928 Py_CLEAR(Sq3OpenEF_lngO);
2929 Py_CLEAR(Sq3PrepareEF_lngO);
2930 Py_CLEAR(Sq3ScanStatE_lngO);
2931 Py_CLEAR(Sq3SerializeE_lngO);
2932 Py_CLEAR(Sq3SessionObjConfigE_lngO);
2933 Py_CLEAR(Sq3ShmLockE_lngO);
2934 Py_CLEAR(Sq3StatusE_lngO);
2935 Py_CLEAR(Sq3StmtStatusE_lngO);
2936 Py_CLEAR(Sq3SyncEF_lngO);
2937 Py_CLEAR(Sq3TestCtrlE_lngO);
2938 Py_CLEAR(Sq3TextE_lngO);
2939 Py_CLEAR(Sq3TraceEF_lngO);
2940 Py_CLEAR(Sq3TxnE_lngO);
2941 Py_CLEAR(Sq3TypeE_lngO);
2942 Py_CLEAR(Sq3VtabE_lngO);
2943
2944 // END-EnumClear - created by 'py_MqS.tcl -i NHI1_HOME/theSq3Lite/c/gen/c_sq3lite.meta' - DO NOT change
2945 // BEGIN-ClassClear - created by 'py_MqS.tcl -i NHI1_HOME/theSq3Lite/c/gen/c_sq3lite.meta' - DO NOT change
2946
2947 Py_CLEAR(Sq3LiteC_MK_NULL);
2948 Py_CLEAR(Sq3ValueC_MK_NULL);
2949 Py_CLEAR(Sq3StmtC_MK_NULL);
2950 Py_CLEAR(Sq3BlobC_MK_NULL);
2951 Py_CLEAR(Sq3FileC_MK_NULL);
2952
2953 // END-ClassClear - created by 'py_MqS.tcl -i NHI1_HOME/theSq3Lite/c/gen/c_sq3lite.meta' - DO NOT change
2954 return 0;
2955}
2956
2957static void
2958NS(sSq3LiteFree)(void *module)
2959{
2960 NS(sSq3LiteClear)((PyObject *)module);
2961}
2962
2963static int
2964NS(sSq3LiteExec)(PyObject *module)
2965{
2966 int ret;
2967 Sq3Setup();
2969
2970 NS(sSq3LiteStateS) *state = NS(sSq3LiteGetState)(module);
2971 state->mkrt = MK_RT_PTR;
2972
2973 PyObject *mainM = PyImport_AddModule("__main__");
2974
2975 PyObject *mkM = PyImport_ImportModule("pymkkernel");
2976 LngErrorCheckN(mkM);
2977 ret = PyObject_SetAttrString(mainM,"pymkkernel",mkM);
2978 OtErrorCheckLng(ret);
2979 Py_CLEAR(mkM);
2980
2981 // BEGIN-CLASS-DEF - created by 'py_MqS.tcl -i NHI1_HOME/theSq3Lite/c/gen/c_sq3lite.meta' - DO NOT change
2982
2983 OtErrorCheckLng( NS(pSq3LiteC_Init) (MK_RT_CALL module) ) ;
2984 OtErrorCheckLng( NS(pSq3ValueC_Init) (MK_RT_CALL module) ) ;
2985 OtErrorCheckLng( NS(pSq3StmtC_Init) (MK_RT_CALL module) ) ;
2986 OtErrorCheckLng( NS(pSq3BlobC_Init) (MK_RT_CALL module) ) ;
2987 OtErrorCheckLng( NS(pSq3FileC_Init) (MK_RT_CALL module) ) ;
2988
2989 // END-CLASS-DEF - created by 'py_MqS.tcl -i NHI1_HOME/theSq3Lite/c/gen/c_sq3lite.meta' - DO NOT change
2990
2991 // init NULL object… on EVERY thread
2992 //NS(inMain) = false;
2993
2994 // init ENUM
2995 MK_STR enumCode =
2996 "from enum import IntEnum, IntFlag\n"
2997
2998 // BEGIN-EnumCode - created by 'py_MqS.tcl -i NHI1_HOME/theSq3Lite/c/gen/c_sq3lite.meta' - DO NOT change
2999
3000 "class Sq3AccessE(IntEnum):\n"
3001 " EXISTS = 0\n"
3002 " READWRITE = 1\n"
3003 " READ = 2\n"
3004
3005 "class Sq3AuthActionE(IntEnum):\n"
3006 " CREATE_INDEX = 1\n"
3007 " CREATE_TABLE = 2\n"
3008 " CREATE_TEMP_INDEX = 3\n"
3009 " CREATE_TEMP_TABLE = 4\n"
3010 " CREATE_TEMP_TRIGGER = 5\n"
3011 " CREATE_TEMP_VIEW = 6\n"
3012 " CREATE_TRIGGER = 7\n"
3013 " CREATE_VIEW = 8\n"
3014 " DELETE = 9\n"
3015 " DROP_INDEX = 10\n"
3016 " DROP_TABLE = 11\n"
3017 " DROP_TEMP_INDEX = 12\n"
3018 " DROP_TEMP_TABLE = 13\n"
3019 " DROP_TEMP_TRIGGER = 14\n"
3020 " DROP_TEMP_VIEW = 15\n"
3021 " DROP_TRIGGER = 16\n"
3022 " DROP_VIEW = 17\n"
3023 " INSERT = 18\n"
3024 " PRAGMA = 19\n"
3025 " READ = 20\n"
3026 " SELECT = 21\n"
3027 " TRANSACTION = 22\n"
3028 " UPDATE = 23\n"
3029 " ATTACH = 24\n"
3030 " DETACH = 25\n"
3031 " ALTER_TABLE = 26\n"
3032 " REINDEX = 27\n"
3033 " ANALYZE = 28\n"
3034 " CREATE_VTABLE = 29\n"
3035 " DROP_VTABLE = 30\n"
3036 " FUNCTION = 31\n"
3037 " SAVEPOINT = 32\n"
3038 " COPY = 0\n"
3039 " RECURSIVE = 33\n"
3040
3041 "class Sq3AuthReturnE(IntEnum):\n"
3042 " OK = 0\n"
3043 " DENY = 1\n"
3044 " IGNORE = 2\n"
3045
3046 "class Sq3ChangeSetConflictE(IntEnum):\n"
3047 " OMIT = 0\n"
3048 " REPLACE = 1\n"
3049 " ABORT = 2\n"
3050
3051 "class Sq3ChangesetE(IntEnum):\n"
3052 " DATA = 1\n"
3053 " NOTFOUND = 2\n"
3054 " CONFLICT = 3\n"
3055 " CONSTRAINT = 4\n"
3056 " FOREIGN_KEY = 5\n"
3057
3058 "class Sq3CheckpointE(IntEnum):\n"
3059 " PASSIVE = 0\n"
3060 " FULL = 1\n"
3061 " RESTART = 2\n"
3062 " TRUNCATE = 3\n"
3063
3064 "class Sq3ConfigE(IntEnum):\n"
3065 " SINGLETHREAD = 1\n"
3066 " MULTITHREAD = 2\n"
3067 " SERIALIZED = 3\n"
3068 " MALLOC = 4\n"
3069 " GETMALLOC = 5\n"
3070 " SCRATCH = 6\n"
3071 " PAGECACHE = 7\n"
3072 " HEAP = 8\n"
3073 " MEMSTATUS = 9\n"
3074 " MUTEX = 10\n"
3075 " GETMUTEX = 11\n"
3076 " LOOKASIDE = 13\n"
3077 " PCACHE = 14\n"
3078 " GETPCACHE = 15\n"
3079 " LOG = 16\n"
3080 " URI = 17\n"
3081 " PCACHE2 = 18\n"
3082 " GETPCACHE2 = 19\n"
3083 " COVERING_INDEX_SCAN = 20\n"
3084 " SQLLOG = 21\n"
3085 " MMAP_SIZE = 22\n"
3086 " WIN32_HEAPSIZE = 23\n"
3087 " PCACHE_HDRSZ = 24\n"
3088 " PMASZ = 25\n"
3089 " STMTJRNL_SPILL = 26\n"
3090 " SMALL_MALLOC = 27\n"
3091 " SORTERREF_SIZE = 28\n"
3092 " MEMDB_MAXSIZE = 29\n"
3093
3094 "class Sq3ConflictResolutionE(IntEnum):\n"
3095 " ROLLBACK = 1\n"
3096 " FAIL = 3\n"
3097 " REPLACE = 5\n"
3098
3099 "class Sq3DbConfigE(IntEnum):\n"
3100 " MAINDBNAME = 1000\n"
3101 " LOOKASIDE = 1001\n"
3102 " ENABLE_FKEY = 1002\n"
3103 " ENABLE_TRIGGER = 1003\n"
3104 " ENABLE_FTS3_TOKENIZER = 1004\n"
3105 " ENABLE_LOAD_EXTENSION = 1005\n"
3106 " NO_CKPT_ON_CLOSE = 1006\n"
3107 " ENABLE_QPSG = 1007\n"
3108 " TRIGGER_EQP = 1008\n"
3109 " RESET_DATABASE = 1009\n"
3110 " DEFENSIVE = 1010\n"
3111 " WRITABLE_SCHEMA = 1011\n"
3112 " LEGACY_ALTER_TABLE = 1012\n"
3113 " DQS_DML = 1013\n"
3114 " DQS_DDL = 1014\n"
3115 " ENABLE_VIEW = 1015\n"
3116 " LEGACY_FILE_FORMAT = 1016\n"
3117 " TRUSTED_SCHEMA = 1017\n"
3118 " STMT_SCANSTATUS = 1018\n"
3119 " REVERSE_SCANORDER = 1019\n"
3120 " MAX = 1019\n"
3121
3122 "class Sq3DbStatusE(IntEnum):\n"
3123 " LOOKASIDE_USED = 0\n"
3124 " CACHE_USED = 1\n"
3125 " SCHEMA_USED = 2\n"
3126 " STMT_USED = 3\n"
3127 " LOOKASIDE_HIT = 4\n"
3128 " LOOKASIDE_MISS_SIZE = 5\n"
3129 " LOOKASIDE_MISS_FULL = 6\n"
3130 " CACHE_HIT = 7\n"
3131 " CACHE_MISS = 8\n"
3132 " CACHE_WRITE = 9\n"
3133 " DEFERRED_FKS = 10\n"
3134 " CACHE_USED_SHARED = 11\n"
3135 " CACHE_SPILL = 12\n"
3136 " MAX = 12\n"
3137
3138 "class Sq3DeSerializeEF(IntFlag):\n"
3139 " NO = 0\n"
3140 " FREEONCLOSE = 1\n"
3141 " RESIZEABLE = 2\n"
3142 " READONLY = 4\n"
3143
3144 "class Sq3ErrorE(IntEnum):\n"
3145 " OK = 0\n"
3146 " ERROR = 1\n"
3147 " INTERNAL = 2\n"
3148 " PERM = 3\n"
3149 " ABORT = 4\n"
3150 " BUSY = 5\n"
3151 " LOCKED = 6\n"
3152 " NOMEM = 7\n"
3153 " READONLY = 8\n"
3154 " INTERRUPT = 9\n"
3155 " IOERR = 10\n"
3156 " CORRUPT = 11\n"
3157 " NOTFOUND = 12\n"
3158 " FULL = 13\n"
3159 " CANTOPEN = 14\n"
3160 " PROTOCOL = 15\n"
3161 " EMPTY = 16\n"
3162 " SCHEMA = 17\n"
3163 " TOOBIG = 18\n"
3164 " CONSTRAINT = 19\n"
3165 " MISMATCH = 20\n"
3166 " MISUSE = 21\n"
3167 " NOLFS = 22\n"
3168 " AUTH = 23\n"
3169 " FORMAT = 24\n"
3170 " RANGE = 25\n"
3171 " NOTADB = 26\n"
3172 " NOTICE = 27\n"
3173 " WARNING = 28\n"
3174 " ROW = 100\n"
3175 " DONE = 101\n"
3176
3177 "class Sq3ExtendetResultCodesE(IntEnum):\n"
3178 " OK = 0\n"
3179 " ERROR = 1\n"
3180 " INTERNAL = 2\n"
3181 " PERM = 3\n"
3182 " ABORT = 4\n"
3183 " BUSY = 5\n"
3184 " LOCKED = 6\n"
3185 " NOMEM = 7\n"
3186 " READONLY = 8\n"
3187 " INTERRUPT = 9\n"
3188 " IOERR = 10\n"
3189 " CORRUPT = 11\n"
3190 " NOTFOUND = 12\n"
3191 " FULL = 13\n"
3192 " CANTOPEN = 14\n"
3193 " PROTOCOL = 15\n"
3194 " EMPTY = 16\n"
3195 " SCHEMA = 17\n"
3196 " TOOBIG = 18\n"
3197 " CONSTRAINT = 19\n"
3198 " MISMATCH = 20\n"
3199 " MISUSE = 21\n"
3200 " NOLFS = 22\n"
3201 " AUTH = 23\n"
3202 " FORMAT = 24\n"
3203 " RANGE = 25\n"
3204 " NOTADB = 26\n"
3205 " NOTICE = 27\n"
3206 " WARNING = 28\n"
3207 " ROW = 100\n"
3208 " DONE = 101\n"
3209 " ERROR_MISSING_COLLSEQ = 257\n"
3210 " ERROR_RETRY = 513\n"
3211 " ERROR_SNAPSHOT = 769\n"
3212 " IOERR_READ = 266\n"
3213 " IOERR_SHORT_READ = 522\n"
3214 " IOERR_WRITE = 778\n"
3215 " IOERR_FSYNC = 1034\n"
3216 " IOERR_DIR_FSYNC = 1290\n"
3217 " IOERR_TRUNCATE = 1546\n"
3218 " IOERR_FSTAT = 1802\n"
3219 " IOERR_UNLOCK = 2058\n"
3220 " IOERR_RDLOCK = 2314\n"
3221 " IOERR_DELETE = 2570\n"
3222 " IOERR_BLOCKED = 2826\n"
3223 " IOERR_NOMEM = 3082\n"
3224 " IOERR_ACCESS = 3338\n"
3225 " IOERR_CHECKRESERVEDLOCK = 3594\n"
3226 " IOERR_LOCK = 3850\n"
3227 " IOERR_CLOSE = 4106\n"
3228 " IOERR_DIR_CLOSE = 4362\n"
3229 " IOERR_SHMOPEN = 4618\n"
3230 " IOERR_SHMSIZE = 4874\n"
3231 " IOERR_SHMLOCK = 5130\n"
3232 " IOERR_SHMMAP = 5386\n"
3233 " IOERR_SEEK = 5642\n"
3234 " IOERR_DELETE_NOENT = 5898\n"
3235 " IOERR_MMAP = 6154\n"
3236 " IOERR_GETTEMPPATH = 6410\n"
3237 " IOERR_CONVPATH = 6666\n"
3238 " IOERR_VNODE = 6922\n"
3239 " IOERR_AUTH = 7178\n"
3240 " IOERR_BEGIN_ATOMIC = 7434\n"
3241 " IOERR_COMMIT_ATOMIC = 7690\n"
3242 " IOERR_ROLLBACK_ATOMIC = 7946\n"
3243 " IOERR_DATA = 8202\n"
3244 " IOERR_CORRUPTFS = 8458\n"
3245 " IOERR_IN_PAGE = 8714\n"
3246 " LOCKED_SHAREDCACHE = 262\n"
3247 " LOCKED_VTAB = 518\n"
3248 " BUSY_RECOVERY = 261\n"
3249 " BUSY_SNAPSHOT = 517\n"
3250 " BUSY_TIMEOUT = 773\n"
3251 " CANTOPEN_NOTEMPDIR = 270\n"
3252 " CANTOPEN_ISDIR = 526\n"
3253 " CANTOPEN_FULLPATH = 782\n"
3254 " CANTOPEN_CONVPATH = 1038\n"
3255 " CANTOPEN_DIRTYWAL = 1294\n"
3256 " CANTOPEN_SYMLINK = 1550\n"
3257 " CORRUPT_VTAB = 267\n"
3258 " CORRUPT_SEQUENCE = 523\n"
3259 " CORRUPT_INDEX = 779\n"
3260 " READONLY_RECOVERY = 264\n"
3261 " READONLY_CANTLOCK = 520\n"
3262 " READONLY_ROLLBACK = 776\n"
3263 " READONLY_DBMOVED = 1032\n"
3264 " READONLY_CANTINIT = 1288\n"
3265 " READONLY_DIRECTORY = 1544\n"
3266 " ABORT_ROLLBACK = 516\n"
3267 " CONSTRAINT_CHECK = 275\n"
3268 " CONSTRAINT_COMMITHOOK = 531\n"
3269 " CONSTRAINT_FOREIGNKEY = 787\n"
3270 " CONSTRAINT_FUNCTION = 1043\n"
3271 " CONSTRAINT_NOTNULL = 1299\n"
3272 " CONSTRAINT_PRIMARYKEY = 1555\n"
3273 " CONSTRAINT_TRIGGER = 1811\n"
3274 " CONSTRAINT_UNIQUE = 2067\n"
3275 " CONSTRAINT_VTAB = 2323\n"
3276 " CONSTRAINT_ROWID = 2579\n"
3277 " CONSTRAINT_PINNED = 2835\n"
3278 " CONSTRAINT_DATATYPE = 3091\n"
3279 " NOTICE_RECOVER_WAL = 283\n"
3280 " NOTICE_RECOVER_ROLLBACK = 539\n"
3281 " NOTICE_RBU = 795\n"
3282 " WARNING_AUTOINDEX = 284\n"
3283 " AUTH_USER = 279\n"
3284 " OK_LOAD_PERMANENTLY = 256\n"
3285 " OK_SYMLINK = 512\n"
3286
3287 "class Sq3FcntlE(IntEnum):\n"
3288 " LOCKSTATE = 1\n"
3289 " GET_LOCKPROXYFILE = 2\n"
3290 " SET_LOCKPROXYFILE = 3\n"
3291 " LAST_ERRNO = 4\n"
3292 " SIZE_HINT = 5\n"
3293 " CHUNK_SIZE = 6\n"
3294 " FILE_POINTER = 7\n"
3295 " SYNC_OMITTED = 8\n"
3296 " WIN32_AV_RETRY = 9\n"
3297 " PERSIST_WAL = 10\n"
3298 " OVERWRITE = 11\n"
3299 " VFSNAME = 12\n"
3300 " POWERSAFE_OVERWRITE = 13\n"
3301 " PRAGMA = 14\n"
3302 " BUSYHANDLER = 15\n"
3303 " TEMPFILENAME = 16\n"
3304 " MMAP_SIZE = 18\n"
3305 " TRACE = 19\n"
3306 " HAS_MOVED = 20\n"
3307 " SYNC = 21\n"
3308 " COMMIT_PHASETWO = 22\n"
3309 " WIN32_SET_HANDLE = 23\n"
3310 " WAL_BLOCK = 24\n"
3311 " ZIPVFS = 25\n"
3312 " RBU = 26\n"
3313 " VFS_POINTER = 27\n"
3314 " JOURNAL_POINTER = 28\n"
3315 " WIN32_GET_HANDLE = 29\n"
3316 " PDB = 30\n"
3317 " BEGIN_ATOMIC_WRITE = 31\n"
3318 " COMMIT_ATOMIC_WRITE = 32\n"
3319 " ROLLBACK_ATOMIC_WRITE = 33\n"
3320 " LOCK_TIMEOUT = 34\n"
3321 " DATA_VERSION = 35\n"
3322 " SIZE_LIMIT = 36\n"
3323 " CKPT_DONE = 37\n"
3324 " RESERVE_BYTES = 38\n"
3325 " CKPT_START = 39\n"
3326 " EXTERNAL_READER = 40\n"
3327 " CKSM_FILE = 41\n"
3328 " RESET_CACHE = 42\n"
3329
3330 "class Sq3FunctionEF(IntFlag):\n"
3331 " DETERMINISTIC = 2048\n"
3332 " DIRECTONLY = 524288\n"
3333 " SUBTYPE = 1048576\n"
3334 " INNOCUOUS = 2097152\n"
3335 " RESULT_SUBTYPE = 16777216\n"
3336
3337 "class Sq3IndexConstraintEF(IntFlag):\n"
3338 " EQ = 2\n"
3339 " GT = 4\n"
3340 " LE = 8\n"
3341 " LT = 16\n"
3342 " GE = 32\n"
3343 " MATCH = 64\n"
3344 " LIKE = 65\n"
3345 " GLOB = 66\n"
3346 " REGEXP = 67\n"
3347 " NE = 68\n"
3348 " ISNOT = 69\n"
3349 " ISNOTNULL = 70\n"
3350 " ISNULL = 71\n"
3351 " IS = 72\n"
3352 " LIMIT = 73\n"
3353 " OFFSET = 74\n"
3354 " FUNCTION = 150\n"
3355
3356 "class Sq3IoCapEF(IntFlag):\n"
3357 " ATOMIC = 1\n"
3358 " ATOMIC512 = 2\n"
3359 " ATOMIC1K = 4\n"
3360 " ATOMIC2K = 8\n"
3361 " ATOMIC4K = 16\n"
3362 " ATOMIC8K = 32\n"
3363 " ATOMIC16K = 64\n"
3364 " ATOMIC32K = 128\n"
3365 " ATOMIC64K = 256\n"
3366 " SAFE_APPEND = 512\n"
3367 " SEQUENTIAL = 1024\n"
3368 " UNDELETABLE_WHEN_OPEN = 2048\n"
3369 " POWERSAFE_OVERWRITE = 4096\n"
3370 " IMMUTABLE = 8192\n"
3371 " BATCH_ATOMIC = 16384\n"
3372
3373 "class Sq3LimitE(IntEnum):\n"
3374 " LENGTH = 0\n"
3375 " SQL_LENGTH = 1\n"
3376 " COLUMN = 2\n"
3377 " EXPR_DEPTH = 3\n"
3378 " COMPOUND_SELECT = 4\n"
3379 " VDBE_OP = 5\n"
3380 " FUNCTION_ARG = 6\n"
3381 " ATTACHED = 7\n"
3382 " LIKE_PATTERN_LENGTH = 8\n"
3383 " VARIABLE_NUMBER = 9\n"
3384 " TRIGGER_DEPTH = 10\n"
3385 " WORKER_THREADS = 11\n"
3386
3387 "class Sq3LockE(IntEnum):\n"
3388 " NONE = 0\n"
3389 " SHARED = 1\n"
3390 " RESERVED = 2\n"
3391 " PENDING = 3\n"
3392 " EXCLUSIVE = 4\n"
3393
3394 "class Sq3MutexE(IntEnum):\n"
3395 " FAST = 0\n"
3396 " RECURSIVE = 1\n"
3397 " STATIC_MAIN = 2\n"
3398 " STATIC_MEM = 3\n"
3399 " STATIC_MEM2 = 4\n"
3400 " STATIC_OPEN = 4\n"
3401 " STATIC_PRNG = 5\n"
3402 " STATIC_LRU = 6\n"
3403 " STATIC_LRU2 = 7\n"
3404 " STATIC_PMEM = 7\n"
3405 " STATIC_APP1 = 8\n"
3406 " STATIC_APP2 = 9\n"
3407 " STATIC_APP3 = 10\n"
3408 " STATIC_VFS1 = 11\n"
3409 " STATIC_VFS2 = 12\n"
3410 " STATIC_VFS3 = 13\n"
3411
3412 "class Sq3OpenEF(IntFlag):\n"
3413 " READONLY = 1\n"
3414 " READWRITE = 2\n"
3415 " CREATE = 4\n"
3416 " DELETEONCLOSE = 8\n"
3417 " EXCLUSIVE = 16\n"
3418 " AUTOPROXY = 32\n"
3419 " URI = 64\n"
3420 " MEMORY = 128\n"
3421 " MAIN_DB = 256\n"
3422 " TEMP_DB = 512\n"
3423 " TRANSIENT_DB = 1024\n"
3424 " MAIN_JOURNAL = 2048\n"
3425 " TEMP_JOURNAL = 4096\n"
3426 " SUBJOURNAL = 8192\n"
3427 " SUPER_JOURNAL = 16384\n"
3428 " NOMUTEX = 32768\n"
3429 " FULLMUTEX = 65536\n"
3430 " SHAREDCACHE = 131072\n"
3431 " PRIVATECACHE = 262144\n"
3432 " WAL = 524288\n"
3433 " NOFOLLOW = 16777216\n"
3434 " EXRESCODE = 33554432\n"
3435
3436 "class Sq3PrepareEF(IntFlag):\n"
3437 " NO = 0\n"
3438 " PERSISTENT = 1\n"
3439 " NORMALIZE = 2\n"
3440 " NO_VTAB = 4\n"
3441
3442 "class Sq3ScanStatE(IntEnum):\n"
3443 " NLOOP = 0\n"
3444 " NVISIT = 1\n"
3445 " EST = 2\n"
3446 " NAME = 3\n"
3447 " EXPLAIN = 4\n"
3448 " SELECTID = 5\n"
3449 " PARENTID = 6\n"
3450 " NCYCLE = 7\n"
3451
3452 "class Sq3SerializeE(IntEnum):\n"
3453 " NO = 0\n"
3454 " NOCOPY = 1\n"
3455
3456 "class Sq3SessionObjConfigE(IntEnum):\n"
3457 " SIZE = 1\n"
3458 " ROWID = 2\n"
3459
3460 "class Sq3ShmLockE(IntEnum):\n"
3461 " UNLOCK = 1\n"
3462 " LOCK = 2\n"
3463 " SHARED = 4\n"
3464 " EXCLUSIVE = 8\n"
3465
3466 "class Sq3StatusE(IntEnum):\n"
3467 " MEMORY_USED = 0\n"
3468 " PAGECACHE_USED = 1\n"
3469 " PAGECACHE_OVERFLOW = 2\n"
3470 " SCRATCH_USED = 3\n"
3471 " SCRATCH_OVERFLOW = 4\n"
3472 " MALLOC_SIZE = 5\n"
3473 " PARSER_STACK = 6\n"
3474 " PAGECACHE_SIZE = 7\n"
3475 " SCRATCH_SIZE = 8\n"
3476 " MALLOC_COUNT = 9\n"
3477
3478 "class Sq3StmtStatusE(IntEnum):\n"
3479 " FULLSCAN_STEP = 1\n"
3480 " SORT = 2\n"
3481 " AUTOINDEX = 3\n"
3482 " VM_STEP = 4\n"
3483 " REPREPARE = 5\n"
3484 " RUN = 6\n"
3485 " FILTER_MISS = 7\n"
3486 " FILTER_HIT = 8\n"
3487 " MEMUSED = 99\n"
3488
3489 "class Sq3SyncEF(IntFlag):\n"
3490 " NORMAL = 2\n"
3491 " FULL = 3\n"
3492 " DATAONLY = 16\n"
3493
3494 "class Sq3TestCtrlE(IntEnum):\n"
3495 " FIRST = 5\n"
3496 " PRNG_SAVE = 5\n"
3497 " PRNG_RESTORE = 6\n"
3498 " PRNG_RESET = 7\n"
3499 " FK_NO_ACTION = 7\n"
3500 " BITVEC_TEST = 8\n"
3501 " FAULT_INSTALL = 9\n"
3502 " BENIGN_MALLOC_HOOKS = 10\n"
3503 " PENDING_BYTE = 11\n"
3504 " ASSERT = 12\n"
3505 " ALWAYS = 13\n"
3506 " RESERVE = 14\n"
3507 " OPTIMIZATIONS = 15\n"
3508 " ISKEYWORD = 16\n"
3509 " SCRATCHMALLOC = 17\n"
3510 " INTERNAL_FUNCTIONS = 17\n"
3511 " LOCALTIME_FAULT = 18\n"
3512 " EXPLAIN_STMT = 19\n"
3513 " ONCE_RESET_THRESHOLD = 19\n"
3514 " NEVER_CORRUPT = 20\n"
3515 " VDBE_COVERAGE = 21\n"
3516 " BYTEORDER = 22\n"
3517 " ISINIT = 23\n"
3518 " SORTER_MMAP = 24\n"
3519 " IMPOSTER = 25\n"
3520 " PARSER_COVERAGE = 26\n"
3521 " RESULT_INTREAL = 27\n"
3522 " PRNG_SEED = 28\n"
3523 " EXTRA_SCHEMA_CHECKS = 29\n"
3524 " SEEK_COUNT = 30\n"
3525 " TRACEFLAGS = 31\n"
3526 " TUNE = 32\n"
3527 " LOGEST = 33\n"
3528 " USELONGDOUBLE = 34\n"
3529 " LAST = 34\n"
3530
3531 "class Sq3TextE(IntEnum):\n"
3532 " UTF8 = 1\n"
3533 " UTF16LE = 2\n"
3534 " UTF16BE = 3\n"
3535 " UTF16 = 4\n"
3536 " ANY = 5\n"
3537 " UTF16_ALIGNED = 8\n"
3538
3539 "class Sq3TraceEF(IntFlag):\n"
3540 " STMT = 1\n"
3541 " PROFILE = 2\n"
3542 " ROW = 4\n"
3543 " CLOSE = 8\n"
3544
3545 "class Sq3TxnE(IntEnum):\n"
3546 " NONE = 0\n"
3547 " READ = 1\n"
3548 " WRITE = 2\n"
3549
3550 "class Sq3TypeE(IntEnum):\n"
3551 " INTEGER = 1\n"
3552 " FLOAT = 2\n"
3553 " BLOB = 4\n"
3554 " NULL = 5\n"
3555 " TEXT = 3\n"
3556
3557 "class Sq3VtabE(IntEnum):\n"
3558 " CONSTRAINT_SUPPORT = 1\n"
3559 " INNOCUOUS = 2\n"
3560 " DIRECTONLY = 3\n"
3561 " USES_ALL_SCHEMAS = 4\n"
3562
3563 // END-EnumCode - created by 'py_MqS.tcl -i NHI1_HOME/theSq3Lite/c/gen/c_sq3lite.meta' - DO NOT change
3564 ;
3565
3566 PyObject *myD, *mainD, *tmpO;
3567 mainD = PyModule_GetDict(mainM);
3568 myD = PyModule_GetDict(module);
3569 tmpO = PyRun_String(enumCode, Py_file_input, mainD, myD);
3570 LngErrorCheckN(tmpO);
3571 Py_CLEAR(tmpO);
3572
3573 // BEGIN-EnumSet - created by 'py_MqS.tcl -i NHI1_HOME/theSq3Lite/c/gen/c_sq3lite.meta' - DO NOT change
3574
3575 Sq3AccessE_lngO = (PyTypeObject*) Py_NewRef(PyDict_GetItemString(myD,"Sq3AccessE"));
3576 Sq3AuthActionE_lngO = (PyTypeObject*) Py_NewRef(PyDict_GetItemString(myD,"Sq3AuthActionE"));
3577 Sq3AuthReturnE_lngO = (PyTypeObject*) Py_NewRef(PyDict_GetItemString(myD,"Sq3AuthReturnE"));
3578 Sq3ChangeSetConflictE_lngO = (PyTypeObject*) Py_NewRef(PyDict_GetItemString(myD,"Sq3ChangeSetConflictE"));
3579 Sq3ChangesetE_lngO = (PyTypeObject*) Py_NewRef(PyDict_GetItemString(myD,"Sq3ChangesetE"));
3580 Sq3CheckpointE_lngO = (PyTypeObject*) Py_NewRef(PyDict_GetItemString(myD,"Sq3CheckpointE"));
3581 Sq3ConfigE_lngO = (PyTypeObject*) Py_NewRef(PyDict_GetItemString(myD,"Sq3ConfigE"));
3582 Sq3ConflictResolutionE_lngO = (PyTypeObject*) Py_NewRef(PyDict_GetItemString(myD,"Sq3ConflictResolutionE"));
3583 Sq3DbConfigE_lngO = (PyTypeObject*) Py_NewRef(PyDict_GetItemString(myD,"Sq3DbConfigE"));
3584 Sq3DbStatusE_lngO = (PyTypeObject*) Py_NewRef(PyDict_GetItemString(myD,"Sq3DbStatusE"));
3585 Sq3DeSerializeEF_lngO = (PyTypeObject*) Py_NewRef(PyDict_GetItemString(myD,"Sq3DeSerializeEF"));
3586 Sq3ErrorE_lngO = (PyTypeObject*) Py_NewRef(PyDict_GetItemString(myD,"Sq3ErrorE"));
3587 Sq3ExtendetResultCodesE_lngO = (PyTypeObject*) Py_NewRef(PyDict_GetItemString(myD,"Sq3ExtendetResultCodesE"));
3588 Sq3FcntlE_lngO = (PyTypeObject*) Py_NewRef(PyDict_GetItemString(myD,"Sq3FcntlE"));
3589 Sq3FunctionEF_lngO = (PyTypeObject*) Py_NewRef(PyDict_GetItemString(myD,"Sq3FunctionEF"));
3590 Sq3IndexConstraintEF_lngO = (PyTypeObject*) Py_NewRef(PyDict_GetItemString(myD,"Sq3IndexConstraintEF"));
3591 Sq3IoCapEF_lngO = (PyTypeObject*) Py_NewRef(PyDict_GetItemString(myD,"Sq3IoCapEF"));
3592 Sq3LimitE_lngO = (PyTypeObject*) Py_NewRef(PyDict_GetItemString(myD,"Sq3LimitE"));
3593 Sq3LockE_lngO = (PyTypeObject*) Py_NewRef(PyDict_GetItemString(myD,"Sq3LockE"));
3594 Sq3MutexE_lngO = (PyTypeObject*) Py_NewRef(PyDict_GetItemString(myD,"Sq3MutexE"));
3595 Sq3OpenEF_lngO = (PyTypeObject*) Py_NewRef(PyDict_GetItemString(myD,"Sq3OpenEF"));
3596 Sq3PrepareEF_lngO = (PyTypeObject*) Py_NewRef(PyDict_GetItemString(myD,"Sq3PrepareEF"));
3597 Sq3ScanStatE_lngO = (PyTypeObject*) Py_NewRef(PyDict_GetItemString(myD,"Sq3ScanStatE"));
3598 Sq3SerializeE_lngO = (PyTypeObject*) Py_NewRef(PyDict_GetItemString(myD,"Sq3SerializeE"));
3599 Sq3SessionObjConfigE_lngO = (PyTypeObject*) Py_NewRef(PyDict_GetItemString(myD,"Sq3SessionObjConfigE"));
3600 Sq3ShmLockE_lngO = (PyTypeObject*) Py_NewRef(PyDict_GetItemString(myD,"Sq3ShmLockE"));
3601 Sq3StatusE_lngO = (PyTypeObject*) Py_NewRef(PyDict_GetItemString(myD,"Sq3StatusE"));
3602 Sq3StmtStatusE_lngO = (PyTypeObject*) Py_NewRef(PyDict_GetItemString(myD,"Sq3StmtStatusE"));
3603 Sq3SyncEF_lngO = (PyTypeObject*) Py_NewRef(PyDict_GetItemString(myD,"Sq3SyncEF"));
3604 Sq3TestCtrlE_lngO = (PyTypeObject*) Py_NewRef(PyDict_GetItemString(myD,"Sq3TestCtrlE"));
3605 Sq3TextE_lngO = (PyTypeObject*) Py_NewRef(PyDict_GetItemString(myD,"Sq3TextE"));
3606 Sq3TraceEF_lngO = (PyTypeObject*) Py_NewRef(PyDict_GetItemString(myD,"Sq3TraceEF"));
3607 Sq3TxnE_lngO = (PyTypeObject*) Py_NewRef(PyDict_GetItemString(myD,"Sq3TxnE"));
3608 Sq3TypeE_lngO = (PyTypeObject*) Py_NewRef(PyDict_GetItemString(myD,"Sq3TypeE"));
3609 Sq3VtabE_lngO = (PyTypeObject*) Py_NewRef(PyDict_GetItemString(myD,"Sq3VtabE"));
3610
3611 // END-EnumSet - created by 'py_MqS.tcl -i NHI1_HOME/theSq3Lite/c/gen/c_sq3lite.meta' - DO NOT change
3612
3613 return 0;
3614error:
3615 return -1;
3616}
3617
3618MK_UNUSED static PyModuleDef_Slot NS(sSq3LiteDefSlots)[] = {
3619 {Py_mod_exec, NS(sSq3LiteExec)},
3620 {Py_mod_multiple_interpreters, Py_MOD_PER_INTERPRETER_GIL_SUPPORTED},
3621 {0, NULL}
3622};
3623
3624static PyModuleDef NS(sSq3LiteDef) = {
3625 PyModuleDef_HEAD_INIT,
3626 .m_name = "pysq3lite",
3627 .m_doc = "python language binding for 'theSq3Lite'",
3628 .m_size = sizeof(NS(sSq3LiteStateS)),
3629 .m_methods = NS(sSq3LiteMethods),
3630 .m_slots = NS(sSq3LiteDefSlots),
3631 .m_traverse = NS(sSq3LiteTraverse), // garbage collection
3632 .m_clear = NS(sSq3LiteClear),
3633 .m_free = NS(sSq3LiteFree),
3634};
3635
3636// MARK_P
3642
3643PyMODINIT_FUNC
3645{
3646 // Multi-phase initialization
3647 return PyModuleDef_Init(&NS(sSq3LiteDef));
3648}
3649
3650// 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
LibSq3Lite_py.h - 17 Apr 2025 - aotto1968.
#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:37
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:58
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:82
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)
sq3_misc_check_lng.h - 08 Mar 2025 - aotto1968