Class Cql
Represents a CQL statement and its arguments.
Assembly: Cassandra.dll
Syntax
Constructors
Cql(string, params object[])
Creates a new Cql instance using the CQL string and bind variable values specified.
Declaration
public Cql(string cql, params object[] args)
Parameters
Properties
Arguments
Any bind variable values for the CQL string.
Declaration
public object[] Arguments { get; }
Property Value
ExecutionProfile
Execution Profile to be used when executing this CQL instance.
Declaration
public string ExecutionProfile { get; }
Property Value
Statement
Declaration
public string Statement { get; }
Property Value
Methods
New()
Creates an empty CQL instance for cases where a cql string is not needed like fetch queries.
Declaration
Returns
New(string, params object[])
Creates a new CQL instance from the CQL statement and parameters specified.
Declaration
public static Cql New(string cql, params object[] args)
Parameters
Returns
WithExecutionProfile(string)
Configures the execution profile for execution of this Cql instance.
Declaration
public Cql WithExecutionProfile(string executionProfile)
Parameters
Type |
Name |
Description |
string |
executionProfile |
|
Returns
WithOptions(Action<CqlQueryOptions>)
Configures any options for execution of this Cql instance.
Declaration
public Cql WithOptions(Action<CqlQueryOptions> options)
Parameters
Returns