updated sqlite3 wrapper slightly
This commit is contained in:
parent
4711f6c398
commit
fa101a722f
1 changed files with 6 additions and 5 deletions
|
|
@ -96,10 +96,6 @@ const
|
||||||
#define SQLITE_TRANSIENT ((void(*)(void *))-1)
|
#define SQLITE_TRANSIENT ((void(*)(void *))-1)
|
||||||
SQLITE_DETERMINISTIC* = 0x800
|
SQLITE_DETERMINISTIC* = 0x800
|
||||||
|
|
||||||
const
|
|
||||||
SQLITE_STATIC* = nil
|
|
||||||
SQLITE_TRANSIENT* = cast[pointer](- 1)
|
|
||||||
|
|
||||||
type
|
type
|
||||||
Sqlite3 {.pure, final.} = object
|
Sqlite3 {.pure, final.} = object
|
||||||
PSqlite3* = ptr Sqlite3
|
PSqlite3* = ptr Sqlite3
|
||||||
|
|
@ -132,6 +128,10 @@ type
|
||||||
Tresult_func: Result_func, Tcreate_collation_func: Create_collation_func,
|
Tresult_func: Result_func, Tcreate_collation_func: Create_collation_func,
|
||||||
Tcollation_needed_func: Collation_needed_func].}
|
Tcollation_needed_func: Collation_needed_func].}
|
||||||
|
|
||||||
|
const
|
||||||
|
SQLITE_STATIC* = nil
|
||||||
|
SQLITE_TRANSIENT* = cast[Tbind_destructor_func](- 1)
|
||||||
|
|
||||||
proc close*(para1: PSqlite3): int32{.cdecl, dynlib: Lib, importc: "sqlite3_close".}
|
proc close*(para1: PSqlite3): int32{.cdecl, dynlib: Lib, importc: "sqlite3_close".}
|
||||||
proc exec*(para1: PSqlite3, sql: cstring, para3: Callback, para4: pointer,
|
proc exec*(para1: PSqlite3, sql: cstring, para3: Callback, para4: pointer,
|
||||||
errmsg: var cstring): int32{.cdecl, dynlib: Lib,
|
errmsg: var cstring): int32{.cdecl, dynlib: Lib,
|
||||||
|
|
@ -234,7 +234,8 @@ proc bind_parameter_name*(para1: Pstmt, para2: int32): cstring{.cdecl,
|
||||||
dynlib: Lib, importc: "sqlite3_bind_parameter_name".}
|
dynlib: Lib, importc: "sqlite3_bind_parameter_name".}
|
||||||
proc bind_parameter_index*(para1: Pstmt, zName: cstring): int32{.cdecl,
|
proc bind_parameter_index*(para1: Pstmt, zName: cstring): int32{.cdecl,
|
||||||
dynlib: Lib, importc: "sqlite3_bind_parameter_index".}
|
dynlib: Lib, importc: "sqlite3_bind_parameter_index".}
|
||||||
#function sqlite3_clear_bindings(_para1:Psqlite3_stmt):longint;cdecl; external Sqlite3Lib name 'sqlite3_clear_bindings';
|
proc clear_bindings*(para1: Pstmt): int32 {.cdecl,
|
||||||
|
dynlib: Lib, importc: "sqlite3_clear_bindings".}
|
||||||
proc column_count*(pStmt: Pstmt): int32{.cdecl, dynlib: Lib,
|
proc column_count*(pStmt: Pstmt): int32{.cdecl, dynlib: Lib,
|
||||||
importc: "sqlite3_column_count".}
|
importc: "sqlite3_column_count".}
|
||||||
proc column_name*(para1: Pstmt, para2: int32): cstring{.cdecl, dynlib: Lib,
|
proc column_name*(para1: Pstmt, para2: int32): cstring{.cdecl, dynlib: Lib,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue