mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
pg: define all C functions
This commit is contained in:
@@ -29,6 +29,10 @@ fn C.PQconnectdb(a byteptr) &C.PGconn
|
||||
fn C.PQerrorMessage(voidptr) byteptr
|
||||
fn C.PQgetvalue(voidptr, int, int) byteptr
|
||||
fn C.PQstatus(voidptr) int
|
||||
fn C.PQntuples(voidptr) int
|
||||
fn C.PQnfields(voidptr) int
|
||||
fn C.PQexec(voidptr) int
|
||||
fn C.PQexecParams(voidptr) int
|
||||
|
||||
pub fn connect(config pg.Config) DB {
|
||||
conninfo := 'host=$config.host user=$config.user dbname=$config.dbname'
|
||||
|
Reference in New Issue
Block a user