(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`
(omit-relation? db ent-name reference-key)
(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 db {:keys [ent-name visit-key visit-val]})
Next, look up referenced attributes and assign them
Next, look up referenced attributes and assign them
(spec-gen-generate-ent- db {:keys [ent-name]})
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-generate-ent-val db {:keys [ent-name]})
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 _db {:keys [visit-val visit-query-opts schema-opts]})
Merge any overwrites specified in the schema or query
Merge any overwrites specified in the schema or query
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close