theSq3Lite 10.0
Loading...
Searching...
No Matches
Sq3LiteC_Execution_CS_API

Sq3LiteC - execute a sql statement … More...

+ Collaboration diagram for Sq3LiteC_Execution_CS_API:

Functions

void cssq3lite.Sq3LiteC.ExecV2 (string sql, Sq3LiteExecV2CCB callback=null)
  C#: sq3lite.ExecV2(string sql, Sq3LiteExecV2CCB|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 cssq3lite.Sq3LiteC.ExecV2 (string sql, Sq3LiteExecV2IF callback=null)
  C#: sq3lite.ExecV2(string sql, Sq3LiteExecV2CCB|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 cssq3lite.Sq3LiteC.Exec (string sql, Sq3LiteExecCCB callback_data=null)
  C#: sq3lite.Exec(string sql, Sq3LiteExecCCB|Sq3LiteExecIF callback_data = null) C-API
One-Step Query Execution Interface …
 
void cssq3lite.Sq3LiteC.Exec (string sql, Sq3LiteExecIF callback_data=null)
  C#: sq3lite.Exec(string sql, Sq3LiteExecCCB|Sq3LiteExecIF callback_data = null) C-API
One-Step Query Execution Interface …
 
static void cssq3lite.Sq3LiteC.Sleep (int arg0)
  C#: [static] Sq3LiteC.Sleep(int arg0) C-API
Suspend Execution For A Short Time …
 

Detailed Description

Sq3LiteC - execute a sql statement …

Function Documentation

◆ Exec() [1/2]

void cssq3lite.Sq3LiteC.Exec ( string sql,
Sq3LiteExecCCB callback_data = null )
inline

C#: sq3lite.Exec(string sql, Sq3LiteExecCCB|Sq3LiteExecIF callback_data = null) C-API
One-Step Query Execution Interface …

Definition at line 267 of file Sq3LiteC_cs.cs.

267 {
268 Sq3Fupu_Sq3LiteExec_callback_call callback_call = Sq3LiteExecCall;
269 IntPtr sql_cstr = Marshal.StringToHGlobalAnsi(sql);
270 IntPtr callback_data_ptr = callback_data == null ? IntPtr.Zero : (IntPtr)GCHandle.Alloc(new Sq3Call(mkrt,callback_data));
271 if (callback_data_ptr == IntPtr.Zero) callback_call = null;
272 MkErrorE errVal = Sq3.Sq3LiteExec(hdl, sql_cstr, callback_call, callback_data_ptr);
273 Marshal.FreeHGlobal(sql_cstr);
274 MkErrorC.Check(hdl, errVal);
275 }
static void Check(IntPtr ctx, MkErrorE err)
MkErrorE
Sq3Fupu_Sq3LiteExec_callback_call_ret(* Sq3Fupu_Sq3LiteExec_callback_call)(Sq3Fupu_Sq3LiteExec_callback_call_args)

◆ Exec() [2/2]

void cssq3lite.Sq3LiteC.Exec ( string sql,
Sq3LiteExecIF callback_data = null )
inline

C#: sq3lite.Exec(string sql, Sq3LiteExecCCB|Sq3LiteExecIF callback_data = null) C-API
One-Step Query Execution Interface …

Definition at line 278 of file Sq3LiteC_cs.cs.

278 {
279 Sq3Fupu_Sq3LiteExec_callback_call callback_call = Sq3LiteExecCall;
280 IntPtr sql_cstr = Marshal.StringToHGlobalAnsi(sql);
281 IntPtr callback_data_ptr = callback_data == null ? IntPtr.Zero : (IntPtr)GCHandle.Alloc(new Sq3Call(mkrt,callback_data));
282 if (callback_data_ptr == IntPtr.Zero) callback_call = null;
283 MkErrorE errVal = Sq3.Sq3LiteExec(hdl, sql_cstr, callback_call, callback_data_ptr);
284 Marshal.FreeHGlobal(sql_cstr);
285 MkErrorC.Check(hdl, errVal);
286 }

◆ ExecV2() [1/2]

void cssq3lite.Sq3LiteC.ExecV2 ( string sql,
Sq3LiteExecV2CCB callback = null )
inline

C#: sq3lite.ExecV2(string sql, Sq3LiteExecV2CCB|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 245 of file Sq3LiteC_cs.cs.

245 {
246 Sq3LiteExecV2CB callback_call = Sq3LiteExecV2Call;
247 IntPtr sql_cstr = Marshal.StringToHGlobalAnsi(sql);
248 IntPtr callback_ptr = callback == null ? IntPtr.Zero : (IntPtr)GCHandle.Alloc(new Sq3Call(mkrt,callback));
249 if (callback_ptr == IntPtr.Zero) callback_call = null;
250 MkErrorE errVal = Sq3.Sq3LiteExecV2(mkrt, hdl, sql_cstr, callback_call, callback_ptr);
251 Marshal.FreeHGlobal(sql_cstr);
252 MkErrorC.Check(hdl, errVal);
253 }
enum MkErrorE(* Sq3LiteExecV2CB)(MK_RT mkrt, MK_CBP callV2, MK_BFL vals, MK_BFL cols)
callback for Sq3LiteExecV2

◆ ExecV2() [2/2]

void cssq3lite.Sq3LiteC.ExecV2 ( string sql,
Sq3LiteExecV2IF callback = null )
inline

C#: sq3lite.ExecV2(string sql, Sq3LiteExecV2CCB|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 256 of file Sq3LiteC_cs.cs.

256 {
257 Sq3LiteExecV2CB callback_call = Sq3LiteExecV2Call;
258 IntPtr sql_cstr = Marshal.StringToHGlobalAnsi(sql);
259 IntPtr callback_ptr = callback == null ? IntPtr.Zero : (IntPtr)GCHandle.Alloc(new Sq3Call(mkrt,callback));
260 if (callback_ptr == IntPtr.Zero) callback_call = null;
261 MkErrorE errVal = Sq3.Sq3LiteExecV2(mkrt, hdl, sql_cstr, callback_call, callback_ptr);
262 Marshal.FreeHGlobal(sql_cstr);
263 MkErrorC.Check(hdl, errVal);
264 }

◆ Sleep()

static void cssq3lite.Sq3LiteC.Sleep ( int arg0)
inlinestatic

C#: [static] Sq3LiteC.Sleep(int arg0) C-API
Suspend Execution For A Short Time …

Definition at line 291 of file Sq3LiteC_cs.cs.

291 {
292 MkErrorE errVal = Sq3.Sq3LiteSleep(arg0);
293 if (errVal > MkErrorE.CONTINUE) MkErrorC.Check(errVal);
294 }