DBI plugin
[Estron backend plugins]


Functions

void dui_libdbi_init (void)
DuiDBConnection * dui_libdbi_connection_new (const char *dbname, const char *username, const char *authentication_token)
void dui_libdbi_connection_free (DuiDBConnection *conn)
DuiDBRecordSet * dui_libdbi_connection_exec (DuiDBConnection *, const char *buff)
void dui_libdbi_recordset_release (DuiDBRecordSet *)
int dui_libdbi_recordset_fetch_row (DuiDBRecordSet *)
const char * dui_libdbi_recordset_get_value (DuiDBRecordSet *rs, const char *fieldname)


Function Documentation

DuiDBRecordSet* dui_libdbi_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_libdbi_connection_new ( const char *  dbname,
const char *  username,
const char *  authentication_token 
)

establish new connection to indicated database

void dui_libdbi_init ( void   ) 

Call before using anything else

Todo:
translatable string not marked up

Definition at line 383 of file dui-libdbi.c.

00384 {
00385 #ifdef USE_LIBDBI
00386     DuiDBPlugin *plg;
00387     plg = dui_libdbi_plugin_new();
00388     dui_db_provider_register (plg);
00389 #else
00390 
00391     PERR ("The DWI db drivers were compiled without libdbi support");
00392 #endif /* USE_LIBDBI */
00393 }

int dui_libdbi_recordset_fetch_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.

const char* dui_libdbi_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.

void dui_libdbi_recordset_release ( DuiDBRecordSet *   ) 

Release the record set when one is done with it


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