From 51205285e7e009e409e58df36ed7ba05ce8824a3 Mon Sep 17 00:00:00 2001 From: zhoupeng Date: Tue, 7 Jan 2020 14:42:14 +0800 Subject: [PATCH] add pqserverVersion,pqconnectionNeedsPassword,pqconnectionUsedPassword --- lib/wrappers/postgres.nim | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/lib/wrappers/postgres.nim b/lib/wrappers/postgres.nim index a9fa0b8f320dd..c90116ea27190 100644 --- a/lib/wrappers/postgres.nim +++ b/lib/wrappers/postgres.nim @@ -193,6 +193,8 @@ proc pqtransactionStatus*(conn: PPGconn): PGTransactionStatusType{.cdecl, dynlib: dllName, importc: "PQtransactionStatus".} proc pqparameterStatus*(conn: PPGconn, paramName: cstring): cstring{.cdecl, dynlib: dllName, importc: "PQparameterStatus".} +proc pqserverVersion*(conn: PPGconn): int32{.cdecl, + dynlib: dllName, importc: "PQserverVersion".} proc pqprotocolVersion*(conn: PPGconn): int32{.cdecl, dynlib: dllName, importc: "PQprotocolVersion".} proc pqerrorMessage*(conn: PPGconn): cstring{.cdecl, dynlib: dllName, @@ -201,6 +203,10 @@ proc pqsocket*(conn: PPGconn): int32{.cdecl, dynlib: dllName, importc: "PQsocket".} proc pqbackendPID*(conn: PPGconn): int32{.cdecl, dynlib: dllName, importc: "PQbackendPID".} +proc pqconnectionNeedsPassword*(conn: PPGconn): int32{.cdecl, dynlib: dllName, + importc: "PQconnectionNeedsPassword".} +proc pqconnectionUsedPassword*(conn: PPGconn): int32{.cdecl, dynlib: dllName, + importc: "PQconnectionUsedPassword".} proc pqclientEncoding*(conn: PPGconn): int32{.cdecl, dynlib: dllName, importc: "PQclientEncoding".} proc pqsetClientEncoding*(conn: PPGconn, encoding: cstring): int32{.cdecl,