Method GetDeleteRangeAsyncEnumerable
GetDeleteRangeAsyncEnumerable(String, Object, DeleteRangeOptions, CancellationToken)
Returns
IAsyncEnumerable<T> to delete range of rows
from a table in multiple successive atomic operations.
Declaration
public IAsyncEnumerable<DeleteRangeResult> GetDeleteRangeAsyncEnumerable(string tableName, object partialPrimaryKey, DeleteRangeOptions options = null, CancellationToken cancellationToken = null)
Parameters
| Type |
Name |
Description |
| String |
tableName |
The name of the table. |
| Object |
partialPrimaryKey |
Partial primary key. Currently
must be provided as MapValue representing names and
values of the partial primary key fields. |
| DeleteRangeOptions |
options |
(Optional) Options for the DeleteRange
operation. If not specified or null, appropriate defaults
will be used. See DeleteRangeOptions. |
| CancellationToken |
cancellationToken |
(Optional) Cancellation token.
|
Returns
Examples
Asynchronously iterating over
GetDeleteRangeAsyncEnumerable(String, Object, DeleteRangeOptions, CancellationToken).
var partialPrimaryKey =
var options = new DeleteRangeOptions
{
Compartment = "my_compartment",
FieldRange = new FieldRange("itemId")
{
StartAfter = 1000
}
};
await foreach(var result in client.GetDeleteRangeAsyncEnumerable(
"myTable", partialPrimaryKey, options))
{
Console.WriteLine($"Deleted {result.DeletedCount} row(s)");
}
Exceptions
See Also
GetDeleteRangeAsyncEnumerable(String, Object, FieldRange, CancellationToken)
Returns
IAsyncEnumerable<T> to delete range of rows
from a table in multiple successive atomic operations.
Declaration
public IAsyncEnumerable<DeleteRangeResult> GetDeleteRangeAsyncEnumerable(string tableName, object partialPrimaryKey, FieldRange fieldRange, CancellationToken cancellationToken = null)
Parameters
| Type |
Name |
Description |
| String |
tableName |
The name of the table. |
| Object |
partialPrimaryKey |
Partial primary key. Currently
must be provided as MapValue representing names and
values of the partial primary key fields. |
| FieldRange |
fieldRange |
Field range for the DeleteRange
operation, see FieldRange. |
| CancellationToken |
cancellationToken |
(Optional) Cancellation token.
|
Returns
Exceptions
See Also
GetDeleteRangeAsyncEnumerable(String, Object, CancellationToken)
Returns
IAsyncEnumerable<T> to delete range of rows
from a table in multiple successive atomic operations.
Declaration
public IAsyncEnumerable<DeleteRangeResult> GetDeleteRangeAsyncEnumerable(string tableName, object partialPrimaryKey, CancellationToken cancellationToken)
Parameters
| Type |
Name |
Description |
| String |
tableName |
The name of the table. |
| Object |
partialPrimaryKey |
Partial primary key. Currently
must be provided as MapValue representing names and
values of the partial primary key fields. |
| CancellationToken |
cancellationToken |
Cancellation token. |
Returns
Exceptions
See Also