{"action":"created","issue":{"url":"https://api.github.com/repos/krisajenkins/yesql/issues/99","labels_url":"https://api.github.com/repos/krisajenkins/yesql/issues/99/labels{/name}","comments_url":"https://api.github.com/repos/krisajenkins/yesql/issues/99/comments","events_url":"https://api.github.com/repos/krisajenkins/yesql/issues/99/events","html_url":"https://github.com/krisajenkins/yesql/issues/99","id":98404614,"number":99,"title":"Connection as a function","user":{"login":"pupeno","id":8425,"avatar_url":"https://avatars.githubusercontent.com/u/8425?v=3","gravatar_id":"","url":"https://api.github.com/users/pupeno","html_url":"https://github.com/pupeno","followers_url":"https://api.github.com/users/pupeno/followers","following_url":"https://api.github.com/users/pupeno/following{/other_user}","gists_url":"https://api.github.com/users/pupeno/gists{/gist_id}","starred_url":"https://api.github.com/users/pupeno/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pupeno/subscriptions","organizations_url":"https://api.github.com/users/pupeno/orgs","repos_url":"https://api.github.com/users/pupeno/repos","events_url":"https://api.github.com/users/pupeno/events{/privacy}","received_events_url":"https://api.github.com/users/pupeno/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-07-31T14:42:59Z","updated_at":"2015-08-18T01:32:15Z","closed_at":null,"body":"Hello,\r\n\r\n@yogthos and I are working on what could be a little library to simplify connection management in Clojure and we are trying to come up with a clean way for it to integrate with yesql and we thought that if an API like:\r\n\r\n```clojure\r\n(defqueries \"sql/queries.sql\" {:connection #(get-connection)})\r\n```\r\n\r\nor\r\n\r\n```clojure\r\n(defqueries \"sql/queries.sql\" {:connection-fn #(get-connection)})\r\n```\r\n\r\nwas available then the integration would be seamless and nice. Would you be up to accepting a pull request for this?"},"comment":{"url":"https://api.github.com/repos/krisajenkins/yesql/issues/comments/132022574","html_url":"https://github.com/krisajenkins/yesql/issues/99#issuecomment-132022574","issue_url":"https://api.github.com/repos/krisajenkins/yesql/issues/99","id":132022574,"user":{"login":"AxisOfEval","id":553386,"avatar_url":"https://avatars.githubusercontent.com/u/553386?v=3","gravatar_id":"","url":"https://api.github.com/users/AxisOfEval","html_url":"https://github.com/AxisOfEval","followers_url":"https://api.github.com/users/AxisOfEval/followers","following_url":"https://api.github.com/users/AxisOfEval/following{/other_user}","gists_url":"https://api.github.com/users/AxisOfEval/gists{/gist_id}","starred_url":"https://api.github.com/users/AxisOfEval/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AxisOfEval/subscriptions","organizations_url":"https://api.github.com/users/AxisOfEval/orgs","repos_url":"https://api.github.com/users/AxisOfEval/repos","events_url":"https://api.github.com/users/AxisOfEval/events{/privacy}","received_events_url":"https://api.github.com/users/AxisOfEval/received_events","type":"User","site_admin":false},"created_at":"2015-08-18T01:32:15Z","updated_at":"2015-08-18T01:32:15Z","body":"?"}}