Skip to content

Commit

Permalink
Adds ddb set conversion
Browse files Browse the repository at this point in the history
  • Loading branch information
dehli committed Dec 2, 2019
1 parent f591bad commit 3491733
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

<groupId>dehli</groupId>
<artifactId>serverless</artifactId>
<version>0.1.8</version>
<version>0.1.9</version>
<name>serverless</name>

<dependencies>
Expand Down
3 changes: 3 additions & 0 deletions src/serverless/aws/dynamo_db.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,9 @@
(defn create-set [client values]
(js-invoke client "createSet" (clj->js values)))

(defn set->clj-set [s]
(set (gobj/get s "values")))

;; ;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; Transaction Actions
;; ;;;;;;;;;;;;;;;;;;;;;;;;;;;
Expand Down

0 comments on commit 3491733

Please sign in to comment.