Liking cljdoc? Tell your friends :D

donut.datapotato.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.
raw 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
raw 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`
raw docstring

omit-relation?clj/s

(omit-relation? db ent-name visit-key)

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.
raw docstring

spec-genclj/s


spec-gen-assoc-relationsclj/s

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

spec-gen-generate-ent-valclj/s

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

spec-gen-merge-overwritesclj/s

(spec-gen-merge-overwrites db
                           {:keys [ent-name visit-val visit-key visit-query-opts
                                   schema-opts]})

Finally, merge any overwrites specified in the schema or query

Finally, merge any overwrites specified in the schema or query
raw docstring

spec-gen-visit-keyclj/s

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

× close