GdaTable

Name

GdaTable -- 

Synopsis



struct      GdaTablePrivate;
GdaTable*   gda_table_new                   (const gchar *name);
GdaTable*   gda_table_new_from_model        (const gchar *name,
                                             const GdaDataModel *model);
void        gda_table_add_field             (GdaTable *table,
                                             const GdaFieldAttributes *fa);
void        gda_table_add_data_from_model   (GdaTable *table,
                                             const GdaDataModel *model);

Description

Details

struct GdaTablePrivate

struct GdaTablePrivate;


gda_table_new ()

GdaTable*   gda_table_new                   (const gchar *name);

Create a new GdaTable object, which is an in-memory representation of an entire table. It is mainly used by the GdaXmlDatabase class, but you can also use it in your applications for whatever you may need it.


gda_table_new_from_model ()

GdaTable*   gda_table_new_from_model        (const gchar *name,
                                             const GdaDataModel *model);

Create a GdaTable object from the given GdaDataModel. This is very useful to maintain an in-memory copy of a given recordset obtained from a database. This is also used when exporting data to a GdaXmlDatabase object.


gda_table_add_field ()

void        gda_table_add_field             (GdaTable *table,
                                             const GdaFieldAttributes *fa);

Adds a field to the given GdaTable.


gda_table_add_data_from_model ()

void        gda_table_add_data_from_model   (GdaTable *table,
                                             const GdaDataModel *model);