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.

* * 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.

* - {StatementTimeoutException}

The execution of the SQL statement timed out.

* - {Error} An error originating from the SDK or customizations rather than the service */ batchExecuteStatement(args: BatchExecuteStatementInput): Promise; batchExecuteStatement(args: BatchExecuteStatementInput, cb: (err: any, data?: BatchExecuteStatementOutput) => void): void; /** *

Starts 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.

* * 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.

* - {StatementTimeoutException}

The execution of the SQL statement timed out.

* - {Error} An error originating from the SDK or customizations rather than the service */ beginTransaction(args: BeginTransactionInput): Promise; beginTransaction(args: BeginTransactionInput, cb: (err: any, data?: BeginTransactionOutput) => void): void; /** *

Ends a SQL transaction started with the BeginTransaction operation and commits the 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.

* - {ServiceUnavailableError}

The service specified by the resourceArn parameter is not available.

* - {Error} An error originating from the SDK or customizations rather than the service */ commitTransaction(args: CommitTransactionInput): Promise; commitTransaction(args: CommitTransactionInput, cb: (err: any, data?: CommitTransactionOutput) => void): void; /** *

Runs one or more SQL statements.

This operation is deprecated. Use the BatchExecuteStatement or ExecuteStatement operation.

* * 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.

* - {Error} An error originating from the SDK or customizations rather than the service */ executeSql(args: ExecuteSqlInput): Promise; executeSql(args: ExecuteSqlInput, cb: (err: any, data?: ExecuteSqlOutput) => void): void; /** *

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.

* - {StatementTimeoutException}

The execution of the SQL statement timed out.

* - {Error} An error originating from the SDK or customizations rather than the service */ executeStatement(args: ExecuteStatementInput): Promise; executeStatement(args: ExecuteStatementInput, cb: (err: any, data?: ExecuteStatementOutput) => void): void; /** *

Performs 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.

* - {ServiceUnavailableError}

The service specified by the resourceArn parameter is not available.

* - {Error} An error originating from the SDK or customizations rather than the service */ rollbackTransaction(args: RollbackTransactionInput): Promise; rollbackTransaction(args: RollbackTransactionInput, cb: (err: any, data?: RollbackTransactionOutput) => void): void; }