Click or drag to resize

SessionPrepare Method (String, String, IDictionaryString, Byte)

Prepares the provided query string asynchronously on the provided keyspace, sending the custom payload as part of the request.

Namespace:  Cassandra
Assembly:  Cassandra (in Cassandra.dll) Version: 3.13.0
Syntax
C#
public PreparedStatement Prepare(
	string cqlQuery,
	string keyspace,
	IDictionary<string, byte[]> customPayload
)

Parameters

cqlQuery
Type: SystemString
Cql query to prepare
keyspace
Type: SystemString
The keyspace to prepare this query with
customPayload
Type: System.Collections.GenericIDictionaryString, Byte
Custom outgoing payload to send with the prepare request

Return Value

Type: PreparedStatement

Implements

ISessionPrepare(String, String, IDictionaryString, Byte)
Remarks
Setting the keyspace parameter is only available with protocol v5 (not supported by the driver yet) or DSE 6.0+.
See Also