00001 /********************************************************************\ 00002 * dui-libpg.h -- driver for the postgres library * 00003 * Copyright (C) 2003,2004 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 \********************************************************************/ 00029 #ifndef DUI_LIBPQ_FE_H_ 00030 #define DUI_LIBPQ_FE_H_ 00031 00032 #include "dui-initdb.h" 00033 00034 /* Call before using anything else */ 00035 void dui_libpq_init (void); 00036 00038 DuiDBConnection * dui_libpq_connection_new (const char * dbname, 00039 const char * username, 00040 const char * authentication_token); 00041 00042 void dui_libpq_connection_free (DuiDBConnection *conn); 00043 00047 DuiDBRecordSet * dui_libpq_connection_exec (DuiDBConnection *, 00048 const char * buff); 00049 00051 void dui_libpq_recordset_release (DuiDBRecordSet *); 00052 00057 int dui_libpq_recordsettch_row (DuiDBRecordSet *); 00058 00062 const char * dui_libpq_recordset_get_value (DuiDBRecordSet *rs, 00063 const char * fieldname); 00064 00065 #endif /* DUI_LIBPQ_FE_H_ */
1.5.5