QOF  0.8.7
qofsql-p.h
Go to the documentation of this file.
1 /* ***************************************************************
2  * qofsql-p.h
3  *
4  * Mon Mar 17 11:26:49 GMT 2008
5  * Copyright 2008 Neil Williams
6  * linux@codehelp.co.uk
7  *************************************************************** */
8 /*
9  * This program is free software; you can redistribute it and/or modify
10  * it under the terms of the GNU General Public License as published by
11  * the Free Software Foundation; either version 2 of the License, or
12  * (at your option) any later version.
13  *
14  * This program is distributed in the hope that it will be useful,
15  * but WITHOUT ANY WARRANTY; without even the implied warranty of
16  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17  * GNU Library General Public License for more details.
18  *
19  * You should have received a copy of the GNU General Public License
20  * along with this program; if not, write to the Free Software
21  * Foundation, Inc., 51 Franklin Street, Fifth Floor Boston, MA 02110-1301, USA
22  */
23 
33 #ifndef QOFSQL_P_H
34 #define QOFSQL_P_H
35 
36 #include <glib.h>
37 #include "qof.h"
38 
54 typedef enum
55 {
57  SQL_NONE = 0,
71 
79 void qof_sql_entity_set_kvp_tablename (const gchar * name);
80 
90 void qof_sql_entity_set_kvp_id (gulong id);
91 
101 gulong qof_sql_entity_get_kvp_id (void);
102 
113 void qof_sql_entity_set_kvp_exists (gboolean exist);
114 
120 gchar *
122 
128 gchar *
130 
137 gchar *
139 
151 gchar *
153 
162 gchar *
163 qof_sql_entity_update_list (QofEntity * ent, GList **params);
164 
173 gchar *
175 
182 gchar *
184 
190 gchar *
192 
193 
196 #endif /* QOFSQL_P_H */
gchar * qof_sql_entity_insert(QofEntity *ent)
Build a SQL &#39;INSERT&#39; statement for this entity.
Definition: qofsql.c:1389
gchar * qof_sql_object_create_table(QofObject *obj)
Build a SQL &#39;CREATE&#39; statement for this object.
Definition: qofsql.c:1346
void qof_sql_entity_set_kvp_id(gulong id)
Set the initial index value of the KVP table.
Definition: qofsql.c:1564
gulong qof_sql_entity_get_kvp_id(void)
Get the index value of the KVP table after the operation(s).
Definition: qofsql.c:1569
gchar * qof_sql_entity_update(QofEntity *ent)
Build a SQL &#39;UPDATE&#39; statement for the current entity parameter.
Definition: qofsql.c:1460
gchar * qof_sql_entity_create_table(QofEntity *ent)
Build a SQL &#39;CREATE&#39; statement for this entity.
Definition: qofsql.c:1368
gchar * qof_sql_entity_update_list(QofEntity *ent, GList **params)
Build a SQL &#39;UPDATE&#39; statement for a list of parameters.
Definition: qofsql.c:1529
void qof_sql_entity_set_kvp_exists(gboolean exist)
Set or clear a flag that the KVP table exists or not.
Definition: qofsql.c:1574
gchar * qof_sql_entity_update_kvp(QofEntity *ent)
Build a SQL &#39;UPDATE&#39; statement for the KVP data in this entity.
Definition: qofsql.c:1495
gchar * qof_sql_entity_drop_table(QofEntity *ent)
Build a SQL &#39;DROP&#39; statement for this entity type.
Definition: qofsql.c:1549
void qof_sql_entity_set_kvp_tablename(const gchar *name)
Set a default KVP table name for each backend.
Definition: qofsql.c:1558
QsqlStatementType
Definition: qofsql-p.h:54
gchar * qof_sql_entity_delete(QofEntity *ent)
Build a SQL &#39;DELETE&#39; statement for this entity.
Definition: qofsql.c:1535