{"action":"created","issue":{"url":"https://api.github.com/repos/seratch/AWScala/issues/94","labels_url":"https://api.github.com/repos/seratch/AWScala/issues/94/labels{/name}","comments_url":"https://api.github.com/repos/seratch/AWScala/issues/94/comments","events_url":"https://api.github.com/repos/seratch/AWScala/issues/94/events","html_url":"https://github.com/seratch/AWScala/pull/94","id":105262370,"number":94,"title":"DynamoDB.putConditional","user":{"login":"beezee","id":682587,"avatar_url":"https://avatars.githubusercontent.com/u/682587?v=3","gravatar_id":"","url":"https://api.github.com/users/beezee","html_url":"https://github.com/beezee","followers_url":"https://api.github.com/users/beezee/followers","following_url":"https://api.github.com/users/beezee/following{/other_user}","gists_url":"https://api.github.com/users/beezee/gists{/gist_id}","starred_url":"https://api.github.com/users/beezee/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/beezee/subscriptions","organizations_url":"https://api.github.com/users/beezee/orgs","repos_url":"https://api.github.com/users/beezee/repos","events_url":"https://api.github.com/users/beezee/events{/privacy}","received_events_url":"https://api.github.com/users/beezee/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-09-07T19:56:15Z","updated_at":"2015-09-22T15:04:53Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/seratch/AWScala/pulls/94","html_url":"https://github.com/seratch/AWScala/pull/94","diff_url":"https://github.com/seratch/AWScala/pull/94.diff","patch_url":"https://github.com/seratch/AWScala/pull/94.patch"},"body":"This PR introduces the ability to do conditional puts to dynamo.\r\n\r\nIt is a rough cut (no real syntax sugar, just one method on DynamoDB) but it gets the job done, and it's functionality I needed so I figured I'd offer it here.\r\n\r\nFactors out Condition to work for both Condition and ExpectedAttributeValue and exposes DynamoDB.putConditional(tableName, attributes)(expectedAttributeValues)\r\n\r\nIf there's reasonable feedback I'm happy to spend a bit more effort polishing, or if it's sufficient as is I'm happy to see it merged.\r\n\r\nOtherwise I'm using this as a library enhancement in the meantime."},"comment":{"url":"https://api.github.com/repos/seratch/AWScala/issues/comments/142316497","html_url":"https://github.com/seratch/AWScala/pull/94#issuecomment-142316497","issue_url":"https://api.github.com/repos/seratch/AWScala/issues/94","id":142316497,"user":{"login":"cluda","id":10281020,"avatar_url":"https://avatars.githubusercontent.com/u/10281020?v=3","gravatar_id":"","url":"https://api.github.com/users/cluda","html_url":"https://github.com/cluda","followers_url":"https://api.github.com/users/cluda/followers","following_url":"https://api.github.com/users/cluda/following{/other_user}","gists_url":"https://api.github.com/users/cluda/gists{/gist_id}","starred_url":"https://api.github.com/users/cluda/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cluda/subscriptions","organizations_url":"https://api.github.com/users/cluda/orgs","repos_url":"https://api.github.com/users/cluda/repos","events_url":"https://api.github.com/users/cluda/events{/privacy}","received_events_url":"https://api.github.com/users/cluda/received_events","type":"User","site_admin":false},"created_at":"2015-09-22T15:04:53Z","updated_at":"2015-09-22T15:04:53Z","body":"+1 for this functionality"}}