Interface ICqlWriteAsyncClient
The contract for Async write operations.
Assembly: Dse.dll
Syntax
public interface ICqlWriteAsyncClient
Methods
DeleteAsync<T>(T, CqlQueryOptions)
Deletes the specified POCO from Cassandra.
Declaration
Task DeleteAsync<T>(T poco, CqlQueryOptions queryOptions = null)
Parameters
Returns
Type |
Description |
System.Threading.Tasks.Task |
|
Type Parameters
DeleteAsync<T>(Cql)
Deletes from the table for the POCO type specified (T) using the CQL statement specified. Prepends "DELETE FROM tablename " to the CQL statement you
specify, getting the tablename appropriately from the POCO Type T.
Declaration
Task DeleteAsync<T>(Cql cql)
Parameters
Type |
Name |
Description |
Cql |
cql |
|
Returns
Type |
Description |
System.Threading.Tasks.Task |
|
Type Parameters
DeleteAsync<T>(String, Object[])
Deletes from the table for the POCO type specified (T) using the CQL string and bind variable values specified. Prepends "DELETE FROM tablname " to
the CQL string you specify, getting the tablename appropriately from the POCO Type T.
Declaration
Task DeleteAsync<T>(string cql, params object[] args)
Parameters
Type |
Name |
Description |
System.String |
cql |
|
System.Object[] |
args |
|
Returns
Type |
Description |
System.Threading.Tasks.Task |
|
Type Parameters
ExecuteAsync(Cql)
Executes an arbitrary CQL statement.
Declaration
Task ExecuteAsync(Cql cql)
Parameters
Type |
Name |
Description |
Cql |
cql |
|
Returns
Type |
Description |
System.Threading.Tasks.Task |
|
ExecuteAsync(String, Object[])
Executes an arbitrary CQL string with the bind variable values specified.
Declaration
Task ExecuteAsync(string cql, params object[] args)
Parameters
Type |
Name |
Description |
System.String |
cql |
|
System.Object[] |
args |
|
Returns
Type |
Description |
System.Threading.Tasks.Task |
|
InsertAsync<T>(T, CqlQueryOptions)
Inserts the specified POCO in Cassandra.
Declaration
Task InsertAsync<T>(T poco, CqlQueryOptions queryOptions = null)
Parameters
Returns
Type |
Description |
System.Threading.Tasks.Task |
|
Type Parameters
InsertAsync<T>(T, Boolean, CqlQueryOptions)
Inserts the specified POCO in Cassandra.
Declaration
Task InsertAsync<T>(T poco, bool insertNulls, CqlQueryOptions queryOptions = null)
Parameters
Type |
Name |
Description |
T |
poco |
The POCO instance
|
System.Boolean |
insertNulls |
Determines if the query must be generated using NULL values for null POCO
members.
Use false if you don't want to consider null values for the INSERT
operation (recommended).
Use true if you want to override all the values in the table,
generating tombstones for null values.
|
CqlQueryOptions |
queryOptions |
Optional query options
|
Returns
Type |
Description |
System.Threading.Tasks.Task |
|
Type Parameters
InsertAsync<T>(T, Boolean, Nullable<Int32>, CqlQueryOptions)
Inserts the specified POCO in Cassandra.
Declaration
Task InsertAsync<T>(T poco, bool insertNulls, int? ttl, CqlQueryOptions queryOptions = null)
Parameters
Type |
Name |
Description |
T |
poco |
The POCO instance
|
System.Boolean |
insertNulls |
Determines if the query must be generated using NULL values for null POCO
members.
Use false if you don't want to consider null values for the INSERT
operation (recommended).
Use true if you want to override all the values in the table,
generating tombstones for null values.
|
System.Nullable<System.Int32> |
ttl |
Time to live (in seconds) for the inserted values. If set, the inserted values are automatically removed
from the database after the specified time.
|
CqlQueryOptions |
queryOptions |
Optional query options
|
Returns
Type |
Description |
System.Threading.Tasks.Task |
|
Type Parameters
UpdateAsync<T>(T, CqlQueryOptions)
Updates the POCO specified in Cassandra.
Declaration
Task UpdateAsync<T>(T poco, CqlQueryOptions queryOptions = null)
Parameters
Returns
Type |
Description |
System.Threading.Tasks.Task |
|
Type Parameters
UpdateAsync<T>(Cql)
Updates the table for the poco type specified (T) using the CQL statement specified. Prepends "UPDATE tablename" to the CQL statement you specify,
getting the tablename appropriately from the POCO Type T.
Declaration
Task UpdateAsync<T>(Cql cql)
Parameters
Type |
Name |
Description |
Cql |
cql |
|
Returns
Type |
Description |
System.Threading.Tasks.Task |
|
Type Parameters
UpdateAsync<T>(String, Object[])
Updates the table for the POCO type specified (T) using the CQL string and bind variable values specified. Prepends "UPDATE tablename " to the CQL
string you specify, getting the tablename appropriately from the POCO Type T.
Declaration
Task UpdateAsync<T>(string cql, params object[] args)
Parameters
Type |
Name |
Description |
System.String |
cql |
|
System.Object[] |
args |
|
Returns
Type |
Description |
System.Threading.Tasks.Task |
|
Type Parameters
Name |
Description |
T |
The POCO Type being updated.
|