Did you ever get this resolved - I am ant the same junction now and would like any recommendation.
Al On Friday, October 4, 2013 10:52:24 AM UTC-4, Celso Axelrud wrote: > > I am trying to use the node-orientdb driver (native) without success. > I used the "connection to database" example from > https://github.com/gabipetrovay/node-orientdb > I debugged the code (Webstorm) and it looks like the db.open instruction > doesn't execute the callback. > I also tried the test set using *npm test* or *node test/db_open_close.js*but > it doesn't log any message to the console. > I also tried to execute the "connect to database" example from the Node.js > console and use the *db.open()* but it didn't work since all the > information (as *db.clusters.**length*) is *undefined*. > Example: > var orient=require('orientdb'); > > var Db = orient.Db; > var Server = orient.Server; > var dbConfig = { > user_name: "admin", > user_password: "admin" > }; > var serverConfig = { > host: "localhost", > port: 2480 > }; > var server = new Server(serverConfig); > var db = new Db("temp", server, dbConfig); > db.open(function(err,result) { > if (err) { > console.log(err); > return; > } > else { > console.log(result) > } > console.log("Database '" + db.databaseName + "' has " + > db.clusters.length > + " clusters"); > // use db.command(...) function to run OrientDB SQL queries > }); > > > > -- --- You received this message because you are subscribed to the Google Groups "OrientDB" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
