Registry / database / cassandra-simple-orm

cassandra-simple-orm

JSON →
library0.1.14jsnpmunverified

A minimal ORM for Apache Cassandra providing CRUD operations (get, insert, update, delete) with support for WHERE clauses and operators (eql, gt, lt, gte, lte). Version 0.1.14, appears unmaintained since ~2013. Requires helenus (deprecated Cassandra driver). Unlike modern ORMs (e.g., express-cassandra), this uses a chaining API: new Cass(), cf(), method(), where(), exec(). No TypeScript types, no connection pooling, no migrations. Suitable only for legacy projects stuck on old Cassandra drivers.

npm install cassandra-simple-orm
INSTALL
IMPORT
SIG · CASSANDRA-SIMPLE-O
C
cassandra-simple-orm
databasejavascriptv0.1.14
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Cass
✓ var Cass = require('cassandra-simple-orm');
✗ import Cass from 'cassandra-simple-orm';
Package does not support ESM or TypeScript. Use CommonJS require().

Shows typical CRUD operations: insert, get with WHERE, update, and delete using the chaining API.

var Cass = require('cassandra-simple-orm'); var cass = new Cass(); // Insert a record cass.cf('users') .insert({key: '123e4567-e89b-12d3-a456-426614174000', name: 'John Doe', age: 30}) .exec(function(err) { if(err) throw err; console.log('Inserted'); }); // Query records cass.cf('users') .get('*') .where({age: {gte: 18}}) .exec(function(err, results) { if(err) throw err; console.log(results); }); // Update cass.cf('users') .update({name: 'Jane Doe'}) .where({key: '123e4567-e89b-12d3-a456-426614174000'}) .exec(function(err) { if(err) throw err; console.log('Updated'); }); // Delete cass.cf('users') .delete() .where({key: '123e4567-e89b-12d3-a456-426614174000'}) .exec(function(err) { if(err) throw err; console.log('Deleted'); });
Debug
Known issues
breakingRequires helenus (deprecated Cassandra driver) which is no longer maintained. May fail with modern Cassandra versions.
fix
Migrate to a modern Cassandra ORM like express-cassandra or cassandra-driver.
affects: >=0.1.0
gotchaInsert must specify 'key' as a UUID string; not allowed to use .where() with insert.
fix
In insert(), always provide key property and remove .where() calls.
affects: >=0.1.0
gotchaThe .cf() method must be called before every operation; state is not persisted.
fix
Chain .cf() before each get/insert/update/delete call. Do not cache cass instance state.
affects: >=0.1.0
deprecatedPackage has not been updated since 2013 and depends on abandoned dependencies.
fix
Replace with a maintained alternative like express-cassandra or cassandra-driver-orm.
affects: >=0.1.0
Errors
Common errors & fixes
Cannot find module 'helenus'
Missing required peer dependency helenus.
fix
Run 'npm install helenus' in your project.
TypeError: cass.cf is not a function
Calling .cf() on a non-Cass instance, or forgot to create instance.
fix
Ensure you do: var cass = new Cass(); then use cass.cf().
insert must specify KEY first
Insert called without providing a 'key' property in the object.
fix
Add key: 'uuid-string' to the insert object.
Upgrade
Version history
0.1.14latest on npm
Audit
Dependencies
helenusoptionalDeprecated Cassandra driver required for database connectivity; package is unmaintained and may have security issues.
Agent activity
7 hits · last 30 days
node
6
OpenAI (training)
1
Resources
cassandra-simple-orm — npm install cassandra-simple-orm · libregistry