Interface ICqlWriteAsyncClient
The contract for Async write operations.
Assembly: Cassandra.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 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 Parameters
DeleteAsync<T>(string, params 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 |
string |
cql |
|
object[] |
args |
|
Returns
Type Parameters
ExecuteAsync(Cql)
Executes an arbitrary CQL statement.
Declaration
Task ExecuteAsync(Cql cql)
Parameters
Type |
Name |
Description |
Cql |
cql |
|
Returns
ExecuteAsync(string, params object[])
Executes an arbitrary CQL string with the bind variable values specified.
Declaration
Task ExecuteAsync(string cql, params object[] args)
Parameters
Type |
Name |
Description |
string |
cql |
|
object[] |
args |
|
Returns
InsertAsync<T>(T, CqlQueryOptions)
Inserts the specified POCO in Cassandra.
Declaration
Task InsertAsync<T>(T poco, CqlQueryOptions queryOptions = null)
Parameters
Returns
Type Parameters
InsertAsync<T>(T, bool, 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
|
bool |
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 Parameters
InsertAsync<T>(T, bool, int?, 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
|
bool |
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.
|
int? |
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 Parameters
UpdateAsync<T>(T, CqlQueryOptions)
Updates the POCO specified in Cassandra.
Declaration
Task UpdateAsync<T>(T poco, CqlQueryOptions queryOptions = null)
Parameters
Returns
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 Parameters
UpdateAsync<T>(string, params 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 |
string |
cql |
|
object[] |
args |
|
Returns
Type Parameters
Name |
Description |
T |
The POCO Type being updated.
|