Frees all the rows in model.
Get a pointer to a row in model
Returns this, for use in with statements.
Sets the number of columns for rows inserted in this model. cols must be greated than or equal to 0.
Creates a new #GdaDataModel object without initializing the column types. Using gda.data_model_array.DataModelArray.newWithGTypes is usually better.
Adds the data from an XML node to the given data model (see the DTD for that node in the $prefix/share/libgda/dtd/libgda-array.dtd file).
Appends a row to the data model (the new row will possibly have NULL values for all columns, or some other values depending on the data model implementation)
Appends a row to the given data model. If any value in values is actually null, then it is considered as a default value. If values is null then all values are set to their default value.
Makes a copy of src into a new #GdaDataModelArray object
Like gda.data_model.DataModel.arrayCopyModel, makes a copy of src, but copies only some columns.
Creates a new iterator object #GdaDataModelIter object which can be used to iterate through rows in model. The new #GdaDataModelIter does not hold any reference to model (ie. if model is destroyed at some point, the new iterator will become useless but in any case it will not prevent the data model from being destroyed).
Queries the underlying data model implementation for a description of a given column. That description is returned in the form of a #GdaColumn structure, which contains all the information about the given column in the data model.
Dumps a textual representation of the model to the to_stream stream
Dumps a textual representation of the model into a new string. The main differences with gda.data_model.DataModel.exportToString are that the formatting options are passed using environment variables, and that the data is dumped regardless of the user locale (e.g. dates are not formatted according to the locale).
Exports data contained in model to the file file; the format is specified using the format argument. Note that the date format used is the one used by the connection from which the data model has been made (as the result of a SELECT statement), or, for other kinds of data models, the default format (refer to gda.data_handler.DataHandler.getDefault) unless the "cnc" property has been set and points to a #GdaConnection to use that connection's date format.
Exports data contained in model to a string; the format is specified using the format argument, see the gda.data_model.DataModel.exportToFile documentation for more information about the options argument (except for the "OVERWRITE" option).
Disables notifications of changes on the given data model. To re-enable notifications again, you should call the #gda_data_model_thaw function.
Get the attributes of model such as how to access the data it contains if it's modifiable, etc.
Get the attributes of the value stored at (row, col) in model, which is an ORed value of #GdaValueAttribute flags. As a special case, if row is -1, then the attributes returned correspond to a "would be" value if a row was added to model.
Get the index of the first column named name in model.
Returns the status of notifications changes on the given data model.
Upon errors null will be returned and error will be assigned a #GError from the #GDA_DATA_MODEL_ERROR domain.
Retrieves the data stored in the given position (identified by the col and row parameters) on a data model.
Moves iter to the row number given by row.
Moves iter to the next row in model.
Moves iter to the next row in model.
Set value to the given column and row pointed by iter in the given model.
Removes a row from the data model.
Emits the 'reset' and 'changed' signal on model.
Emits the 'row_inserted' and 'changed' signals on model.
Emits the 'row_removed' and 'changed' signal on model.
Emits the 'row_updated' and 'changed' signals on model.
Sends a hint to the data model. The hint may or may not be handled by the data model, depending on its implementation
Sets the name of the given col in model, and if its title is not set, also sets the title to name.
Sets the title of the given col in model.
Enable or disable notifications changes on the given data model.
Modifies a value in model, at (col, row).
In a similar way to gda.data_model.DataModel.setValueAt, this method modifies a data model's contents by setting several values at once.
Re-enables notifications of changes on the given data model.
Connect to AccessChanged signal.
Connect to Changed signal.
Connect to Reset signal.
Connect to RowInserted signal.
Connect to RowRemoved signal.
Connect to RowUpdated signal.
Set the GObject of a D ObjectWrap wrapper.
Get a pointer to the underlying C object.
Calls g_object_ref() on a GObject.
Calls g_object_unref() on a GObject.
Get the GType of an object.
GObject GType property.
Convenience method to return this cast to a type. For use in D with statements.
Template to get the D object from a C GObject and cast it to the given D object type.
Connect a D closure to an object signal.
Template for setting a GObject property.
Template for getting a GObject property.
Creates a binding between source_property on source and target_property on target.
Creates a binding between source_property on source and target_property on target, allowing you to set the transformation functions to be used by the binding.
This function is intended for #GObject implementations to re-enforce a floating[floating-ref] object reference. Doing this is seldom required: all #GInitiallyUnowneds are created with a floating reference which usually just needs to be sunken by calling gobject.object.ObjectWrap.refSink.
Increases the freeze count on object. If the freeze count is non-zero, the emission of "notify" signals on object is stopped. The signals are queued until the freeze count is decreased to zero. Duplicate notifications are squashed so that at most one #GObject::notify signal is emitted for each property modified while the object is frozen.
Gets a named field from the objects table of associations (see gobject.object.ObjectWrap.setData).
Gets a property of an object.
This function gets back user data pointers stored via gobject.object.ObjectWrap.setQdata.
Gets n_properties properties for an object. Obtained properties will be set to values. All properties must be valid. Warnings will be emitted and undefined behaviour may result if invalid properties are passed in.
Checks whether object has a floating[floating-ref] reference.
Emits a "notify" signal for the property property_name on object.
Emits a "notify" signal for the property specified by pspec on object.
Increase the reference count of object, and possibly remove the floating[floating-ref] reference, if object has a floating reference.
Releases all references to other objects. This can be used to break reference cycles.
Each object carries around a table of associations from strings to pointers. This function lets you set an association.
Sets a property on an object.
Remove a specified datum from the object's data associations, without invoking the association's destroy handler.
This function gets back user data pointers stored via gobject.object.ObjectWrap.setQdata and removes the data from object without invoking its destroy() function (if any was set). Usually, calling this function is only required to update user data pointers with a destroy notifier, for example:
Reverts the effect of a previous call to gobject.object.ObjectWrap.freezeNotify. The freeze count is decreased on object and when it reaches zero, queued "notify" signals are emitted.
This function essentially limits the life time of the closure to the life time of the object. That is, when the object is finalized, the closure is invalidated by calling gobject.closure.Closure.invalidate on it, in order to prevent invocations of the closure with a finalized (nonexisting) object. Also, gobject.object.ObjectWrap.ref_ and gobject.object.ObjectWrap.unref are added as marshal guards to the closure, to ensure that an extra reference count is held on object during invocation of the closure. Usually, this function will be called on closures that use this object as closure data.
Connect to Notify signal.
Adds the data from an XML node to the given data model (see the DTD for that node in the $prefix/share/libgda/dtd/libgda-array.dtd file).
Appends a row to the data model (the new row will possibly have NULL values for all columns, or some other values depending on the data model implementation)
Appends a row to the given data model. If any value in values is actually null, then it is considered as a default value. If values is null then all values are set to their default value.
Makes a copy of src into a new #GdaDataModelArray object
Like gda.data_model.DataModel.arrayCopyModel, makes a copy of src, but copies only some columns.
Creates a new iterator object #GdaDataModelIter object which can be used to iterate through rows in model. The new #GdaDataModelIter does not hold any reference to model (ie. if model is destroyed at some point, the new iterator will become useless but in any case it will not prevent the data model from being destroyed).
Queries the underlying data model implementation for a description of a given column. That description is returned in the form of a #GdaColumn structure, which contains all the information about the given column in the data model.
Dumps a textual representation of the model to the to_stream stream
Dumps a textual representation of the model into a new string. The main differences with gda.data_model.DataModel.exportToString are that the formatting options are passed using environment variables, and that the data is dumped regardless of the user locale (e.g. dates are not formatted according to the locale).
Exports data contained in model to the file file; the format is specified using the format argument. Note that the date format used is the one used by the connection from which the data model has been made (as the result of a SELECT statement), or, for other kinds of data models, the default format (refer to gda.data_handler.DataHandler.getDefault) unless the "cnc" property has been set and points to a #GdaConnection to use that connection's date format.
Exports data contained in model to a string; the format is specified using the format argument, see the gda.data_model.DataModel.exportToFile documentation for more information about the options argument (except for the "OVERWRITE" option).
Disables notifications of changes on the given data model. To re-enable notifications again, you should call the #gda_data_model_thaw function.
Get the attributes of model such as how to access the data it contains if it's modifiable, etc.
Get the attributes of the value stored at (row, col) in model, which is an ORed value of #GdaValueAttribute flags. As a special case, if row is -1, then the attributes returned correspond to a "would be" value if a row was added to model.
Get the index of the first column named name in model.
Returns the status of notifications changes on the given data model.
Upon errors null will be returned and error will be assigned a #GError from the #GDA_DATA_MODEL_ERROR domain.
Retrieves the data stored in the given position (identified by the col and row parameters) on a data model.
Moves iter to the row number given by row.
Moves iter to the next row in model.
Moves iter to the next row in model.
Set value to the given column and row pointed by iter in the given model.
Removes a row from the data model.
Emits the 'reset' and 'changed' signal on model.
Emits the 'row_inserted' and 'changed' signals on model.
Emits the 'row_removed' and 'changed' signal on model.
Emits the 'row_updated' and 'changed' signals on model.
Sends a hint to the data model. The hint may or may not be handled by the data model, depending on its implementation
Sets the name of the given col in model, and if its title is not set, also sets the title to name.
Sets the title of the given col in model.
Enable or disable notifications changes on the given data model.
Modifies a value in model, at (col, row).
In a similar way to gda.data_model.DataModel.setValueAt, this method modifies a data model's contents by setting several values at once.
Re-enables notifications of changes on the given data model.
Connect to AccessChanged signal.
Connect to Changed signal.
Connect to Reset signal.
Connect to RowInserted signal.
Connect to RowRemoved signal.
Connect to RowUpdated signal.