Permalink
Browse files

Update src/dynamo4clj/core.clj

  • Loading branch information...
surt666 committed Mar 19, 2012
1 parent 4951cec commit 4f279f84dbf440183ee86cf25d793846876d8cde
Showing with 5 additions and 0 deletions.
  1. +5 −0 src/dynamo4clj/core.clj
View
@@ -7,6 +7,11 @@
[com.amazonaws AmazonServiceException ClientConfiguration Protocol]
[java.util HashMap]))
+(defn- item-key
+ "Create a Key object from a value."
+ [hash-key]
+ (Key. (to-attr-value hash-key)))
+
(defn get-client []
(let [creds (PropertiesCredentials. (.getResourceAsStream (clojure.lang.RT/baseLoader) "aws.properties"))
config (ClientConfiguration.)]

0 comments on commit 4f279f8

Please sign in to comment.