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
Sq3LiteC_Misc_PY_API

Sq3LiteC - various functions to perform misc operations … More...

+ Collaboration diagram for Sq3LiteC_Misc_PY_API:

Functions

static OT_ProcRet pysq3lite_Sq3LiteC_DbStatusBFL (Sq3LiteC_ARGS)
  Python: MkBufferListC sq3lite.DbStatusBFL(op:Sq3DbStatusE, resetFlg:bool) C-API
Database Connection Status …
 
static OT_ProcRet pysq3lite_Sq3LiteC_DbCacheflush (Sq3LiteC_ARGS)
  Python: sq3lite.DbCacheflush() C-API
Flush caches to disk mid-transaction …
 
static OT_ProcRet pysq3lite_Sq3LiteC_DbFilename (Sq3LiteC_ARGS)
  Python: string db.DbFilename(zDbName:string) C-API
Return The Filename For A Database Connection …
 
static OT_ProcRet pysq3lite_Sq3LiteC_DbName (Sq3LiteC_ARGS)
  Python: string db.DbName(N:int32) C-API
Return The Schema Name For A Database Connection …
 
static OT_ProcRet pysq3lite_Sq3LiteC_DbReadonly (Sq3LiteC_ARGS)
  Python: db.DbReadonly(zDbName:string) C-API
Determine if a database is read-only …
 
static OT_ProcRet pysq3lite_Sq3LiteC_DbReleaseMemory (Sq3LiteC_ARGS)
  Python: sq3lite.DbReleaseMemory() C-API
Free Memory Used By A Database Connection …
 
static OT_ProcRet pysq3lite_Sq3LiteC_Deserialize (Sq3LiteC_ARGS)
  Python: sq3lite.Deserialize(zSchema:string, pData:binary, mFlags:Sq3DeSerializeEF) C-API
Deserialize a database …
 
static OT_ProcRet pysq3lite_Sq3LiteC_DropModules (Sq3LiteC_ARGS)
  Python: sq3lite.DropModules(azKeepBfl:MkBufferListC) C-API
Remove Unnecessary Virtual Table Implementations …
 
MK_DEPRECATED static MK_UNUSED OT_ProcRet pysq3lite_Sq3LiteC_Log (Sq3LiteC_ARGS)
 
static OT_ProcRet pysq3lite_Sq3LiteC_OverloadFunction (Sq3LiteC_ARGS)
  Python: sq3lite.OverloadFunction(zFuncName:string, nArg:int32) C-API
Overload A Function For A Virtual Table …
 
static OT_ProcRet pysq3lite_Sq3LiteC_Serialize (Sq3LiteC_ARGS)
  Python: binary sq3lite.Serialize(zSchema:string, mFlags:Sq3SerializeE) C-API
Serialize a database …
 
static OT_ProcRet pysq3lite_Sq3LiteC_DbStatus (Sq3LiteC_ARGS)
  Python: {pCur:int32 pHiwtr:int32} sq3lite.DbStatus(op:Sq3DbStatusE, resetFlg:bool) C-API
Database Connection Status …
 
static OT_ProcRet pysq3lite_Sq3LiteC_TableColumnMetadata (Sq3LiteC_ARGS)
  Python: {pzDataType:string pzCollSeq:string pNotNull:int32 pPrimaryKey:int32 pAutoinc:int32} db.TableColumnMetadata(zDbName:string, zTableName:string, zColumnName:string) C-API
Extract Metadata About A Column Of A Table …
 

Detailed Description

Sq3LiteC - various functions to perform misc operations …

Function Documentation

◆ pysq3lite_Sq3LiteC_DbCacheflush()

static OT_ProcRet pysq3lite_Sq3LiteC_DbCacheflush ( Sq3LiteC_ARGS )
static

Python: sq3lite.DbCacheflush() C-API
Flush caches to disk mid-transaction …

Definition at line 611 of file Sq3LiteC_py.c.

611 {
617 goto end;
618 error:
620 end:
622}
#define OT_SETUP_NOARG(d)
#define OT_retObj_SET_Error
#define OT_retObj_SET_None
#define OT_retObj_RETURN
#define OT_CHECK_NOARGS
#define MkErrorC_Check(mng, PROC)
#define OT_SETUP_hdl
Definition Sq3LiteC_py.c:26
#define DbCacheflush_doc
static enum MkErrorE Sq3LiteDbCacheflush(SQ3_LITE sq3lite)
Flush caches to disk mid-transaction …

◆ pysq3lite_Sq3LiteC_DbFilename()

static OT_ProcRet pysq3lite_Sq3LiteC_DbFilename ( Sq3LiteC_ARGS )
static

Python: string db.DbFilename(zDbName:string) C-API
Return The Filename For A Database Connection …

Definition at line 625 of file Sq3LiteC_py.c.

625 {
628 MK_STRN zDbName = 0;
631 OT_retObj_SET_STR(Sq3LiteDbFilename (hdl, zDbName));
632 goto end;
633 error:
635 end:
637}
#define OT_SETUP_ONEARG(d)
#define OT_CHECK_REQUIRED(val)
#define OT_retObj_SET_STR(nat)
#define OT_CHECK_STRN(val)
#define DbFilename_doc
const MK_STRB * MK_STRN
static SQ3_FILENAME Sq3LiteDbFilename(SQ3_LITE db, MK_STRN zDbName)
Return The Filename For A Database Connection …

◆ pysq3lite_Sq3LiteC_DbName()

static OT_ProcRet pysq3lite_Sq3LiteC_DbName ( Sq3LiteC_ARGS )
static

Python: string db.DbName(N:int32) C-API
Return The Schema Name For A Database Connection …

Definition at line 640 of file Sq3LiteC_py.c.

640 {
643 MK_I32 N = 0;
647 goto end;
648 error:
650 end:
652}
#define OT_CHECK_NI4(val)
#define DbName_doc
signed int MK_I32
static MK_STRN Sq3LiteDbName(SQ3_LITE db, MK_I32 N)
Return The Schema Name For A Database Connection …

◆ pysq3lite_Sq3LiteC_DbReadonly()

static OT_ProcRet pysq3lite_Sq3LiteC_DbReadonly ( Sq3LiteC_ARGS )
static

Python: db.DbReadonly(zDbName:string) C-API
Determine if a database is read-only …

Definition at line 655 of file Sq3LiteC_py.c.

655 {
658 MK_STRN zDbName = 0;
661 MkErrorC_Check(hdl,Sq3LiteDbReadonly (hdl, zDbName));
663 goto end;
664 error:
666 end:
668}
#define DbReadonly_doc
static enum MkErrorE Sq3LiteDbReadonly(SQ3_LITE db, MK_STRN zDbName)
Determine if a database is read-only …

◆ pysq3lite_Sq3LiteC_DbReleaseMemory()

static OT_ProcRet pysq3lite_Sq3LiteC_DbReleaseMemory ( Sq3LiteC_ARGS )
static

Python: sq3lite.DbReleaseMemory() C-API
Free Memory Used By A Database Connection …

Definition at line 671 of file Sq3LiteC_py.c.

671 {
677 goto end;
678 error:
680 end:
682}
#define DbReleaseMemory_doc
static enum MkErrorE Sq3LiteDbReleaseMemory(SQ3_LITE sq3lite)
Free Memory Used By A Database Connection …

◆ pysq3lite_Sq3LiteC_DbStatus()

static OT_ProcRet pysq3lite_Sq3LiteC_DbStatus ( Sq3LiteC_ARGS )
static

Python: {pCur:int32 pHiwtr:int32} sq3lite.DbStatus(op:Sq3DbStatusE, resetFlg:bool) C-API
Database Connection Status …

Definition at line 763 of file Sq3LiteC_py.c.

763 {
766 enum Sq3DbStatusE op = 0;
768 MK_BOOL resetFlg = 0;
771 MK_I32 pCur;
772 MK_I32 pHiwtr;
773 MkErrorC_Check(hdl,Sq3LiteDbStatus (hdl, op, &pCur, &pHiwtr, resetFlg));
777 goto end;
778 error:
780 end:
782}
#define OT_CHECK_bool(val)
#define OT_SETUP_VARARGS(min, max, d)
#define OT_retObj_SET_List
#define OT_TMP_I32_OBJ(val)
#define OT_retObj_APPEND(var)
#define DbStatus_doc
bool MK_BOOL
static enum MkErrorE Sq3LiteDbStatus(SQ3_LITE sq3lite, enum Sq3DbStatusE op, MK_I32 *pCur, MK_I32 *pHiwtr, MK_BOOL resetFlg)
Database Connection Status …
Sq3DbStatusE
Status Parameters for database connections.
Definition Sq3Enum_sq3.h:82
#define OT_CHECK_ENUM(ename, val)

◆ pysq3lite_Sq3LiteC_DbStatusBFL()

static OT_ProcRet pysq3lite_Sq3LiteC_DbStatusBFL ( Sq3LiteC_ARGS )
static

Python: MkBufferListC sq3lite.DbStatusBFL(op:Sq3DbStatusE, resetFlg:bool) C-API
Database Connection Status …

Definition at line 590 of file Sq3LiteC_py.c.

590 {
593 enum Sq3DbStatusE op = 0;
595 MK_BOOL resetFlg = 0;
598 MK_BFL val_out;
599 MkErrorC_Check(hdl,Sq3LiteDbStatusBFL (hdl, op, &val_out, resetFlg));
600 OT_retObj_SET_BFL(val_out);
601 goto end;
602 error:
604 end:
606}
#define OT_retObj_SET_BFL(nat)
#define DbStatusBFL_doc
#define Sq3LiteDbStatusBFL(...)

◆ pysq3lite_Sq3LiteC_Deserialize()

static OT_ProcRet pysq3lite_Sq3LiteC_Deserialize ( Sq3LiteC_ARGS )
static

Python: sq3lite.Deserialize(zSchema:string, pData:binary, mFlags:Sq3DeSerializeEF) C-API
Deserialize a database …

Definition at line 685 of file Sq3LiteC_py.c.

685 {
688 MK_STRN zSchema = 0;
690 MkBinaryR pData = {0};
692 enum Sq3DeSerializeEF mFlags = 0;
695 MkErrorC_Check(hdl,Sq3LiteDeserialize (hdl, zSchema, pData, mFlags));
697 goto end;
698 error:
700 end:
702}
#define OT_CHECK__ME_REF_MkBinaryR(val)
#define Deserialize_doc
#define Sq3LiteDeserialize(...)
Sq3DeSerializeEF
Flags for sqlite3_deserialize()

◆ pysq3lite_Sq3LiteC_DropModules()

static OT_ProcRet pysq3lite_Sq3LiteC_DropModules ( Sq3LiteC_ARGS )
static

Python: sq3lite.DropModules(azKeepBfl:MkBufferListC) C-API
Remove Unnecessary Virtual Table Implementations …

Definition at line 705 of file Sq3LiteC_py.c.

705 {
708 MkBufferListCreateTLS_T(azKeepBfl,10);
711 MkErrorC_Check(hdl,Sq3LiteDropModules (hdl, azKeepBfl));
713 goto end;
714 error:
716 end:
718}
#define DropModules_doc
#define MkBufferListCreateTLS_T(name, num)
#define MK_NULL_NO
#define Sq3LiteDropModules(...)
#define OT_CHECK_BFL(val, nullB)

◆ pysq3lite_Sq3LiteC_Log()

MK_DEPRECATED static MK_UNUSED OT_ProcRet pysq3lite_Sq3LiteC_Log ( Sq3LiteC_ARGS )
static

Definition at line 722 of file Sq3LiteC_py.c.

#define OT_ERROR_LNG_RETURN

◆ pysq3lite_Sq3LiteC_OverloadFunction()

static OT_ProcRet pysq3lite_Sq3LiteC_OverloadFunction ( Sq3LiteC_ARGS )
static

Python: sq3lite.OverloadFunction(zFuncName:string, nArg:int32) C-API
Overload A Function For A Virtual Table …

Definition at line 725 of file Sq3LiteC_py.c.

725 {
728 MK_STRN zFuncName = 0;
730 MK_I32 nArg = 0;
733 MkErrorC_Check(hdl,Sq3LiteOverloadFunction (hdl, zFuncName, nArg));
735 goto end;
736 error:
738 end:
740}
#define OverloadFunction_doc
static enum MkErrorE Sq3LiteOverloadFunction(SQ3_LITE sq3lite, MK_STRN zFuncName, MK_I32 nArg)
Overload A Function For A Virtual Table …

◆ pysq3lite_Sq3LiteC_Serialize()

static OT_ProcRet pysq3lite_Sq3LiteC_Serialize ( Sq3LiteC_ARGS )
static

Python: binary sq3lite.Serialize(zSchema:string, mFlags:Sq3SerializeE) C-API
Serialize a database …

Definition at line 743 of file Sq3LiteC_py.c.

743 {
746 MK_STRN zSchema = 0;
748 enum Sq3SerializeE mFlags = 0;
751 MkBinaryR retVal = Sq3LiteSerialize (hdl, zSchema, mFlags);
753 goto end;
754 error:
756 end:
758}
#define OT_GET__ME_REF_MkBinaryR(b)
#define OT_retObj_SET(val)
#define Serialize_doc
static MkBinaryR Sq3LiteSerialize(SQ3_LITE sq3lite, MK_STRN zSchema, enum Sq3SerializeE mFlags)
Serialize a database …
Sq3SerializeE
Flags for sqlite3_serialize.

◆ pysq3lite_Sq3LiteC_TableColumnMetadata()

static OT_ProcRet pysq3lite_Sq3LiteC_TableColumnMetadata ( Sq3LiteC_ARGS )
static

Python: {pzDataType:string pzCollSeq:string pNotNull:int32 pPrimaryKey:int32 pAutoinc:int32} db.TableColumnMetadata(zDbName:string, zTableName:string, zColumnName:string) C-API
Extract Metadata About A Column Of A Table …

Definition at line 785 of file Sq3LiteC_py.c.

785 {
788 MK_STRN zDbName = 0;
790 MK_STRN zTableName = 0;
791 OT_CHECK_REQUIRED(OT_CHECK_STRN (zTableName))
792 MK_STRN zColumnName = 0;
793 OT_CHECK_REQUIRED(OT_CHECK_STRN (zColumnName))
795 MK_STRN pzDataType;
796 MK_STRN pzCollSeq;
797 MK_I32 pNotNull;
798 MK_I32 pPrimaryKey;
799 MK_I32 pAutoinc;
800 MkErrorC_Check(hdl,Sq3LiteTableColumnMetadata (hdl, zDbName, zTableName, zColumnName, &pzDataType, &pzCollSeq, &pNotNull, &pPrimaryKey, &pAutoinc));
802 OT_retObj_APPEND(OT_TMP_STR_OBJ(pzDataType));
805 OT_retObj_APPEND(OT_TMP_I32_OBJ(pPrimaryKey));
807 goto end;
808 error:
810 end:
812}
#define OT_TMP_STR_OBJ(val)
#define TableColumnMetadata_doc
static enum MkErrorE Sq3LiteTableColumnMetadata(SQ3_LITE db, MK_STRN zDbName, MK_STRN zTableName, MK_STRN zColumnName, MK_STRN *pzDataType, MK_STRN *pzCollSeq, MK_I32 *pNotNull, MK_I32 *pPrimaryKey, MK_I32 *pAutoinc)
Extract Metadata About A Column Of A Table …