import { RDSDataClient } from "./RDSDataClient"; import { BatchExecuteStatementInput } from "./types/BatchExecuteStatementInput"; import { BatchExecuteStatementOutput } from "./types/BatchExecuteStatementOutput"; import { BeginTransactionInput } from "./types/BeginTransactionInput"; import { BeginTransactionOutput } from "./types/BeginTransactionOutput"; import { CommitTransactionInput } from "./types/CommitTransactionInput"; import { CommitTransactionOutput } from "./types/CommitTransactionOutput"; import { ExecuteSqlInput } from "./types/ExecuteSqlInput"; import { ExecuteSqlOutput } from "./types/ExecuteSqlOutput"; import { ExecuteStatementInput } from "./types/ExecuteStatementInput"; import { ExecuteStatementOutput } from "./types/ExecuteStatementOutput"; import { RollbackTransactionInput } from "./types/RollbackTransactionInput"; import { RollbackTransactionOutput } from "./types/RollbackTransactionOutput"; export declare class RDSData extends RDSDataClient { /** *
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.
There is an error in the call or in a SQL statement.
* - {ForbiddenException}There are insufficient privileges to make the call.
* - {InternalServerErrorException}An internal error occurred.
* - {ServiceUnavailableError}The service specified by the resourceArn parameter is not
available.
The execution of the SQL statement timed out.
* - {Error} An error originating from the SDK or customizations rather than the service */ batchExecuteStatement(args: BatchExecuteStatementInput): PromiseStarts a SQL transaction.
A transaction can run for a maximum of 24 hours. A transaction is terminated and rolled back automatically after 24 hours.
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.
DDL statements inside a transaction cause an implicit commit. We recommend
that you run each DDL statement in a separate ExecuteStatement call with
continueAfterTimeout enabled.
There is an error in the call or in a SQL statement.
* - {ForbiddenException}There are insufficient privileges to make the call.
* - {InternalServerErrorException}An internal error occurred.
* - {ServiceUnavailableError}The service specified by the resourceArn parameter is not
available.
The execution of the SQL statement timed out.
* - {Error} An error originating from the SDK or customizations rather than the service */ beginTransaction(args: BeginTransactionInput): PromiseEnds a SQL transaction started with the BeginTransaction operation and
commits the changes.
There is an error in the call or in a SQL statement.
* - {ForbiddenException}There are insufficient privileges to make the call.
* - {InternalServerErrorException}An internal error occurred.
* - {NotFoundException}The resourceArn, secretArn, or transactionId value can't be found.
The service specified by the resourceArn parameter is not
available.
Runs one or more SQL statements.
This operation is deprecated. Use the BatchExecuteStatement or
ExecuteStatement operation.
There is an error in the call or in a SQL statement.
* - {ForbiddenException}There are insufficient privileges to make the call.
* - {InternalServerErrorException}An internal error occurred.
* - {ServiceUnavailableError}The service specified by the resourceArn parameter is not
available.
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 or 1,000 records. If the call returns more than 1 MB of response data or over 1,000 records, the call is terminated.
* * This operation may fail with one of the following errors: * - {BadRequestException}There is an error in the call or in a SQL statement.
* - {ForbiddenException}There are insufficient privileges to make the call.
* - {InternalServerErrorException}An internal error occurred.
* - {ServiceUnavailableError}The service specified by the resourceArn parameter is not
available.
The execution of the SQL statement timed out.
* - {Error} An error originating from the SDK or customizations rather than the service */ executeStatement(args: ExecuteStatementInput): PromisePerforms a rollback of a transaction. Rolling back a transaction cancels its changes.
* * This operation may fail with one of the following errors: * - {BadRequestException}There is an error in the call or in a SQL statement.
* - {ForbiddenException}There are insufficient privileges to make the call.
* - {InternalServerErrorException}An internal error occurred.
* - {NotFoundException}The resourceArn, secretArn, or transactionId value can't be found.
The service specified by the resourceArn parameter is not
available.