{"action":"closed","issue":{"url":"https://api.github.com/repos/datastax/nodejs-driver/issues/38","labels_url":"https://api.github.com/repos/datastax/nodejs-driver/issues/38/labels{/name}","comments_url":"https://api.github.com/repos/datastax/nodejs-driver/issues/38/comments","events_url":"https://api.github.com/repos/datastax/nodejs-driver/issues/38/events","html_url":"https://github.com/datastax/nodejs-driver/issues/38","id":66691640,"number":38,"title":"implement mongoose.connect like connection sharing in nodejs-drive","user":{"login":"programming-kid","id":4522965,"avatar_url":"https://avatars.githubusercontent.com/u/4522965?v=3","gravatar_id":"","url":"https://api.github.com/users/programming-kid","html_url":"https://github.com/programming-kid","followers_url":"https://api.github.com/users/programming-kid/followers","following_url":"https://api.github.com/users/programming-kid/following{/other_user}","gists_url":"https://api.github.com/users/programming-kid/gists{/gist_id}","starred_url":"https://api.github.com/users/programming-kid/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/programming-kid/subscriptions","organizations_url":"https://api.github.com/users/programming-kid/orgs","repos_url":"https://api.github.com/users/programming-kid/repos","events_url":"https://api.github.com/users/programming-kid/events{/privacy}","received_events_url":"https://api.github.com/users/programming-kid/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-04-06T19:54:00Z","updated_at":"2015-04-06T20:09:33Z","closed_at":"2015-04-06T20:09:33Z","body":"hi\r\n I have recently started using nodejs and cassandra, i am switching from mongodb  currently using ```mongooseJS``` as node-mongo client .\r\n\r\nThis is one of the best writter client library i have ever used, it has all the necessary features for a database client library,  load balancing, node discovery , retry policy etc.\r\n\r\nThere this one thing i miss from ```mongooseJS``` is, in ```mongooseJS``` mongoose.connect() caches the connection string and u can simply use \r\n```javascript\r\nvar mongoose = require(\"mnongoose\");\r\n```\r\nin any file  you require it , by just calling mongoose.connect() once during application startup.\r\n\r\nI wish cassandra nodejs-driver would have same feature so that we don't have to require client connection in every file where we need to connect to cassandra \r\n\r\nif what i explained was not clear here is a [stackoverflow question](http://stackoverflow.com/questions/28966901/mongoose-connection-automatically-shared-in-express-js-application)  which explains it in detail \r\n\r\ni wish this gets added soon if possible \r\nthanks "}}