![]() | ![]() | ![]() | GNOME Data Access manual | ![]() |
---|
struct GdaSelectPrivate; GdaDataModel* gda_select_new (void); void gda_select_add_source (GdaSelect *sel, const gchar *name, GdaDataModel *source); void gda_select_set_sql (GdaSelect *sel, const gchar *sql); gboolean gda_select_run (GdaSelect *sel);
GdaDataModel* gda_select_new (void);
Creates a new
A
Returns : | the newly created object. |
void gda_select_add_source (GdaSelect *sel, const gchar *name, GdaDataModel *source);
Adds a data model as a source of data for the
sel : | a |
name : | name to identify the data model (usually a table name). |
source : | a GdaDataModel from which to get data. |
void gda_select_set_sql (GdaSelect *sel, const gchar *sql);
Sets the SQL command to be used on the given
sel : | a |
sql : | the SQL command to be used for filtering rows. |
gboolean gda_select_run (GdaSelect *sel);
Runs the query and fills in the
After calling this function, if everything is successful,
the
sel : | a |
Returns : | TRUE if successful, FALSE if there was an error. |
<<< gda-row | GdaTable >>> |