Liking cljdoc? Tell your friends :D

sweet-tooth.endpoint.datomic.liberator

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)

ctx-idclj

(ctx-id ctx & [id-key])

Get id from the params, try to convert to number TODO this is better solved with routing type hint

Get id from the params, try to convert to number
TODO this is better solved with routing type hint
raw docstring

dbclj

(db ctx)

db-afterclj


db-beforeclj


deleteclj

(delete ctx)

updateclj

(update ctx)

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

× close