The qof-main context struct. More...
#include <qof-main.h>
Data Fields | |
| gchar * | filename |
| gchar * | write_file |
| gchar * | input_file |
| gchar * | sql_file |
| gchar * | sql_str |
| gchar * | database |
| gchar * | exclude |
| gchar * | category |
| QofTime * | min_qt |
| QofTime * | max_qt |
| QofSession * | input_session |
| QofSession * | export_session |
| gboolean | error |
| QofQuery * | query |
| GList * | sql_list |
| gint64 | gz_level |
| const gchar * | encoding |
| gint64 | convert |
| QofType | param_type |
The qof-main context struct.
Intended as a core type for QOF-based CLI programs, wrap your own context struct around qof_main_context
Definition at line 198 of file qof-main.h.
| gchar* QofMain_s::category |
The category to include with -c.
Definition at line 216 of file qof-main.h.
| gint64 QofMain_s::convert |
If the application needs to read QOF_TYPE_DATE data records, set this to non-zero.
Definition at line 239 of file qof-main.h.
| gchar* QofMain_s::database |
| const gchar* QofMain_s::encoding |
The encoding string to pass to the backend.
Definition at line 236 of file qof-main.h.
| gboolean QofMain_s::error |
| gchar* QofMain_s::exclude |
The database to exclude with -e.
Definition at line 214 of file qof-main.h.
| QofSession* QofMain_s::export_session |
The query results session, for STDOUT or -w.
Definition at line 226 of file qof-main.h.
| gchar* QofMain_s::filename |
Input filename containing (usually) QSF XML data, if any.
Definition at line 201 of file qof-main.h.
Referenced by main().
| gint64 QofMain_s::gz_level |
Use compression (>0 <=9) or not (0)
Definition at line 234 of file qof-main.h.
Referenced by main().
| gchar* QofMain_s::input_file |
File containing data to upload, if any.
Definition at line 205 of file qof-main.h.
Referenced by main().
| QofSession* QofMain_s::input_session |
| QofTime* QofMain_s::max_qt |
Holds the converted -t field - maximum. Matches objects below max.
Definition at line 222 of file qof-main.h.
| QofTime* QofMain_s::min_qt |
Holds the converted -t field - minimum. Matches objects above min.
Definition at line 219 of file qof-main.h.
| QofType QofMain_s::param_type |
The current parameter type in the query.
Definition at line 241 of file qof-main.h.
| QofQuery* QofMain_s::query |
The current QofQuery, converted from QofSqlQuery
Definition at line 230 of file qof-main.h.
| gchar* QofMain_s::sql_file |
SQL file, if any.
Definition at line 207 of file qof-main.h.
| GList* QofMain_s::sql_list |
List of sql commands from a file.
Definition at line 232 of file qof-main.h.
| gchar* QofMain_s::sql_str |
The current SQL, overwritten each iteration if using a file.
Definition at line 210 of file qof-main.h.
| gchar* QofMain_s::write_file |
Export filename, if any.
Definition at line 203 of file qof-main.h.
1.7.1