|
GnuCash
2.6.99
|
load and save data to SQL More...
#include "config.h"#include <glib.h>#include "qof.h"#include "gnc-engine.h"#include "gnc-backend-sql.h"#include "gnc-slots-sql.h"Go to the source code of this file.
Data Structures | |
| struct | slot_info_t |
Macros | |
| #define | TABLE_NAME "slots" |
| #define | TABLE_VERSION 3 |
| #define | SLOT_MAX_PATHNAME_LEN 4096 |
| #define | SLOT_MAX_STRINGVAL_LEN 4096 |
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 data to SQL
This file implements the top-level QofBackend API for saving/ restoring data to/from an SQL db
Definition in file gnc-slots-sql.c.
| 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 |
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.
1.8.6