pg: fix GCC compilation error

pull/1371/head
Alexander Medvednikov 2019-07-30 00:28:33 +02:00
parent 5bb8416baf
commit 69b6e682cb
1 changed files with 1 additions and 0 deletions

View File

@ -26,6 +26,7 @@ struct C.PGResult { }
fn C.PQconnectdb(a byteptr) *C.PGconn
fn C.PQerrorMessage(voidptr) byteptr
fn C.PQgetvalue(voidptr, int, int) byteptr
fn C.PQstatus(voidptr) int
pub fn connect(dbname, user string) DB {
conninfo := 'host=localhost user=$user dbname=$dbname'