|
Public Types |
enum | tts { no_trans = 0,
do_trans = 3,
begin_trans = 1,
end_trans = 2
} |
Public Methods |
| dsPGi () |
| dsPGi (const char *database, const char *user=0, const char *passwd=0) |
| dsPGi (const char *database, const char *host, const char *port, const char *user, const char *passwd=0) |
| ~dsPGi () |
dsPGi * | get_result () |
void | connect (const char *dbName, const char *host, const char *port, const char *user, const char *passwd) |
void | close () |
void | openCursor (const char *query, const char *cursor=0) |
void | closeCursor () |
int | fetchNext () |
int | fetchAll () |
void | runActionAsync (const char *query, int alarm_timeout=10) |
void | runAction (const char *query, tts use_tts=do_trans) |
void | runQuery (const char *query) |
int | touples_changed () const |
const char * | last_oid () const |
const int | __tuples (PGresult *x_res) |
const int | __fields (PGresult *x_res) |
const char * | __fieldname (PGresult *x_res, int i) |
const char * | __value (PGresult *x_res, int tuple, int field) |
const char * | __value (PGresult *x_res, int tuple, char *field) |
int | qtuples () |
int | qtouples () |
int | qfields () |
const char * | qfieldname (int i) |
const char * | qvalue (int field) |
const char * | qvalue (char *field) |
const char * | qvalue (int tuple, int field) |
const char * | qvalue (int tuple, char *field) |
int | tuples () |
int | touples () |
int | fields () |
const char * | fieldname (int i) |
const char * | value (int field) |
const char * | value (char *field) |
const char * | value (int tuple, int field) |
const char * | value (int tuple, char *field) |
const char * | cursor () |
const char * | operator[] (int field) |
const char * | operator[] (char *field) |
void | trace (const char *fname=0) |
void | trace (FILE *f) |
PGresult * | getResult () |
void | begin () |
void | commit () |
void | rollback () |
Public Attributes |
PGconn * | _conn |
PGresult * | _res |
PGresult * | _act_res |
char * | _cursor |
char * | _dbName |
FILE * | debf |
int | _has_begin |