mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
pg: fix GCC compilation error
This commit is contained in:
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
Block a user