statement_execute_select_full


Description:

public DataModel statement_execute_select_full (Statement stmt, Set? @params, StatementModelUsage model_usage, Type[]? col_types) throws Error

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.

Parameters:

this

a Connection object.

stmt

a Statement object.

model_usage

specifies how the returned data model will be used as a StatementModelUsage enum

col_types

an array of GType to request each returned DataModel's column's GType, terminated with the G_TYPE_NONE value. Any value left to 0 will make the database provider determine the real GType. col_types can also be null if no column type is specified.

params

a Set object (which can be obtained using get_parameters), or null

Returns:

a DataModel containing the data returned by the data source, or null if an error occurred




2022 vala-language.org