23#ifndef PARSE_C_HEADER_TO_META
29 #define Sq3Fupu_Sq3StmtBindBlob64Hide_cb_ret void
30 #define Sq3Fupu_Sq3StmtBindBlob64Hide_cb_args MK_PTR arg0
36 #define Sq3Fupu_Sq3StmtBindBlobHide_cb_ret void
37 #define Sq3Fupu_Sq3StmtBindBlobHide_cb_args MK_PTR arg0
43 #define Sq3Fupu_Sq3StmtBindPointer_arg4_ret void
44 #define Sq3Fupu_Sq3StmtBindPointer_arg4_args MK_PTR arg0
50 #define Sq3Fupu_Sq3StmtBindText64Hide_cb_ret void
51 #define Sq3Fupu_Sq3StmtBindText64Hide_cb_args MK_PTR arg0
57 #define Sq3Fupu_Sq3StmtBindTextHide_cb_ret void
58 #define Sq3Fupu_Sq3StmtBindTextHide_cb_args MK_PTR arg0
68#ifndef PARSE_C_HEADER_TO_META
155 MK_STRN __retVal__L = sqlite3_bind_parameter_name(sq3stmt->
nat, arg1);
192 const struct sqlite3_value * arg2_hdl = arg2->
nat;
221#ifndef PARSE_C_HEADER_TO_META
228 return Sq3ValueC_ObjNew(sqlite3_column_value(sq3stmt->
nat, iCol));
236 return (
MK_BINN)sqlite3_column_blob(sq3stmt->
nat, iCol);
242 return sqlite3_column_bytes(sq3stmt->
nat, iCol);
248 return sqlite3_column_count(pStmt->
nat);
254 return sqlite3_column_double(sq3stmt->
nat, iCol);
260 return sqlite3_column_int(sq3stmt->
nat, iCol);
266 return sqlite3_column_int64(sq3stmt->
nat, iCol);
272 MK_STRN __retVal__L = sqlite3_column_name(sq3stmt->
nat, N);
286 return (
enum Sq3TypeE)sqlite3_column_type(sq3stmt->
nat, iCol);
290#ifndef PARSE_C_HEADER_TO_META
297 return Sq3LiteC_ObjNew(sqlite3_db_handle(sq3stmt->
nat));
353#ifndef PARSE_C_HEADER_TO_META
359 struct sqlite3 * pDb_hdl = pDb->
nat;
360 struct sqlite3_stmt * pStmt_hdl = pStmt->
nat;
361 return Sq3StmtC_ObjNew(sqlite3_next_stmt(pDb_hdl, pStmt_hdl));
399 mk_inline enum MkErrorE Sq3StmtStep (SQ3_STMT sq3stmt,
enum Sq3ErrorE *retCode);
402#ifndef PARSE_C_HEADER_TO_META
409 MK_STR __retVal__L = sqlite3_expanded_sql(pStmt->
nat);
416 MK_STRN __retVal__L = sqlite3_sql(pStmt->
nat);
421#ifndef PARSE_C_HEADER_TO_META
428 struct sqlite3 * db_hdl = db->
nat;
429 sqlite3_stmt* ppStmt_val = NULL;
430 enum Sq3ErrorE errVal = (
enum Sq3ErrorE)sqlite3_prepare_v2(db_hdl, zSql, nByte, &ppStmt_val, pzTail);
431 *ppStmt = Sq3StmtC_ObjCreate(ppStmt_val);
441 struct sqlite3 * db_hdl = db->
nat;
442 sqlite3_stmt* ppStmt_val = NULL;
443 enum Sq3ErrorE errVal = (
enum Sq3ErrorE)sqlite3_prepare_v3(db_hdl, zSql, nByte, prepFlags, &ppStmt_val, pzTail);
444 *ppStmt = Sq3StmtC_ObjCreate(ppStmt_val);
482__parser__(
class=Sq3StmtC,constructor,lng-constr)
493 (*ppStmt)->pzTail = pzTail;
494 MkErrorReturnLabel(db);
523 (*ppStmt)->pzTail = pzTail;
524 MkErrorReturnLabel(db);
574 MkErrorReturnLabel(sq3stmt);
599 MkErrorReturnLabel(sq3stmt);
625 MkErrorReturnLabel(sq3stmt);
650 MkErrorReturnLabel(sq3stmt);
#define BEGIN_SQ3_C_DECLS
unsigned long long MK_U64
#define MK_ATTR_RT_INSTANCE
#define MK_ATTR_RT_STATIC
#define SQ3_EXTERN
static library
Sq3TypeE
Fundamental Datatypes.
Sq3StmtStatusE
Status Parameters for prepared statements.
Sq3PrepareEF
Prepare Flags.
#define Sq3ErrorE_Check_Static(cls_hdl, PROC)
#define Sq3ErrorE_Check(sq3_hdl, PROC)
check on a ccsq3lite error and convert into a ccsq3lite error …
#define SQ3_INSTANCE_HDL(x)
#define SQ3_INSTANCE_RT_X(x)
static enum MkErrorE Sq3StmtBindZeroblob(SQ3_STMT sq3stmt, MK_I32 arg1, MK_I32 n)
Binding Values To Prepared Statements …
#define Sq3Fupu_Sq3StmtBindPointer_arg4_ret
static enum MkErrorE Sq3StmtBindInt64(SQ3_STMT sq3stmt, MK_I32 arg1, MK_I64 arg2)
Binding Values To Prepared Statements …
static enum MkErrorE Sq3StmtBindZeroblob64(SQ3_STMT sq3stmt, MK_I32 arg1, MK_I64 arg2)
Binding Values To Prepared Statements …
static enum MkErrorE Sq3StmtBindBlobHide(SQ3_STMT sq3stmt, MK_I32 pos, MK_PTRN blob, MK_I32 len, Sq3Fupu_Sq3StmtBindBlobHide_cb cb)
Binding Values To Prepared Statements …
#define Sq3Fupu_Sq3StmtBindBlob64Hide_cb_ret
#define Sq3Fupu_Sq3StmtBindTextHide_cb_ret
static MK_STRN Sq3StmtBindParameterName(SQ3_STMT sq3stmt, MK_I32 arg1)
Name Of A Host Parameter …
static enum MkErrorE Sq3StmtBindInt(SQ3_STMT sq3stmt, MK_I32 arg1, MK_I32 arg2)
Binding Values To Prepared Statements …
static enum MkErrorE Sq3StmtBindNull(SQ3_STMT sq3stmt, MK_I32 arg1)
Binding Values To Prepared Statements …
static enum MkErrorE Sq3StmtBindText64Hide(SQ3_STMT sq3stmt, MK_I32 pos, MK_STRN text, MK_I64 len, Sq3Fupu_Sq3StmtBindText64Hide_cb cb, enum Sq3TextE encoding)
Binding Values To Prepared Statements …
static enum MkErrorE Sq3StmtBindDouble(SQ3_STMT sq3stmt, MK_I32 arg1, MK_DBL arg2)
Binding Values To Prepared Statements …
static enum MkErrorE Sq3StmtBindTextHide(SQ3_STMT sq3stmt, MK_I32 pos, MK_STRN text, MK_I32 len, Sq3Fupu_Sq3StmtBindTextHide_cb cb)
Binding Values To Prepared Statements …
#define Sq3Fupu_Sq3StmtBindBlob64Hide_cb_args
static enum MkErrorE Sq3StmtBindText64_RT(MK_RT mkrt, SQ3_STMT sq3stmt, MK_I32 pos, MkStringR text, enum Sq3TextE encoding)
Bind a MkStringR Value To a Prepared Statement …
static enum MkErrorE Sq3StmtBindParameterCount(SQ3_STMT sq3stmt)
Number Of SQL Parameters …
static enum MkErrorE Sq3StmtBindBlob64_RT(MK_RT mkrt, SQ3_STMT sq3stmt, MK_I32 pos, MkBinaryR blob)
Bind a MkBinaryR Value To a Prepared Statement …
static enum MkErrorE Sq3StmtBindBlob_RT(MK_RT mkrt, SQ3_STMT sq3stmt, MK_I32 pos, MkBinaryR blob)
Bind a MkBinaryR Value To a Prepared Statement …
static enum MkErrorE Sq3StmtBindText_RT(MK_RT mkrt, SQ3_STMT sq3stmt, MK_I32 pos, MkStringR text)
Bind a MkStringR Value To a Prepared Statement …
static enum MkErrorE Sq3StmtBindValue(SQ3_STMT sq3stmt, MK_I32 arg1, SQ3_VALN arg2)
Binding Values To Prepared Statements …
#define Sq3Fupu_Sq3StmtBindTextHide_cb_args
#define Sq3Fupu_Sq3StmtBindText64Hide_cb_args
#define Sq3Fupu_Sq3StmtBindBlobHide_cb_ret
#define Sq3Fupu_Sq3StmtBindText64Hide_cb_ret
static enum MkErrorE Sq3StmtBindPointer(SQ3_STMT sq3stmt, MK_I32 arg1, MK_PTR arg2, MK_STRN arg3, Sq3Fupu_Sq3StmtBindPointer_arg4 arg4)
Binding Values To Prepared Statements …
static enum MkErrorE Sq3StmtBindParameterIndex(SQ3_STMT sq3stmt, MK_STRN zName)
Index Of A Parameter With A Given Name …
#define Sq3Fupu_Sq3StmtBindPointer_arg4_args
#define Sq3Fupu_Sq3StmtBindBlobHide_cb_args
static enum MkErrorE Sq3StmtBindBlob64Hide(SQ3_STMT sq3stmt, MK_I32 pos, MK_PTRN blob, MK_I64 len, Sq3Fupu_Sq3StmtBindBlob64Hide_cb cb)
Binding Values To Prepared Statements …
__thread MK_TYP Sq3StmtC_TT
class as MkTypeDefS-class-type …
static enum Sq3TypeE Sq3StmtColumnType(SQ3_STMT sq3stmt, MK_I32 iCol)
Result Values From A Query …
static MK_STRN Sq3StmtColumnTextHide(SQ3_STMT sq3stmt, MK_I32 iCol)
Result Values From A Query …
static MkBinaryR Sq3StmtColumnBlob(SQ3_STMT sq3stmt, MK_I32 iCol)
Result a MkBinaryR Value From A Query.
static MK_I32 Sq3StmtColumnInt(SQ3_STMT sq3stmt, MK_I32 iCol)
Result Values From A Query …
static SQ3_VAL Sq3StmtColumnValue(SQ3_STMT sq3stmt, MK_I32 iCol)
Result Values From A Query …
static MK_I32 Sq3StmtColumnCount(SQ3_STMT pStmt)
Number Of Columns In A Result Set …
static MK_STRN Sq3StmtColumnName(SQ3_STMT sq3stmt, MK_I32 N)
Column Names In A Result Set …
static MK_BINN Sq3StmtColumnBlobHide(SQ3_STMT sq3stmt, MK_I32 iCol)
Result Values From A Query …
static MK_I64 Sq3StmtColumnInt64(SQ3_STMT sq3stmt, MK_I32 iCol)
Result Values From A Query …
static MK_DBL Sq3StmtColumnDouble(SQ3_STMT sq3stmt, MK_I32 iCol)
Result Values From A Query …
static MkStringR Sq3StmtColumnText(SQ3_STMT sq3stmt, MK_I32 iCol)
Result a MkStringR Value From A Query.
static MK_I32 Sq3StmtColumnBytes(SQ3_STMT sq3stmt, MK_I32 iCol)
Result Values From A Query …
static enum MkErrorE Sq3StmtBusy(SQ3_STMT sq3stmt)
Determine If A Prepared Statement Has Been Reset …
static SQ3_LITE Sq3StmtDbHandle(SQ3_STMT sq3stmt)
Find The Database Handle Of A Prepared Statement …
static enum MkErrorE Sq3StmtStatus(SQ3_STMT sq3stmt, enum Sq3StmtStatusE op, MK_BOOL resetFlg)
Prepared Statement Status …
static enum MkErrorE Sq3StmtDataCount(SQ3_STMT pStmt)
Number of columns in a result set …
static enum MkErrorE Sq3StmtIsExplain(SQ3_STMT pStmt)
Query The EXPLAIN Setting For A Prepared Statement …
static enum MkErrorE Sq3StmtReadonly(SQ3_STMT pStmt)
Determine If An SQL Statement Writes The Database …
static enum MkErrorE Sq3StmtReset(SQ3_STMT pStmt)
Reset A Prepared Statement Object …
static enum MkErrorE Sq3StmtStep(SQ3_STMT sq3stmt, enum Sq3ErrorE *retCode)
Evaluate An SQL Statement …
static enum MkErrorE Sq3StmtClearBindings(SQ3_STMT sq3stmt)
Reset All Bindings On A Prepared Statement …
static SQ3_STMT Sq3StmtNextStmt(SQ3_LITE pDb, SQ3_STMT pStmt)
Find the next prepared statement …
static enum MkErrorE Sq3StmtExplain(SQ3_STMT pStmt, MK_I32 eMode)
Change The EXPLAIN Setting For A Prepared Statement …
static MK_STRN Sq3StmtSql(SQ3_STMT pStmt)
Retrieving Statement SQL …
static MK_STRN Sq3StmtGetPzTail(SQ3_STMT sq3stmt)
return the non compiled sql-statement from Sq3StmtPrepareV2 and Sq3StmtPrepareV3 …
static MK_STR Sq3StmtExpandedSql(SQ3_STMT pStmt)
Retrieving Statement SQL …
static enum MkErrorE Sq3StmtPrepareV3Hide(SQ3_LITE db, MK_STRN zSql, MK_I32 nByte, enum Sq3PrepareEF prepFlags, SQ3_STMT *ppStmt, MK_STRN *pzTail)
Compiling An SQL Statement …
static enum MkErrorE Sq3StmtFinalize(SQ3_STMT pStmt)
Destroy A Prepared Statement Object …
static enum MkErrorE Sq3StmtPrepareV3(SQ3_LITE db, MkStringR zSql, Sq3PrepareEF prepFlags, SQ3_STMT *ppStmt)
Compiling An SQL Statement …
static enum MkErrorE Sq3StmtPrepareV2Hide(SQ3_LITE db, MK_STRN zSql, MK_I32 nByte, SQ3_STMT *ppStmt, MK_STRN *pzTail)
Compiling An SQL Statement …
static enum MkErrorE Sq3StmtPrepareV2(SQ3_LITE db, MkStringR zSql, SQ3_STMT *ppStmt)
Compiling An SQL Statement …
Struct to represent the data of the Sq3LiteC …
sqlite3 * nat
internal - link between Sq3LiteS and native library
Struct to represent the data of the Sq3StmtC …
MK_STRN pzTail
The non compiled sql-statement from Sq3StmtPrepareV2 and Sq3StmtPrepareV3 …
sqlite3_stmt * nat
internal - link between Sq3StmtS and native library
Struct to represent the data of the Sq3ValueC …
sqlite3_value * nat
internal - link between Sq3ValueS and native library