CassandraConnection
Defined in: src/persistence/journals/CassandraClient.ts:30
Extended by
Section titled “Extended by”Properties
Section titled “Properties”autoCreateKeyspace?
Section titled “autoCreateKeyspace?”
readonlyoptionalautoCreateKeyspace?:boolean
Defined in: src/persistence/journals/CassandraClient.ts:42
If true, create the keyspace on startup (simple strategy, rf=1). Dev-friendly default.
consistency?
Section titled “consistency?”
readonlyoptionalconsistency?:number
Defined in: src/persistence/journals/CassandraClient.ts:55
CQL consistency level to use for all reads and writes. Default:
LOCAL_QUORUM (value 6 in the driver). Pass the numeric value from
cassandra-driver’s types.consistencies.
contactPoints
Section titled “contactPoints”
readonlycontactPoints: readonlystring[]
Defined in: src/persistence/journals/CassandraClient.ts:32
Node(s) to seed the cluster topology from.
credentials?
Section titled “credentials?”
readonlyoptionalcredentials?:object
Defined in: src/persistence/journals/CassandraClient.ts:38
Optional username/password for PLAIN auth.
password
Section titled “password”password:
string
username
Section titled “username”username:
string
keyspace
Section titled “keyspace”
readonlykeyspace:string
Defined in: src/persistence/journals/CassandraClient.ts:36
Keyspace to USE after connect. Must already exist, or pass autoCreateKeyspace: true.
localDataCenter?
Section titled “localDataCenter?”
readonlyoptionallocalDataCenter?:string
Defined in: src/persistence/journals/CassandraClient.ts:34
Local DC — required for DCAwareRoundRobinPolicy. Defaults to datacenter1.
readonlyoptionalport?:number
Defined in: src/persistence/journals/CassandraClient.ts:40
Port — defaults to 9042.
replication?
Section titled “replication?”
readonlyoptionalreplication?:object
Defined in: src/persistence/journals/CassandraClient.ts:44
Replication settings used by autoCreateKeyspace. Ignored otherwise.
class?
Section titled “class?”
readonlyoptionalclass?:"SimpleStrategy"|"NetworkTopologyStrategy"
dataCenters?
Section titled “dataCenters?”
readonlyoptionaldataCenters?:Readonly<Record<string,number>>
For NetworkTopologyStrategy, map of DC → replication factor.
replicationFactor?
Section titled “replicationFactor?”
readonlyoptionalreplicationFactor?:number