Class: AWS.RDSDataService
- Inherits:
-
AWS.Service
- Object
- AWS.Service
- AWS.RDSDataService
- Identifier:
- rdsdataservice
- API Version:
- 2018-08-01
- Defined in:
- (unknown)
Overview
Constructs a service interface object. Each API operation is exposed as a function on service.
Service Description
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.
Sending a Request Using RDSDataService
var rdsdataservice = new AWS.RDSDataService();
rdsdataservice.batchExecuteStatement(params, function (err, data) {
if (err) console.log(err, err.stack); // an error occurred
else console.log(data); // successful response
});
Locking the API Version
In order to ensure that the RDSDataService object uses this specific API, you can
construct the object by passing the apiVersion
option to the constructor:
var rdsdataservice = new AWS.RDSDataService({apiVersion: '2018-08-01'});
You can also set the API version globally in AWS.config.apiVersions
using
the rdsdataservice service identifier:
AWS.config.apiVersions = {
rdsdataservice: '2018-08-01',
// other service API versions
};
var rdsdataservice = new AWS.RDSDataService();
Constructor Summary collapse
-
new AWS.RDSDataService(options = {}) ⇒ Object
constructor
Constructs a service object.
Property Summary collapse
-
endpoint ⇒ AWS.Endpoint
readwrite
An Endpoint object representing the endpoint URL for service requests.
Properties inherited from AWS.Service
Method Summary collapse
-
batchExecuteStatement(params = {}, callback) ⇒ AWS.Request
Runs a batch SQL statement over an array of data.
You can run bulk update and insert operations for multiple records using a DML statement with different parameter sets.
-
beginTransaction(params = {}, callback) ⇒ AWS.Request
Starts a SQL transaction.
<important> <p>A transaction can run for a maximum of 24 hours.
-
commitTransaction(params = {}, callback) ⇒ AWS.Request
Ends a SQL transaction started with the
BeginTransaction
operation and commits the changes..
-
executeSql(params = {}, callback) ⇒ AWS.Request
Runs one or more SQL statements.
This operation is deprecated.
-
executeStatement(params = {}, callback) ⇒ AWS.Request
Runs a SQL statement against a database.
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.The response size limit is 1 MB.
-
rollbackTransaction(params = {}, callback) ⇒ AWS.Request
Performs a rollback of a transaction.
Methods inherited from AWS.Service
makeRequest, makeUnauthenticatedRequest, waitFor, setupRequestListeners, defineService
Constructor Details
new AWS.RDSDataService(options = {}) ⇒ Object
Constructs a service object. This object has one method for each API operation.
Property Details
Method Details
batchExecuteStatement(params = {}, callback) ⇒ AWS.Request
Runs a batch SQL statement over an array of data.
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.
beginTransaction(params = {}, callback) ⇒ AWS.Request
Starts a SQL transaction.
<important> <p>A transaction can run for a maximum of 24 hours. A transaction is terminated and rolled back automatically after 24 hours.</p> <p>A transaction times out if no calls use its transaction ID in three minutes. If a transaction times out before it's committed, it's rolled back automatically.</p> <p>DDL statements inside a transaction cause an implicit commit. We recommend that you run each DDL statement in a separate <code>ExecuteStatement</code> call with <code>continueAfterTimeout</code> enabled.</p> </important>
commitTransaction(params = {}, callback) ⇒ AWS.Request
Ends a SQL transaction started with the BeginTransaction
operation and commits the changes.
executeSql(params = {}, callback) ⇒ AWS.Request
Runs one or more SQL statements.
This operation is deprecated. Use the BatchExecuteStatement
or ExecuteStatement
operation.
executeStatement(params = {}, callback) ⇒ AWS.Request
Runs a SQL statement against a database.
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.
The response size limit is 1 MB. If the call returns more than 1 MB of response data, the call is terminated.