GnuCash
2.6.99
|
load and save data to SQL More...
Go to the source code of this file.
Data Structures | |
struct | acct_balances_t |
Functions | |
void | gnc_sql_init_transaction_handler (void) |
void | gnc_sql_transaction_commit_splits (GncSqlBackend *be, Transaction *pTx) |
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) |
load and save data to SQL
This file implements the top-level QofBackend API for saving/ restoring data to/from an SQL database
Definition in file gnc-transaction-sql.h.
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_commit_splits | ( | GncSqlBackend * | be, |
Transaction * | pTx | ||
) |
Commits all of the splits for a transaction.
be | SQL backend |
pTx | Transaction |
void gnc_sql_transaction_load_all_tx | ( | GncSqlBackend * | be | ) |
Loads all transactions.
be | SQL backend |
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 which have splits for a specific account.
be | SQL backend |
account | Account |
Loads all transactions for an account.
be | SQL backend |
account | Account |
Definition at line 809 of file gnc-transaction-sql.c.