{"action":"created","issue":{"url":"https://api.github.com/repos/elixir-lang/ecto/issues/652","labels_url":"https://api.github.com/repos/elixir-lang/ecto/issues/652/labels{/name}","comments_url":"https://api.github.com/repos/elixir-lang/ecto/issues/652/comments","events_url":"https://api.github.com/repos/elixir-lang/ecto/issues/652/events","html_url":"https://github.com/elixir-lang/ecto/issues/652","id":86979723,"number":652,"title":"Force insert/update options for Repo","user":{"login":"liveforeverx","id":660306,"avatar_url":"https://avatars.githubusercontent.com/u/660306?v=3","gravatar_id":"","url":"https://api.github.com/users/liveforeverx","html_url":"https://github.com/liveforeverx","followers_url":"https://api.github.com/users/liveforeverx/followers","following_url":"https://api.github.com/users/liveforeverx/following{/other_user}","gists_url":"https://api.github.com/users/liveforeverx/gists{/gist_id}","starred_url":"https://api.github.com/users/liveforeverx/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/liveforeverx/subscriptions","organizations_url":"https://api.github.com/users/liveforeverx/orgs","repos_url":"https://api.github.com/users/liveforeverx/repos","events_url":"https://api.github.com/users/liveforeverx/events{/privacy}","received_events_url":"https://api.github.com/users/liveforeverx/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/elixir-lang/ecto/labels/Kind:Feature","name":"Kind:Feature","color":"009800"},{"url":"https://api.github.com/repos/elixir-lang/ecto/labels/Level:Intermediate","name":"Level:Intermediate","color":"fad8c7"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":9,"created_at":"2015-06-10T13:55:52Z","updated_at":"2015-06-30T16:27:22Z","closed_at":null,"body":"Support for force insert/update options in Repo.insert\r\n'INSERT ... ON DUPLICATE KEY UPDATE'\r\n\r\nExample can be something like it:\r\n\r\n```elixir\r\nRepo.insert(Model, if_exists: :update | :ignore | :error) # => default to error\r\n\r\nRepo.update(Model, if_not_exists: :error | :insert | :ignore) # => default to error\r\n```"},"comment":{"url":"https://api.github.com/repos/elixir-lang/ecto/issues/comments/117245455","html_url":"https://github.com/elixir-lang/ecto/issues/652#issuecomment-117245455","issue_url":"https://api.github.com/repos/elixir-lang/ecto/issues/652","id":117245455,"user":{"login":"gjaldon","id":1457730,"avatar_url":"https://avatars.githubusercontent.com/u/1457730?v=3","gravatar_id":"","url":"https://api.github.com/users/gjaldon","html_url":"https://github.com/gjaldon","followers_url":"https://api.github.com/users/gjaldon/followers","following_url":"https://api.github.com/users/gjaldon/following{/other_user}","gists_url":"https://api.github.com/users/gjaldon/gists{/gist_id}","starred_url":"https://api.github.com/users/gjaldon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gjaldon/subscriptions","organizations_url":"https://api.github.com/users/gjaldon/orgs","repos_url":"https://api.github.com/users/gjaldon/repos","events_url":"https://api.github.com/users/gjaldon/events{/privacy}","received_events_url":"https://api.github.com/users/gjaldon/received_events","type":"User","site_admin":false},"created_at":"2015-06-30T16:27:22Z","updated_at":"2015-06-30T16:27:22Z","body":"I'm on this!"}}