GdaDataModel columns — Management of GdaDataModel column attributes
GdaColumn *
gda_column_copy (GdaColumn *column);
Creates a new GdaColumn object from an existing one.
gboolean
gda_column_get_allow_null (GdaColumn *column);
Gets the 'allow null' flag of the given column.
void gda_column_set_name (GdaColumn *column,const gchar *name);
Sets the name of column
to name
.
void gda_column_set_description (GdaColumn *column,const gchar *descr);
Sets the column's description
void gda_column_set_dbms_type (GdaColumn *column,const gchar *dbms_type);
Defines column
's database type
void gda_column_set_g_type (GdaColumn *column,GType type);
Sets the type of column
to type
.
void gda_column_set_allow_null (GdaColumn *column,gboolean allow);
Sets the 'allow null' flag of the given column.
void gda_column_set_auto_increment (GdaColumn *column,gboolean is_auto);
Sets the auto increment flag for the given column.
“desc” property“desc” char *
Column's description.
Owner: GdaColumn
Flags: Read / Write
Default value: NULL
“id” property“id” char *
Column's Id (warning: the column's ID is not guaranteed to be unique in a GdaDataModel).
Owner: GdaColumn
Flags: Read / Write
Default value: NULL
“name” property“name” char *
Column's name.
Owner: GdaColumn
Flags: Read / Write
Default value: NULL
“g-type-changed” signalvoid user_function (GdaColumn *column, GType *old_type, GType *new_type, gpointer user_data)
Gets emitted whenever column
's type has been changed
column |
the GdaColumn object |
|
old_type |
the column's previous type |
|
new_type |
the column's new type |
|
user_data |
user data set when the signal handler was connected. |
Flags: Run Last
“name-changed” signalvoid user_function (GdaColumn *column, char *old_name, gpointer user_data)
Gets emitted whenever column
's name has been changed
column |
the GdaColumn object |
|
old_name |
the column's previous name |
|
user_data |
user data set when the signal handler was connected. |
Flags: Run Last