Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

updated docs a little more

  • Loading branch information...
commit 3020e4e3d82547a4d8c2877048eed8f2c2d2f32f 1 parent 65f1998
@surt666 authored
Showing with 2 additions and 2 deletions.
  1. +1 −1  README.md
  2. +1 −1  src/dynamo4clj/core.clj
View
2  README.md
@@ -37,7 +37,7 @@ protocol=https
(get-item client "table" "hash-key" "range-key")
- (get-batch-items client [["table1" [1101001 1101101]] ["table2" [["ys" 1101001] ["kab" 1101201]]]])
+ (get-batch-items client [[table1 [hash1 hash3]] [table2 [[hash1 range1] [hash4 range4]]]])
(delete-item client "table" "hash-key")
View
2  src/dynamo4clj/core.clj
@@ -243,7 +243,7 @@
(recur (rest k) (assoc res (first k) (map #(doto (WriteRequest.) (.withDeleteRequest (doto (DeleteRequest.) (.withKey %)))) (get ntm (first k))))))))
bireq (doto (BatchWriteItemRequest.) (.withRequestItems wreq))
batch-result (. client (batchWriteItem bireq))]
- batch-result))
+ batch-result)) ;;TODO add meta data for responses
(defn batch-write [client write-map]
"write in batch with the form {:table1 [{:id \"foo1\" :key \"bar1\"} {:id \"foo2\" :key \"bar2\"}] :table2 [{:id2 \"foo1\" :key2 \"bar1\"} {:id2 \"foo2\" :key2 \"bar2\"}]}"
Please sign in to comment.
Something went wrong with that request. Please try again.