Connection.statementExecuteSelect

Executes a selection command on the given connection.

This function returns a #GdaDataModel resulting from the SELECT statement, or null if an error occurred.

This function is just a convenience function around the gda.connection.Connection.statementExecute function.

See the documentation of the gda.connection.Connection.statementExecute for information about the params list of parameters.

class Connection
statementExecuteSelect

Parameters

stmt gda.statement.Statement

a #GdaStatement object.

params gda.set.Set

a #GdaSet object (which can be obtained using gda.statement.Statement.getParameters), or null

Return Value

Type: gda.data_model.DataModel

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

Throws