* Fix pqSetSingleRowMode case. Add links to the docs * Add missing PGContextVisibility enum * Remove unused PGContextVisibility enum
This commit is contained in:
parent
0a9a90d991
commit
b7cba9ea08
1 changed files with 4 additions and 2 deletions
|
|
@ -116,7 +116,7 @@ type
|
||||||
PQTRANS_UNKNOWN
|
PQTRANS_UNKNOWN
|
||||||
PPGVerbosity* = ptr PGVerbosity
|
PPGVerbosity* = ptr PGVerbosity
|
||||||
PGVerbosity* = enum
|
PGVerbosity* = enum
|
||||||
PQERRORS_TERSE, PQERRORS_DEFAULT, PQERRORS_VERBOSE
|
PQERRORS_TERSE, PQERRORS_DEFAULT, PQERRORS_VERBOSE, PQERRORS_SQLSTATE
|
||||||
PPGNotify* = ptr pgNotify
|
PPGNotify* = ptr pgNotify
|
||||||
pgNotify*{.pure, final.} = object
|
pgNotify*{.pure, final.} = object
|
||||||
relname*: cstring
|
relname*: cstring
|
||||||
|
|
@ -240,6 +240,7 @@ proc pqexecPrepared*(conn: PPGconn, stmtName: cstring, nParams: int32,
|
||||||
cdecl, dynlib: dllName, importc: "PQexecPrepared".}
|
cdecl, dynlib: dllName, importc: "PQexecPrepared".}
|
||||||
proc pqsendQuery*(conn: PPGconn, query: cstring): int32{.cdecl, dynlib: dllName,
|
proc pqsendQuery*(conn: PPGconn, query: cstring): int32{.cdecl, dynlib: dllName,
|
||||||
importc: "PQsendQuery".}
|
importc: "PQsendQuery".}
|
||||||
|
## See also https://www.postgresql.org/docs/current/libpq-async.html
|
||||||
proc pqsendQueryParams*(conn: PPGconn, command: cstring, nParams: int32,
|
proc pqsendQueryParams*(conn: PPGconn, command: cstring, nParams: int32,
|
||||||
paramTypes: POid, paramValues: cstringArray,
|
paramTypes: POid, paramValues: cstringArray,
|
||||||
paramLengths, paramFormats: ptr int32,
|
paramLengths, paramFormats: ptr int32,
|
||||||
|
|
@ -250,8 +251,9 @@ proc pqsendQueryPrepared*(conn: PPGconn, stmtName: cstring, nParams: int32,
|
||||||
paramLengths, paramFormats: ptr int32,
|
paramLengths, paramFormats: ptr int32,
|
||||||
resultFormat: int32): int32{.cdecl, dynlib: dllName,
|
resultFormat: int32): int32{.cdecl, dynlib: dllName,
|
||||||
importc: "PQsendQueryPrepared".}
|
importc: "PQsendQueryPrepared".}
|
||||||
proc pqsetsinglerowmode*(conn: PPGconn): int32{.cdecl, dynlib: dllName,
|
proc pqSetSingleRowMode*(conn: PPGconn): int32{.cdecl, dynlib: dllName,
|
||||||
importc: "PQsetSingleRowMode".}
|
importc: "PQsetSingleRowMode".}
|
||||||
|
## See also https://www.postgresql.org/docs/current/libpq-single-row-mode.html
|
||||||
proc pqgetResult*(conn: PPGconn): PPGresult{.cdecl, dynlib: dllName,
|
proc pqgetResult*(conn: PPGconn): PPGresult{.cdecl, dynlib: dllName,
|
||||||
importc: "PQgetResult".}
|
importc: "PQgetResult".}
|
||||||
proc pqisBusy*(conn: PPGconn): int32{.cdecl, dynlib: dllName,
|
proc pqisBusy*(conn: PPGconn): int32{.cdecl, dynlib: dllName,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue