aboutsummaryrefslogtreecommitdiff
path: root/include/postgresql.h
diff options
context:
space:
mode:
authorRichard Knight <q@1bpm.net>2021-07-09 17:35:01 +0100
committerRichard Knight <q@1bpm.net>2021-07-09 17:35:01 +0100
commit1b40e87a3f54a70d4994262dd7fad4297caaeca3 (patch)
treee70a190201d4a348daff0234769653e9eb262257 /include/postgresql.h
parent6002b975544934cf8127040257ce630d8bc0d279 (diff)
downloadcsound-sqldb-1b40e87a3f54a70d4994262dd7fad4297caaeca3.tar.gz
csound-sqldb-1b40e87a3f54a70d4994262dd7fad4297caaeca3.tar.bz2
csound-sqldb-1b40e87a3f54a70d4994262dd7fad4297caaeca3.zip
moved from libpqxx to libpq
Diffstat (limited to 'include/postgresql.h')
-rw-r--r--include/postgresql.h8
1 files changed, 4 insertions, 4 deletions
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 <plugin.h>
-#include <pqxx/pqxx>
+#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);
};