Class Cql
Represents a CQL statement and its arguments.
Inheritance
System.Object
Cql
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Dse.Mapping
Assembly: Dse.dll
Syntax
public class Cql
Constructors
Cql(String, 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 |
---|---|---|
System.String | cql | |
System.Object[] | args |
Properties
Arguments
Any bind variable values for the CQL string.
Declaration
public object[] Arguments { get; }
Property Value
Type | Description |
---|---|
System.Object[] |
ExecutionProfile
Execution Profile to be used when executing this CQL instance.
Declaration
public string ExecutionProfile { get; }
Property Value
Type | Description |
---|---|
System.String |
Statement
The CQL string.
Declaration
public string Statement { get; }
Property Value
Type | Description |
---|---|
System.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, 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 |
---|---|---|
System.String | cql | |
System.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 |
---|---|---|
System.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 |
---|---|---|
System.Action<CqlQueryOptions> | options |
Returns
Type | Description |
---|---|
Cql |