Browse files

updated docs a little more

  • Loading branch information...
surt666 committed Apr 24, 2012
1 parent 65f1998 commit 3020e4e3d82547a4d8c2877048eed8f2c2d2f32f
Showing with 2 additions and 2 deletions.
  1. +1 −1
  2. +1 −1 src/dynamo4clj/core.clj
@@ -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")
@@ -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\"}]}"

0 comments on commit 3020e4e

Please sign in to comment.