{"action":"created","issue":{"url":"https://api.github.com/repos/asdine/storm/issues/71","repository_url":"https://api.github.com/repos/asdine/storm","labels_url":"https://api.github.com/repos/asdine/storm/issues/71/labels{/name}","comments_url":"https://api.github.com/repos/asdine/storm/issues/71/comments","events_url":"https://api.github.com/repos/asdine/storm/issues/71/events","html_url":"https://github.com/asdine/storm/issues/71","id":172702251,"number":71,"title":"Return id after Save","user":{"login":"WangFenjin","id":4160646,"avatar_url":"https://avatars.githubusercontent.com/u/4160646?v=3","gravatar_id":"","url":"https://api.github.com/users/WangFenjin","html_url":"https://github.com/WangFenjin","followers_url":"https://api.github.com/users/WangFenjin/followers","following_url":"https://api.github.com/users/WangFenjin/following{/other_user}","gists_url":"https://api.github.com/users/WangFenjin/gists{/gist_id}","starred_url":"https://api.github.com/users/WangFenjin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/WangFenjin/subscriptions","organizations_url":"https://api.github.com/users/WangFenjin/orgs","repos_url":"https://api.github.com/users/WangFenjin/repos","events_url":"https://api.github.com/users/WangFenjin/events{/privacy}","received_events_url":"https://api.github.com/users/WangFenjin/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-08-23T13:41:11Z","updated_at":"2016-08-23T13:46:20Z","closed_at":null,"body":"Hi,\r\n\r\nCould we return the AutoIncrementId after call save? Or could you point out how to get the id?\r\n\r\nThanks."},"comment":{"url":"https://api.github.com/repos/asdine/storm/issues/comments/241735838","html_url":"https://github.com/asdine/storm/issues/71#issuecomment-241735838","issue_url":"https://api.github.com/repos/asdine/storm/issues/71","id":241735838,"user":{"login":"asdine","id":2102036,"avatar_url":"https://avatars.githubusercontent.com/u/2102036?v=3","gravatar_id":"","url":"https://api.github.com/users/asdine","html_url":"https://github.com/asdine","followers_url":"https://api.github.com/users/asdine/followers","following_url":"https://api.github.com/users/asdine/following{/other_user}","gists_url":"https://api.github.com/users/asdine/gists{/gist_id}","starred_url":"https://api.github.com/users/asdine/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/asdine/subscriptions","organizations_url":"https://api.github.com/users/asdine/orgs","repos_url":"https://api.github.com/users/asdine/repos","events_url":"https://api.github.com/users/asdine/events{/privacy}","received_events_url":"https://api.github.com/users/asdine/received_events","type":"User","site_admin":false},"created_at":"2016-08-23T13:46:20Z","updated_at":"2016-08-23T13:46:20Z","body":"The id is automatically inserted in your ID field (or the field tag as id):\r\n\r\n```go\r\n// With AutoIncrement on\r\n\r\ntype User struct {\r\n  ID int\r\n  Name string\r\n}\r\n\r\nu := User{Name: \"John\"}\r\ndb.Save(&u)\r\n\r\nfmt.Println(u.ID)\r\n// 1\r\n```"}}
{"actor":{"display_login":"asdine"}}