Liking cljdoc? Tell your friends :D

spirit.io.datomic.process.pipeline.expression


check-exprclj

(check-expr chk v)

checks result given collections

(check-expr '_ :anything) => true

(check-expr [number? odd?] 1) => true

(check-expr (list 'odd? 'even?) [1 2]) => true

checks result given collections

(check-expr '_ :anything)
=> true

(check-expr [number? odd?] 1)
=> true

(check-expr (list 'odd? 'even?) [1 2])
=> true
raw docstring

chk-expr-symclj

(chk-expr-sym chk-sym v-sym)

checks result given symbol

(chk-expr-sym 'odd? 1) => true

(chk-expr-sym 'odd? 2) => false

checks result given symbol

(chk-expr-sym 'odd? 1)
=> true

(chk-expr-sym 'odd? 2)
=> false
raw docstring

wrap-single-model-expressionclj

(wrap-single-model-expression f)

controls the expressions allowed for searches

(pipeline/normalise {:account/name '(= "Chris")} {:schema (schema/schema examples/account-name-age-sex) :pipeline {:expression {:account {:name '(= "Chris")}}}} wrappers) => {:account {:name '(= "Chris")}}

(pipeline/normalise {:account/name '(= "Chris")} {:schema (schema/schema examples/account-name-age-sex) :pipeline {:expression {:account {:name '#{=}}}}} wrappers) => {:account {:name '(= "Chris")}}

controls the expressions allowed for searches

(pipeline/normalise {:account/name '(= "Chris")}
             {:schema (schema/schema examples/account-name-age-sex)
              :pipeline {:expression {:account {:name '(= "Chris")}}}}
             *wrappers*)
=> {:account {:name '(= "Chris")}}

(pipeline/normalise {:account/name '(= "Chris")}
             {:schema (schema/schema examples/account-name-age-sex)
              :pipeline {:expression {:account {:name '#{=}}}}}
             *wrappers*)
=> {:account {:name '(= "Chris")}}
raw docstring

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

× close