Interface IAsyncExecutable
Interface for asynchronous executions of a statement within an active transaction to QLDB.
Namespace: Amazon.QLDB.Driver
Assembly: Amazon.QLDB.Driver.dll
Syntax
public interface IAsyncExecutable
Methods
| Improve this Doc View SourceExecute(String)
Execute the statement asynchronously against QLDB and retrieve the result.
Declaration
Task<IAsyncResult> Execute(string statement)
Parameters
Type | Name | Description |
---|---|---|
System.String | statement | The PartiQL statement to be executed against QLDB. |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task<IAsyncResult> | Result from executed statement. |
Exceptions
Type | Condition |
---|---|
Amazon.Runtime.AmazonServiceException | Thrown when there is an error executing against QLDB. |
Execute(String, IIonValue[])
Execute the statement asynchronously using the specified parameters against QLDB and retrieve the result.
Declaration
Task<IAsyncResult> 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 |
---|---|
System.Threading.Tasks.Task<IAsyncResult> | Result from executed statement. |
Exceptions
Type | Condition |
---|---|
Amazon.Runtime.AmazonServiceException | Thrown when there is an error executing against QLDB. |
Execute(String, List<IIonValue>)
Execute the statement asynchronously using the specified parameters against QLDB and retrieve the result.
Declaration
Task<IAsyncResult> 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 |
---|---|
System.Threading.Tasks.Task<IAsyncResult> | Result from executed statement. |
Exceptions
Type | Condition |
---|---|
Amazon.Runtime.AmazonServiceException | Thrown when there is an error executing against QLDB. |