Liking cljdoc? Tell your friends :D

sweet-tooth.endpoint.datomic

Helper functions for working with datomic entities.

Transaction results are put in :result in the liberator context.

Helper functions for working with datomic entities.

Transaction results are put in `:result` in the liberator context.
raw docstring

assoc-tempidclj

(assoc-tempid x)

auth-owns?clj

(auth-owns? ctx db user-key)

Check if the user entity is the same as the authenticated user

Check if the user entity is the same as the authenticated user
raw docstring

connclj

(conn ctx)

createclj

(create ctx)

created-entityclj

(created-entity {:keys [result]})

Use when you've created a single entity and stored the tx result under :result

Use when you've created a single entity and stored the tx result under :result
raw docstring

created-idclj

(created-id ctx)

ctx->create-mapclj

(ctx->create-map ctx)
raw docstring

ctx->update-mapclj

(ctx->update-map ctx)

datomic-session-storeclj

(datomic-session-store {:keys [key-attr data-attr partition auto-key-change? db]
                        :or {key-attr :user-session/key
                             data-attr :user-session/data
                             partition :db.part/user
                             auto-key-change? true}})

dbclj

(db ctx)

db-afterclj


db-beforeclj


deleteclj

(delete ctx)

str->uuidclj

(str->uuid s)

updateclj

(update ctx)

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

× close