Class AsyncTransactionExecutor
Transaction object used within asynchronous lambda executions to provide a reduced view that allows only the operations that are valid within the context of an active managed transaction.
Inheritance
Implements
Namespace: Amazon.QLDB.Driver
Assembly: Amazon.QLDB.Driver.dll
Syntax
public class AsyncTransactionExecutor : object, IAsyncExecutable
Methods
| Improve this Doc View SourceAbort()
Abort the transaction and roll back any changes.
Declaration
public Task Abort()
Returns
Type | Description |
---|---|
Task | No object or value is returned by this method when it completes. |
Execute(String)
Execute the statement against QLDB and retrieve the result.
Declaration
public Task<IAsyncResult> Execute(string statement)
Parameters
Type | Name | Description |
---|---|---|
System.String | statement | The PartiQL statement to be executed against QLDB. |
Returns
Type | Description |
---|---|
Task<IAsyncResult> | Result from executed statement. |
Execute(String, IIonValue[])
Execute the statement using the specified parameters against QLDB and retrieve the result.
Declaration
public Task<IAsyncResult> Execute(string statement, params IIonValue[] parameters)
Parameters
Type | Name | Description |
---|---|---|
System.String | statement | The PartiQL statement to be executed against QLDB. |
IIonValue[] | parameters | Parameters to execute. |
Returns
Type | Description |
---|---|
Task<IAsyncResult> | Result from executed statement. |
Execute(String, List<IIonValue>)
Execute the statement using the specified parameters against QLDB and retrieve the result.
Declaration
public Task<IAsyncResult> Execute(string statement, List<IIonValue> parameters)
Parameters
Type | Name | Description |
---|---|---|
System.String | statement | The PartiQL statement to be executed against QLDB. |
List<IIonValue> | parameters | Parameters to execute. |
Returns
Type | Description |
---|---|
Task<IAsyncResult> | Result from executed statement. |