dui-libpg.h File Reference


Detailed Description

libpq-fe (postgres) driver for DUI. Uses postgresql-dev

Author:
2003,2004 Linas Vepstas <linas@linas.org>

Definition in file dui-libpg.h.

#include "dui-initdb.h"

Go to the source code of this file.

Functions

void dui_libpq_init (void)
DuiDBConnection * dui_libpq_connection_new (const char *dbname, const char *username, const char *authentication_token)
void dui_libpq_connection_free (DuiDBConnection *conn)
DuiDBRecordSet * dui_libpq_connection_exec (DuiDBConnection *, const char *buff)
void dui_libpq_recordset_release (DuiDBRecordSet *)
int dui_libpq_recordsettch_row (DuiDBRecordSet *)
const char * dui_libpq_recordset_get_value (DuiDBRecordSet *rs, const char *fieldname)


Function Documentation

DuiDBRecordSet* dui_libpq_connection_exec ( DuiDBConnection *  ,
const char *  buff 
)

Issue a query on this connection. FYI -- the query is actually performed asynchronously; the record set may not yet contain valid data when this routine returns.

DuiDBConnection* dui_libpq_connection_new ( const char *  dbname,
const char *  username,
const char *  authentication_token 
)

establish new connection to indicated database

const char* dui_libpq_recordset_get_value ( DuiDBRecordSet *  rs,
const char *  fieldname 
)

Get the field value by name. This is a little different/easier than the usual trick of getting it by column number. Slower too.

void dui_libpq_recordset_release ( DuiDBRecordSet *   ) 

Release the record set when one is done with it

int dui_libpq_recordsettch_row ( DuiDBRecordSet *   ) 

Prep a row. Basically, this gets the 'next' row out of the database. Subsequent field fetches are for this row. Returns zero if there are no more rows.


Generated on Tue Apr 29 21:27:53 2008 for estron by  doxygen 1.5.5