Liking cljdoc? Tell your friends :D

reifyhealth.specmonstah.spec-gen


assoc-relationclj/s

(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.
sourceraw docstring

ent-db-spec-genclj/s

(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
sourceraw docstring

ent-db-spec-gen-attrclj/s

(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`
sourceraw docstring

omit-relation?clj/s

(omit-relation? db ent-name ent-attr-key)
source

reset-relationsclj/s

(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.
sourceraw docstring

spec-genclj/s

source

spec-gen-assoc-relationsclj/s

(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
sourceraw docstring

spec-gen-ent-attr-keyclj/s

source

spec-gen-generate-ent-valclj/s

(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
sourceraw docstring

spec-gen-merge-overwritesclj/s

(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
sourceraw docstring

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

× close