nestjs-express-cassandra
TypeScript icon, indicating that this package has built-in type declarations

0.0.6 • Public • Published

Nest Logo

A progressive Node.js framework for building efficient and scalable server-side applications.

NPM Version Package License NPM Downloads Travis Linux Coverage Discord Backers on Open Collective Sponsors on Open Collective

Description

express-cassandra module for Nest.

Installation

$ npm i --save nestjs-express-cassandra

Usage

@Entity<PostEntity>({
  key: ['postId'],
})
export class PostEntity {
  @Column({
    type: 'int',
  })
  postId!: number;

  @UUIDColumn()
  userId?: string;

  @TimeUUIDColumn()
  dateID?: string;

  @VersionColumn()
  version?: string;

  @Column({
    type: 'text',
    rule: { required: true },
  })
  title!: string;

  @Column({
    type: 'text',
  })
  content?: string;

  @CreateDateColumn()
  createdAt?: string;

  @UpdateDateColumn()
  updatedAt?: string;
}

Browse sample folder for more examples.

License

MIT licensed.

Package Sidebar

Install

npm i nestjs-express-cassandra

Weekly Downloads

52

Version

0.0.6

License

MIT

Unpacked Size

101 kB

Total Files

97

Last publish

Collaborators

  • hiepthai