diff options
Diffstat (limited to 'include/postgresql.h')
-rw-r--r-- | include/postgresql.h | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/include/postgresql.h b/include/postgresql.h index d7db5d9..eaf01c8 100644 --- a/include/postgresql.h +++ b/include/postgresql.h @@ -19,22 +19,22 @@ */ -#ifndef POSTGRESQL_H -#define POSTGRESQL_H +#ifndef CSSQLDB_POSTGRESQL_H +#define CSSQLDB_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); + char* ScalarString(char* sql, csnd::Csound* csound, int row, int col); + 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); }; |