Show / Hide Table of Contents

Class TransactionExecutor

Transaction object used within lambda executions to provide a reduced view that allows only the operations that are valid within the context of an active managed transaction.

Inheritance
System.Object
TransactionExecutor
Implements
IExecutable
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Amazon.QLDB.Driver
Assembly: Amazon.QLDB.Driver.dll
Syntax
public class TransactionExecutor : IExecutable

Properties

| Improve this Doc View Source

Id

Gets the transaction ID.

Declaration
public string Id { get; }
Property Value
Type Description
System.String

Methods

| Improve this Doc View Source

Abort()

Abort the transaction and roll back any changes.

Declaration
public void Abort()
| Improve this Doc View Source

Execute(String)

Execute the statement against QLDB and retrieve the result.

Declaration
public IResult Execute(string statement)
Parameters
Type Name Description
System.String statement

The PartiQL statement to be executed against QLDB.

Returns
Type Description
IResult

Result from executed statement.

Exceptions
Type Condition
Amazon.Runtime.AmazonServiceException

Thrown when there is an error executing against QLDB.

| Improve this Doc View Source

Execute(String, IIonValue[])

Execute the statement using the specified parameters against QLDB and retrieve the result.

Declaration
public IResult Execute(string statement, params IIonValue[] parameters)
Parameters
Type Name Description
System.String statement

The PartiQL statement to be executed against QLDB.

Amazon.IonDotnet.Tree.IIonValue[] parameters

Parameters to execute.

Returns
Type Description
IResult

Result from executed statement.

Exceptions
Type Condition
Amazon.Runtime.AmazonServiceException

Thrown when there is an error executing against QLDB.

| Improve this Doc View Source

Execute(String, List<IIonValue>)

Execute the statement using the specified parameters against QLDB and retrieve the result.

Declaration
public IResult Execute(string statement, List<IIonValue> parameters)
Parameters
Type Name Description
System.String statement

The PartiQL statement to be executed against QLDB.

System.Collections.Generic.List<Amazon.IonDotnet.Tree.IIonValue> parameters

Parameters to execute.

Returns
Type Description
IResult

Result from executed statement.

Exceptions
Type Condition
Amazon.Runtime.AmazonServiceException

Thrown when there is an error executing against QLDB.

| Improve this Doc View Source

Execute<T>(IQuery<T>)

Execute the IQuery against QLDB and retrieve the result.

Declaration
public IResult<T> Execute<T>(IQuery<T> query)
Parameters
Type Name Description
IQuery<T> query

The query object containing the PartiQL statement and parameters to be executed against QLDB.

Returns
Type Description
IResult<T>

Result from executed statement.

Type Parameters
Name Description
T

The return type.

Exceptions
Type Condition
Amazon.Runtime.AmazonServiceException

Thrown when there is an error executing against QLDB.

| Improve this Doc View Source

Query<T>(String, Object[])

Create a Query object containing the PartiQL statement and parameters to be executed against QLDB.

Declaration
public IQuery<T> Query<T>(string statement, params object[] parameters)
Parameters
Type Name Description
System.String statement

The PartiQL statement to be executed against QLDB.

System.Object[] parameters

Parameters to execute.

Returns
Type Description
IQuery<T>

A Query object.

Type Parameters
Name Description
T

The return type.

Implements

IExecutable
  • Improve this Doc
  • View Source
In This Article
Back to top Generated by DocFX