theSq3Lite 10.0
Loading...
Searching...
No Matches
Sq3LiteC_Execution_JV_API

Sq3LiteC - execute a sql statement … More...

+ Collaboration diagram for Sq3LiteC_Execution_JV_API:

Functions

native void jvsq3lite.Sq3LiteC.Exec (String sql, Sq3LiteExecIF callback_data)
  Java: sq3lite.Exec(String sql, ?Sq3LiteExecIF callback_data = null?) C-API
One-Step Query Execution Interface …
 
native void jvsq3lite.Sq3LiteC.ExecV2 (String sql, Sq3LiteExecV2IF callback)
  Java: sq3lite.ExecV2(String sql, ?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 jvsq3lite.Sq3LiteC.ExecV2 (String sql)
  Java: sq3lite.ExecV2(String sql, ?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 jvsq3lite.Sq3LiteC.Exec (String sql)
  Java: sq3lite.Exec(String sql, ?Sq3LiteExecIF callback_data = null?) C-API
One-Step Query Execution Interface …
 
static native void jvsq3lite.Sq3LiteC.Sleep (int arg0)
  Java: [static] Sq3LiteC.Sleep(int arg0) C-API
Suspend Execution For A Short Time …
 
JNIEXPORT void JNICALL Java_jvsq3lite_Sq3LiteC_Exec (JNIEnv *env, jobject self, jstring sql, jobject callback_data)
  Java: sq3lite.Exec(String sql, ?Sq3LiteExecIF callback_data = null?) C-API
One-Step Query Execution Interface …
 
JNIEXPORT void JNICALL Java_jvsq3lite_Sq3LiteC_ExecV2 (JNIEnv *env, jobject self, jstring sql, jobject callback)
  Java: sq3lite.ExecV2(String sql, ?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.
 
JNIEXPORT void JNICALL Java_jvsq3lite_Sq3LiteC_Sleep (JNIEnv *env, jclass class, jint arg0)
  Java: [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 jvsq3lite.Sq3LiteC.Exec ( String sql)
inline

Java: sq3lite.Exec(String sql, ?Sq3LiteExecIF callback_data = null?) C-API
One-Step Query Execution Interface …

Definition at line 154 of file Sq3LiteC.java.

154 {
155 Exec (sql, null);
156 }
native void Exec(String sql, Sq3LiteExecIF callback_data)
Java: sq3lite.Exec(String sql, ?Sq3LiteExecIF callback_data = null?) → C-API One-Step Query Exe...

◆ Exec() [2/2]

native void jvsq3lite.Sq3LiteC.Exec ( String sql,
Sq3LiteExecIF callback_data )

Java: sq3lite.Exec(String sql, ?Sq3LiteExecIF callback_data = null?) C-API
One-Step Query Execution Interface …

+ Here is the caller graph for this function:

◆ ExecV2() [1/2]

void jvsq3lite.Sq3LiteC.ExecV2 ( String sql)
inline

Java: sq3lite.ExecV2(String sql, ?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 149 of file Sq3LiteC.java.

149 {
150 ExecV2 (sql, null);
151 }
native void ExecV2(String sql, Sq3LiteExecV2IF callback)
Java: sq3lite.ExecV2(String sql, ?Sq3LiteExecV2IF callback = null?) → C-API The Sq3LiteExecV2()...

◆ ExecV2() [2/2]

native void jvsq3lite.Sq3LiteC.ExecV2 ( String sql,
Sq3LiteExecV2IF callback )

Java: sq3lite.ExecV2(String sql, ?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.

+ Here is the caller graph for this function:

◆ Java_jvsq3lite_Sq3LiteC_Exec()

JNIEXPORT void JNICALL Java_jvsq3lite_Sq3LiteC_Exec ( JNIEnv * env,
jobject self,
jstring sql,
jobject callback_data )

Java: sq3lite.Exec(String sql, ?Sq3LiteExecIF callback_data = null?) C-API
One-Step Query Execution Interface …

Definition at line 262 of file Sq3LiteC_jv.c.

262 {
263 SQ3_LITE hdl = (SQ3_LITE)pObj2Hdl(env,"Sq3LiteC",self);
264 JavaErrorCheck;
265 MkRtSetup_X(hdl);
266 Sq3Fupu_Sq3LiteExec_callback_call callback_call = NS(LiteExecCall);
267 MK_STRN sql_ptr = (sql?(*env)->GetStringUTFChars(env,sql,NULL):NULL);
268 JavaErrorCheck;
269 MK_CBP callback_data_ptr = MK(ProcCreate)(MK_RT_CALL env, callback_data, NULL, NS(MID_callback_data), true);
270 JavaErrorCheck;
271 if (callback_data_ptr == NULL) callback_call = NULL;
272 enum MkErrorE errVal = Sq3LiteExec(hdl, sql_ptr, callback_call, callback_data_ptr);
273 MkErrorC_Check(hdl, errVal)
274 if (sql_ptr) (*env)->ReleaseStringUTFChars(env,sql,sql_ptr);
275error:
276 return;
277}
MkErrorE
const MK_STRB * MK_STRN
MK_PTRB * MK_CBP
#define MK_RT_CALL
#define MkRtSetup_X(x)
struct Sq3LiteS * SQ3_LITE
class-shortcut for struct Sq3LiteS *, all shortcut using the XX_YYY syntax (only for public API) …
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 …
Sq3Fupu_Sq3LiteExec_callback_call_ret(* Sq3Fupu_Sq3LiteExec_callback_call)(Sq3Fupu_Sq3LiteExec_callback_call_args)
Struct to represent the data of the Sq3LiteC …

◆ Java_jvsq3lite_Sq3LiteC_ExecV2()

JNIEXPORT void JNICALL Java_jvsq3lite_Sq3LiteC_ExecV2 ( JNIEnv * env,
jobject self,
jstring sql,
jobject callback )

Java: sq3lite.ExecV2(String sql, ?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 280 of file Sq3LiteC_jv.c.

280 {
281 SQ3_LITE hdl = (SQ3_LITE)pObj2Hdl(env,"Sq3LiteC",self);
282 JavaErrorCheck;
283 MkRtSetup_X(hdl);
284 Sq3LiteExecV2CB callback_call = NS(LiteExecV2Call);
285 MK_STRN sql_ptr = (sql?(*env)->GetStringUTFChars(env,sql,NULL):NULL);
286 JavaErrorCheck;
287 MK_CBP callback_ptr = MK(ProcCreate)(MK_RT_CALL env, callback, NULL, NS(MID_callback), true);
288 JavaErrorCheck;
289 if (callback_ptr == NULL) callback_call = NULL;
290 enum MkErrorE errVal = Sq3LiteExecV2(hdl, sql_ptr, callback_call, callback_ptr);
291 MkErrorC_Check(hdl, errVal)
292 if (sql_ptr) (*env)->ReleaseStringUTFChars(env,sql,sql_ptr);
293error:
294 return;
295}
#define Sq3LiteExecV2(...)
enum MkErrorE(* Sq3LiteExecV2CB)(MK_RT mkrt, MK_CBP callV2, MK_BFL vals, MK_BFL cols)
callback for Sq3LiteExecV2

◆ Java_jvsq3lite_Sq3LiteC_Sleep()

JNIEXPORT void JNICALL Java_jvsq3lite_Sq3LiteC_Sleep ( JNIEnv * env,
jclass class,
jint arg0 )

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

Definition at line 300 of file Sq3LiteC_jv.c.

300 {
302 enum MkErrorE errVal = Sq3LiteSleep(arg0);
303 MkErrorC_Check(NULL, errVal)
304error:
305 return;
306}
#define MkRtSetup_NULL
static enum MkErrorE Sq3LiteSleep(MK_I32 arg0)
Suspend Execution For A Short Time …

◆ Sleep()

static native void jvsq3lite.Sq3LiteC.Sleep ( int arg0)
static

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