GdaField

Name

GdaField -- Access to individual fields in recordsets

Synopsis



GdaField*   gda_field_new                   (void);
gchar*      gda_fieldtype_2_string          (gchar *bfr,
                                             gint length,
                                             GDA_ValueType type);
GDA_ValueType gda_string_2_fieldtype        (gchar *type);
gchar*      gda_stringify_value             (gchar *bfr,
                                             gint length,
                                             GdaField *f);
gint        gda_field_actual_size           (GdaField *f);

Object Hierarchy


  GtkObject
   +----GdaField

Description

Details

gda_field_new ()

GdaField*   gda_field_new                   (void);


gda_fieldtype_2_string ()

gchar*      gda_fieldtype_2_string          (gchar *bfr,
                                             gint length,
                                             GDA_ValueType type);


gda_string_2_fieldtype ()

GDA_ValueType gda_string_2_fieldtype        (gchar *type);


gda_stringify_value ()

gchar*      gda_stringify_value             (gchar *bfr,
                                             gint length,
                                             GdaField *f);

Converts the value stored on the given GdaField object into a human-readable string. You can either pass it an existing buffer (bfr) or pass it NULL as the first parameter, in which case it will return a newly allocated string containing the value.


gda_field_actual_size ()

gint        gda_field_actual_size           (GdaField *f);

Calculates the number of bytes the value fo the field needs.