From 1b40e87a3f54a70d4994262dd7fad4297caaeca3 Mon Sep 17 00:00:00 2001 From: Richard Knight Date: Fri, 9 Jul 2021 17:35:01 +0100 Subject: moved from libpqxx to libpq --- include/postgresql.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'include') diff --git a/include/postgresql.h b/include/postgresql.h index d7db5d9..5209057 100644 --- a/include/postgresql.h +++ b/include/postgresql.h @@ -23,18 +23,18 @@ #define POSTGRESQL_H #include -#include +#include "libpq-fe.h" #include "connection.h" struct PostgresConnection { - pqxx::connection* conn; + PGconn* conn; void Init(csnd::Csound* csound, LoginData* login); void Close(csnd::Csound* csound); void Exec(char* sql); - pqxx::result Query(char *sql); + PGresult* Query(char *sql); MYFLT Scalar(char* sql, int row, int col); char* ScalarString(char* sql, int row, int col); - void ToArray(pqxx::result result, csnd::Csound* csound, ARRAYDAT* array, bool asString); + void ToArray(PGresult* result, csnd::Csound* csound, ARRAYDAT* array, bool asString); void ArrayQuery(char* sql, csnd::Csound* csound, ARRAYDAT* array); void ArrayQueryString(char* sql, csnd::Csound* csound, ARRAYDAT* array); }; -- cgit v1.2.3