{"action":"created","issue":{"url":"https://api.github.com/repos/rethinkdb/rethinkdb/issues/3602","labels_url":"https://api.github.com/repos/rethinkdb/rethinkdb/issues/3602/labels{/name}","comments_url":"https://api.github.com/repos/rethinkdb/rethinkdb/issues/3602/comments","events_url":"https://api.github.com/repos/rethinkdb/rethinkdb/issues/3602/events","html_url":"https://github.com/rethinkdb/rethinkdb/issues/3602","id":54729813,"number":3602,"title":"node: create a subinstance of `rethinkdb` so i don't have to `.run(conn)` everything","user":{"login":"jonathanong","id":643505,"avatar_url":"https://avatars.githubusercontent.com/u/643505?v=3","gravatar_id":"","url":"https://api.github.com/users/jonathanong","html_url":"https://github.com/jonathanong","followers_url":"https://api.github.com/users/jonathanong/followers","following_url":"https://api.github.com/users/jonathanong/following{/other_user}","gists_url":"https://api.github.com/users/jonathanong/gists{/gist_id}","starred_url":"https://api.github.com/users/jonathanong/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jonathanong/subscriptions","organizations_url":"https://api.github.com/users/jonathanong/orgs","repos_url":"https://api.github.com/users/jonathanong/repos","events_url":"https://api.github.com/users/jonathanong/events{/privacy}","received_events_url":"https://api.github.com/users/jonathanong/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/rethinkdb/rethinkdb/milestones/41","labels_url":"https://api.github.com/repos/rethinkdb/rethinkdb/milestones/41/labels","id":367201,"number":41,"title":"subsequent","description":"","creator":{"login":"coffeemug","id":48436,"avatar_url":"https://avatars.githubusercontent.com/u/48436?v=3","gravatar_id":"","url":"https://api.github.com/users/coffeemug","html_url":"https://github.com/coffeemug","followers_url":"https://api.github.com/users/coffeemug/followers","following_url":"https://api.github.com/users/coffeemug/following{/other_user}","gists_url":"https://api.github.com/users/coffeemug/gists{/gist_id}","starred_url":"https://api.github.com/users/coffeemug/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/coffeemug/subscriptions","organizations_url":"https://api.github.com/users/coffeemug/orgs","repos_url":"https://api.github.com/users/coffeemug/repos","events_url":"https://api.github.com/users/coffeemug/events{/privacy}","received_events_url":"https://api.github.com/users/coffeemug/received_events","type":"User","site_admin":false},"open_issues":316,"closed_issues":2,"state":"open","created_at":"2013-06-30T07:32:52Z","updated_at":"2015-01-19T20:08:16Z","due_on":null,"closed_at":null},"comments":4,"created_at":"2015-01-19T06:16:00Z","updated_at":"2015-01-19T20:13:54Z","closed_at":null,"body":"i would rather do:\r\n\r\n```js\r\nvar R = require('rethinkdb')\r\nvar r = new R()\r\nr.connect()\r\n\r\nr.table('asdf').get().run()\r\n```\r\n\r\npassing `conn` everywhere is no fun"},"comment":{"url":"https://api.github.com/repos/rethinkdb/rethinkdb/issues/comments/70553469","html_url":"https://github.com/rethinkdb/rethinkdb/issues/3602#issuecomment-70553469","issue_url":"https://api.github.com/repos/rethinkdb/rethinkdb/issues/3602","id":70553469,"user":{"login":"larkost","id":7431361,"avatar_url":"https://avatars.githubusercontent.com/u/7431361?v=3","gravatar_id":"","url":"https://api.github.com/users/larkost","html_url":"https://github.com/larkost","followers_url":"https://api.github.com/users/larkost/followers","following_url":"https://api.github.com/users/larkost/following{/other_user}","gists_url":"https://api.github.com/users/larkost/gists{/gist_id}","starred_url":"https://api.github.com/users/larkost/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/larkost/subscriptions","organizations_url":"https://api.github.com/users/larkost/orgs","repos_url":"https://api.github.com/users/larkost/repos","events_url":"https://api.github.com/users/larkost/events{/privacy}","received_events_url":"https://api.github.com/users/larkost/received_events","type":"User","site_admin":false},"created_at":"2015-01-19T20:13:54Z","updated_at":"2015-01-19T20:13:54Z","body":"Oddly, two of us were having this same conversation in the office at about the same time as @danielmewes wrote this response, without having seen this issue. And separately we both came up with the same idea of allowing connection objects to stand in for `r`."}}