GnuCash
2.6.99
|
load and save data to SQL More...
#include "config.h"
#include <glib/gi18n.h>
#include "qof.h"
#include "qofquery-p.h"
#include "qofquerycore-p.h"
#include "Account.h"
#include "Transaction.h"
#include "gnc-lot.h"
#include "engine-helpers.h"
#include "gnc-backend-sql.h"
#include "gnc-transaction-sql.h"
#include "gnc-commodity.h"
#include "gnc-commodity-sql.h"
#include "gnc-slots-sql.h"
#include "gnc-engine.h"
#include "escape.h"
Go to the source code of this file.
Data Structures | |
struct | split_info_t |
struct | full_acct_balances_t |
struct | split_query_info_t |
struct | single_acct_balance_t |
Functions | |
gboolean | gnc_sql_save_transaction (GncSqlBackend *be, QofInstance *inst) |
void | gnc_sql_transaction_load_tx_for_account (GncSqlBackend *be, Account *account) |
void | gnc_sql_transaction_load_all_tx (GncSqlBackend *be) |
GSList * | gnc_sql_get_account_balances_slist (GncSqlBackend *be) |
void | gnc_sql_init_transaction_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-transaction-sql.c.
GSList* gnc_sql_get_account_balances_slist | ( | GncSqlBackend * | be | ) |
Returns a list of acct_balances_t structures, one for each account which has splits.
be | SQL backend |
Definition at line 1339 of file gnc-transaction-sql.c.
gboolean gnc_sql_save_transaction | ( | GncSqlBackend * | be, |
QofInstance * | inst | ||
) |
Saves a transaction to the db.
be | SQL backend |
inst | Transaction instance |
Definition at line 783 of file gnc-transaction-sql.c.
void gnc_sql_transaction_load_all_tx | ( | GncSqlBackend * | be | ) |
Loads all transactions. This might be used during a save-as operation to ensure that all data is in memory and ready to be saved.
be | SQL backend |
Definition at line 839 of file gnc-transaction-sql.c.
void gnc_sql_transaction_load_tx_for_account | ( | GncSqlBackend * | be, |
Account * | account | ||
) |
Loads all transactions for an account.
be | SQL backend |
account | Account |
Definition at line 809 of file gnc-transaction-sql.c.