{"action":"created","issue":{"url":"https://api.github.com/repos/upper/db/issues/224","repository_url":"https://api.github.com/repos/upper/db","labels_url":"https://api.github.com/repos/upper/db/issues/224/labels{/name}","comments_url":"https://api.github.com/repos/upper/db/issues/224/comments","events_url":"https://api.github.com/repos/upper/db/issues/224/events","html_url":"https://github.com/upper/db/issues/224","id":170791746,"number":224,"title":"PreInsert/PostInsert","user":{"login":"carlisia","id":16508,"avatar_url":"https://avatars.githubusercontent.com/u/16508?v=3","gravatar_id":"","url":"https://api.github.com/users/carlisia","html_url":"https://github.com/carlisia","followers_url":"https://api.github.com/users/carlisia/followers","following_url":"https://api.github.com/users/carlisia/following{/other_user}","gists_url":"https://api.github.com/users/carlisia/gists{/gist_id}","starred_url":"https://api.github.com/users/carlisia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/carlisia/subscriptions","organizations_url":"https://api.github.com/users/carlisia/orgs","repos_url":"https://api.github.com/users/carlisia/repos","events_url":"https://api.github.com/users/carlisia/events{/privacy}","received_events_url":"https://api.github.com/users/carlisia/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":6,"created_at":"2016-08-12T03:19:58Z","updated_at":"2016-08-23T00:57:04Z","closed_at":null,"body":"I didn't find it documented anywhere that preinsert/postinsert is supported. Do you have plans to add this feature?"},"comment":{"url":"https://api.github.com/repos/upper/db/issues/comments/241596350","html_url":"https://github.com/upper/db/issues/224#issuecomment-241596350","issue_url":"https://api.github.com/repos/upper/db/issues/224","id":241596350,"user":{"login":"xiam","id":385670,"avatar_url":"https://avatars.githubusercontent.com/u/385670?v=3","gravatar_id":"","url":"https://api.github.com/users/xiam","html_url":"https://github.com/xiam","followers_url":"https://api.github.com/users/xiam/followers","following_url":"https://api.github.com/users/xiam/following{/other_user}","gists_url":"https://api.github.com/users/xiam/gists{/gist_id}","starred_url":"https://api.github.com/users/xiam/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xiam/subscriptions","organizations_url":"https://api.github.com/users/xiam/orgs","repos_url":"https://api.github.com/users/xiam/repos","events_url":"https://api.github.com/users/xiam/events{/privacy}","received_events_url":"https://api.github.com/users/xiam/received_events","type":"User","site_admin":false},"created_at":"2016-08-23T00:57:04Z","updated_at":"2016-08-23T00:57:04Z","body":"Hah, looks like we were here at similar times!\r\n\r\n> I'm at a point where I could use some helpers for things like fetching relations. Is this something that bond would also provide? I'm starting to look through that code to try and figure it out.\r\n\r\nBond doesn't provide automatic relations, the problem is that most of the time doing relations right requires some SQL tricks so we prefer to do them using the  SQL builder, see https://upper.io/db.v2/postgresql#sql-builder and https://upper.io/db.v2/lib/sqlbuilder#select-statement-and-joins\r\n\r\nI think that if you already started using upper-db you can skip bond, bond is a pattern we're proposing (and we still need more work there) but upper-db and bond are independent."}}
{"actor":{"display_login":"xiam"}}