#include <database-postgresql.h>
|
int | pg_to_int (PGresult *res, int row, int col) |
|
u32 | pg_to_uint (PGresult *res, int row, int col) |
|
float | pg_to_float (PGresult *res, int row, int col) |
|
v3s16 | pg_to_v3s16 (PGresult *res, int row, int col) |
|
std::string | pg_to_string (PGresult *res, int row, int col) |
|
PGresult * | execPrepared (const char *stmtName, const int paramsNumber, const void **params, const int *paramsLengths=NULL, const int *paramsFormats=NULL, bool clear=true, bool nobinary=true) |
|
PGresult * | execPrepared (const char *stmtName, const int paramsNumber, const char **params, bool clear=true, bool nobinary=true) |
|
void | createTableIfNotExists (const std::string &table_name, const std::string &definition) |
|
void | verifyDatabase () |
|
void | connectToDatabase () |
|
virtual void | createDatabase ()=0 |
|
virtual void | initStatements ()=0 |
|
void | prepareStatement (const std::string &name, const std::string &sql) |
|
int | getPGVersion () const |
|
◆ Database_PostgreSQL()
Database_PostgreSQL::Database_PostgreSQL |
( |
const std::string & | connect_string, |
|
|
const char * | type ) |
◆ ~Database_PostgreSQL()
Database_PostgreSQL::~Database_PostgreSQL |
( |
| ) |
|
◆ beginSave()
void Database_PostgreSQL::beginSave |
( |
| ) |
|
|
virtual |
◆ checkResults()
PGresult * Database_PostgreSQL::checkResults |
( |
PGresult * | res, |
|
|
bool | clear = true ) |
|
private |
◆ connectToDatabase()
void Database_PostgreSQL::connectToDatabase |
( |
| ) |
|
|
protected |
◆ createDatabase()
virtual void Database_PostgreSQL::createDatabase |
( |
| ) |
|
|
protectedpure virtual |
◆ createTableIfNotExists()
void Database_PostgreSQL::createTableIfNotExists |
( |
const std::string & | table_name, |
|
|
const std::string & | definition ) |
|
protected |
◆ endSave()
void Database_PostgreSQL::endSave |
( |
| ) |
|
|
virtual |
◆ execPrepared() [1/2]
PGresult * Database_PostgreSQL::execPrepared |
( |
const char * | stmtName, |
|
|
const int | paramsNumber, |
|
|
const char ** | params, |
|
|
bool | clear = true, |
|
|
bool | nobinary = true ) |
|
inlineprotected |
◆ execPrepared() [2/2]
PGresult * Database_PostgreSQL::execPrepared |
( |
const char * | stmtName, |
|
|
const int | paramsNumber, |
|
|
const void ** | params, |
|
|
const int * | paramsLengths = NULL, |
|
|
const int * | paramsFormats = NULL, |
|
|
bool | clear = true, |
|
|
bool | nobinary = true ) |
|
inlineprotected |
◆ getPGVersion()
int Database_PostgreSQL::getPGVersion |
( |
| ) |
const |
|
inlineprotected |
◆ initialized()
bool Database_PostgreSQL::initialized |
( |
| ) |
const |
|
virtual |
◆ initStatements()
virtual void Database_PostgreSQL::initStatements |
( |
| ) |
|
|
protectedpure virtual |
◆ pg_to_float()
float Database_PostgreSQL::pg_to_float |
( |
PGresult * | res, |
|
|
int | row, |
|
|
int | col ) |
|
inlineprotected |
◆ pg_to_int()
int Database_PostgreSQL::pg_to_int |
( |
PGresult * | res, |
|
|
int | row, |
|
|
int | col ) |
|
inlineprotected |
◆ pg_to_string()
std::string Database_PostgreSQL::pg_to_string |
( |
PGresult * | res, |
|
|
int | row, |
|
|
int | col ) |
|
inlineprotected |
◆ pg_to_uint()
u32 Database_PostgreSQL::pg_to_uint |
( |
PGresult * | res, |
|
|
int | row, |
|
|
int | col ) |
|
inlineprotected |
◆ pg_to_v3s16()
v3s16 Database_PostgreSQL::pg_to_v3s16 |
( |
PGresult * | res, |
|
|
int | row, |
|
|
int | col ) |
|
inlineprotected |
◆ ping()
void Database_PostgreSQL::ping |
( |
| ) |
|
|
private |
◆ prepareStatement()
void Database_PostgreSQL::prepareStatement |
( |
const std::string & | name, |
|
|
const std::string & | sql ) |
|
inlineprotected |
◆ rollback()
void Database_PostgreSQL::rollback |
( |
| ) |
|
◆ verifyDatabase()
void Database_PostgreSQL::verifyDatabase |
( |
| ) |
|
|
protected |
◆ m_conn
PGconn* Database_PostgreSQL::m_conn = nullptr |
|
private |
◆ m_connect_string
std::string Database_PostgreSQL::m_connect_string |
|
private |
◆ m_pgversion
int Database_PostgreSQL::m_pgversion = 0 |
|
private |
The documentation for this class was generated from the following file: