#include <PostgresSQLImplementation.h>
Inheritance diagram for dtn::PostgresSQLImplementation:
Definition at line 29 of file PostgresSQLImplementation.h.
Public Member Functions | |
PostgresSQLImplementation () | |
int | connect (const char *dbname) |
Virtual functions inherited from SQLImplementation. | |
int | close () |
Virtual functions inherited from SQLImplementation. | |
bool | has_table (const char *tablename) |
Virtual functions inherited from SQLImplementation. | |
int | exec_query (const char *query) |
Virtual functions inherited from SQLImplementation. | |
int | num_tuples () |
Virtual functions inherited from SQLImplementation. | |
const char * | get_value (int tuple_no, int field_no) |
Virtual functions inherited from SQLImplementation. | |
const char * | escape_string (const char *from) |
Virtual functions inherited from SQLImplementation. | |
const u_char * | escape_binary (const u_char *from, int from_length) |
Virtual functions inherited from SQLImplementation. | |
const u_char * | unescape_binary (const u_char *from) |
Virtual functions inherited from SQLImplementation. | |
Private Attributes | |
PGconn * | db_ |
the db connection | |
PGresult * | query_result_ |
dtn::PostgresSQLImplementation::PostgresSQLImplementation | ( | ) |
int dtn::PostgresSQLImplementation::connect | ( | const char * | dbname | ) | [virtual] |
int dtn::PostgresSQLImplementation::close | ( | ) | [virtual] |
bool dtn::PostgresSQLImplementation::has_table | ( | const char * | tablename | ) | [virtual] |
int dtn::PostgresSQLImplementation::exec_query | ( | const char * | query | ) | [virtual] |
int dtn::PostgresSQLImplementation::num_tuples | ( | ) | [virtual] |
const char* dtn::PostgresSQLImplementation::get_value | ( | int | tuple_no, | |
int | field_no | |||
) | [virtual] |
const char* dtn::PostgresSQLImplementation::escape_string | ( | const char * | from | ) | [virtual] |
const u_char* dtn::PostgresSQLImplementation::escape_binary | ( | const u_char * | from, | |
int | from_length | |||
) | [virtual] |
const u_char* dtn::PostgresSQLImplementation::unescape_binary | ( | const u_char * | from | ) | [virtual] |
PGconn* dtn::PostgresSQLImplementation::db_ [private] |
PGresult* dtn::PostgresSQLImplementation::query_result_ [private] |
Definition at line 52 of file PostgresSQLImplementation.h.