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) |
| 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.
1.5.5