(assoc-relation gen-data relation-attr relation-val constraints)
Look up related ent's attr value and assoc with parent ent
attr. :coll
relations will add value to a vector.
Look up related ent's attr value and assoc with parent ent attr. `:coll` relations will add value to a vector.
(ent-db-spec-gen db query)
Convenience function to build a new db using the spec-gen mapper and the default attr-key
Convenience function to build a new db using the spec-gen mapper and the default attr-key
(ent-db-spec-gen-attr db query)
Convenience function to return a map of {ent-name gen-data}
using
the db returned by ent-db-spec-gen
Convenience function to return a map of `{ent-name gen-data}` using the db returned by `ent-db-spec-gen`
(reset-relations db ent-name ent-data)
The generated data will generate values agnostic of any constraints that may
be present. This function updates values in the generated data to match up
with constraints. First, it will remove any dummy ID's for a :coll
relation.
Next, it will remove any dummy ID's generated for an :omit
relation. The
updated ent-data map will be returned.
The generated data will generate values agnostic of any constraints that may be present. This function updates values in the generated data to match up with constraints. First, it will remove any dummy ID's for a `:coll` relation. Next, it will remove any dummy ID's generated for an `:omit` relation. The updated ent-data map will be returned.
(spec-gen-assoc-relations {:keys [data] :as db} ent-name ent-attr-key)
Next, look up referenced attributes and assign them
Next, look up referenced attributes and assign them
(spec-gen-generate-ent-val db ent-name _ent-attr-key)
First pass function, uses spec to generate a val for every entity
First pass function, uses spec to generate a val for every entity
(spec-gen-merge-overwrites {:keys [data] :as db} ent-name ent-attr-key)
Finally, merge any overwrites specified in the schema or query
Finally, merge any overwrites specified in the schema or query
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close