Express-Cassandra is a Cassandra ORM/ODM/OGM for NodeJS supporting Apache Cassandra, ScyllaDB, Datastax Enterprise, Elassandra, and JanusGraph. Current stable version is 2.9.1. It provides automatic model loading, schema management, CRUD operations, materialized views, secondary indexes, and advanced features like streaming, token-based pagination, and batching. Key differentiators include support for multiple Cassandra-compatible databases, elasticsearch integration via Elassandra, and graph database support. Uses the official cassandra-driver internally. Released under MIT license with active maintenance.
npm install express-cassandraNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Initializes and connects an express-cassandra client with contact points and ORM options, including keyspace creation.
Use `new expressCassandra({...})` instead of `expressCassandra.connect({...})`.Use native promises with `.save()` or the returned promise from methods.
Always use `new expressCassandra(...)` when creating a client instance.
Set `ormOptions.modelsDirectory` in client options to specify a custom path.
Ensure cassandra-driver version is compatible. Check express-cassandra documentation for driver version combinations.
Use `const client = new expressCassandra({...});`Start Cassandra/ScyllaDB server or check contactPoints configuration.
Set `ormOptions.createKeyspace: true` or create the keyspace manually.
Check `ormOptions.modelsDirectory` path and ensure model files exist.