Liking cljdoc? Tell your friends :D

hara.data.pipeline.fill-assoc


process-fill-assocclj

(process-fill-assoc sfill tdata nsv interim tsch datasource)

helper function for wrap-model-fill-assoc

(process-fill-assoc {:age 10} {:name "Chris", :age 9} [:account] {} {:fill-assoc {:account {:age 10}}} {}) => {:name "Chris", :age #{9 10}}

helper function for wrap-model-fill-assoc

(process-fill-assoc {:age 10}
                    {:name "Chris", :age 9}
                    [:account]
                    {}
                    {:fill-assoc {:account {:age 10}}}
                    {})
=> {:name "Chris", :age #{9 10}}
raw docstring

wrap-model-fill-assocclj

(wrap-model-fill-assoc f)

adds an additional value to the entry

(pipeline/normalise {:account/name "Chris" :account/age 9} {:schema (schema/schema examples/account-name-age-sex) :pipeline {:fill-assoc {:account {:age 10}}}} {:normalise [wrap-model-fill-assoc]}) => {:account {:name "Chris", :age #{9 10}}}

adds an additional value to the entry

 (pipeline/normalise {:account/name "Chris" :account/age 9}
                     {:schema (schema/schema examples/account-name-age-sex)
                      :pipeline {:fill-assoc {:account {:age 10}}}}
                     {:normalise [wrap-model-fill-assoc]})
=> {:account {:name "Chris", :age #{9 10}}}
raw docstring

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

× close