Liking cljdoc? Tell your friends :D

stillsuit.datomic.core

Implementation functions for dealing with datomic interactions.

Implementation functions for dealing with datomic interactions.
raw docstring

coerce-to-datomic-typeclj

(coerce-to-datomic-type input datomic-type)

Given an input value as a string (lacinia type 'ID) and a datomic value type, coerce the input to the proper type.

Given an input value as a string (lacinia type 'ID) and a datomic value type,
coerce the input to the proper type.
sourceraw docstring

datomic-db?clj

(datomic-db? thing)
source

entity?clj

(entity? thing)
source

get-entity-by-eidclj

(get-entity-by-eid db eid)
source

get-entity-by-unique-attributeclj

(get-entity-by-unique-attribute db attribute-ident value)
source

guess-entity-nsclj

(guess-entity-ns entity)

Given a random entity, iterate through its attributes and look for one that is marked as :db.unique/identity. Return the namespace of that attribute as a string.

Given a random entity, iterate through its attributes and look for one that is marked
as :db.unique/identity. Return the namespace of that attribute as a string.
sourceraw docstring

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

× close