QOF  0.8.7
Enumerations | Functions
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. More...
 
void qof_sql_entity_set_kvp_id (gulong id)
 Set the initial index value of the KVP table. More...
 
gulong qof_sql_entity_get_kvp_id (void)
 Get the index value of the KVP table after the operation(s). More...
 
void qof_sql_entity_set_kvp_exists (gboolean exist)
 Set or clear a flag that the KVP table exists or not. More...
 
gchar * qof_sql_entity_create_table (QofEntity *ent)
 Build a SQL 'CREATE' statement for this entity. More...
 
gchar * qof_sql_entity_insert (QofEntity *ent)
 Build a SQL 'INSERT' statement for this entity. More...
 
gchar * qof_sql_entity_update (QofEntity *ent)
 Build a SQL 'UPDATE' statement for the current entity parameter. More...
 
gchar * qof_sql_entity_update_kvp (QofEntity *ent)
 Build a SQL 'UPDATE' statement for the KVP data in this entity. More...
 
gchar * qof_sql_entity_update_list (QofEntity *ent, GList **params)
 Build a SQL 'UPDATE' statement for a list of parameters. More...
 
gchar * qof_sql_entity_delete (QofEntity *ent)
 Build a SQL 'DELETE' statement for this entity. More...
 
gchar * qof_sql_entity_drop_table (QofEntity *ent)
 Build a SQL 'DROP' statement for this entity type. More...
 
gchar * qof_sql_object_create_table (QofObject *obj)
 Build a SQL 'CREATE' statement for this object. More...
 

Detailed Description

Private QOF SQL generation routines.

Author
Copyright (c) 2008 Neil Williams linux.nosp@m.@cod.nosp@m.ehelp.nosp@m..co..nosp@m.uk

Definition in file qofsql-p.h.