Options
All
  • Public
  • Public/Protected
  • All
Menu

Class ExecuteStatementCommand

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.

If the binary response data from the database is more than 1 MB, the call is terminated.

example

Use a bare-bones client and the command you need to make an API call.

import { RDSDataClient, ExecuteStatementCommand } from "@aws-sdk/client-rds-data"; // ES Modules import
// const { RDSDataClient, ExecuteStatementCommand } = require("@aws-sdk/client-rds-data"); // CommonJS import
const client = new RDSDataClient(config);
const command = new ExecuteStatementCommand(input);
const response = await client.send(command);
see

ExecuteStatementCommandInput for command's input shape.

see

ExecuteStatementCommandOutput for command's response shape.

see

config for RDSDataClient's config shape.

Hierarchy

Implements

Index

Constructors

Properties

Constructors

constructor

Properties

Readonly input

input: ExecuteStatementCommandInput

Readonly middlewareStack