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

batch gda.batch.Batch

a #GdaBatch object which contains all the statements to execute

params gda.set.Set

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

modelUsage gda.types.StatementModelUsage

specifies how the returned data model(s) will be used, as a #GdaStatementModelUsage enum

Return Value

Type: gobject.object.ObjectWrap[]

a new list of #GObject objects

Throws