We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
const config = {} ... const Cassandra = require('express-cassandra'); models = Cassandra.createClient({ clientOptions: { contactPoints: [config.cassandra_nodes], protocolOptions: { port: config.cassandra_port }, keyspace: config.cassandra_keyspace, queryOptions: { consistency: Cassandra.consistencies.one }, }, ormOptions: { defaultReplicationStrategy: { class: 'SimpleStrategy', replication_factor: 1 }, migration: 'safe', createKeyspace: false } });
Not sure how to go about logging connection errors, or check connection success: Used to be able to do:
model.connect((err, res) => {})
But this gives an error, any way to check we are connected log success/error?
Didn't find a clear example in the docs.
thanks
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Not sure how to go about logging connection errors, or check connection success:
Used to be able to do:
But this gives an error,
any way to check we are connected log success/error?
Didn't find a clear example in the docs.
thanks
The text was updated successfully, but these errors were encountered: