GnuCash
5.6-150-g038405b370+
|
load and save accounts data to SQL More...
Go to the source code of this file.
Data Structures | |
class | GncSqlSlotsBackend |
Slots are neither loadable nor committable. More... | |
Typedefs | |
typedef QofInstance *(* | BookLookupFn) (const GncGUID *guid, const QofBook *book) |
Functions | |
gboolean | gnc_sql_slots_save (GncSqlBackend *sql_be, const GncGUID *guid, gboolean is_infant, QofInstance *inst) |
gnc_sql_slots_save - Saves slots for an object to the db. More... | |
gboolean | gnc_sql_slots_delete (GncSqlBackend *sql_be, const GncGUID *guid) |
gnc_sql_slots_delete - Deletes slots for an object from the db. More... | |
void | gnc_sql_slots_load (GncSqlBackend *sql_be, QofInstance *inst) |
Loads slots for an object from the db. More... | |
void | gnc_sql_slots_load_for_sql_subquery (GncSqlBackend *sql_be, const std::string subquery, BookLookupFn lookup_fn) |
gnc_sql_slots_load_for_sql_subquery - Loads slots for all objects whose guid is supplied by a subquery. More... | |
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 * | sql_be, |
const GncGUID * | guid | ||
) |
gnc_sql_slots_delete - Deletes slots for an object from the db.
sql_be | SQL backend |
guid | Object guid |
Definition at line 659 of file gnc-slots-sql.cpp.
void gnc_sql_slots_load | ( | GncSqlBackend * | sql_be, |
QofInstance * | inst | ||
) |
Loads slots for an object from the db.
sql_be | SQL backend |
Definition at line 727 of file gnc-slots-sql.cpp.
void gnc_sql_slots_load_for_sql_subquery | ( | GncSqlBackend * | sql_be, |
const std::string | 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.
sql_be | SQL backend |
subquery | Subquery SQL string |
lookup_fn | Lookup function to get the right object from the book |
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.
sql_be | SQL backend |
subquery | Subquery SQL string |
lookup_fn | Lookup function |
Definition at line 808 of file gnc-slots-sql.cpp.
gboolean gnc_sql_slots_save | ( | GncSqlBackend * | sql_be, |
const GncGUID * | guid, | ||
gboolean | is_infant, | ||
QofInstance * | inst | ||
) |
gnc_sql_slots_save - Saves slots for an object to the db.
sql_be | SQL backend |
guid | Object guid |
is_infant | Is this an infant object? |
inst | The QodInstance owning the slots. |
Definition at line 634 of file gnc-slots-sql.cpp.