theSq3Lite 10.0
Loading...
Searching...
No Matches
Sq3StmtC_CC_API

Sq3StmtC - the class known as sq3stmt or Statement defined by Sq3StmtSMore...

+ Collaboration diagram for Sq3StmtC_CC_API:

Topics

 Sq3StmtC_Class_CC_API
 Sq3StmtC - define the class …
 
 Sq3StmtC_TOR_CC_API
 Sq3StmtC - various functions to create, initialize and destroy …
 
 Sq3StmtC_Bind_CC_API
 Sq3StmtC - bind a type
 
 Sq3StmtC_Column_CC_API
 Sq3StmtC - Result Values From A Query …
 
 Sq3StmtC_Info_CC_API
 Sq3StmtC - get type-information
 
 Sq3StmtC_Sql_CC_API
 Sq3StmtC - Retrieving Statement SQL …
 
 Sq3StmtC_Misc_CC_API
 Sq3StmtC - various functions to perform misc operations …
 

Classes

struct  ccsq3lite::Sq3StmtC_A
 Struct to represent the data of the Sq3StmtC … → C-API: libsq3lite::Sq3StmtS More...
 
class  ccsq3lite::Sq3StmtC
 Struct to represent the data of the Sq3StmtC … → C-API: libsq3lite::Sq3StmtS More...
 

Functions

 ccsq3lite::Sq3StmtC::Sq3StmtC (SQ3_STMT hdl)
 
static Sq3StmtCccsq3lite::Sq3StmtC::Sq3StmtC_ObjNew (MK_RT_ARGS SQ3_STMT hdl)
 return Sq3StmtC from LibMsgqueObject
 
SQ3_STMT ccsq3lite::Sq3StmtC::getSTMT () const
 return the LibMsgqueObject from current Sq3StmtC instance
 
SQ3_STMT ccsq3lite::Sq3StmtC::getSTMT__null_allow () const
 return the LibMsgqueObject from current Sq3StmtC instance
 
SQ3_STMTN ccsq3lite::Sq3StmtC::getSTMTN () const
 (const) return the LibMsgqueObject from current Sq3StmtC instance
 
SQ3_STMTN ccsq3lite::Sq3StmtC::getSTMTN__null_allow () const
 (const) return the LibMsgqueObject from current Sq3StmtC instance
 
static SQ3_STMT ccsq3lite::Sq3StmtC::getSTMT (Sq3StmtC *clsHdl)
 return LibMsgqueObject from current Sq3StmtC pointer
 
static SQ3_STMT ccsq3lite::Sq3StmtC::getSTMT__null_allow (Sq3StmtC *clsHdl)
 return LibMsgqueObject from current Sq3StmtC pointer
 
static SQ3_STMTN ccsq3lite::Sq3StmtC::getSTMTN (const Sq3StmtC *clsHdl)
 (const) return LibMsgqueObject from current Sq3StmtC pointer
 
static SQ3_STMTN ccsq3lite::Sq3StmtC::getSTMTN__null_allow (const Sq3StmtC *clsHdl)
 (const) return LibMsgqueObject from current Sq3StmtC pointer
 
static SQ3_STMT ccsq3lite::Sq3StmtC::getSTMT (const Sq3StmtC &clsHdl)
 return LibMsgqueObject from current Sq3StmtC reference
 
static SQ3_STMT ccsq3lite::Sq3StmtC::getSTMT__null_allow (const Sq3StmtC &clsHdl)
 return LibMsgqueObject from current Sq3StmtC reference
 
static SQ3_STMTN ccsq3lite::Sq3StmtC::getSTMTN (const Sq3StmtC &clsHdl)
 (const) return LibMsgqueObject from current Sq3StmtC reference
 
static SQ3_STMTN ccsq3lite::Sq3StmtC::getSTMTN__null_allow (const Sq3StmtC &clsHdl)
 (const) return LibMsgqueObject from current Sq3StmtC reference
 
bool ccsq3lite::Sq3StmtC::Check () const
 check if pointer is still valid
 

Variables

static thread_local Sq3StmtC ccsq3lite::Sq3StmtC::MK_NULL_REF = {(MK_OBJ)0}
 

Detailed Description

Sq3StmtC - the class known as sq3stmt or Statement defined by Sq3StmtS

Struct to represent the data of the Sq3StmtC

Prepared Statement Object …

An instance of this object represents a single SQL statement that has been compiled into binary form and is ready to be evaluated.

Think of each SQL statement as a separate computer program. The original SQL text is source code. A prepared statement object is the compiled object code. All SQL must be converted into a prepared statement before it can be run.

The life-cycle of a prepared statement object usually goes like this:

  1. Create the prepared statement object using Sq3StmtPrepareV2 ().
  2. Bind values to parameters using the Sq3StmtBindValue*() interfaces.
  3. Run the SQL by calling Sq3StmtStep () one or more times.
  4. Reset the prepared statement using Sq3StmtReset () then go back to step 2. Do this zero or more times.
  5. Destroy the object using Sq3StmtFinalize ().

Reference code from sqlite3:

typedef struct sqlite3_stmt sqlite3_stmt;

Function Documentation

◆ Check()

bool ccsq3lite::Sq3StmtC::Check ( ) const
inline

check if pointer is still valid

Definition at line 152 of file Sq3StmtC_cc.hh.

152 {
153 return (hdl && Sq3StmtCheck(hdl));
154 };
static bool Sq3StmtCheck(MK_MNGN mng)
check Sq3StmtS -> libmkkernel::MkObjectS::signature …

◆ getSTMT() [1/3]

SQ3_STMT ccsq3lite::Sq3StmtC::getSTMT ( ) const
inline

return the LibMsgqueObject from current Sq3StmtC instance

Definition at line 84 of file Sq3StmtC_cc.hh.

84 {
85 SQ3_STMT ret = reinterpret_cast<SQ3_STMT>(hdl);
86 if (unlikely(ret == NULL)) InstHdlIsNullError();
87 return ret;
88 };
#define unlikely(x)
struct Sq3StmtS * SQ3_STMT
class-shortcut for struct Sq3StmtS *, all shortcut using the XX_YYY syntax (only for public API) …
+ Here is the caller graph for this function:

◆ getSTMT() [2/3]

static SQ3_STMT ccsq3lite::Sq3StmtC::getSTMT ( const Sq3StmtC & clsHdl)
inlinestatic

return LibMsgqueObject from current Sq3StmtC reference

Definition at line 132 of file Sq3StmtC_cc.hh.

132 {
133 return clsHdl.getSTMT();
134 };

◆ getSTMT() [3/3]

static SQ3_STMT ccsq3lite::Sq3StmtC::getSTMT ( Sq3StmtC * clsHdl)
inlinestatic

return LibMsgqueObject from current Sq3StmtC pointer

Definition at line 108 of file Sq3StmtC_cc.hh.

108 {
109 SQ3_STMT ret = clsHdl ? reinterpret_cast<SQ3_STMT>(clsHdl->hdl) : NULL;
110 if (unlikely(ret == NULL)) ClassHdlIsNullError(Sq3StmtC);
111 return ret;
112 };

◆ getSTMT__null_allow() [1/3]

SQ3_STMT ccsq3lite::Sq3StmtC::getSTMT__null_allow ( ) const
inline

return the LibMsgqueObject from current Sq3StmtC instance

Definition at line 91 of file Sq3StmtC_cc.hh.

91 {
92 return reinterpret_cast<SQ3_STMT>(hdl);
93 };
+ Here is the caller graph for this function:

◆ getSTMT__null_allow() [2/3]

static SQ3_STMT ccsq3lite::Sq3StmtC::getSTMT__null_allow ( const Sq3StmtC & clsHdl)
inlinestatic

return LibMsgqueObject from current Sq3StmtC reference

Definition at line 137 of file Sq3StmtC_cc.hh.

137 {
138 return clsHdl.getSTMT__null_allow();
139 };

◆ getSTMT__null_allow() [3/3]

static SQ3_STMT ccsq3lite::Sq3StmtC::getSTMT__null_allow ( Sq3StmtC * clsHdl)
inlinestatic

return LibMsgqueObject from current Sq3StmtC pointer

Definition at line 115 of file Sq3StmtC_cc.hh.

115 {
116 return clsHdl ? reinterpret_cast<SQ3_STMT>(clsHdl->hdl) : NULL;
117 };

◆ getSTMTN() [1/3]

SQ3_STMTN ccsq3lite::Sq3StmtC::getSTMTN ( ) const
inline

(const) return the LibMsgqueObject from current Sq3StmtC instance

Definition at line 96 of file Sq3StmtC_cc.hh.

96 {
97 SQ3_STMTN ret = reinterpret_cast<SQ3_STMTN>(hdl);
98 if (unlikely(ret == NULL)) InstHdlIsNullError();
99 return ret;
100 };
const struct Sq3StmtS * SQ3_STMTN
class-shortcut for const struct Sq3StmtS *, all const shortcut using the XX_YYYC syntax (only for pub...
+ Here is the caller graph for this function:

◆ getSTMTN() [2/3]

static SQ3_STMTN ccsq3lite::Sq3StmtC::getSTMTN ( const Sq3StmtC & clsHdl)
inlinestatic

(const) return LibMsgqueObject from current Sq3StmtC reference

Definition at line 142 of file Sq3StmtC_cc.hh.

142 {
143 return clsHdl.getSTMTN();
144 };

◆ getSTMTN() [3/3]

static SQ3_STMTN ccsq3lite::Sq3StmtC::getSTMTN ( const Sq3StmtC * clsHdl)
inlinestatic

(const) return LibMsgqueObject from current Sq3StmtC pointer

Definition at line 120 of file Sq3StmtC_cc.hh.

120 {
121 SQ3_STMTN ret = clsHdl ? reinterpret_cast<SQ3_STMTN>(clsHdl->hdl) : NULL;
122 if (unlikely(ret == NULL)) ClassHdlIsNullError(Sq3StmtC);
123 return ret;
124 };

◆ getSTMTN__null_allow() [1/3]

SQ3_STMTN ccsq3lite::Sq3StmtC::getSTMTN__null_allow ( ) const
inline

(const) return the LibMsgqueObject from current Sq3StmtC instance

Definition at line 103 of file Sq3StmtC_cc.hh.

103 {
104 return reinterpret_cast<SQ3_STMTN>(hdl);
105 };
+ Here is the caller graph for this function:

◆ getSTMTN__null_allow() [2/3]

static SQ3_STMTN ccsq3lite::Sq3StmtC::getSTMTN__null_allow ( const Sq3StmtC & clsHdl)
inlinestatic

(const) return LibMsgqueObject from current Sq3StmtC reference

Definition at line 147 of file Sq3StmtC_cc.hh.

147 {
148 return clsHdl.getSTMTN__null_allow();
149 };

◆ getSTMTN__null_allow() [3/3]

static SQ3_STMTN ccsq3lite::Sq3StmtC::getSTMTN__null_allow ( const Sq3StmtC * clsHdl)
inlinestatic

(const) return LibMsgqueObject from current Sq3StmtC pointer

Definition at line 127 of file Sq3StmtC_cc.hh.

127 {
128 return clsHdl ? reinterpret_cast<SQ3_STMTN>(clsHdl->hdl) : NULL;
129 };

◆ Sq3StmtC()

ccsq3lite::Sq3StmtC::Sq3StmtC ( SQ3_STMT hdl)
inline

Definition at line 75 of file Sq3StmtC_cc.hh.

#define Sq3StmtC_X2obj(x)

◆ Sq3StmtC_ObjNew()

static Sq3StmtC * ccsq3lite::Sq3StmtC::Sq3StmtC_ObjNew ( MK_RT_ARGS SQ3_STMT hdl)
inlinestatic

return Sq3StmtC from LibMsgqueObject

Definition at line 79 of file Sq3StmtC_cc.hh.

79 {
80 return (hdl ? static_cast<Sq3StmtC*>(MkObjectC::atomObjNew(MK_RT_CALL Sq3StmtC_X2obj(hdl))) : &MK_NULL_REF);
81 }
static MK_PTR atomObjNew(MK_RT_ARGS MK_OBJ obj)
#define MK_RT_CALL
static thread_local Sq3StmtC MK_NULL_REF
+ Here is the caller graph for this function:

Variable Documentation

◆ MK_NULL_REF

thread_local Sq3StmtC ccsq3lite::Sq3StmtC::MK_NULL_REF = {(MK_OBJ)0}
static

Definition at line 36 of file Sq3StmtC_cc.hh.