gda-field
Name
gda-field -- Management of database fields
Synopsis
typedef GdaFieldAttributes;
typedef GdaField;
GdaFieldAttributes* gda_field_attributes_new
(void);
GdaFieldAttributes* gda_field_attributes_copy
(GdaFieldAttributes *fa);
void gda_field_attributes_free (GdaFieldAttributes *fa);
glong gda_field_attributes_get_defined_size
(GdaFieldAttributes *fa);
void gda_field_attributes_set_defined_size
(GdaFieldAttributes *fa,
glong size);
const gchar* gda_field_attributes_get_name (GdaFieldAttributes *fa);
void gda_field_attributes_set_name (GdaFieldAttributes *fa,
const gchar *name);
const gchar* gda_field_attributes_get_table (GdaFieldAttributes *fa);
void gda_field_attributes_set_table (GdaFieldAttributes *fa,
const gchar *table);
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);
void gda_field_attributes_set_scale (GdaFieldAttributes *fa,
glong scale);
GdaValueType gda_field_attributes_get_gdatype
(GdaFieldAttributes *fa);
void gda_field_attributes_set_gdatype
(GdaFieldAttributes *fa,
GdaValueType type);
gboolean gda_field_attributes_get_allow_null
(GdaFieldAttributes *fa);
void gda_field_attributes_set_allow_null
(GdaFieldAttributes *fa,
gboolean allow);
gboolean gda_field_attributes_get_primary_key
(GdaFieldAttributes *fa);
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);
gboolean gda_field_attributes_get_auto_increment
(GdaFieldAttributes *fa);
void gda_field_attributes_set_auto_increment
(GdaFieldAttributes *fa,
gboolean is_auto); |
Details
GdaFieldAttributes
typedef struct {
gint defined_size;
gchar *name;
gchar *table;
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; |
GdaField
typedef struct {
gint actual_size;
GdaValue *value;
GdaFieldAttributes *attributes;
} GdaField; |
gda_field_attributes_new ()
gda_field_attributes_copy ()
gda_field_attributes_free ()
gda_field_attributes_get_defined_size ()
gda_field_attributes_get_name ()
gda_field_attributes_set_name ()
Sets the name of fa to name.
gda_field_attributes_get_table ()
Get the table to which this field belongs.
gda_field_attributes_set_table ()
Set the name of the table to which the given field belongs.
gda_field_attributes_get_caption ()
gda_field_attributes_set_caption ()
gda_field_attributes_get_scale ()
gda_field_attributes_set_scale ()
Sets the scale of fa to scale.
gda_field_attributes_get_gdatype ()
gda_field_attributes_set_gdatype ()
Sets the type of fa to type.
gda_field_attributes_get_allow_null ()
Get the 'allow null' flag of the given field attributes.
gda_field_attributes_set_allow_null ()
Sets the 'allow null' flag of the given field attributes.
gda_field_attributes_get_primary_key ()
gda_field_attributes_set_primary_key ()
gda_field_attributes_get_unique_key ()
gda_field_attributes_set_unique_key ()
gda_field_attributes_get_references ()
gda_field_attributes_set_references ()
gda_field_attributes_get_auto_increment ()
Get whether the given field is an auto incremented one.
gda_field_attributes_set_auto_increment ()
Set the auto increment flag for the given field.