theSq3Lite 10.0
Loading...
Searching...
No Matches
Sq3StmtC_TOR_CS_API

Sq3StmtC - various functions to create, initialize and destroy … More...

+ Collaboration diagram for Sq3StmtC_TOR_CS_API:

Functions

static IntPtr cssq3lite.Sq3StmtC.CTOR (Sq3LiteC db, string zSql)
  C#: [constructor,static] Sq3StmtC Sq3StmtC.PrepareV2(Sq3LiteC db, string zSql) C-API
Compiling An SQL Statement …
 
 cssq3lite.Sq3StmtC.Sq3StmtC (Sq3LiteC db, string zSql)
 CONSTRUCTOR.
 
static Sq3StmtC cssq3lite.Sq3StmtC.PrepareV2 (Sq3LiteC db, string zSql)
  C#: [constructor,static] Sq3StmtC Sq3StmtC.PrepareV2(Sq3LiteC db, string zSql) C-API
Compiling An SQL Statement …
 
static Sq3StmtC cssq3lite.Sq3StmtC.PrepareV3 (Sq3LiteC db, string zSql, Sq3PrepareEF prepFlags=Sq3PrepareEF.NO)
  C#: [constructor,static] Sq3StmtC Sq3StmtC.PrepareV3(Sq3LiteC db, string zSql, Sq3PrepareEF prepFlags = SQ3_PREPARE_NO) C-API
Compiling An SQL Statement …
 
void cssq3lite.Sq3StmtC.Sq3Finalize ()
  C#: [destructor] pStmt.Sq3Finalize() C-API
Destroy A Prepared Statement Object …
 

Detailed Description

Sq3StmtC - various functions to create, initialize and destroy …

Function Documentation

◆ CTOR()

static IntPtr cssq3lite.Sq3StmtC.CTOR ( Sq3LiteC db,
string zSql )
inlinestaticprotected

C#: [constructor,static] Sq3StmtC Sq3StmtC.PrepareV2(Sq3LiteC db, string zSql) C-API
Compiling An SQL Statement …

Definition at line 460 of file Sq3StmtC_cs.cs.

460 {
461 IntPtr ppStmt;
462 IntPtr db_hdl = Sq3LiteC.getOBJ("Sq3LiteC",db);
463 IntPtr zSql_ref_cstr = Marshal.StringToHGlobalAnsi(zSql);
464 Mk.MkStringR zSql_ref = Mk.MkStringCreate_1(zSql_ref_cstr);
465 MkErrorE errVal = Sq3.Sq3StmtPrepareV2(db_hdl, zSql_ref, out ppStmt);
466 Marshal.FreeHGlobal(zSql_ref_cstr);
467 if (errVal > MkErrorE.CONTINUE) MkErrorC.Check(errVal);
468 return (IntPtr)ppStmt;
469 }
static void Check(IntPtr ctx, MkErrorE err)
static Mk.MkStringR MkStringCreate_1(IntPtr str)
MkErrorE

◆ PrepareV2()

static Sq3StmtC cssq3lite.Sq3StmtC.PrepareV2 ( Sq3LiteC db,
string zSql )
inlinestatic

C#: [constructor,static] Sq3StmtC Sq3StmtC.PrepareV2(Sq3LiteC db, string zSql) C-API
Compiling An SQL Statement …

Definition at line 475 of file Sq3StmtC_cs.cs.

475 {
476 IntPtr ppStmt;
477 IntPtr db_hdl = Sq3LiteC.getOBJ("Sq3LiteC",db);
478 IntPtr zSql_ref_cstr = Marshal.StringToHGlobalAnsi(zSql);
479 Mk.MkStringR zSql_ref = Mk.MkStringCreate_1(zSql_ref_cstr);
480 MkErrorE errVal = Sq3.Sq3StmtPrepareV2(db_hdl, zSql_ref, out ppStmt);
481 Marshal.FreeHGlobal(zSql_ref_cstr);
482 if (errVal > MkErrorE.CONTINUE) MkErrorC.Check(errVal);
483 return Sq3StmtC.Sq3StmtC_ObjCreate(ppStmt);
484 }

◆ PrepareV3()

static Sq3StmtC cssq3lite.Sq3StmtC.PrepareV3 ( Sq3LiteC db,
string zSql,
Sq3PrepareEF prepFlags = Sq3PrepareEF::NO )
inlinestatic

C#: [constructor,static] Sq3StmtC Sq3StmtC.PrepareV3(Sq3LiteC db, string zSql, Sq3PrepareEF prepFlags = SQ3_PREPARE_NO) C-API
Compiling An SQL Statement …

Definition at line 487 of file Sq3StmtC_cs.cs.

487 {
488 IntPtr ppStmt;
489 IntPtr db_hdl = Sq3LiteC.getOBJ("Sq3LiteC",db);
490 IntPtr zSql_ref_cstr = Marshal.StringToHGlobalAnsi(zSql);
491 Mk.MkStringR zSql_ref = Mk.MkStringCreate_1(zSql_ref_cstr);
492 MkErrorE errVal = Sq3.Sq3StmtPrepareV3(db_hdl, zSql_ref, prepFlags, out ppStmt);
493 Marshal.FreeHGlobal(zSql_ref_cstr);
494 if (errVal > MkErrorE.CONTINUE) MkErrorC.Check(errVal);
495 return Sq3StmtC.Sq3StmtC_ObjCreate(ppStmt);
496 }

◆ Sq3Finalize()

void cssq3lite.Sq3StmtC.Sq3Finalize ( )
inline

C#: [destructor] pStmt.Sq3Finalize() C-API
Destroy A Prepared Statement Object …

Definition at line 501 of file Sq3StmtC_cs.cs.

501 {
502 MkErrorE errVal = Sq3.Sq3StmtFinalize(hdl);
503 MkErrorC.Check(hdl, errVal);
504 }

◆ Sq3StmtC()

cssq3lite.Sq3StmtC.Sq3StmtC ( Sq3LiteC db,
string zSql )
inline

CONSTRUCTOR.

C#: [constructor,static] Sq3StmtC Sq3StmtC.PrepareV2(Sq3LiteC db, string zSql) C-API
Compiling An SQL Statement …

Definition at line 472 of file Sq3StmtC_cs.cs.

472: this(CTOR(db, zSql)) {}
static IntPtr CTOR(Sq3LiteC db, string zSql)
C#: [constructor,static] Sq3StmtC Sq3StmtC.PrepareV2(Sq3LiteC db, string zSql) → C-API Compili...