qofsql-p.h File Reference

Private QOF SQL generation routines. More...

#include <glib.h>
#include "qof.h"

Go to the source code of this file.

Enumerations

enum  QsqlStatementType {
  SQL_NONE = 0, SQL_CREATE, SQL_LOAD, SQL_WRITE,
  SQL_INSERT, SQL_DELETE, SQL_UPDATE
}

Functions

void qof_sql_entity_set_kvp_tablename (const gchar *name)
 Set a default KVP table name for each backend.
void qof_sql_entity_set_kvp_id (gulong id)
 Set the initial index value of the KVP table.
gulong qof_sql_entity_get_kvp_id (void)
 Get the index value of the KVP table after the operation(s).
void qof_sql_entity_set_kvp_exists (gboolean exist)
 Set or clear a flag that the KVP table exists or not.
gchar * qof_sql_entity_create_table (QofEntity *ent)
 Build a SQL 'CREATE' statement for this entity.
gchar * qof_sql_entity_insert (QofEntity *ent)
 Build a SQL 'INSERT' statement for this entity.
gchar * qof_sql_entity_update (QofEntity *ent)
 Build a SQL 'UPDATE' statement for the current entity parameter.
gchar * qof_sql_entity_update_kvp (QofEntity *ent)
 Build a SQL 'UPDATE' statement for the KVP data in this entity.
gchar * qof_sql_entity_update_list (QofEntity *ent, GList **params)
 Build a SQL 'UPDATE' statement for a list of parameters.
gchar * qof_sql_entity_delete (QofEntity *ent)
 Build a SQL 'DELETE' statement for this entity.
gchar * qof_sql_entity_drop_table (QofEntity *ent)
 Build a SQL 'DROP' statement for this entity type.
gchar * qof_sql_object_create_table (QofObject *obj)
 Build a SQL 'CREATE' statement for this object.


Detailed Description

Private QOF SQL generation routines.

Author:
Copyright (c) 2008 Neil Williams <linux@codehelp.co.uk>

Definition in file qofsql-p.h.


Generated on Mon Jul 13 05:15:21 2009 for QOF by  doxygen 1.5.9