Functions | |
| void | dui_odbc_init (void) |
| DuiDBConnection * | dui_odbc_connection_new (const gchar *dbname, const gchar *username, const gchar *authentication_token) |
| void | dui_odbc_connection_free (DuiDBConnection *conn) |
| DuiDBRecordSet * | dui_odbc_connection_exec (DuiDBConnection *, const gchar *buff) |
| DuiDBRecordSet * | dui_odbc_connection_tables (DuiDBConnection *) |
| DuiDBRecordSet * | dui_odbc_connection_table_columns (DuiDBConnection *, const gchar *table_name) |
| void | dui_odbc_recordset_release (DuiDBRecordSet *) |
| gint | dui_odbc_recordset_fetch_row (DuiDBRecordSet *rs) |
| const gchar * | dui_odbc_recordset_get_value (DuiDBRecordSet *, const gchar *fieldname) |
| DuiDBRecordSet* dui_odbc_connection_exec | ( | DuiDBConnection * | , | |
| const gchar * | 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_odbc_connection_new | ( | const gchar * | dbname, | |
| const gchar * | username, | |||
| const gchar * | authentication_token | |||
| ) |
establish new connection to indicated database
| DuiDBRecordSet* dui_odbc_connection_table_columns | ( | DuiDBConnection * | , | |
| const gchar * | table_name | |||
| ) |
| DuiDBRecordSet* dui_odbc_connection_tables | ( | DuiDBConnection * | ) |
get a list of tables in this database
| void dui_odbc_init | ( | void | ) |
Call before using anything else
Definition at line 631 of file dui-odbc.c.
00632 { 00633 #ifdef USE_ODBC 00634 DuiDBPlugin *plg; 00635 plg = dui_odbc_plugin_new(); 00636 dui_db_provider_register (plg); 00637 #else 00638 00639 PERR ("The DWI db drivers were compiled without ODBC support"); 00640 #endif /* USE_ODBC */ 00641 }
| gint dui_odbc_recordset_fetch_row | ( | DuiDBRecordSet * | rs | ) |
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 gchar* dui_odbc_recordset_get_value | ( | DuiDBRecordSet * | , | |
| const gchar * | 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_odbc_recordset_release | ( | DuiDBRecordSet * | ) |
release the record set when one is done with it
1.5.5