Connection.batchExecute

Executes all the statements contained in batch (in the order in which they were added to batch), and returns a list of #GObject objects, at most one #GObject for each statement; see [gda.connection.Connection.statementExecute] for details about the returned objects.

If one of the statement fails, then none of the subsequent statement will be executed, and the method returns the list of #GObject created by the correct execution of the previous statements. If a transaction is required, then it should be started before calling this method.

Parameters

batcha #GdaBatch object which contains all the statements to execute
paramsa #GdaSet object (which can be obtained using [gda.batch.Batch.getParameters]), or null
modelUsagespecifies how the returned data model(s) will be used, as a #GdaStatementModelUsage enum

Returns

a new list of #GObject objects

Throws

[ConnectionException]