Executes a selection command on the given connection.
This function returns a DataModel resulting from the SELECT statement, or null
if an error occurred.
This function is just a convenience function around the statement_execute function.
See the documentation of the statement_execute for information about
the params
list of parameters.
this |
a Connection object. |
stmt |
a Statement object. |
model_usage |
specifies how the returned data model will be used as a StatementModelUsage enum |
error |
a place to store an error, or |
... |
a (-1 terminated) list of (column number, GType) specifying for each column mentioned the GType of the column in the returned DataModel. |
params |
a Set object (which can be obtained using
get_parameters), or |
a DataModel containing the data returned by the data source, or |