![]() | ![]() | ![]() | libgda API reference | ![]() |
---|
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);
gchar* gda_fieldtype_2_string (gchar *bfr, gint length, GDA_ValueType type);
bfr : | bufferspace where the printed name of the type of the field is placed into. |
length : | the size of the buffer |
type : | |
Returns : | a pointer to the buffer. |
GDA_ValueType gda_string_2_fieldtype (gchar *type);
type : | |
Returns : | the GDA type identifier for the given string (returned by gda_fieldtype_2_string |
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.
bfr : | buffer where the string will be copied. |
length : | |
f : | a GdaField object. |
Returns : | a pointer to bfr or to a newly allocated string, which should be g_free's when no longer needed. |
<<< GdaExport | GdaRecordset >>> |