GnuCash
2.6.99
|
load and save accounts data to SQL More...
#include <glib.h>
#include "guid.h"
#include "kvp_frame.h"
#include "qof.h"
#include "gnc-backend-sql.h"
Go to the source code of this file.
Typedefs | |
typedef QofInstance *(* | BookLookupFn )(const GncGUID *guid, const QofBook *book) |
Functions | |
gboolean | gnc_sql_slots_save (GncSqlBackend *be, const GncGUID *guid, gboolean is_infant, KvpFrame *pFrame) |
gboolean | gnc_sql_slots_delete (GncSqlBackend *be, const GncGUID *guid) |
void | gnc_sql_slots_load (GncSqlBackend *be, QofInstance *inst) |
void | gnc_sql_slots_load_for_list (GncSqlBackend *be, GList *list) |
void | gnc_sql_slots_load_for_sql_subquery (GncSqlBackend *be, const gchar *subquery, BookLookupFn lookup_fn) |
void | gnc_sql_init_slots_handler (void) |
load and save accounts data to SQL
This file implements the top-level QofBackend API for saving/ restoring data to/from an SQL database
Definition in file gnc-slots-sql.h.
gboolean gnc_sql_slots_delete | ( | GncSqlBackend * | be, |
const GncGUID * | guid | ||
) |
gnc_sql_slots_delete - Deletes slots for an object from the db.
be | SQL backend |
guid | Object guid |
Definition at line 733 of file gnc-slots-sql.c.
void gnc_sql_slots_load | ( | GncSqlBackend * | be, |
QofInstance * | inst | ||
) |
Loads slots for an object from the db.
be | SQL backend |
Definition at line 819 of file gnc-slots-sql.c.
void gnc_sql_slots_load_for_list | ( | GncSqlBackend * | be, |
GList * | list | ||
) |
gnc_sql_slots_load_for_list - Loads slots for a list of objects from the db. Loading slots for a list of objects can be faster than loading for one object at a time because fewer SQL queries are used.
be | SQL backend |
list | List of objects |
Definition at line 911 of file gnc-slots-sql.c.
void gnc_sql_slots_load_for_sql_subquery | ( | GncSqlBackend * | be, |
const gchar * | subquery, | ||
BookLookupFn | lookup_fn | ||
) |
gnc_sql_slots_load_for_sql_subquery - Loads slots for all objects whose guid is supplied by a subquery. The subquery should be of the form "SELECT DISTINCT guid FROM ...". This is faster than loading for one object at a time because fewer SQL queries * are used.
be | SQL backend |
subquery | Subquery SQL string |
lookup_fn | Lookup function to get the right object from the book |
gnc_sql_slots_load_for_sql_subquery - Loads slots for all objects whose guid is supplied by a subquery. The subquery should be of the form "SELECT DISTINCT guid FROM ...". This is faster than loading for one object at a time because fewer SQL queries * are used.
be | SQL backend |
subquery | Subquery SQL string |
lookup_fn | Lookup function |
Definition at line 1006 of file gnc-slots-sql.c.
gboolean gnc_sql_slots_save | ( | GncSqlBackend * | be, |
const GncGUID * | guid, | ||
gboolean | is_infant, | ||
KvpFrame * | pFrame | ||
) |
gnc_sql_slots_save - Saves slots for an object to the db.
be | SQL backend |
guid | Object guid |
is_infant | Is this an infant object? |
pFrame | Top-level KVP frame |
Definition at line 710 of file gnc-slots-sql.c.