Nestjs Express Cassandra

screenshot of Nestjs Express Cassandra
nestjs

A express-cassandra module for Nest framework

Overview

The Express Cassandra utilities module for NestJS is a powerful tool designed to simplify the integration of Cassandra databases within your NestJS applications. Built upon the express-cassandra package, this module facilitates an efficient and intuitive development experience with Cassandra's unique data handling capabilities. With support for various options to configure your module asynchronously, it makes setting up and managing your database connections a breeze.

Whether you're looking to manage entities, utilize decorators, or harness custom repositories, this module has got you covered. By embracing the core principles of NestJS and leveraging the functionality of express-cassandra, developers can create robust applications that seamlessly interact with Cassandra databases.

Features

  • Asynchronous Configuration: Utilize registerAsync() method to pass module options asynchronously, employing factories, classes, or existing services.
  • Entity Management: Use the forFeature() method to define and register specific entities, allowing for dependency injection within your services.
  • Column Decorators: Effortlessly manage your entity properties with decorators like @GeneratedUUidColumn, @CreateDateColumn, and @IndexColumn to handle auto-generations and indexing.
  • Hook Function Support: Implement pre- and post-processing logic using decorators such as @BeforeSave and @AfterDelete, enhancing control over entity lifecycle events.
  • Custom Repository Usage: Create and inject custom repositories into your services, providing tailored data handling and encapsulating business logic.
  • Elassandra Compatibility: Seamlessly integrate with Elassandra, allowing for hybrid deployment scenarios combining Cassandra and Elasticsearch within your applications.
nestjs
Nest

A progressive Node.js framework for building efficient, scalable, and enterprise-grade server-side applications with TypeScript/JavaScript.

typescript
Typescript

TypeScript is a superset of JavaScript, providing optional static typing, classes, interfaces, and other features that help developers write more maintainable and scalable code. TypeScript's static typing system can catch errors at compile-time, making it easier to build and maintain large applications.