prorm API Reference
    Preparing search index...

    Interface CassandraStoreOptions

    Connection options for CassandraStore. These map onto the cassandra-driver Client constructor options.

    interface CassandraStoreOptions {
        contactPoints?: string[];
        localDataCenter?: string;
        keyspace?: string;
        credentials?: { username: string; password: string };
        clientOptions?: Record<string, unknown>;
        client?: CassandraClientLike;
    }
    Index
    contactPoints?: string[]

    Seed node addresses, e.g. ['127.0.0.1'] or ['10.0.0.1:9042'].

    localDataCenter?: string

    Local data center name (required by the driver's default load-balancing policy).

    keyspace?: string

    Default keyspace to bind the session to.

    credentials?: { username: string; password: string }

    Plain-text auth credentials passed to the driver.

    clientOptions?: Record<string, unknown>

    Escape hatch for any other cassandra-driver Client option (pooling, SSL, policies, socketOptions, ...). Merged into the options passed to the Client constructor.

    client?: CassandraClientLike

    A pre-built driver Client (or a compatible mock). When provided, connect() uses it directly and skips require('cassandra-driver') entirely — this is how tests inject a mock without the real driver installed.