qofsql.h

Go to the documentation of this file.
00001 /********************************************************************\
00002  * qofsql.h -- QOF client-side SQL parser using libgda              *
00003  *                                                                  *
00004  * This program is free software; you can redistribute it and/or    *
00005  * modify it under the terms of the GNU General Public License as   *
00006  * published by the Free Software Foundation; either version 2 of   *
00007  * the License, or (at your option) any later version.              *
00008  *                                                                  *
00009  * This program is distributed in the hope that it will be useful,  *
00010  * but WITHOUT ANY WARRANTY; without even the implied warranty of   *
00011  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the    *
00012  * GNU General Public License for more details.                     *
00013  *                                                                  *
00014  * You should have received a copy of the GNU General Public License*
00015  * along with this program; if not, contact:                        *
00016  *                                                                  *
00017  * Free Software Foundation           Voice:  +1-617-542-5942       *
00018  * 51 Franklin Street, Fifth Floor    Fax:    +1-617-542-2652       *
00019  * Boston, MA  02110-1301,  USA       gnu@gnu.org                   *
00020  *                                                                  *
00021 \********************************************************************/
00022 
00032 #ifndef QOF_SQL_QUERY_H
00033 #define QOF_SQL_QUERY_H
00034 
00035 #include "kvpframe.h"
00036 #include "qofbook.h"
00037 #include "qofquery.h"
00038 
00127 typedef struct _QofSqlQuery QofSqlQuery;
00128 
00131 QofSqlQuery *qof_sql_query_new (void);
00132 void qof_sql_query_destroy (QofSqlQuery *);
00133 
00138 void qof_sql_query_set_book (QofSqlQuery * q, QofBook * book);
00139 
00152 GList *qof_sql_query_run (QofSqlQuery * query, const gchar * str);
00153 
00159 void qof_sql_query_parse (QofSqlQuery * query, const gchar * str);
00160 
00162 QofQuery *qof_sql_query_get_query (QofSqlQuery *);
00163 
00170 GList *qof_sql_query_rerun (QofSqlQuery * query);
00171 
00196 void qof_sql_query_set_kvp (QofSqlQuery *, KvpFrame *);
00197 
00200 #endif /* QOF_SQL_QUERY_H */

Generated on Thu Jan 31 22:50:26 2008 for QOF by  doxygen 1.5.4