{"action":"opened","issue":{"url":"https://api.github.com/repos/vitaly-t/pg-promise/issues/39","labels_url":"https://api.github.com/repos/vitaly-t/pg-promise/issues/39/labels{/name}","comments_url":"https://api.github.com/repos/vitaly-t/pg-promise/issues/39/comments","events_url":"https://api.github.com/repos/vitaly-t/pg-promise/issues/39/events","html_url":"https://github.com/vitaly-t/pg-promise/issues/39","id":102181797,"number":39,"title":"Connecting with \"postgres://\" does not work as it expects an object","user":{"login":"jllodra","id":273590,"avatar_url":"https://avatars.githubusercontent.com/u/273590?v=3","gravatar_id":"","url":"https://api.github.com/users/jllodra","html_url":"https://github.com/jllodra","followers_url":"https://api.github.com/users/jllodra/followers","following_url":"https://api.github.com/users/jllodra/following{/other_user}","gists_url":"https://api.github.com/users/jllodra/gists{/gist_id}","starred_url":"https://api.github.com/users/jllodra/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jllodra/subscriptions","organizations_url":"https://api.github.com/users/jllodra/orgs","repos_url":"https://api.github.com/users/jllodra/repos","events_url":"https://api.github.com/users/jllodra/events{/privacy}","received_events_url":"https://api.github.com/users/jllodra/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-08-20T16:50:26Z","updated_at":"2015-08-20T16:50:26Z","closed_at":null,"body":"The README says that you can use either an Object or an String to connect, but following code is not working:\r\n\r\n```javascript\r\nvar db = pgp(\"postgresq://user:password@host:port/database\");\r\n```\r\ngetting a run-time exception:\r\n```javascript\r\n        throw new Error(\"Invalid parameter 'options' specified.\");\r\n```\r\n\r\nSwitched to an Object representation and worked like a charm."}}