00001 /********************************************************************\ 00002 * dui-odbc.h -- DUI ODBC driver * 00003 * Copyright (C) 2002 Linas Vepstas <linas@linas.org> * 00004 * http://dwi.sourceforge.net * 00005 * * 00006 * This library is free software; you can redistribute it and/or * 00007 * modify it under the terms of the GNU Lesser General Public * 00008 * License as published by the Free Software Foundation; either * 00009 * version 2.1 of the License, or (at your option) any later version. 00010 * * 00011 * This library is distributed in the hope that it will be useful, * 00012 * but WITHOUT ANY WARRANTY; without even the implied warranty of * 00013 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * 00014 * GNU Lesser General Public License for more details. * 00015 * * 00016 * You should have received a copy of the GNU Lesser General Public * 00017 * License along with this program; if not, contact: * 00018 * * 00019 * Free Software Foundation Voice: +1-617-542-5942 * 00020 * 59 Temple Place - Suite 330 Fax: +1-617-542-2652 * 00021 * Boston, MA 02111-1307, USA gnu@gnu.org * 00022 \********************************************************************/ 00023 00034 #ifndef DUI_ODBC_H 00035 #define DUI_ODBC_H 00036 00037 #include "dui-initdb.h" 00038 00040 void dui_odbc_init(void); 00041 00043 DuiDBConnection * dui_odbc_connection_new (const gchar * dbname, 00044 const gchar * username, 00045 const gchar * authentication_token); 00046 00047 void dui_odbc_connection_free (DuiDBConnection *conn); 00048 00052 DuiDBRecordSet * dui_odbc_connection_exec (DuiDBConnection *, 00053 const gchar * buff); 00054 00056 DuiDBRecordSet * dui_odbc_connection_tables (DuiDBConnection *); 00057 00062 DuiDBRecordSet * dui_odbc_connection_table_columns (DuiDBConnection *, 00063 const gchar * table_name); 00064 00066 void dui_odbc_recordset_release (DuiDBRecordSet *); 00067 00072 gint dui_odbc_recordset_fetch_row (DuiDBRecordSet *rs); 00073 00077 const gchar * dui_odbc_recordset_get_value (DuiDBRecordSet *, 00078 const gchar * fieldname); 00079 00084 #endif /* DUI_ODBC_H */
1.5.5