(datoms->entity-attribute-map datoms)
Given a list of datoms, create a map of all entities and their attributes after all list-forms have been applied.
This implementation is only an approximation but good enough for figuring out which entities are part of the schema and used to define attributes whose values should be entity references.
Given a list of datoms, create a map of all entities and their attributes after all list-forms have been applied. This implementation is only an approximation but good enough for figuring out which entities are part of the schema and used to define attributes whose values should be entity references.
(datoms->entity-transaction-map datoms)
Build a map from every entity id to the first transaction id where it occurs
Build a map from every entity id to the first transaction id where it occurs
(ref-attrib-set entity-attribute-map)
Given an entity-attribute-map, get the set of attributes whose values are refs to other entities according to the schema
Given an entity-attribute-map, get the set of attributes whose values are refs to other entities according to the schema
(similar-datoms? datoms-a datoms-b)
Returns true if two sequences of datoms represent the same database. It generally returns false if they don't represent the same database, but can in rare cases return true. This function can nevertheless be used for sanity checking in order to detect common errors.
Returns true if two sequences of datoms represent the same database. It generally returns false if they don't represent the same database, but can in rare cases return true. This function can nevertheless be used for sanity checking in order to detect common errors.
(transaction-groups datoms)
Return a sequence of sequences of datoms with common transaction id
Return a sequence of sequences of datoms with common transaction id
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close