{"action":"created","issue":{"url":"https://api.github.com/repos/robconery/massive-js/issues/61","labels_url":"https://api.github.com/repos/robconery/massive-js/issues/61/labels{/name}","comments_url":"https://api.github.com/repos/robconery/massive-js/issues/61/comments","events_url":"https://api.github.com/repos/robconery/massive-js/issues/61/events","html_url":"https://github.com/robconery/massive-js/issues/61","id":74356691,"number":61,"title":"Connect Every Time","user":{"login":"paulxtiseo","id":2977050,"avatar_url":"https://avatars.githubusercontent.com/u/2977050?v=3","gravatar_id":"","url":"https://api.github.com/users/paulxtiseo","html_url":"https://github.com/paulxtiseo","followers_url":"https://api.github.com/users/paulxtiseo/followers","following_url":"https://api.github.com/users/paulxtiseo/following{/other_user}","gists_url":"https://api.github.com/users/paulxtiseo/gists{/gist_id}","starred_url":"https://api.github.com/users/paulxtiseo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/paulxtiseo/subscriptions","organizations_url":"https://api.github.com/users/paulxtiseo/orgs","repos_url":"https://api.github.com/users/paulxtiseo/repos","events_url":"https://api.github.com/users/paulxtiseo/events{/privacy}","received_events_url":"https://api.github.com/users/paulxtiseo/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-05-08T13:02:13Z","updated_at":"2015-05-08T13:03:55Z","closed_at":"2015-05-08T13:03:55Z","body":"Am I reading this correctly that every time I want to run a particular pg function, I call massive.connect(), then loadTables() and loadFunctions() for all the tables, functions, etc. in my postgresql db?"},"comment":{"url":"https://api.github.com/repos/robconery/massive-js/issues/comments/100225847","html_url":"https://github.com/robconery/massive-js/issues/61#issuecomment-100225847","issue_url":"https://api.github.com/repos/robconery/massive-js/issues/61","id":100225847,"user":{"login":"robconery","id":78586,"avatar_url":"https://avatars.githubusercontent.com/u/78586?v=3","gravatar_id":"","url":"https://api.github.com/users/robconery","html_url":"https://github.com/robconery","followers_url":"https://api.github.com/users/robconery/followers","following_url":"https://api.github.com/users/robconery/following{/other_user}","gists_url":"https://api.github.com/users/robconery/gists{/gist_id}","starred_url":"https://api.github.com/users/robconery/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/robconery/subscriptions","organizations_url":"https://api.github.com/users/robconery/orgs","repos_url":"https://api.github.com/users/robconery/repos","events_url":"https://api.github.com/users/robconery/events{/privacy}","received_events_url":"https://api.github.com/users/robconery/received_events","type":"User","site_admin":false},"created_at":"2015-05-08T13:03:55Z","updated_at":"2015-05-08T13:03:55Z","body":"No - you only connect once to get your DB instance. You'll want to keep that instance alive with your application - each connection to the DB is managed by the pg connection pool so you're safe there."}}