@inrange/express-express-cassandra
TypeScript icon, indicating that this package has built-in type declarations

0.10.0 • Public • Published

express-express-cassandra

A wrapper for using express-cassandra, with AWS Keyspaces support.

0v3rst33r - express-cassandra stars - express-cassandra forks - express-cassandra

GitHub tag Contributors Issues License

Table Of Contents

Setup

Install nvm if you have not done so yet, then:

nvm use

Build

npm run build

Publish

You need to be an @inrange organisation team member in order to publish.

Use the --dry-run flag if you first want to test/confirm what will be published.

npm publish --access public

Usage examples

Create instances

To create 2 independent instances:

import modelzzz = require('@inrange/express-express-cassandra');

export const keyspacesOrm = modelzzz.get('keyspaces');
export const cassandraOrm = modelzzz.get('cassandra');

Under the hood this just makes 2 separate non-cached calls to:

require('express-cassandra')

AWS Keyspaces

Using the AWS Keyspaces compatible methods:

import { keyspaces } from '@inrange/express-express-cassandra';

keyspaces.saveAsync(model).then(...)

Contributing

Contributions are what make the open source community such an amazing place to be learn, inspire, and create. Any contributions you make are greatly appreciated.

  • If you have suggestions for adding or removing projects, feel free to open an issue to discuss it, or directly create a pull request after you edit the README.md file with necessary changes.
  • Please make sure you check your spelling and grammar.
  • Create individual PR for each suggestion.

License

See LICENSE for more information.

Acknowledgements

The creators of the express-cassandra project.

Readme

Keywords

none

Package Sidebar

Install

npm i @inrange/express-express-cassandra

Weekly Downloads

0

Version

0.10.0

License

MIT

Unpacked Size

6.83 kB

Total Files

7

Last publish

Collaborators

  • pellisatinrange
  • mitchwongho
  • jarrydinrange
  • dawidatinrange
  • 0v3rst33r