pg: Better error reporting + basic exec() method

This commit is contained in:
Yorhel 2025-02-03 16:59:18 +01:00
parent b242176071
commit c51b5f3598
5 changed files with 173 additions and 28 deletions

5
FU.xs
View file

@ -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);