TypeCQL is an ORM for CQL databases like Cassandra and ScyllaDB, currently at version 1.1.17. It provides a built-in mapper with custom columns and options, an excellent type system (TypeScript 5+), query optimization, support for multiple connections, advanced methods, automatic loading of tables and columns, a migration tool, and transactions. It works with both NestJS and plain TypeScript Node.js. Key differentiators include its advanced type inference and seamless integration with NestJS, making it a strong alternative to other CQL ORMs like cassandra-driver's mapper or express-cassandra.
npm install typecqlNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Defines a User entity and demonstrates connecting to a Cassandra cluster, saving a new user, and retrieving it by primary key.
Ensure your Cassandra or ScyllaDB cluster is running and accessible from the configured contact points.
Update Connection configuration: replace { hosts: [...] } with { contactPoints: [...] }.Replace 'findOne' with 'findFirst' in your code.
Add the following to tsconfig.json: "experimentalDecorators": true, "emitDecoratorMetadata": true.
Check the return type of save() and use SaveResult.entity to get the saved entity.
Install typecql: npm install typecql. Ensure you are using the correct import: import { ... } from 'typecql'.Use import: import { Connection } from 'typecql' and then instantiate with new Connection(...).Set "experimentalDecorators": true in tsconfig.json.
No dependency data recorded yet.