{"action":"opened","issue":{"url":"https://api.github.com/repos/krisajenkins/yesql/issues/108","labels_url":"https://api.github.com/repos/krisajenkins/yesql/issues/108/labels{/name}","comments_url":"https://api.github.com/repos/krisajenkins/yesql/issues/108/comments","events_url":"https://api.github.com/repos/krisajenkins/yesql/issues/108/events","html_url":"https://github.com/krisajenkins/yesql/issues/108","id":106229719,"number":108,"title":"Callback when defining queries","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":0,"created_at":"2015-09-13T17:46:40Z","updated_at":"2015-09-13T17:46:40Z","closed_at":null,"body":"It would be great if yesql allowed to pas a callback when creating queries, a function that will be called for each of the queries and use the result as the query. This would allow to implement things such as conman much cleanly:\r\n\r\nhttps://github.com/luminus-framework/conman/blob/master/src/conman/core.clj#L16-L23\r\n\r\nI'm happy to implement this, I just want to make sure we are on the same page."}}