pg: fix GCC compilation error
parent
5bb8416baf
commit
69b6e682cb
|
@ -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'
|
||||
|
|
Loading…
Reference in New Issue