Main Page   Modules   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members   Related Pages  

dsPGi Class Reference

#include <dsPGi.h>

List of all members.

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


Detailed Description

Library to support PostgresSQL


Member Enumeration Documentation

enum dsPGi::tts
 

Enumeration values:
no_trans 
do_trans 
begin_trans 
end_trans 


Constructor & Destructor Documentation

dsPGi::dsPGi   [inline]
 

dsPGi::dsPGi const char *    database,
const char *    user = 0,
const char *    passwd = 0
[inline]
 

dsPGi::dsPGi const char *    database,
const char *    host,
const char *    port,
const char *    user,
const char *    passwd = 0
[inline]
 

dsPGi::~dsPGi   [inline]
 


Member Function Documentation

const char* dsPGi::__fieldname PGresult *    x_res,
int    i
[inline]
 

const int dsPGi::__fields PGresult *    x_res [inline]
 

const int dsPGi::__tuples PGresult *    x_res [inline]
 

const char* dsPGi::__value PGresult *    x_res,
int    tuple,
char *    field
[inline]
 

const char* dsPGi::__value PGresult *    x_res,
int    tuple,
int    field
[inline]
 

void dsPGi::begin  
 

void dsPGi::close   [inline]
 

void dsPGi::closeCursor  
 

void dsPGi::commit  
 

void dsPGi::connect const char *    dbName,
const char *    host,
const char *    port,
const char *    user,
const char *    passwd
 

const char* dsPGi::cursor   [inline]
 

int dsPGi::fetchAll  
 

int dsPGi::fetchNext  
 

const char* dsPGi::fieldname int    i [inline]
 

int dsPGi::fields   [inline]
 

dsPGi * dsPGi::get_result  
 

PGresult* dsPGi::getResult   [inline]
 

const char* dsPGi::last_oid   const [inline]
 

void dsPGi::openCursor const char *    query,
const char *    cursor = 0
 

const char* dsPGi::operator[] char *    field [inline]
 

const char* dsPGi::operator[] int    field [inline]
 

const char* dsPGi::qfieldname int    i [inline]
 

int dsPGi::qfields   [inline]
 

int dsPGi::qtouples   [inline]
 

int dsPGi::qtuples   [inline]
 

const char* dsPGi::qvalue int    tuple,
char *    field
[inline]
 

const char* dsPGi::qvalue int    tuple,
int    field
[inline]
 

const char* dsPGi::qvalue char *    field [inline]
 

const char* dsPGi::qvalue int    field [inline]
 

void dsPGi::rollback  
 

void dsPGi::runAction const char *    query,
tts    use_tts = do_trans
 

void dsPGi::runActionAsync const char *    query,
int    alarm_timeout = 10
 

void dsPGi::runQuery const char *    query
 

int dsPGi::touples   [inline]
 

int dsPGi::touples_changed   const [inline]
 

void dsPGi::trace FILE *    f [inline]
 

void dsPGi::trace const char *    fname = 0 [inline]
 

int dsPGi::tuples   [inline]
 

const char* dsPGi::value int    tuple,
char *    field
[inline]
 

const char* dsPGi::value int    tuple,
int    field
[inline]
 

const char* dsPGi::value char *    field [inline]
 

const char* dsPGi::value int    field [inline]
 


Member Data Documentation

PGresult* dsPGi::_act_res
 

PGconn* dsPGi::_conn
 

char* dsPGi::_cursor
 

char* dsPGi::_dbName
 

int dsPGi::_has_begin
 

PGresult* dsPGi::_res
 

FILE* dsPGi::debf
 


The documentation for this class was generated from the following files:
Generated on Mon May 16 18:27:00 2005 for libdms4 by doxygen1.3-rc2