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.
(assoc-tempid x)
(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
(conn ctx)
(create ctx)
(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
(created-id ctx)
(ctx->update-map ctx)
(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}})
(db ctx)
(delete ctx)
(str->uuid s)
(update ctx)
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close