Liking cljdoc? Tell your friends :D

ozjongwon.dynotx

Clojure DynamoDB Transaction - idea from https://github.com/awslabs/dynamodb-transactions

Clojure DynamoDB Transaction - idea from https://github.com/awslabs/dynamodb-transactions
raw docstring

*current-txid*clj


+pending+clj


+state+clj

pending -> commited or rolled-back

pending -> commited or rolled-back
raw docstring

+txid+clj

Primary key, UUID

Primary key, UUID
raw docstring

apply-request-opcljmultimethod


commitclj

(commit txid)

deleteclj

(delete txid)
(delete txid timeout)

delete-itemclj

(delete-item table
             prim-kvs
             &
             {:keys [return expected return-cc? txid txid]
              :or {return :none txid *current-txid*}
              :as opts})

dynotx.defncljmacro

(dynotx.defn op [table & args] & body)

ensure-transactionclj

(ensure-transaction)

get-itemclj

(get-item table prim-kvs & {:keys [attrs consistent? return-cc? txid] :as opts})

get-tx-itemclj

(get-tx-item txid)

init-txclj

(init-tx & opts)

item-with-proper-return-valuecljmultimethod


make-request-for-dynotx-defncljmultimethod


make-transactionclj

(make-transaction)
(make-transaction tx-id-or-item)

Make a new transaction. Transaction = tx-item + fully-applied-request-versions

Make a new transaction. Transaction = tx-item + fully-applied-request-versions
raw docstring

prim-kvscljmultimethod


put-itemclj

(put-item table
          item
          &
          {:keys [return expected return-cc? txid] :or {return :none} :as opts})

rollbackclj

(rollback txid)

sweepclj

(sweep txid rollback-timeout delete-timeout)

table-keysclj


tx-mapclj


txid->txclj

(txid->tx txid)

unlock-item-after-commit-using-opcljmultimethod


update-itemclj

(update-item table
             prim-kvs
             update-map
             &
             {:keys [return expected return-cc? txid]
              :or {return :none txid *current-txid*}
              :as opts})

with-opts-prim-keys-expectedcljmacro

(with-opts-prim-keys-expected [[opts expected] request] & body)

with-transactioncljmacro

(with-transaction [& txid-var] & body)

with-tx-attributescljmacro

(with-tx-attributes [] & body)

with-updating-tx-map-on-successcljmacro

(with-updating-tx-map-on-success
  [& {:keys [transformer] :or {transformer (quote clojure.core/identity)}}]
  &
  body)

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close