pg: Better error reporting + basic exec() method
This commit is contained in:
parent
b242176071
commit
c51b5f3598
5 changed files with 173 additions and 28 deletions
5
FU.xs
5
FU.xs
|
|
@ -8,6 +8,7 @@
|
|||
#include "c/common.c"
|
||||
#include "c/jsonfmt.c"
|
||||
#include "c/jsonparse.c"
|
||||
#include "c/libpq.h"
|
||||
#include "c/pgconn.c"
|
||||
|
||||
|
||||
|
|
@ -66,6 +67,10 @@ int server_version(fupg_conn *c)
|
|||
OUTPUT:
|
||||
RETVAL
|
||||
|
||||
void exec(fupg_conn *c, SV *sv)
|
||||
CODE:
|
||||
ST(0) = fupg_exec(c, SvPVutf8_nolen(sv));
|
||||
|
||||
void DESTROY(fupg_conn *c)
|
||||
CODE:
|
||||
fupg_destroy(c);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue