@inrange/express-express-cassandra
v0.10.0
Published
A wrapper for using `express-cassandra`, with `AWS Keyspaces` support.
Downloads
10
Keywords
Readme
express-express-cassandra
A wrapper for using express-cassandra
, with AWS Keyspaces
support.
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.