Skip to content

createCassandraClient

createCassandraClient(conn): Promise<CassandraClientLike>

Defined in: src/persistence/journals/CassandraClient.ts:103

Dynamically import the official DataStax driver and construct a client. Kept behind await so the import only happens when the user actually creates a Cassandra journal. If the user constructs their own client elsewhere they can bypass this entirely.

CassandraConnection

Promise<CassandraClientLike>