theSq3Lite 10.0
Loading...
Searching...
No Matches
Sq3LiteC_Misc_TCL_API

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

+ Collaboration diagram for Sq3LiteC_Misc_TCL_API:

Functions

static OT_ProcRet tclsq3lite_Sq3LiteC_DbStatusBFL (Sq3LiteC_ARGS)
  Tcl: MkBufferListC [$sq3lite DbStatusBFL op:Sq3DbStatusE resetFlg:bool] C-API
Database Connection Status …
 
static OT_ProcRet tclsq3lite_Sq3LiteC_DbCacheflush (Sq3LiteC_ARGS)
  Tcl: $sq3lite DbCacheflush C-API
Flush caches to disk mid-transaction …
 
static OT_ProcRet tclsq3lite_Sq3LiteC_DbFilename (Sq3LiteC_ARGS)
  Tcl: string [$db DbFilename zDbName:string] C-API
Return The Filename For A Database Connection …
 
static OT_ProcRet tclsq3lite_Sq3LiteC_DbName (Sq3LiteC_ARGS)
  Tcl: string [$db DbName N:int32] C-API
Return The Schema Name For A Database Connection …
 
static OT_ProcRet tclsq3lite_Sq3LiteC_DbReadonly (Sq3LiteC_ARGS)
  Tcl: $db DbReadonly zDbName:string C-API
Determine if a database is read-only …
 
static OT_ProcRet tclsq3lite_Sq3LiteC_DbReleaseMemory (Sq3LiteC_ARGS)
  Tcl: $sq3lite DbReleaseMemory C-API
Free Memory Used By A Database Connection …
 
static OT_ProcRet tclsq3lite_Sq3LiteC_Deserialize (Sq3LiteC_ARGS)
  Tcl: $sq3lite Deserialize zSchema:string pData:binary mFlags:Sq3DeSerializeEF C-API
Deserialize a database …
 
static OT_ProcRet tclsq3lite_Sq3LiteC_DropModules (Sq3LiteC_ARGS)
  Tcl: $sq3lite DropModules azKeepBfl:MkBufferListC C-API
Remove Unnecessary Virtual Table Implementations …
 
MK_DEPRECATED static MK_UNUSED OT_ProcRet tclsq3lite_Sq3LiteC_Log (Sq3LiteC_ARGS)
 
static OT_ProcRet tclsq3lite_Sq3LiteC_OverloadFunction (Sq3LiteC_ARGS)
  Tcl: $sq3lite OverloadFunction zFuncName:string nArg:int32 C-API
Overload A Function For A Virtual Table …
 
static OT_ProcRet tclsq3lite_Sq3LiteC_Serialize (Sq3LiteC_ARGS)
  Tcl: binary [$sq3lite Serialize zSchema:string mFlags:Sq3SerializeE] C-API
Serialize a database …
 
static OT_ProcRet tclsq3lite_Sq3LiteC_DbStatus (Sq3LiteC_ARGS)
  Tcl: {pCur:int32 pHiwtr:int32} [$sq3lite DbStatus op:Sq3DbStatusE resetFlg:bool] C-API
Database Connection Status …
 
static OT_ProcRet tclsq3lite_Sq3LiteC_TableColumnMetadata (Sq3LiteC_ARGS)
  Tcl: {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

◆ tclsq3lite_Sq3LiteC_DbCacheflush()

static OT_ProcRet tclsq3lite_Sq3LiteC_DbCacheflush ( Sq3LiteC_ARGS )
static

Tcl: $sq3lite DbCacheflush C-API
Flush caches to disk mid-transaction …

Definition at line 622 of file Sq3LiteC_tcl.c.

622 {
628 goto end;
629 error:
631 end:
633}
#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
#define DbCacheflush_doc
static enum MkErrorE Sq3LiteDbCacheflush(SQ3_LITE sq3lite)
Flush caches to disk mid-transaction …

◆ tclsq3lite_Sq3LiteC_DbFilename()

static OT_ProcRet tclsq3lite_Sq3LiteC_DbFilename ( Sq3LiteC_ARGS )
static

Tcl: string [$db DbFilename zDbName:string] C-API
Return The Filename For A Database Connection …

Definition at line 636 of file Sq3LiteC_tcl.c.

636 {
639 MK_STRN zDbName = 0;
642 OT_retObj_SET_STR(Sq3LiteDbFilename (hdl, zDbName));
643 goto end;
644 error:
646 end:
648}
#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 …

◆ tclsq3lite_Sq3LiteC_DbName()

static OT_ProcRet tclsq3lite_Sq3LiteC_DbName ( Sq3LiteC_ARGS )
static

Tcl: string [$db DbName N:int32] C-API
Return The Schema Name For A Database Connection …

Definition at line 651 of file Sq3LiteC_tcl.c.

651 {
654 MK_I32 N = 0;
658 goto end;
659 error:
661 end:
663}
#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 …

◆ tclsq3lite_Sq3LiteC_DbReadonly()

static OT_ProcRet tclsq3lite_Sq3LiteC_DbReadonly ( Sq3LiteC_ARGS )
static

Tcl: $db DbReadonly zDbName:string C-API
Determine if a database is read-only …

Definition at line 666 of file Sq3LiteC_tcl.c.

666 {
669 MK_STRN zDbName = 0;
672 MkErrorC_Check(hdl,Sq3LiteDbReadonly (hdl, zDbName));
674 goto end;
675 error:
677 end:
679}
#define DbReadonly_doc
static enum MkErrorE Sq3LiteDbReadonly(SQ3_LITE db, MK_STRN zDbName)
Determine if a database is read-only …

◆ tclsq3lite_Sq3LiteC_DbReleaseMemory()

static OT_ProcRet tclsq3lite_Sq3LiteC_DbReleaseMemory ( Sq3LiteC_ARGS )
static

Tcl: $sq3lite DbReleaseMemory C-API
Free Memory Used By A Database Connection …

Definition at line 682 of file Sq3LiteC_tcl.c.

682 {
688 goto end;
689 error:
691 end:
693}
#define DbReleaseMemory_doc
static enum MkErrorE Sq3LiteDbReleaseMemory(SQ3_LITE sq3lite)
Free Memory Used By A Database Connection …

◆ tclsq3lite_Sq3LiteC_DbStatus()

static OT_ProcRet tclsq3lite_Sq3LiteC_DbStatus ( Sq3LiteC_ARGS )
static

Tcl: {pCur:int32 pHiwtr:int32} [$sq3lite DbStatus op:Sq3DbStatusE resetFlg:bool] C-API
Database Connection Status …

Definition at line 774 of file Sq3LiteC_tcl.c.

774 {
777 enum Sq3DbStatusE op = 0;
779 MK_BOOL resetFlg = 0;
782 MK_I32 pCur;
783 MK_I32 pHiwtr;
784 MkErrorC_Check(hdl,Sq3LiteDbStatus (hdl, op, &pCur, &pHiwtr, resetFlg));
788 goto end;
789 error:
791 end:
793}
#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_CHECK_ENUM(ename, 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:79

◆ tclsq3lite_Sq3LiteC_DbStatusBFL()

static OT_ProcRet tclsq3lite_Sq3LiteC_DbStatusBFL ( Sq3LiteC_ARGS )
static

Tcl: MkBufferListC [$sq3lite DbStatusBFL op:Sq3DbStatusE resetFlg:bool] C-API
Database Connection Status …

Definition at line 601 of file Sq3LiteC_tcl.c.

601 {
604 enum Sq3DbStatusE op = 0;
606 MK_BOOL resetFlg = 0;
609 MK_BFL val_out;
610 MkErrorC_Check(hdl,Sq3LiteDbStatusBFL (hdl, op, &val_out, resetFlg));
611 OT_retObj_SET_BFL(val_out);
612 goto end;
613 error:
615 end:
617}
#define OT_retObj_SET_BFL(nat)
#define DbStatusBFL_doc
#define Sq3LiteDbStatusBFL(...)

◆ tclsq3lite_Sq3LiteC_Deserialize()

static OT_ProcRet tclsq3lite_Sq3LiteC_Deserialize ( Sq3LiteC_ARGS )
static

Tcl: $sq3lite Deserialize zSchema:string pData:binary mFlags:Sq3DeSerializeEF C-API
Deserialize a database …

Definition at line 696 of file Sq3LiteC_tcl.c.

696 {
699 MK_STRN zSchema = 0;
701 MkBinaryR pData = {0};
703 enum Sq3DeSerializeEF mFlags = 0;
706 MkErrorC_Check(hdl,Sq3LiteDeserialize (hdl, zSchema, pData, mFlags));
708 goto end;
709 error:
711 end:
713}
#define OT_CHECK__ME_REF_MkBinaryR(val)
#define Deserialize_doc
#define Sq3LiteDeserialize(...)
Sq3DeSerializeEF
Flags for sqlite3_deserialize()

◆ tclsq3lite_Sq3LiteC_DropModules()

static OT_ProcRet tclsq3lite_Sq3LiteC_DropModules ( Sq3LiteC_ARGS )
static

Tcl: $sq3lite DropModules azKeepBfl:MkBufferListC C-API
Remove Unnecessary Virtual Table Implementations …

Definition at line 716 of file Sq3LiteC_tcl.c.

716 {
719 MkBufferListCreateTLS_T(azKeepBfl,10);
722 MkErrorC_Check(hdl,Sq3LiteDropModules (hdl, azKeepBfl));
724 goto end;
725 error:
727 end:
729}
#define DropModules_doc
#define MkBufferListCreateTLS_T(name, num)
#define MK_NULL_NO
#define Sq3LiteDropModules(...)
#define OT_CHECK_BFL(val, nullB)

◆ tclsq3lite_Sq3LiteC_Log()

MK_DEPRECATED static MK_UNUSED OT_ProcRet tclsq3lite_Sq3LiteC_Log ( Sq3LiteC_ARGS )
static

Definition at line 733 of file Sq3LiteC_tcl.c.

#define OT_ERROR_LNG_RETURN

◆ tclsq3lite_Sq3LiteC_OverloadFunction()

static OT_ProcRet tclsq3lite_Sq3LiteC_OverloadFunction ( Sq3LiteC_ARGS )
static

Tcl: $sq3lite OverloadFunction zFuncName:string nArg:int32 C-API
Overload A Function For A Virtual Table …

Definition at line 736 of file Sq3LiteC_tcl.c.

736 {
739 MK_STRN zFuncName = 0;
741 MK_I32 nArg = 0;
744 MkErrorC_Check(hdl,Sq3LiteOverloadFunction (hdl, zFuncName, nArg));
746 goto end;
747 error:
749 end:
751}
#define OverloadFunction_doc
static enum MkErrorE Sq3LiteOverloadFunction(SQ3_LITE sq3lite, MK_STRN zFuncName, MK_I32 nArg)
Overload A Function For A Virtual Table …

◆ tclsq3lite_Sq3LiteC_Serialize()

static OT_ProcRet tclsq3lite_Sq3LiteC_Serialize ( Sq3LiteC_ARGS )
static

Tcl: binary [$sq3lite Serialize zSchema:string mFlags:Sq3SerializeE] C-API
Serialize a database …

Definition at line 754 of file Sq3LiteC_tcl.c.

754 {
757 MK_STRN zSchema = 0;
759 enum Sq3SerializeE mFlags = 0;
762 MkBinaryR retVal = Sq3LiteSerialize (hdl, zSchema, mFlags);
764 goto end;
765 error:
767 end:
769}
#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.

◆ tclsq3lite_Sq3LiteC_TableColumnMetadata()

static OT_ProcRet tclsq3lite_Sq3LiteC_TableColumnMetadata ( Sq3LiteC_ARGS )
static

Tcl: {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 796 of file Sq3LiteC_tcl.c.

796 {
799 MK_STRN zDbName = 0;
801 MK_STRN zTableName = 0;
802 OT_CHECK_REQUIRED(OT_CHECK_STRN (zTableName))
803 MK_STRN zColumnName = 0;
804 OT_CHECK_REQUIRED(OT_CHECK_STRN (zColumnName))
806 MK_STRN pzDataType;
807 MK_STRN pzCollSeq;
808 MK_I32 pNotNull;
809 MK_I32 pPrimaryKey;
810 MK_I32 pAutoinc;
811 MkErrorC_Check(hdl,Sq3LiteTableColumnMetadata (hdl, zDbName, zTableName, zColumnName, &pzDataType, &pzCollSeq, &pNotNull, &pPrimaryKey, &pAutoinc));
813 OT_retObj_APPEND(OT_TMP_STR_OBJ(pzDataType));
816 OT_retObj_APPEND(OT_TMP_I32_OBJ(pPrimaryKey));
818 goto end;
819 error:
821 end:
823}
#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 …