Learn R Programming

paws.database (version 0.7.0)

rdsdataservice_execute_sql: Runs one or more SQL statements

Description

Runs one or more SQL statements.

See https://www.paws-r-sdk.com/docs/rdsdataservice_execute_sql/ for full documentation.

Usage

rdsdataservice_execute_sql(
  dbClusterOrInstanceArn,
  awsSecretStoreArn,
  sqlStatements,
  database = NULL,
  schema = NULL
)

Arguments

dbClusterOrInstanceArn

[required] The ARN of the Aurora Serverless DB cluster.

awsSecretStoreArn

[required] The Amazon Resource Name (ARN) of the secret that enables access to the DB cluster. Enter the database user name and password for the credentials in the secret.

For information about creating the secret, see Create a database secret.

sqlStatements

[required] One or more SQL statements to run on the DB cluster.

You can separate SQL statements from each other with a semicolon (;). Any valid SQL statement is permitted, including data definition, data manipulation, and commit statements.

database

The name of the database.

schema

The name of the database schema.