GnuCash 2.3.0
Data Fields
GncSqlColumnTableEntry Struct Reference

#include <gnc-backend-sql.h>

Data Fields

const gchar * col_name
const gchar * col_type
gint size
gint flags
const gchar * gobj_param_name
const gchar * qof_param_name
QofAccessFunc getter
QofSetterFunc setter

Detailed Description

The GncSqlColumnTableEntry struct contains all of the information required to copy information between an object and the database for a specific object property.

If an entry contains a gobj_param_name value, this string is used as the property name for a call to g_object_get() or g_object_set(). If the gobj_param_name value is NULL but qof_param_name is not NULL, this value is used as the parameter name for a call to qof_class_get_parameter_getter(). If both of these values are NULL, getter and setter are the addresses of routines to return or set the parameter value, respectively.

The database description for an object consists of an array of GncSqlColumnTableEntry objects, with a final member having col_name == NULL.

Definition at line 337 of file gnc-backend-sql.h.


Field Documentation

Column name

Definition at line 339 of file gnc-backend-sql.h.

Column type

Definition at line 340 of file gnc-backend-sql.h.

Column flags

Definition at line 346 of file gnc-backend-sql.h.

General access function

Definition at line 352 of file gnc-backend-sql.h.

If non-null, g_object param name

Definition at line 348 of file gnc-backend-sql.h.

If non-null, qof parameter name

Definition at line 350 of file gnc-backend-sql.h.

General setter function

Definition at line 354 of file gnc-backend-sql.h.

Column size in bytes, for string columns

Definition at line 341 of file gnc-backend-sql.h.


The documentation for this struct was generated from the following file:
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Defines