Select

Constructors

this
this(GdaSelect* gdaSelect)

Sets our main struct and passes it to the parent class

this
this()

Creates a new GdaSelect object, which allows programs to filter GdaDataModel's based on a given SQL SELECT command. A GdaSelect is just another GdaDataModel-based class, so it can be used in the same way any other data model class is.

Members

Functions

addSource
void addSource(string name, DataModel source)

Adds a data model as a source of data for the GdaSelect object. When the select object is run (via gda_select_run), it will parse the SQL and get the required data from the source data models.

getSelectStruct
GdaSelect* getSelectStruct()

Get the main Gtk struct

getStruct
void* getStruct()

the main Gtk struct as a void*

run
int run()

Runs the query and fills in the GdaSelect object with the rows that matched the SQL command (which can be set with gda_select_set_sql) associated with this GdaSelect object. After calling this function, if everything is successful, the GdaSelect object will contain the matched rows, which can then be accessed like a normal GdaDataModel.

setSql
void setSql(string sql)

Sets the SQL command to be used on the given GdaSelect object for filtering rows from the source data model (which is set with gda_select_set_source).

setStruct
void setStruct(GObject* obj)
Undocumented in source. Be warned that the author may not have intended to support it.

Variables

gdaSelect
GdaSelect* gdaSelect;

the main Gtk struct

Inherited Members

From DataModelArray

gdaDataModelArray
GdaDataModelArray* gdaDataModelArray;

the main Gtk struct

getDataModelArrayStruct
GdaDataModelArray* getDataModelArrayStruct()

Get the main Gtk struct

getStruct
void* getStruct()

the main Gtk struct as a void*

setStruct
void setStruct(GObject* obj)
Undocumented in source. Be warned that the author may not have intended to support it.
setNColumns
void setNColumns(int cols)

Sets the number of columns for rows inserted in this model. cols must be greated than or equal to 0.

clear
void clear()

Frees all the rows inserted in model.

Meta