 
 ;;;; Coercion - values
 
-;; TODO see http://goo.gl/hOzhR and http://goo.gl/NSY3Z for types supported by
-;; the Java SDK! (incl. Date, Long, BigDecimal, BigInteger, ...).
-
 ;; TODO Nippy support (will require special marker bin-wrapping), incl.
 ;; Serialized (boxed) type (should allow empty strings & ANY type of set)
 ;; Maybe require special wrapper types for writing bins/serialized

                        :write         (.getWriteCapacityUnits   throughput)
                        :last-decrease (.getLastDecreaseDateTime throughput)
                        :last-increase (.getLastIncreaseDateTime throughput)}))

;;;; API - tables


           (.setTableName name))))
       (catch ResourceNotFoundException _)))

(defn ensure-table "Creates the table if it does not already exist."
  [creds {name :name :as properties}]
  (if-not (describe-table creds name) (create-table creds properties)))

(defn delete-table "Deletes a table in DynamoDB with the given name."
  [creds name] (.deleteTable (db-client creds) (DeleteTableRequest. name)))

(defn list-tables "Returns a list of tables in DynamoDB."
  [creds] (-> (db-client creds) (.listTables) (.getTableNames) seq))

;;;; API - items

