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;
22#define Sq3CleanupTmpl()
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)"
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)"
255#define KeywordNameBUF_doc "MkBufferC KeywordNameBUF(num:int32)"
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)"
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)"
2561 SQ3_FILENAME arg0 = 0;
2597 SQ3_FILENAME arg0 = 0;
2658static PyMethodDef
NS(sSq3LiteMethods)[] = {
2681 {
"LockE_FromInt" , (PyCFunction)
NS(Sq3Lite_LockE_FromInt) , METH_O ,
LockE_FromInt_doc },
2693 {
"TextE_FromInt" , (PyCFunction)
NS(Sq3Lite_TextE_FromInt) , METH_O ,
TextE_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 },
2700 {
"AccessE_ToInt" , (PyCFunction)
NS(Sq3Lite_AccessE_ToInt) , METH_O ,
AccessE_ToInt_doc },
2712 {
"ConfigE_ToInt" , (PyCFunction)
NS(Sq3Lite_ConfigE_ToInt) , METH_O ,
ConfigE_ToInt_doc },
2722 {
"ErrorE_ToInt" , (PyCFunction)
NS(Sq3Lite_ErrorE_ToInt) , METH_O ,
ErrorE_ToInt_doc },
2726 {
"FcntlE_ToInt" , (PyCFunction)
NS(Sq3Lite_FcntlE_ToInt) , METH_O ,
FcntlE_ToInt_doc },
2732 {
"IoCapEF_ToInt" , (PyCFunction)
NS(Sq3Lite_IoCapEF_ToInt) , METH_O ,
IoCapEF_ToInt_doc },
2734 {
"LimitE_ToInt" , (PyCFunction)
NS(Sq3Lite_LimitE_ToInt) , METH_O ,
LimitE_ToInt_doc },
2736 {
"LockE_ToInt" , (PyCFunction)
NS(Sq3Lite_LockE_ToInt) , METH_O ,
LockE_ToInt_doc },
2738 {
"MutexE_ToInt" , (PyCFunction)
NS(Sq3Lite_MutexE_ToInt) , METH_O ,
MutexE_ToInt_doc },
2740 {
"OpenEF_ToInt" , (PyCFunction)
NS(Sq3Lite_OpenEF_ToInt) , METH_O ,
OpenEF_ToInt_doc },
2752 {
"StatusE_ToInt" , (PyCFunction)
NS(Sq3Lite_StatusE_ToInt) , METH_O ,
StatusE_ToInt_doc },
2756 {
"SyncEF_ToInt" , (PyCFunction)
NS(Sq3Lite_SyncEF_ToInt) , METH_O ,
SyncEF_ToInt_doc },
2760 {
"TextE_ToInt" , (PyCFunction)
NS(Sq3Lite_TextE_ToInt) , METH_O ,
TextE_ToInt_doc },
2762 {
"TraceEF_ToInt" , (PyCFunction)
NS(Sq3Lite_TraceEF_ToInt) , METH_O ,
TraceEF_ToInt_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 },
2768 {
"VtabE_ToInt" , (PyCFunction)
NS(Sq3Lite_VtabE_ToInt) , METH_O ,
VtabE_ToInt_doc },
2775 {
"Cleanup" , (PyCFunction)
NS(Sq3Lite_Cleanup) , METH_NOARGS ,
Cleanup_doc },
2778 {
"Complete" , (PyCFunction)
NS(Sq3Lite_Complete) , METH_O ,
Complete_doc },
2779 {
"ErrorCheckI" , (PyCFunction)
NS(Sq3Lite_ErrorCheckI) , METH_O ,
ErrorCheckI_doc },
2782 {
"FilenameWal" , (PyCFunction)
NS(Sq3Lite_FilenameWal) , METH_O ,
FilenameWal_doc },
2783 {
"FreeFilename" , (PyCFunction)
NS(Sq3Lite_FreeFilename) , METH_O ,
FreeFilename_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 },
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 },
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 },
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 },
2822 {NULL, NULL, 0, NULL}
2839}
NS(sSq3LiteStateS);
2842NS(sSq3LiteGetState)(PyObject *module)
2844 void *state = PyModule_GetState(module);
2845 assert(state != NULL);
2846 return (
NS(sSq3LiteStateS)*)state;
2850NS(sSq3LiteTraverse)(PyObject *module, visitproc visit,
void *arg)
2904NS(sSq3LiteClear)(PyObject *module)
2958NS(sSq3LiteFree)(
void *module)
2960 NS(sSq3LiteClear)((PyObject *)module);
2964NS(sSq3LiteExec)(PyObject *module)
2970 NS(sSq3LiteStateS) *state =
NS(sSq3LiteGetState)(module);
2973 PyObject *mainM = PyImport_AddModule(
"__main__");
2975 PyObject *mkM = PyImport_ImportModule(
"pymkkernel");
2977 ret = PyObject_SetAttrString(mainM,
"pymkkernel",mkM);
2996 "from enum import IntEnum, IntFlag\n"
3000 "class Sq3AccessE(IntEnum):\n"
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"
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"
3027 " TRANSACTION = 22\n"
3031 " ALTER_TABLE = 26\n"
3034 " CREATE_VTABLE = 29\n"
3035 " DROP_VTABLE = 30\n"
3041 "class Sq3AuthReturnE(IntEnum):\n"
3046 "class Sq3ChangeSetConflictE(IntEnum):\n"
3051 "class Sq3ChangesetE(IntEnum):\n"
3056 " FOREIGN_KEY = 5\n"
3058 "class Sq3CheckpointE(IntEnum):\n"
3064 "class Sq3ConfigE(IntEnum):\n"
3065 " SINGLETHREAD = 1\n"
3066 " MULTITHREAD = 2\n"
3082 " GETPCACHE2 = 19\n"
3083 " COVERING_INDEX_SCAN = 20\n"
3086 " WIN32_HEAPSIZE = 23\n"
3087 " PCACHE_HDRSZ = 24\n"
3089 " STMTJRNL_SPILL = 26\n"
3090 " SMALL_MALLOC = 27\n"
3091 " SORTERREF_SIZE = 28\n"
3092 " MEMDB_MAXSIZE = 29\n"
3094 "class Sq3ConflictResolutionE(IntEnum):\n"
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"
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"
3122 "class Sq3DbStatusE(IntEnum):\n"
3123 " LOOKASIDE_USED = 0\n"
3125 " SCHEMA_USED = 2\n"
3127 " LOOKASIDE_HIT = 4\n"
3128 " LOOKASIDE_MISS_SIZE = 5\n"
3129 " LOOKASIDE_MISS_FULL = 6\n"
3132 " CACHE_WRITE = 9\n"
3133 " DEFERRED_FKS = 10\n"
3134 " CACHE_USED_SHARED = 11\n"
3135 " CACHE_SPILL = 12\n"
3138 "class Sq3DeSerializeEF(IntFlag):\n"
3140 " FREEONCLOSE = 1\n"
3144 "class Sq3ErrorE(IntEnum):\n"
3164 " CONSTRAINT = 19\n"
3177 "class Sq3ExtendetResultCodesE(IntEnum):\n"
3197 " CONSTRAINT = 19\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"
3287 "class Sq3FcntlE(IntEnum):\n"
3289 " GET_LOCKPROXYFILE = 2\n"
3290 " SET_LOCKPROXYFILE = 3\n"
3294 " FILE_POINTER = 7\n"
3295 " SYNC_OMITTED = 8\n"
3296 " WIN32_AV_RETRY = 9\n"
3297 " PERSIST_WAL = 10\n"
3300 " POWERSAFE_OVERWRITE = 13\n"
3302 " BUSYHANDLER = 15\n"
3303 " TEMPFILENAME = 16\n"
3308 " COMMIT_PHASETWO = 22\n"
3309 " WIN32_SET_HANDLE = 23\n"
3313 " VFS_POINTER = 27\n"
3314 " JOURNAL_POINTER = 28\n"
3315 " WIN32_GET_HANDLE = 29\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"
3324 " RESERVE_BYTES = 38\n"
3325 " CKPT_START = 39\n"
3326 " EXTERNAL_READER = 40\n"
3328 " RESET_CACHE = 42\n"
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"
3337 "class Sq3IndexConstraintEF(IntFlag):\n"
3356 "class Sq3IoCapEF(IntFlag):\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"
3373 "class Sq3LimitE(IntEnum):\n"
3378 " COMPOUND_SELECT = 4\n"
3380 " FUNCTION_ARG = 6\n"
3382 " LIKE_PATTERN_LENGTH = 8\n"
3383 " VARIABLE_NUMBER = 9\n"
3384 " TRIGGER_DEPTH = 10\n"
3385 " WORKER_THREADS = 11\n"
3387 "class Sq3LockE(IntEnum):\n"
3394 "class Sq3MutexE(IntEnum):\n"
3397 " STATIC_MAIN = 2\n"
3399 " STATIC_MEM2 = 4\n"
3400 " STATIC_OPEN = 4\n"
3401 " STATIC_PRNG = 5\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"
3412 "class Sq3OpenEF(IntFlag):\n"
3416 " DELETEONCLOSE = 8\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"
3433 " NOFOLLOW = 16777216\n"
3434 " EXRESCODE = 33554432\n"
3436 "class Sq3PrepareEF(IntFlag):\n"
3442 "class Sq3ScanStatE(IntEnum):\n"
3452 "class Sq3SerializeE(IntEnum):\n"
3456 "class Sq3SessionObjConfigE(IntEnum):\n"
3460 "class Sq3ShmLockE(IntEnum):\n"
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"
3478 "class Sq3StmtStatusE(IntEnum):\n"
3479 " FULLSCAN_STEP = 1\n"
3485 " FILTER_MISS = 7\n"
3489 "class Sq3SyncEF(IntFlag):\n"
3494 "class Sq3TestCtrlE(IntEnum):\n"
3497 " PRNG_RESTORE = 6\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"
3507 " OPTIMIZATIONS = 15\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"
3518 " SORTER_MMAP = 24\n"
3520 " PARSER_COVERAGE = 26\n"
3521 " RESULT_INTREAL = 27\n"
3523 " EXTRA_SCHEMA_CHECKS = 29\n"
3524 " SEEK_COUNT = 30\n"
3525 " TRACEFLAGS = 31\n"
3528 " USELONGDOUBLE = 34\n"
3531 "class Sq3TextE(IntEnum):\n"
3537 " UTF16_ALIGNED = 8\n"
3539 "class Sq3TraceEF(IntFlag):\n"
3545 "class Sq3TxnE(IntEnum):\n"
3550 "class Sq3TypeE(IntEnum):\n"
3557 "class Sq3VtabE(IntEnum):\n"
3558 " CONSTRAINT_SUPPORT = 1\n"
3561 " USES_ALL_SCHEMAS = 4\n"
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);
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"));
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"));
3583 Sq3DbConfigE_lngO = (PyTypeObject*) Py_NewRef(PyDict_GetItemString(myD,
"Sq3DbConfigE"));
3584 Sq3DbStatusE_lngO = (PyTypeObject*) Py_NewRef(PyDict_GetItemString(myD,
"Sq3DbStatusE"));
3586 Sq3ErrorE_lngO = (PyTypeObject*) Py_NewRef(PyDict_GetItemString(myD,
"Sq3ErrorE"));
3588 Sq3FcntlE_lngO = (PyTypeObject*) Py_NewRef(PyDict_GetItemString(myD,
"Sq3FcntlE"));
3589 Sq3FunctionEF_lngO = (PyTypeObject*) Py_NewRef(PyDict_GetItemString(myD,
"Sq3FunctionEF"));
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"));
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"));
3619 {Py_mod_exec,
NS(sSq3LiteExec)},
3620 {Py_mod_multiple_interpreters, Py_MOD_PER_INTERPRETER_GIL_SUPPORTED},
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),
3632 .m_clear =
NS(sSq3LiteClear),
3633 .m_free =
NS(sSq3LiteFree),
3647 return PyModuleDef_Init(&
NS(sSq3LiteDef));
#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_APPEND(var)
#define OT_retObj_SET_STR(nat)
#define OT_TMP_STR_OBJ(val)
#define OT_retObj_SET(val)
#define MkErrorC_Check(mng, PROC)
#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 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 StmtStatusE_ToInt_doc
#define DbStatusE_ToInt_doc
#define TraceEF_ToInt_doc
#define ExtendetResultCodesE_ToString_doc
#define TraceEF_FromInt_doc
#define ScanStatE_ToInt_doc
#define AccessE_FromInt_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 DbConfigE_ToString_doc
#define LimitE_FromInt_doc
#define ChangeSetConflictE_FromInt_doc
PyMODINIT_FUNC LibSq3Lite(void)
#define PrepareEF_ToString_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 DbConfigE_FromInt_doc
#define PrepareEF_ToInt_doc
#define ChangesetE_ToInt_doc
#define HardHeapLimit64_doc
#define SoftHeapLimit64_doc
#define FilenameDatabase_doc
#define DeSerializeEF_ToString_doc
#define SessionObjConfigE_ToInt_doc
#define ConfigE_ToString_doc
#define StmtStatusE_ToString_doc
#define AuthReturnE_FromInt_doc
#define StatusE_FromInt_doc
#define IoCapEF_FromInt_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 LimitE_ToString_doc
#define IndexConstraintEF_ToInt_doc
#define IndexConstraintEF_FromInt_doc
#define CheckpointE_FromInt_doc
#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 SerializeE_FromInt_doc
#define DbStatusE_ToString_doc
#define ShmLockE_ToString_doc
#define ConflictResolutionE_FromInt_doc
#define TextE_FromInt_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 ChangeSetConflictE_ToString_doc
#define IoCapEF_ToInt_doc
#define ChangesetE_FromInt_doc
#define SyncEF_ToString_doc
#define ReleaseMemory_doc
#define TestCtrlE_ToString_doc
#define DbConfigE_ToInt_doc
#define SyncEF_FromInt_doc
#define FcntlE_ToString_doc
#define OpenEF_FromInt_doc
#define ChangesetE_ToString_doc
#define FunctionEF_ToInt_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 TypeE_ToString_doc
#define LockE_FromInt_doc
#define VtabE_ToString_doc
LibSq3Lite_py.h - 17 Apr 2025 - aotto1968.
#define Sq3ScanStatE_lngO
#define Sq3AuthReturnE_lngO
#define Sq3ValueC_MK_NULL
#define Sq3ExtendetResultCodesE_lngO
#define OT_NEW_Sq3_enum_OBJ(typ, val)
#define Sq3SerializeE_lngO
#define Sq3DeSerializeEF_lngO
#define Sq3SessionObjConfigE_lngO
#define Sq3IndexConstraintEF_lngO
#define Sq3PrepareEF_lngO
#define Sq3ChangesetE_lngO
#define Sq3ChangeSetConflictE_lngO
#define Sq3StmtStatusE_lngO
#define Sq3TestCtrlE_lngO
#define Sq3AuthActionE_lngO
#define Sq3DbStatusE_lngO
#define Sq3ConflictResolutionE_lngO
#define Sq3DbConfigE_lngO
#define Sq3CheckpointE_lngO
#define Sq3FunctionEF_lngO
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.
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 …
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 …
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 …
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 …
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.
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