Learn R Programming

paws.database (version 0.1.12)

rdsdataservice: AWS RDS DataService

Description

Amazon RDS Data Service

Amazon RDS provides an HTTP endpoint to run SQL statements on an Amazon Aurora Serverless DB cluster. To run these statements, you work with the Data Service API.

For more information about the Data Service API, see Using the Data API for Aurora Serverless in the Amazon Aurora User Guide.

If you have questions or comments related to the Data API, send email to Rds-data-api-feedback@amazon.com.

Usage

rdsdataservice(config = list())

Value

A client for the service. You can call the service's operations using syntax like svc$operation(...), where svc is the name you've assigned to the client. The available operations are listed in the Operations section.

Arguments

config

Optional configuration of credentials, endpoint, and/or region.

Service syntax

svc <- rdsdataservice(
  config = list(
    credentials = list(
      creds = list(
        access_key_id = "string",
        secret_access_key = "string",
        session_token = "string"
      ),
      profile = "string"
    ),
    endpoint = "string",
    region = "string"
  )
)

Operations

batch_execute_statementRuns a batch SQL statement over an array of data
begin_transactionStarts a SQL transaction
commit_transactionEnds a SQL transaction started with the BeginTransaction operation and commits the changes
execute_sqlRuns one or more SQL statements
execute_statementRuns a SQL statement against a database
rollback_transactionPerforms a rollback of a transaction

Examples

Run this code
if (FALSE) {
svc <- rdsdataservice()
svc$batch_execute_statement(
  Foo = 123
)
}

Run the code above in your browser using DataLab