QOF
0.8.6
Main Page
Related Pages
Modules
Data Structures
Files
File List
Globals
qof
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,
59
SQL_CREATE
,
61
SQL_LOAD
,
63
SQL_WRITE
,
65
SQL_INSERT
,
67
SQL_DELETE
,
69
SQL_UPDATE
70
}
QsqlStatementType
;
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 *
121
qof_sql_entity_create_table
(
QofEntity
* ent);
122
128
gchar *
129
qof_sql_entity_insert
(
QofEntity
* ent);
130
137
gchar *
138
qof_sql_entity_update
(
QofEntity
* ent);
139
151
gchar *
152
qof_sql_entity_update_kvp
(
QofEntity
* ent);
153
162
gchar *
163
qof_sql_entity_update_list
(
QofEntity
* ent, GList **params);
164
173
gchar *
174
qof_sql_entity_delete
(
QofEntity
* ent);
175
182
gchar *
183
qof_sql_entity_drop_table
(
QofEntity
* ent);
184
190
gchar *
191
qof_sql_object_create_table
(
QofObject
* obj);
192
193
196
#endif
/* QOFSQL_P_H */
Generated on Fri Mar 14 2014 17:06:09 for QOF by
1.8.1.2