{"action":"created","issue":{"url":"https://api.github.com/repos/neumino/rethinkdbdash/issues/314","repository_url":"https://api.github.com/repos/neumino/rethinkdbdash","labels_url":"https://api.github.com/repos/neumino/rethinkdbdash/issues/314/labels{/name}","comments_url":"https://api.github.com/repos/neumino/rethinkdbdash/issues/314/comments","events_url":"https://api.github.com/repos/neumino/rethinkdbdash/issues/314/events","html_url":"https://github.com/neumino/rethinkdbdash/issues/314","id":190609652,"number":314,"title":"Disabling pooling in rethinkdbdash","user":{"login":"asteranup","id":60697,"avatar_url":"https://avatars.githubusercontent.com/u/60697?v=3","gravatar_id":"","url":"https://api.github.com/users/asteranup","html_url":"https://github.com/asteranup","followers_url":"https://api.github.com/users/asteranup/followers","following_url":"https://api.github.com/users/asteranup/following{/other_user}","gists_url":"https://api.github.com/users/asteranup/gists{/gist_id}","starred_url":"https://api.github.com/users/asteranup/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/asteranup/subscriptions","organizations_url":"https://api.github.com/users/asteranup/orgs","repos_url":"https://api.github.com/users/asteranup/repos","events_url":"https://api.github.com/users/asteranup/events{/privacy}","received_events_url":"https://api.github.com/users/asteranup/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-11-21T03:22:01Z","updated_at":"2016-11-21T08:10:37Z","closed_at":"2016-11-21T07:24:22Z","body":"Hi There,\r\n\r\nI was trying to disable pooling. But it breaks saying \"`run` was called without a connection and no pool has been created\". Code is very simple-\r\n\r\n```\r\nvar r = require('rethinkdbdash')({\r\n    pool: false,\r\n    cursor: true,\r\n    host: 'xx.xx.xx.xx,\r\n    port: 28015,\r\n    db:'brief-prod'\r\n});\r\n\r\nr.table('users').run().then(function(cursor) {\r\n  cursor.toArray().then(function(result) {\r\n    console.log(result);\r\n  });\r\n});\r\n```\r\n\r\nNot sure what am I missing. Stack is as follows-\r\n\r\nD:\\POCs\\NodePOCs\\rethinkdbdash\\node_modules\\rethinkdbdash\\lib\\term.js:124\r\n      throw new Error.ReqlDriverError('`run` was called without a connection and no pool has been created', self._query);\r\n      ^\r\nReqlDriverError: `run` was called without a connection and no pool has been created after:\r\nr.table(\"users\")\r\n    at Term.run (D:\\POCs\\NodePOCs\\rethinkdbdash\\node_modules\\rethinkdbdash\\lib\\term.js:124:13)\r\n    at Object.<anonymous> (D:\\POCs\\NodePOCs\\rethinkdbdash\\server.js:9:18)\r\n    at Module._compile (module.js:541:32)\r\n    at Object.Module._extensions..js (module.js:550:10)\r\n    at Module.load (module.js:458:32)\r\n    at tryModuleLoad (module.js:417:12)\r\n    at Function.Module._load (module.js:409:3)\r\n    at Timeout.Module.runMain [as _onTimeout] (module.js:575:10)\r\n    at tryOnTimeout (timers.js:228:11)\r\n    at Timer.listOnTimeout (timers.js:202:5)\r\n\r\nThanks\r\nAnup\r\n"},"comment":{"url":"https://api.github.com/repos/neumino/rethinkdbdash/issues/comments/261870262","html_url":"https://github.com/neumino/rethinkdbdash/issues/314#issuecomment-261870262","issue_url":"https://api.github.com/repos/neumino/rethinkdbdash/issues/314","id":261870262,"user":{"login":"asteranup","id":60697,"avatar_url":"https://avatars.githubusercontent.com/u/60697?v=3","gravatar_id":"","url":"https://api.github.com/users/asteranup","html_url":"https://github.com/asteranup","followers_url":"https://api.github.com/users/asteranup/followers","following_url":"https://api.github.com/users/asteranup/following{/other_user}","gists_url":"https://api.github.com/users/asteranup/gists{/gist_id}","starred_url":"https://api.github.com/users/asteranup/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/asteranup/subscriptions","organizations_url":"https://api.github.com/users/asteranup/orgs","repos_url":"https://api.github.com/users/asteranup/repos","events_url":"https://api.github.com/users/asteranup/events{/privacy}","received_events_url":"https://api.github.com/users/asteranup/received_events","type":"User","site_admin":false},"created_at":"2016-11-21T08:10:37Z","updated_at":"2016-11-21T08:10:37Z","body":"Can you please direct me any sample for this. I could not find any example for the same. "}}
{"actor":{"display_login":"asteranup"}}