Options
All
  • Public
  • Public/Protected
  • All
Menu

Class BeginTransactionCommand

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.

example

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

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

BeginTransactionCommandInput for command's input shape.

see

BeginTransactionCommandOutput for command's response shape.

see

config for RDSDataClient's config shape.

Hierarchy

Implements

Index

Constructors

constructor

Properties

Readonly input

input: BeginTransactionCommandInput

Readonly middlewareStack

Methods

Static getEndpointParameterInstructions