public static CassandraKeyspace Retreive(string keyspaceName, WrappedConnection wrappedConnection) { var replication = wrappedConnection.Query <SortedDictionary <string, string> >($"select replication from system_schema.keyspaces where keyspace_name = '{keyspaceName}'"); if (replication == null || !replication.Any()) { return(new CassandraKeyspace(keyspaceName, GetReplicationStrategyFromConfiguration(keyspaceName), wrappedConnection)); } return(new CassandraKeyspace(keyspaceName, ReplicationStrategy.FromSortedDictionary(replication), wrappedConnection)); }