23 #define TESTFILE "/tmp/blah.gnucash" 26 const char* testurl =
"sqlite3://" TESTFILE;
27 char * no_args[1] = { NULL };
34 s = qof_session_new(NULL);
36 qof_session_load(s, NULL);
39 qof_session_destroy(s);
void qof_session_save(QofSession *session, QofPercentageFunc percentage_func)
The qof_session_save() method will commit all changes that have been made to the session.
Encapsulates a connection to a backend (persistent store)
void qof_session_begin(QofSession *session, const char *uri, SessionOpenMode mode)
Begins a new session.
void qof_log_init(void)
Initialize the error logging subsystem.
void gnc_engine_init(int argc, char **argv)
PROTOTYPES.
void qof_session_end(QofSession *session)
The qof_session_end() method will release the session lock.
void qof_init(void)
Initialise the Query Object Framework.
Open will fail if the URI doesn't exist or is locked.