Connection.batchExecute
gobject.object.ObjectWrap[] batchExecute(gda.batch.Batch batch, gda.set.Set params, gda.types.StatementModelUsage modelUsage)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 | a #GdaBatch object which contains all the statements to execute |
params | a #GdaSet object (which can be obtained using [gda.batch.Batch.getParameters]), or null |
modelUsage | specifies how the returned data model(s) will be used, as a #GdaStatementModelUsage enum |
Returns
a new list of #GObject objects
Throws
[ConnectionException]