You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi there,
I tried to make a de-synchronized version of execute but to no avail.
I checked out several popular node.js libraries including:
node-sync
deasync
and finally sync
All of them throw the following exception:
[TypeError: Object #<Object> has no method '_getAConnection']
Reproducing the error:
var Sync = require('sync');
var cql = require('node-cassandra-cql');
var client = new cql.Client({hosts: ['cassandra1.nikoo.ir', 'cassandra2.nikoo.ir'], keyspace: 'nikoomail'});
// Run in a fiber
Sync(function(){
var result = undefined;
try {
result = client.execute.sync(null, 'SELECT * FROM nikoomail.user where username=?', ['darrudi@nikoo.ir']);
}
catch (e) {
console.error('CQL query execution failed!');
console.log(e);
process.exit(-1);
}
console.log(result);
})
Thanks,
Ehsan
The text was updated successfully, but these errors were encountered:
Hi there,
I tried to make a de-synchronized version of execute but to no avail.
I checked out several popular node.js libraries including:
All of them throw the following exception:
Reproducing the error:
Thanks,
Ehsan
The text was updated successfully, but these errors were encountered: