{"action":"created","issue":{"url":"https://api.github.com/repos/davidmoten/rxjava-jdbc/issues/35","labels_url":"https://api.github.com/repos/davidmoten/rxjava-jdbc/issues/35/labels{/name}","comments_url":"https://api.github.com/repos/davidmoten/rxjava-jdbc/issues/35/comments","events_url":"https://api.github.com/repos/davidmoten/rxjava-jdbc/issues/35/events","html_url":"https://github.com/davidmoten/rxjava-jdbc/pull/35","id":101350705,"number":35,"title":"add resultSetTransform","user":{"login":"davidmoten","id":318187,"avatar_url":"https://avatars.githubusercontent.com/u/318187?v=3","gravatar_id":"","url":"https://api.github.com/users/davidmoten","html_url":"https://github.com/davidmoten","followers_url":"https://api.github.com/users/davidmoten/followers","following_url":"https://api.github.com/users/davidmoten/following{/other_user}","gists_url":"https://api.github.com/users/davidmoten/gists{/gist_id}","starred_url":"https://api.github.com/users/davidmoten/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/davidmoten/subscriptions","organizations_url":"https://api.github.com/users/davidmoten/orgs","repos_url":"https://api.github.com/users/davidmoten/repos","events_url":"https://api.github.com/users/davidmoten/events{/privacy}","received_events_url":"https://api.github.com/users/davidmoten/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-08-17T06:41:51Z","updated_at":"2015-08-17T22:15:11Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/davidmoten/rxjava-jdbc/pulls/35","html_url":"https://github.com/davidmoten/rxjava-jdbc/pull/35","diff_url":"https://github.com/davidmoten/rxjava-jdbc/pull/35.diff","patch_url":"https://github.com/davidmoten/rxjava-jdbc/pull/35.patch"},"body":"As per discussion in #34.\r\n\r\nTo use:\r\n\r\n```java\r\nDatabase db = Database\r\n    .builder()\r\n    .url(url)\r\n    .resultSetTransform(rs -> new TabularResultSet(rs))\r\n    .build();\r\n\r\ndb.select(\"select from categories where active='Y'\")\r\n    .get(rs -> new Category(r.getInt(\"(CAT(EGORY)?_)?ID\"), ...)})\r\n```\r\nDoes that look useful @thomasnield?"},"comment":{"url":"https://api.github.com/repos/davidmoten/rxjava-jdbc/issues/comments/131980056","html_url":"https://github.com/davidmoten/rxjava-jdbc/pull/35#issuecomment-131980056","issue_url":"https://api.github.com/repos/davidmoten/rxjava-jdbc/issues/35","id":131980056,"user":{"login":"davidmoten","id":318187,"avatar_url":"https://avatars.githubusercontent.com/u/318187?v=3","gravatar_id":"","url":"https://api.github.com/users/davidmoten","html_url":"https://github.com/davidmoten","followers_url":"https://api.github.com/users/davidmoten/followers","following_url":"https://api.github.com/users/davidmoten/following{/other_user}","gists_url":"https://api.github.com/users/davidmoten/gists{/gist_id}","starred_url":"https://api.github.com/users/davidmoten/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/davidmoten/subscriptions","organizations_url":"https://api.github.com/users/davidmoten/orgs","repos_url":"https://api.github.com/users/davidmoten/repos","events_url":"https://api.github.com/users/davidmoten/events{/privacy}","received_events_url":"https://api.github.com/users/davidmoten/received_events","type":"User","site_admin":false},"created_at":"2015-08-17T22:15:11Z","updated_at":"2015-08-17T22:15:11Z","body":"added resultSetTransform for individual queries as well"}}