Click or drag to resize

Session.CreateKeyspace Method

Creates new keyspace in current cluster.

Namespace:  Cassandra
Assembly:  Cassandra (in Cassandra.dll) Version: 3.10.0
Syntax
C#
public void CreateKeyspace(
	string keyspace,
	Dictionary<string, string> replication = null,
	bool durableWrites = true
)

Parameters

keyspace
Type: System.String
replication (Optional)
Type: System.Collections.Generic.Dictionary<String, String>
Replication property for this keyspace. To set it, refer to the ReplicationStrategies class methods. It is a dictionary of replication property sub-options where key is a sub-option name and value is a value for that sub-option.

Default value is SimpleStrategy with replication_factor = 1

durableWrites (Optional)
Type: System.Boolean
Whether to use the commit log for updates on this keyspace. Default is set to true.

Implements

ISession.CreateKeyspace(String, Dictionary<String, String>, Boolean)
See Also