QOF  0.8.7
qofsql.h
Go to the documentation of this file.
1 /********************************************************************\
2  * qofsql.h -- QOF client-side SQL parser using libgda *
3  * *
4  * This program is free software; you can redistribute it and/or *
5  * modify it under the terms of the GNU General Public License as *
6  * published by the Free Software Foundation; either version 2 of *
7  * the License, or (at your option) any later version. *
8  * *
9  * This program is distributed in the hope that it will be useful, *
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of *
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
12  * GNU General Public License for more details. *
13  * *
14  * You should have received a copy of the GNU General Public License*
15  * along with this program; if not, contact: *
16  * *
17  * Free Software Foundation Voice: +1-617-542-5942 *
18  * 51 Franklin Street, Fifth Floor Fax: +1-617-542-2652 *
19  * Boston, MA 02110-1301, USA gnu@gnu.org *
20  * *
21 \********************************************************************/
22 
32 #ifndef QOF_SQL_QUERY_H
33 #define QOF_SQL_QUERY_H
34 
35 #include "kvpframe.h"
36 #include "qofbook.h"
37 #include "qofquery.h"
38 
127 typedef struct _QofSqlQuery QofSqlQuery;
128 
131 QofSqlQuery *qof_sql_query_new (void);
132 void qof_sql_query_destroy (QofSqlQuery *);
133 
138 void qof_sql_query_set_book (QofSqlQuery * q, QofBook * book);
139 
152 GList *qof_sql_query_run (QofSqlQuery * query, const gchar * str);
153 
159 void qof_sql_query_parse (QofSqlQuery * query, const gchar * str);
160 
162 QofQuery *qof_sql_query_get_query (QofSqlQuery *);
163 
170 GList *qof_sql_query_rerun (QofSqlQuery * query);
171 
196 void qof_sql_query_set_kvp (QofSqlQuery *, KvpFrame *);
197 
200 #endif /* QOF_SQL_QUERY_H */
void qof_sql_query_parse(QofSqlQuery *query, const gchar *str)
struct _KvpFrame KvpFrame
Definition: kvpframe.h:74
void qof_sql_query_set_book(QofSqlQuery *q, QofBook *book)
Definition: qofsql.c:113
struct _QofQuery QofQuery
Definition: qofquery.h:85
A key-value frame system.
find objects that match a certain expression.
QofQuery * qof_sql_query_get_query(QofSqlQuery *)
Definition: qofsql.c:103
void qof_sql_query_set_kvp(QofSqlQuery *, KvpFrame *)
Definition: qofsql.c:123
QofSqlQuery * qof_sql_query_new(void)
Definition: qofsql.c:75
Encapsulate all the information about a dataset.
GList * qof_sql_query_run(QofSqlQuery *query, const gchar *str)
Perform the query, return the results.
GList * qof_sql_query_rerun(QofSqlQuery *query)
Definition: qofsql.c:1044