| GNOME Data Access manual | |||
|---|---|---|---|
| <<< Previous Page | Home | Up | Next Page >>> |
typedef struct {
gint defined_size;
gchar *name;
gchar *caption;
gint scale;
GdaValueType gda_type;
gboolean allow_null;
gboolean primary_key;
gboolean unique_key;
gchar *references;
gboolean auto_increment;
glong auto_increment_start;
glong auto_increment_step;
} GdaFieldAttributes; |
typedef struct {
gint actual_size;
GdaValue *value;
GdaFieldAttributes *attributes;
} GdaField; |
glong gda_field_attributes_get_defined_size
(GdaFieldAttributes *fa); |
void gda_field_attributes_set_defined_size
(GdaFieldAttributes *fa,
glong size); |
Sets the defined size of a GdaFieldAttributes.
| fa : | a GdaFieldAttributes. |
| size : | the defined size we want to set. |
const gchar* gda_field_attributes_get_name (GdaFieldAttributes *fa); |
| fa : | a GdaFieldAttributes. |
| Returns : | the name of fa. |
void gda_field_attributes_set_name (GdaFieldAttributes *fa, const gchar *name); |
Sets the name of fa to name.
| fa : | a GdaFieldAttributes. |
| name : | the new name of fa. |
const gchar* gda_field_attributes_get_caption
(GdaFieldAttributes *fa); |
void gda_field_attributes_set_caption
(GdaFieldAttributes *fa,
const gchar *caption); |
glong gda_field_attributes_get_scale (GdaFieldAttributes *fa); |
| fa : | a GdaFieldAttributes. |
| Returns : | the number of decimals of fa. |
void gda_field_attributes_set_scale (GdaFieldAttributes *fa, glong scale); |
Sets the scale of fa to scale.
| fa : | a GdaFieldAttributes. |
| scale : | number of decimals. |
GdaValueType gda_field_attributes_get_gdatype (GdaFieldAttributes *fa); |
| fa : | a GdaFieldAttributes. |
| Returns : | the type of fa. |
void gda_field_attributes_set_gdatype
(GdaFieldAttributes *fa,
GdaValueType type); |
Sets the type of fa to type.
| fa : | a GdaFieldAttributes. |
| type : | the new type of fa. |
gboolean gda_field_attributes_get_allow_null
(GdaFieldAttributes *fa); |
Get the 'allow null' flag of the given field attributes.
| fa : | a GdaFieldAttributes. |
| Returns : | whether the given field allows null values or not. |
void gda_field_attributes_set_allow_null
(GdaFieldAttributes *fa,
gboolean allow); |
Sets the 'allow null' flag of the given field attributes.
| fa : | a GdaFieldAttributes. |
| allow : |
gboolean gda_field_attributes_get_primary_key
(GdaFieldAttributes *fa); |
| fa : | a GdaFieldAttributes. |
| Returns : |
void gda_field_attributes_set_primary_key
(GdaFieldAttributes *fa,
gboolean pk); |
gboolean gda_field_attributes_get_unique_key
(GdaFieldAttributes *fa); |
void gda_field_attributes_set_unique_key
(GdaFieldAttributes *fa,
gboolean uk); |
const gchar* gda_field_attributes_get_references
(GdaFieldAttributes *fa); |
void gda_field_attributes_set_references
(GdaFieldAttributes *fa,
const gchar *ref); |