theSq3Lite 10.0
Loading...
Searching...
No Matches
Sq3StmtC_TOR_CC_API

Sq3StmtC - various functions to create, initialize and destroy … More...

+ Collaboration diagram for Sq3StmtC_TOR_CC_API:

Functions

static Sq3StmtCccsq3lite::Sq3StmtC::PrepareV2 (Sq3LiteC *db, const std::string &zSql)
  C++: [constructor,static] Sq3StmtC* Sq3StmtC::PrepareV2(Sq3LiteC* db, const std::string& zSql) C-API
Compiling An SQL Statement …
 
 ccsq3lite::Sq3StmtC::Sq3StmtC (Sq3LiteC *db, const std::string &zSql)
  C++: [constructor,static] Sq3StmtC* Sq3StmtC::PrepareV2(Sq3LiteC* db, const std::string& zSql) C-API
Compiling An SQL Statement …
 
static Sq3StmtCccsq3lite::Sq3StmtC::PrepareV3 (Sq3LiteC *db, const std::string &zSql, Sq3PrepareEF prepFlags=SQ3_PREPARE_NO)
  C++: [constructor,static] Sq3StmtC* Sq3StmtC::PrepareV3(Sq3LiteC* db, const std::string& zSql, Sq3PrepareEF prepFlags = SQ3_PREPARE_NO) C-API
Compiling An SQL Statement …
 
void ccsq3lite::Sq3StmtC::Finalize ()
  C++: [destructor] pStmt.Finalize() C-API
Destroy A Prepared Statement Object …
 

Detailed Description

Sq3StmtC - various functions to create, initialize and destroy …

Function Documentation

◆ Finalize()

void ccsq3lite::Sq3StmtC::Finalize ( )
inline

C++: [destructor] pStmt.Finalize() C-API
Destroy A Prepared Statement Object …

Definition at line 479 of file Sq3StmtC_inline_cc.hh.

479 {
480 MK_UNUSED auto pStmt = getSTMT();
481 enum MkErrorE errVal = Sq3StmtFinalize(pStmt);
482 MkErrorC_Check(pStmt, errVal);
483 }
#define MK_UNUSED
SQ3_STMT getSTMT() const
return the LibMsgqueObject from current Sq3StmtC instance
static enum MkErrorE Sq3StmtFinalize(SQ3_STMT pStmt)
Destroy A Prepared Statement Object …

◆ PrepareV2()

Sq3StmtC * ccsq3lite::Sq3StmtC::PrepareV2 ( Sq3LiteC * db,
const std::string & zSql )
inlinestatic

C++: [constructor,static] Sq3StmtC* Sq3StmtC::PrepareV2(Sq3LiteC* db, const std::string& zSql) C-API
Compiling An SQL Statement …

Definition at line 455 of file Sq3StmtC_inline_cc.hh.

455 {
457 SQ3_STMT ppStmt;
458 SQ3_LITE db_hdl = Sq3LiteC::getLITE(db);
459 const MkStringR zSql_ref = MkStringCreate((MK_NUM)zSql.size(),zSql.c_str());
460 enum MkErrorE errVal = Sq3StmtPrepareV2(db_hdl, zSql_ref, &ppStmt);
461 MkErrorC_Check(NULL, errVal);
462 return Sq3StmtC::Sq3StmtC_ObjCreate(MK_RT_CALL ppStmt);
463 }
static MkStringR MkStringCreate(MK_NUM len, MK_STRN str)
int32_t MK_NUM
#define MK_RT_CALL
#define MkRtSetup_NULL
SQ3_LITE getLITE() const
return the LibMsgqueObject from current Sq3LiteC instance
struct Sq3LiteS * SQ3_LITE
class-shortcut for struct Sq3LiteS *, all shortcut using the XX_YYY syntax (only for public API) …
struct Sq3StmtS * SQ3_STMT
class-shortcut for struct Sq3StmtS *, all shortcut using the XX_YYY syntax (only for public API) …
static enum MkErrorE Sq3StmtPrepareV2(SQ3_LITE db, MkStringR zSql, SQ3_STMT *ppStmt)
Compiling An SQL Statement …

◆ PrepareV3()

Sq3StmtC * ccsq3lite::Sq3StmtC::PrepareV3 ( Sq3LiteC * db,
const std::string & zSql,
Sq3PrepareEF prepFlags = SQ3_PREPARE_NO )
inlinestatic

C++: [constructor,static] Sq3StmtC* Sq3StmtC::PrepareV3(Sq3LiteC* db, const std::string& zSql, Sq3PrepareEF prepFlags = SQ3_PREPARE_NO) C-API
Compiling An SQL Statement …

Definition at line 466 of file Sq3StmtC_inline_cc.hh.

466 {
468 SQ3_STMT ppStmt;
469 SQ3_LITE db_hdl = Sq3LiteC::getLITE(db);
470 const MkStringR zSql_ref = MkStringCreate((MK_NUM)zSql.size(),zSql.c_str());
471 enum MkErrorE errVal = Sq3StmtPrepareV3(db_hdl, zSql_ref, prepFlags, &ppStmt);
472 MkErrorC_Check(NULL, errVal);
473 return Sq3StmtC::Sq3StmtC_ObjCreate(MK_RT_CALL ppStmt);
474 }
static enum MkErrorE Sq3StmtPrepareV3(SQ3_LITE db, MkStringR zSql, Sq3PrepareEF prepFlags, SQ3_STMT *ppStmt)
Compiling An SQL Statement …

◆ Sq3StmtC()

ccsq3lite::Sq3StmtC::Sq3StmtC ( Sq3LiteC * db,
const std::string & zSql )
inline

C++: [constructor,static] Sq3StmtC* Sq3StmtC::PrepareV2(Sq3LiteC* db, const std::string& zSql) C-API
Compiling An SQL Statement …

Definition at line 426 of file Sq3StmtC_cc.hh.

426: MkObjectC(CTOR(db, zSql)) {};