Re: [gnome-db] gda_data_model_describe_column



On Tue, 2004-11-09 at 21:48 -0700, Neil Zanella wrote:
> What's the point of this method: ?
> 
> GdaFieldAttributes* gda_data_model_describe_column
>                                             (GdaDataModel *model,
>                                              gint col);
> 
> Or rahter, what's the point of returning this?
> 
> struct GdaFieldAttributes {
> 
> 	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;
> 	gint position;
> 	GdaValue *default_value;
> };
> 
> Can we change this struct. What does "gboolean unique_key;" mean? Does it mean
> the column by itself is a unique key?
>
it means the field's value has to be unique.
-- 
Rodrigo Moya <rodrigo gnome-db org>



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]