Runs a batch SQL statement over an array of data.
rdsdataservice_batch_execute_statement(database, parameterSets,
resourceArn, schema, secretArn, sql, transactionId)
The name of the database.
The parameter set for the batch operation.
The SQL statement is executed as many times as the number of parameter sets provided. To execute a SQL statement with no parameters, use one of the following options:
Specify one or more empty parameter sets.
Use the ExecuteStatement
operation instead of the
BatchExecuteStatement
operation.
Array parameters are not supported.
[required] The Amazon Resource Name (ARN) of the Aurora Serverless DB cluster.
The name of the database schema.
[required] The name or ARN of the secret that enables access to the DB cluster.
[required] The SQL statement to run.
The identifier of a transaction that was started by using the
BeginTransaction
operation. Specify the transaction ID of the
transaction that you want to include the SQL statement in.
If the SQL statement is not part of a transaction, don\'t set this parameter.
svc$batch_execute_statement( database = "string", parameterSets = list( list( list( name = "string", typeHint = "DATE"|"DECIMAL"|"TIME"|"TIMESTAMP", value = list( arrayValue = list( arrayValues = list( list() ), booleanValues = list( TRUE|FALSE ), doubleValues = list( 123.0 ), longValues = list( 123 ), stringValues = list( "string" ) ), blobValue = raw, booleanValue = TRUE|FALSE, doubleValue = 123.0, isNull = TRUE|FALSE, longValue = 123, stringValue = "string" ) ) ) ), resourceArn = "string", schema = "string", secretArn = "string", sql = "string", transactionId = "string" )
You can run bulk update and insert operations for multiple records using a DML statement with different parameter sets. Bulk operations can provide a significant performance improvement over individual insert and update operations.
If a call isn\'t part of a transaction because it doesn\'t include the
transactionID
parameter, changes that result from the call are
committed automatically.