theSq3Lite 10.0 NHI1 - theKernel - theLink - theConfig - theSq3Lite - theCompiler - theBrain - theGuard - theLib - theATL
c - tcl - atl - cs - py - rb - jv - cc
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 157 of file Sq3LiteC.java.

157 {
158 Exec (sql, null);
159 }
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 152 of file Sq3LiteC.java.

152 {
153 ExecV2 (sql, null);
154 }
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 265 of file Sq3LiteC_jv.c.

265 {
266 SQ3_LITE hdl = (SQ3_LITE)pObj2Hdl(env,"Sq3LiteC",self);
267 JavaErrorCheck;
268 MkRtSetup_X(hdl);
269 Sq3Fupu_Sq3LiteExec_callback_call callback_call = NS(LiteExecCall);
270 MK_STRN sql_ptr = (sql?(*env)->GetStringUTFChars(env,sql,NULL):NULL);
271 JavaErrorCheck;
272 MK_CBP callback_data_ptr = MK(ProcCreate)(MK_RT_CALL env, callback_data, NULL, NS(MID_callback_data), true);
273 JavaErrorCheck;
274 if (callback_data_ptr == NULL) callback_call = NULL;
275 enum MkErrorE errVal = Sq3LiteExec(hdl, sql_ptr, callback_call, callback_data_ptr);
276 MkErrorC_Check(hdl, errVal)
277 if (sql_ptr) (*env)->ReleaseStringUTFChars(env,sql,sql_ptr);
278error:
279 return;
280}
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 283 of file Sq3LiteC_jv.c.

283 {
284 SQ3_LITE hdl = (SQ3_LITE)pObj2Hdl(env,"Sq3LiteC",self);
285 JavaErrorCheck;
286 MkRtSetup_X(hdl);
287 Sq3LiteExecV2CB callback_call = NS(LiteExecV2Call);
288 MK_STRN sql_ptr = (sql?(*env)->GetStringUTFChars(env,sql,NULL):NULL);
289 JavaErrorCheck;
290 MK_CBP callback_ptr = MK(ProcCreate)(MK_RT_CALL env, callback, NULL, NS(MID_callback), true);
291 JavaErrorCheck;
292 if (callback_ptr == NULL) callback_call = NULL;
293 enum MkErrorE errVal = Sq3LiteExecV2(hdl, sql_ptr, callback_call, callback_ptr);
294 MkErrorC_Check(hdl, errVal)
295 if (sql_ptr) (*env)->ReleaseStringUTFChars(env,sql,sql_ptr);
296error:
297 return;
298}
#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 303 of file Sq3LiteC_jv.c.

303 {
305 enum MkErrorE errVal = Sq3LiteSleep(arg0);
306 MkErrorC_Check(NULL, errVal)
307error:
308 return;
309}
#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 …