A full-featured Apache Cassandra ORM for Node.js built on the DataStax Node.js driver. Version 0.0.37 is the latest release. Development is sporadic with no recent updates. It offers chainable query building, schema validation, automatic keyspace/table/user-defined type rectification, and full support for Cassandra data types including collections, counters, and tuples. Unlike simpler query builders, it provides an active-record style model with lifecycle callbacks, setters/getters, and change tracking.
npm install dakota-cassandraNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Connects to a local Cassandra instance, defines a User model with schema validation, creates and saves a new user, then queries for it by name.
Consider using alternatives like express-cassandra or cql-translator for production.
Use const Dakota = require('dakota-cassandra'); instead of import.Always include keyspace in connection options.
Set schema rectification options to 'ensure exists' or false.
Ensure collection columns are defined as list, set, or map in the schema.
Verify Cassandra is running and contactPoints includes the correct host:port.
Use const Dakota = require('dakota-cassandra'); and then new Dakota(options);Create the keyspace manually or enable auto-rectification with ensureExists: true.
Check that dakota.addModel returned a valid model. Ensure connection options are correct.