{"action":"created","comment":{"url":"https://api.github.com/repos/gocraft/dbr/pulls/comments/47281735","id":47281735,"diff_hunk":"@@ -114,3 +113,8 @@ func (b *InsertBuilder) Values(value ...interface{}) *InsertBuilder {\n \tb.InsertStmt.Values(value...)\n \treturn b\n }\n+\n+func (b *InsertBuilder) IgnoreDuplicateEntries() *InsertBuilder {","path":"insert_builder.go","position":13,"original_position":13,"commit_id":"79b2e5ad46aed0727263d0c5e4f613ffb0e4472e","original_commit_id":"79b2e5ad46aed0727263d0c5e4f613ffb0e4472e","user":{"login":"wlrs","id":1179364,"avatar_url":"https://avatars.githubusercontent.com/u/1179364?v=3","gravatar_id":"","url":"https://api.github.com/users/wlrs","html_url":"https://github.com/wlrs","followers_url":"https://api.github.com/users/wlrs/followers","following_url":"https://api.github.com/users/wlrs/following{/other_user}","gists_url":"https://api.github.com/users/wlrs/gists{/gist_id}","starred_url":"https://api.github.com/users/wlrs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wlrs/subscriptions","organizations_url":"https://api.github.com/users/wlrs/orgs","repos_url":"https://api.github.com/users/wlrs/repos","events_url":"https://api.github.com/users/wlrs/events{/privacy}","received_events_url":"https://api.github.com/users/wlrs/received_events","type":"User","site_admin":false},"body":"@lukeautry might want to call this IgnoreErrors or something similar, it will ignore more than just duplicate entry errors","created_at":"2015-12-10T20:37:10Z","updated_at":"2015-12-10T20:37:10Z","html_url":"https://github.com/gocraft/dbr/pull/38#discussion_r47281735","pull_request_url":"https://api.github.com/repos/gocraft/dbr/pulls/38","_links":{"self":{"href":"https://api.github.com/repos/gocraft/dbr/pulls/comments/47281735"},"html":{"href":"https://github.com/gocraft/dbr/pull/38#discussion_r47281735"},"pull_request":{"href":"https://api.github.com/repos/gocraft/dbr/pulls/38"}}},"pull_request":{"url":"https://api.github.com/repos/gocraft/dbr/pulls/38","id":53311526,"html_url":"https://github.com/gocraft/dbr/pull/38","diff_url":"https://github.com/gocraft/dbr/pull/38.diff","patch_url":"https://github.com/gocraft/dbr/pull/38.patch","issue_url":"https://api.github.com/repos/gocraft/dbr/issues/38","number":38,"state":"open","locked":false,"title":"FEATURE: Add insert ignore to API","user":{"login":"lukeautry","id":8770560,"avatar_url":"https://avatars.githubusercontent.com/u/8770560?v=3","gravatar_id":"","url":"https://api.github.com/users/lukeautry","html_url":"https://github.com/lukeautry","followers_url":"https://api.github.com/users/lukeautry/followers","following_url":"https://api.github.com/users/lukeautry/following{/other_user}","gists_url":"https://api.github.com/users/lukeautry/gists{/gist_id}","starred_url":"https://api.github.com/users/lukeautry/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lukeautry/subscriptions","organizations_url":"https://api.github.com/users/lukeautry/orgs","repos_url":"https://api.github.com/users/lukeautry/repos","events_url":"https://api.github.com/users/lukeautry/events{/privacy}","received_events_url":"https://api.github.com/users/lukeautry/received_events","type":"User","site_admin":false},"body":"SQL offers INSERT IGNORE as a way to suppress duplicate insert errors; this PR adds this through an extension to the InsertBuilder.","created_at":"2015-12-10T20:24:02Z","updated_at":"2015-12-10T20:37:10Z","closed_at":null,"merged_at":null,"merge_commit_sha":"078a4da487ef5edd90d7cecc88f1a7b32b130fbe","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/gocraft/dbr/pulls/38/commits","review_comments_url":"https://api.github.com/repos/gocraft/dbr/pulls/38/comments","review_comment_url":"https://api.github.com/repos/gocraft/dbr/pulls/comments{/number}","comments_url":"https://api.github.com/repos/gocraft/dbr/issues/38/comments","statuses_url":"https://api.github.com/repos/gocraft/dbr/statuses/79b2e5ad46aed0727263d0c5e4f613ffb0e4472e","head":{"label":"lukeautry:master","ref":"master","sha":"79b2e5ad46aed0727263d0c5e4f613ffb0e4472e","user":{"login":"lukeautry","id":8770560,"avatar_url":"https://avatars.githubusercontent.com/u/8770560?v=3","gravatar_id":"","url":"https://api.github.com/users/lukeautry","html_url":"https://github.com/lukeautry","followers_url":"https://api.github.com/users/lukeautry/followers","following_url":"https://api.github.com/users/lukeautry/following{/other_user}","gists_url":"https://api.github.com/users/lukeautry/gists{/gist_id}","starred_url":"https://api.github.com/users/lukeautry/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lukeautry/subscriptions","organizations_url":"https://api.github.com/users/lukeautry/orgs","repos_url":"https://api.github.com/users/lukeautry/repos","events_url":"https://api.github.com/users/lukeautry/events{/privacy}","received_events_url":"https://api.github.com/users/lukeautry/received_events","type":"User","site_admin":false},"repo":{"id":47785207,"name":"dbr","full_name":"lukeautry/dbr","owner":{"login":"lukeautry","id":8770560,"avatar_url":"https://avatars.githubusercontent.com/u/8770560?v=3","gravatar_id":"","url":"https://api.github.com/users/lukeautry","html_url":"https://github.com/lukeautry","followers_url":"https://api.github.com/users/lukeautry/followers","following_url":"https://api.github.com/users/lukeautry/following{/other_user}","gists_url":"https://api.github.com/users/lukeautry/gists{/gist_id}","starred_url":"https://api.github.com/users/lukeautry/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lukeautry/subscriptions","organizations_url":"https://api.github.com/users/lukeautry/orgs","repos_url":"https://api.github.com/users/lukeautry/repos","events_url":"https://api.github.com/users/lukeautry/events{/privacy}","received_events_url":"https://api.github.com/users/lukeautry/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/lukeautry/dbr","description":"Additions to Go's database/sql for super fast performance and convenience.","fork":true,"url":"https://api.github.com/repos/lukeautry/dbr","forks_url":"https://api.github.com/repos/lukeautry/dbr/forks","keys_url":"https://api.github.com/repos/lukeautry/dbr/keys{/key_id}","collaborators_url":"https://api.github.com/repos/lukeautry/dbr/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/lukeautry/dbr/teams","hooks_url":"https://api.github.com/repos/lukeautry/dbr/hooks","issue_events_url":"https://api.github.com/repos/lukeautry/dbr/issues/events{/number}","events_url":"https://api.github.com/repos/lukeautry/dbr/events","assignees_url":"https://api.github.com/repos/lukeautry/dbr/assignees{/user}","branches_url":"https://api.github.com/repos/lukeautry/dbr/branches{/branch}","tags_url":"https://api.github.com/repos/lukeautry/dbr/tags","blobs_url":"https://api.github.com/repos/lukeautry/dbr/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/lukeautry/dbr/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/lukeautry/dbr/git/refs{/sha}","trees_url":"https://api.github.com/repos/lukeautry/dbr/git/trees{/sha}","statuses_url":"https://api.github.com/repos/lukeautry/dbr/statuses/{sha}","languages_url":"https://api.github.com/repos/lukeautry/dbr/languages","stargazers_url":"https://api.github.com/repos/lukeautry/dbr/stargazers","contributors_url":"https://api.github.com/repos/lukeautry/dbr/contributors","subscribers_url":"https://api.github.com/repos/lukeautry/dbr/subscribers","subscription_url":"https://api.github.com/repos/lukeautry/dbr/subscription","commits_url":"https://api.github.com/repos/lukeautry/dbr/commits{/sha}","git_commits_url":"https://api.github.com/repos/lukeautry/dbr/git/commits{/sha}","comments_url":"https://api.github.com/repos/lukeautry/dbr/comments{/number}","issue_comment_url":"https://api.github.com/repos/lukeautry/dbr/issues/comments{/number}","contents_url":"https://api.github.com/repos/lukeautry/dbr/contents/{+path}","compare_url":"https://api.github.com/repos/lukeautry/dbr/compare/{base}...{head}","merges_url":"https://api.github.com/repos/lukeautry/dbr/merges","archive_url":"https://api.github.com/repos/lukeautry/dbr/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/lukeautry/dbr/downloads","issues_url":"https://api.github.com/repos/lukeautry/dbr/issues{/number}","pulls_url":"https://api.github.com/repos/lukeautry/dbr/pulls{/number}","milestones_url":"https://api.github.com/repos/lukeautry/dbr/milestones{/number}","notifications_url":"https://api.github.com/repos/lukeautry/dbr/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/lukeautry/dbr/labels{/name}","releases_url":"https://api.github.com/repos/lukeautry/dbr/releases{/id}","created_at":"2015-12-10T20:19:03Z","updated_at":"2015-12-10T20:19:05Z","pushed_at":"2015-12-10T20:21:24Z","git_url":"git://github.com/lukeautry/dbr.git","ssh_url":"git@github.com:lukeautry/dbr.git","clone_url":"https://github.com/lukeautry/dbr.git","svn_url":"https://github.com/lukeautry/dbr","homepage":"","size":145,"stargazers_count":0,"watchers_count":0,"language":"Go","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"gocraft:master","ref":"master","sha":"21f73041fa7f78001a89358ba19d9931382067a5","user":{"login":"gocraft","id":6075192,"avatar_url":"https://avatars.githubusercontent.com/u/6075192?v=3","gravatar_id":"","url":"https://api.github.com/users/gocraft","html_url":"https://github.com/gocraft","followers_url":"https://api.github.com/users/gocraft/followers","following_url":"https://api.github.com/users/gocraft/following{/other_user}","gists_url":"https://api.github.com/users/gocraft/gists{/gist_id}","starred_url":"https://api.github.com/users/gocraft/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gocraft/subscriptions","organizations_url":"https://api.github.com/users/gocraft/orgs","repos_url":"https://api.github.com/users/gocraft/repos","events_url":"https://api.github.com/users/gocraft/events{/privacy}","received_events_url":"https://api.github.com/users/gocraft/received_events","type":"Organization","site_admin":false},"repo":{"id":19512853,"name":"dbr","full_name":"gocraft/dbr","owner":{"login":"gocraft","id":6075192,"avatar_url":"https://avatars.githubusercontent.com/u/6075192?v=3","gravatar_id":"","url":"https://api.github.com/users/gocraft","html_url":"https://github.com/gocraft","followers_url":"https://api.github.com/users/gocraft/followers","following_url":"https://api.github.com/users/gocraft/following{/other_user}","gists_url":"https://api.github.com/users/gocraft/gists{/gist_id}","starred_url":"https://api.github.com/users/gocraft/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gocraft/subscriptions","organizations_url":"https://api.github.com/users/gocraft/orgs","repos_url":"https://api.github.com/users/gocraft/repos","events_url":"https://api.github.com/users/gocraft/events{/privacy}","received_events_url":"https://api.github.com/users/gocraft/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/gocraft/dbr","description":"Additions to Go's database/sql for super fast performance and convenience.","fork":false,"url":"https://api.github.com/repos/gocraft/dbr","forks_url":"https://api.github.com/repos/gocraft/dbr/forks","keys_url":"https://api.github.com/repos/gocraft/dbr/keys{/key_id}","collaborators_url":"https://api.github.com/repos/gocraft/dbr/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/gocraft/dbr/teams","hooks_url":"https://api.github.com/repos/gocraft/dbr/hooks","issue_events_url":"https://api.github.com/repos/gocraft/dbr/issues/events{/number}","events_url":"https://api.github.com/repos/gocraft/dbr/events","assignees_url":"https://api.github.com/repos/gocraft/dbr/assignees{/user}","branches_url":"https://api.github.com/repos/gocraft/dbr/branches{/branch}","tags_url":"https://api.github.com/repos/gocraft/dbr/tags","blobs_url":"https://api.github.com/repos/gocraft/dbr/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/gocraft/dbr/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/gocraft/dbr/git/refs{/sha}","trees_url":"https://api.github.com/repos/gocraft/dbr/git/trees{/sha}","statuses_url":"https://api.github.com/repos/gocraft/dbr/statuses/{sha}","languages_url":"https://api.github.com/repos/gocraft/dbr/languages","stargazers_url":"https://api.github.com/repos/gocraft/dbr/stargazers","contributors_url":"https://api.github.com/repos/gocraft/dbr/contributors","subscribers_url":"https://api.github.com/repos/gocraft/dbr/subscribers","subscription_url":"https://api.github.com/repos/gocraft/dbr/subscription","commits_url":"https://api.github.com/repos/gocraft/dbr/commits{/sha}","git_commits_url":"https://api.github.com/repos/gocraft/dbr/git/commits{/sha}","comments_url":"https://api.github.com/repos/gocraft/dbr/comments{/number}","issue_comment_url":"https://api.github.com/repos/gocraft/dbr/issues/comments{/number}","contents_url":"https://api.github.com/repos/gocraft/dbr/contents/{+path}","compare_url":"https://api.github.com/repos/gocraft/dbr/compare/{base}...{head}","merges_url":"https://api.github.com/repos/gocraft/dbr/merges","archive_url":"https://api.github.com/repos/gocraft/dbr/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/gocraft/dbr/downloads","issues_url":"https://api.github.com/repos/gocraft/dbr/issues{/number}","pulls_url":"https://api.github.com/repos/gocraft/dbr/pulls{/number}","milestones_url":"https://api.github.com/repos/gocraft/dbr/milestones{/number}","notifications_url":"https://api.github.com/repos/gocraft/dbr/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/gocraft/dbr/labels{/name}","releases_url":"https://api.github.com/repos/gocraft/dbr/releases{/id}","created_at":"2014-05-06T22:20:36Z","updated_at":"2015-12-10T01:52:27Z","pushed_at":"2015-12-10T20:24:02Z","git_url":"git://github.com/gocraft/dbr.git","ssh_url":"git@github.com:gocraft/dbr.git","clone_url":"https://github.com/gocraft/dbr.git","svn_url":"https://github.com/gocraft/dbr","homepage":"","size":153,"stargazers_count":315,"watchers_count":315,"language":"Go","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":25,"mirror_url":null,"open_issues_count":14,"forks":25,"open_issues":14,"watchers":315,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/gocraft/dbr/pulls/38"},"html":{"href":"https://github.com/gocraft/dbr/pull/38"},"issue":{"href":"https://api.github.com/repos/gocraft/dbr/issues/38"},"comments":{"href":"https://api.github.com/repos/gocraft/dbr/issues/38/comments"},"review_comments":{"href":"https://api.github.com/repos/gocraft/dbr/pulls/38/comments"},"review_comment":{"href":"https://api.github.com/repos/gocraft/dbr/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/gocraft/dbr/pulls/38/commits"},"statuses":{"href":"https://api.github.com/repos/gocraft/dbr/statuses/79b2e5ad46aed0727263d0c5e4f613ffb0e4472e"}}}}