theSq3Lite 10.0
Loading...
Searching...
No Matches
Sq3LiteC_Execution_CC_API

Sq3LiteC - execute a sql statement … More...

+ Collaboration diagram for Sq3LiteC_Execution_CC_API:

Functions

void ccsq3lite::Sq3LiteC::ExecV2 (MK_STRN sql, Sq3LiteExecV2IF *callback=NULL)
  C++: sq3lite.ExecV2(MK_STRN sql, Sq3LiteExecV2SCB Sq3LiteExecV2IF* callback = NULL) C-API
The Sq3LiteExecV2() interface is a convenience wrapper around Sq3StmtPrepareV2(), Sq3StmtStep(), and Sq3StmtFinalize(), that allows an application to run multiple statements of SQL without having to use a lot of C code.
 
void ccsq3lite::Sq3LiteC::ExecV2 (const std::string &sql, Sq3LiteExecV2IF *callback=NULL)
  C++: sq3lite.ExecV2(MK_STRN sql, Sq3LiteExecV2SCB Sq3LiteExecV2IF* callback = NULL) C-API
The Sq3LiteExecV2() interface is a convenience wrapper around Sq3StmtPrepareV2(), Sq3StmtStep(), and Sq3StmtFinalize(), that allows an application to run multiple statements of SQL without having to use a lot of C code.
 
void ccsq3lite::Sq3LiteC::ExecV2 (MK_STRN sql, Sq3LiteExecV2SCB callback=NULL)
  C++: sq3lite.ExecV2(MK_STRN sql, Sq3LiteExecV2SCB Sq3LiteExecV2IF* callback = NULL) C-API
The Sq3LiteExecV2() interface is a convenience wrapper around Sq3StmtPrepareV2(), Sq3StmtStep(), and Sq3StmtFinalize(), that allows an application to run multiple statements of SQL without having to use a lot of C code.
 
void ccsq3lite::Sq3LiteC::ExecV2 (const std::string &sql, Sq3LiteExecV2SCB callback=NULL)
  C++: sq3lite.ExecV2(MK_STRN sql, Sq3LiteExecV2SCB Sq3LiteExecV2IF* callback = NULL) C-API
The Sq3LiteExecV2() interface is a convenience wrapper around Sq3StmtPrepareV2(), Sq3StmtStep(), and Sq3StmtFinalize(), that allows an application to run multiple statements of SQL without having to use a lot of C code.
 
void ccsq3lite::Sq3LiteC::Exec (MK_STRN sql, Sq3LiteExecIF *callback_data=NULL)
  C++: sq3lite.Exec(MK_STRN sql, Sq3LiteExecSCB Sq3LiteExecIF* callback_data = NULL) C-API
One-Step Query Execution Interface …
 
void ccsq3lite::Sq3LiteC::Exec (const std::string &sql, Sq3LiteExecIF *callback_data=NULL)
  C++: sq3lite.Exec(MK_STRN sql, Sq3LiteExecSCB Sq3LiteExecIF* callback_data = NULL) C-API
One-Step Query Execution Interface …
 
void ccsq3lite::Sq3LiteC::Exec (MK_STRN sql, Sq3LiteExecSCB callback_data=NULL)
  C++: sq3lite.Exec(MK_STRN sql, Sq3LiteExecSCB Sq3LiteExecIF* callback_data = NULL) C-API
One-Step Query Execution Interface …
 
void ccsq3lite::Sq3LiteC::Exec (const std::string &sql, Sq3LiteExecSCB callback_data=NULL)
  C++: sq3lite.Exec(MK_STRN sql, Sq3LiteExecSCB Sq3LiteExecIF* callback_data = NULL) C-API
One-Step Query Execution Interface …
 
static void ccsq3lite::Sq3LiteC::Sleep (MK_I32 arg0)
  C++: [static] Sq3LiteC::Sleep(MK_I32 arg0) C-API
Suspend Execution For A Short Time …
 

Detailed Description

Sq3LiteC - execute a sql statement …

Function Documentation

◆ Exec() [1/4]

void ccsq3lite::Sq3LiteC::Exec ( const std::string & sql,
Sq3LiteExecIF * callback_data = NULL )
inline

C++: sq3lite.Exec(MK_STRN sql, Sq3LiteExecSCB Sq3LiteExecIF* callback_data = NULL) C-API
One-Step Query Execution Interface …

Definition at line 295 of file Sq3LiteC_inline_cc.hh.

295 {
296 MK_UNUSED auto sq3lite = getLITE();
297 auto callback_call = Sq3LiteExecCallbackC::Call;
298 const MK_STRN sql_hdl = sql.c_str();
299 auto callback_data_ptr = Sq3LiteExecCallbackC::Create(MK_RT_CALL callback_data, this);
300 if (callback_data_ptr == NULL) callback_call = NULL;
301 enum MkErrorE errVal = Sq3LiteExec(sq3lite, sql_hdl, callback_call, callback_data_ptr);
302 MkErrorC_Check(sq3lite, errVal);
303 }
#define MK_UNUSED
const MK_STRB * MK_STRN
#define MK_RT_CALL
SQ3_LITE getLITE() const
return the LibMsgqueObject from current Sq3LiteC instance
static enum MkErrorE Sq3LiteExec(SQ3_LITE sq3lite, MK_STRN sql, Sq3Fupu_Sq3LiteExec_callback_call callback_call, MK_CBP callback_data)
One-Step Query Execution Interface …
static Sq3Fupu_Sq3LiteExec_callback_call_ret Call(Sq3Fupu_Sq3LiteExec_callback_call_args)
Definition Sq3Call_cc.cc:39
static MK_CBP Create(MK_RT_ARGS Sq3LiteExecSCB const callback, Sq3LiteC *lite)
Definition Sq3Call_cc.hh:42

◆ Exec() [2/4]

void ccsq3lite::Sq3LiteC::Exec ( const std::string & sql,
Sq3LiteExecSCB callback_data = NULL )
inline

C++: sq3lite.Exec(MK_STRN sql, Sq3LiteExecSCB Sq3LiteExecIF* callback_data = NULL) C-API
One-Step Query Execution Interface …

Definition at line 316 of file Sq3LiteC_inline_cc.hh.

316 {
317 MK_UNUSED auto sq3lite = getLITE();
318 auto callback_call = Sq3LiteExecCallbackC::Call;
319 const MK_STRN sql_hdl = sql.c_str();
320 auto callback_data_ptr = Sq3LiteExecCallbackC::Create(MK_RT_CALL callback_data, this);
321 if (callback_data_ptr == NULL) callback_call = NULL;
322 enum MkErrorE errVal = Sq3LiteExec(sq3lite, sql_hdl, callback_call, callback_data_ptr);
323 MkErrorC_Check(sq3lite, errVal);
324 }

◆ Exec() [3/4]

void ccsq3lite::Sq3LiteC::Exec ( MK_STRN sql,
Sq3LiteExecIF * callback_data = NULL )
inline

C++: sq3lite.Exec(MK_STRN sql, Sq3LiteExecSCB Sq3LiteExecIF* callback_data = NULL) C-API
One-Step Query Execution Interface …

See also
Sq3LiteExecV2
namespace ccsq3lite {
class Sq3LiteExecIF {
public:
virtual void callback (const std::vector<std::string>& vals, const std::vector<std::string>& cols) = 0;
};
}

Definition at line 285 of file Sq3LiteC_inline_cc.hh.

285 {
286 MK_UNUSED auto sq3lite = getLITE();
287 auto callback_call = Sq3LiteExecCallbackC::Call;
288 auto callback_data_ptr = Sq3LiteExecCallbackC::Create(MK_RT_CALL callback_data, this);
289 if (callback_data_ptr == NULL) callback_call = NULL;
290 enum MkErrorE errVal = Sq3LiteExec(sq3lite, sql, callback_call, callback_data_ptr);
291 MkErrorC_Check(sq3lite, errVal);
292 }

◆ Exec() [4/4]

void ccsq3lite::Sq3LiteC::Exec ( MK_STRN sql,
Sq3LiteExecSCB callback_data = NULL )
inline

C++: sq3lite.Exec(MK_STRN sql, Sq3LiteExecSCB Sq3LiteExecIF* callback_data = NULL) C-API
One-Step Query Execution Interface …

See also
Sq3LiteExecV2
namespace ccsq3lite {
typedef void (*Sq3LiteExecSCB) (const std::vector<std::string>& vals, const std::vector<std::string>& cols);
}

Definition at line 306 of file Sq3LiteC_inline_cc.hh.

306 {
307 MK_UNUSED auto sq3lite = getLITE();
308 auto callback_call = Sq3LiteExecCallbackC::Call;
309 auto callback_data_ptr = Sq3LiteExecCallbackC::Create(MK_RT_CALL callback_data, this);
310 if (callback_data_ptr == NULL) callback_call = NULL;
311 enum MkErrorE errVal = Sq3LiteExec(sq3lite, sql, callback_call, callback_data_ptr);
312 MkErrorC_Check(sq3lite, errVal);
313 }

◆ ExecV2() [1/4]

void ccsq3lite::Sq3LiteC::ExecV2 ( const std::string & sql,
Sq3LiteExecV2IF * callback = NULL )
inline

C++: sq3lite.ExecV2(MK_STRN sql, Sq3LiteExecV2SCB Sq3LiteExecV2IF* callback = NULL) C-API
The Sq3LiteExecV2() interface is a convenience wrapper around Sq3StmtPrepareV2(), Sq3StmtStep(), and Sq3StmtFinalize(), that allows an application to run multiple statements of SQL without having to use a lot of C code.

Definition at line 253 of file Sq3LiteC_inline_cc.hh.

253 {
254 MK_UNUSED auto sq3lite = getLITE();
255 auto callback_call = Sq3LiteExecV2CallbackC::Call;
256 const MK_STRN sql_hdl = sql.c_str();
257 auto callback_ptr = Sq3LiteExecV2CallbackC::Create(MK_RT_CALL callback, this);
258 if (callback_ptr == NULL) callback_call = NULL;
259 enum MkErrorE errVal = Sq3LiteExecV2(sq3lite, sql_hdl, callback_call, callback_ptr);
260 MkErrorC_Check(sq3lite, errVal);
261 }
#define Sq3LiteExecV2(...)
static MK_CBP Create(MK_RT_ARGS Sq3LiteExecV2SCB const callback, Sq3LiteC *lite)
Definition Sq3Call_cc.hh:85
static Sq3LiteExecV2CB_ret Call(Sq3LiteExecV2CB_args)
Definition Sq3Call_cc.cc:85

◆ ExecV2() [2/4]

void ccsq3lite::Sq3LiteC::ExecV2 ( const std::string & sql,
Sq3LiteExecV2SCB callback = NULL )
inline

C++: sq3lite.ExecV2(MK_STRN sql, Sq3LiteExecV2SCB Sq3LiteExecV2IF* callback = NULL) C-API
The Sq3LiteExecV2() interface is a convenience wrapper around Sq3StmtPrepareV2(), Sq3StmtStep(), and Sq3StmtFinalize(), that allows an application to run multiple statements of SQL without having to use a lot of C code.

Definition at line 274 of file Sq3LiteC_inline_cc.hh.

274 {
275 MK_UNUSED auto sq3lite = getLITE();
276 auto callback_call = Sq3LiteExecV2CallbackC::Call;
277 const MK_STRN sql_hdl = sql.c_str();
278 auto callback_ptr = Sq3LiteExecV2CallbackC::Create(MK_RT_CALL callback, this);
279 if (callback_ptr == NULL) callback_call = NULL;
280 enum MkErrorE errVal = Sq3LiteExecV2(sq3lite, sql_hdl, callback_call, callback_ptr);
281 MkErrorC_Check(sq3lite, errVal);
282 }

◆ ExecV2() [3/4]

void ccsq3lite::Sq3LiteC::ExecV2 ( MK_STRN sql,
Sq3LiteExecV2IF * callback = NULL )
inline

C++: sq3lite.ExecV2(MK_STRN sql, Sq3LiteExecV2SCB Sq3LiteExecV2IF* callback = NULL) C-API
The Sq3LiteExecV2() interface is a convenience wrapper around Sq3StmtPrepareV2(), Sq3StmtStep(), and Sq3StmtFinalize(), that allows an application to run multiple statements of SQL without having to use a lot of C code.

See also
Sq3LiteExec
namespace ccsq3lite {
class Sq3LiteExecV2IF {
public:
virtual void callback (const MkBufferListC& valL, const MkBufferListC& colL) = 0;
};
}

Definition at line 243 of file Sq3LiteC_inline_cc.hh.

243 {
244 MK_UNUSED auto sq3lite = getLITE();
245 auto callback_call = Sq3LiteExecV2CallbackC::Call;
246 auto callback_ptr = Sq3LiteExecV2CallbackC::Create(MK_RT_CALL callback, this);
247 if (callback_ptr == NULL) callback_call = NULL;
248 enum MkErrorE errVal = Sq3LiteExecV2(sq3lite, sql, callback_call, callback_ptr);
249 MkErrorC_Check(sq3lite, errVal);
250 }

◆ ExecV2() [4/4]

void ccsq3lite::Sq3LiteC::ExecV2 ( MK_STRN sql,
Sq3LiteExecV2SCB callback = NULL )
inline

C++: sq3lite.ExecV2(MK_STRN sql, Sq3LiteExecV2SCB Sq3LiteExecV2IF* callback = NULL) C-API
The Sq3LiteExecV2() interface is a convenience wrapper around Sq3StmtPrepareV2(), Sq3StmtStep(), and Sq3StmtFinalize(), that allows an application to run multiple statements of SQL without having to use a lot of C code.

See also
Sq3LiteExec
namespace ccsq3lite {
typedef void (*Sq3LiteExecV2SCB) (const MkBufferListC& vals, const MkBufferListC& cols);
}

Definition at line 264 of file Sq3LiteC_inline_cc.hh.

264 {
265 MK_UNUSED auto sq3lite = getLITE();
266 auto callback_call = Sq3LiteExecV2CallbackC::Call;
267 auto callback_ptr = Sq3LiteExecV2CallbackC::Create(MK_RT_CALL callback, this);
268 if (callback_ptr == NULL) callback_call = NULL;
269 enum MkErrorE errVal = Sq3LiteExecV2(sq3lite, sql, callback_call, callback_ptr);
270 MkErrorC_Check(sq3lite, errVal);
271 }

◆ Sleep()

void ccsq3lite::Sq3LiteC::Sleep ( MK_I32 arg0)
inlinestatic

C++: [static] Sq3LiteC::Sleep(MK_I32 arg0) C-API
Suspend Execution For A Short Time …

Definition at line 329 of file Sq3LiteC_inline_cc.hh.

329 {
331 enum MkErrorE errVal = Sq3LiteSleep(arg0);
332 MkErrorC_Check(NULL, errVal);
333 }
#define MkRtSetup_NULL
static enum MkErrorE Sq3LiteSleep(MK_I32 arg0)
Suspend Execution For A Short Time …