Class Cql
Represents a CQL statement and its arguments.
Inheritance
object
Cql
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: Cassandra.Mapping
Assembly: Cassandra.dll
Syntax
public class Cql
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
Type | Name | Description |
---|---|---|
string | cql | |
object[] | args |
Properties
Arguments
Any bind variable values for the CQL string.
Declaration
public object[] Arguments { get; }
Property Value
Type | Description |
---|---|
object[] |
ExecutionProfile
Execution Profile to be used when executing this CQL instance.
Declaration
public string ExecutionProfile { get; }
Property Value
Type | Description |
---|---|
string |
Statement
The CQL string.
Declaration
public string Statement { get; }
Property Value
Type | Description |
---|---|
string |
Methods
New()
Creates an empty CQL instance for cases where a cql string is not needed like fetch queries.
Declaration
public static Cql New()
Returns
Type | Description |
---|---|
Cql |
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
Type | Name | Description |
---|---|---|
string | cql | |
object[] | args |
Returns
Type | Description |
---|---|
Cql |
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
Type | Description |
---|---|
Cql |
WithOptions(Action<CqlQueryOptions>)
Configures any options for execution of this Cql instance.
Declaration
public Cql WithOptions(Action<CqlQueryOptions> options)
Parameters
Type | Name | Description |
---|---|---|
Action<CqlQueryOptions> | options |
Returns
Type | Description |
---|---|
Cql |