{"action":"created","issue":{"url":"https://api.github.com/repos/jmoiron/sqlx/issues/157","labels_url":"https://api.github.com/repos/jmoiron/sqlx/issues/157/labels{/name}","comments_url":"https://api.github.com/repos/jmoiron/sqlx/issues/157/comments","events_url":"https://api.github.com/repos/jmoiron/sqlx/issues/157/events","html_url":"https://github.com/jmoiron/sqlx/pull/157","id":100529484,"number":157,"title":"Add support for named pointers to structs","user":{"login":"Pitmairen","id":357032,"avatar_url":"https://avatars.githubusercontent.com/u/357032?v=3","gravatar_id":"","url":"https://api.github.com/users/Pitmairen","html_url":"https://github.com/Pitmairen","followers_url":"https://api.github.com/users/Pitmairen/followers","following_url":"https://api.github.com/users/Pitmairen/following{/other_user}","gists_url":"https://api.github.com/users/Pitmairen/gists{/gist_id}","starred_url":"https://api.github.com/users/Pitmairen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Pitmairen/subscriptions","organizations_url":"https://api.github.com/users/Pitmairen/orgs","repos_url":"https://api.github.com/users/Pitmairen/repos","events_url":"https://api.github.com/users/Pitmairen/events{/privacy}","received_events_url":"https://api.github.com/users/Pitmairen/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-08-12T12:15:25Z","updated_at":"2015-08-17T15:17:33Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/jmoiron/sqlx/pulls/157","html_url":"https://github.com/jmoiron/sqlx/pull/157","diff_url":"https://github.com/jmoiron/sqlx/pull/157.diff","patch_url":"https://github.com/jmoiron/sqlx/pull/157.patch"},"body":"This makes it possible to use named struct pointers like this:\r\n\r\n```go\r\n\r\ntype User struct {\r\n    Name string\r\n}\r\ntype Document struct {\r\n    Title  string\r\n    Owner  *User `db:\"owner\"`\r\n    Author *User `db:\"author\"`\r\n}\r\n```"},"comment":{"url":"https://api.github.com/repos/jmoiron/sqlx/issues/comments/131858500","html_url":"https://github.com/jmoiron/sqlx/pull/157#issuecomment-131858500","issue_url":"https://api.github.com/repos/jmoiron/sqlx/issues/157","id":131858500,"user":{"login":"gregf","id":980,"avatar_url":"https://avatars.githubusercontent.com/u/980?v=3","gravatar_id":"","url":"https://api.github.com/users/gregf","html_url":"https://github.com/gregf","followers_url":"https://api.github.com/users/gregf/followers","following_url":"https://api.github.com/users/gregf/following{/other_user}","gists_url":"https://api.github.com/users/gregf/gists{/gist_id}","starred_url":"https://api.github.com/users/gregf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gregf/subscriptions","organizations_url":"https://api.github.com/users/gregf/orgs","repos_url":"https://api.github.com/users/gregf/repos","events_url":"https://api.github.com/users/gregf/events{/privacy}","received_events_url":"https://api.github.com/users/gregf/received_events","type":"User","site_admin":false},"created_at":"2015-08-17T15:17:33Z","updated_at":"2015-08-17T15:17:33Z","body":":+1: I could really use this right now."}}