Liking cljdoc? Tell your friends :D

cmql-core.internal.convert.common


args->nested-2argsclj/s

(args->nested-2args op args)

Helper used to make variadic functions,when corresponding mongo operator takes 2 args makes (op args) to many nested 2 arg (op (op arg1 arg2) arg3) ...

Helper used to make variadic functions,when corresponding mongo operator takes 2 args
makes (op args) to many nested 2 arg (op (op arg1 arg2) arg3) ...
sourceraw docstring

cmql-var->mql-varclj/s

(cmql-var->mql-var e)
source

cmql-var-path->cmql-varclj/s

(cmql-var-path->cmql-var cmql-var-path)
source

cmql-var-ref->mql-var-refclj/s

(cmql-var-ref->mql-var-ref e)
source

cmql-var?clj/s

(cmql-var? e)

cmql var = :myvar. :myvar.afield. OR :.myvar :.myvar.afield The second is used mostly in paths to avoid forgeting the .

cmql var =  :myvar.  :myvar.afield.  OR  :.myvar :.myvar.afield
The second is used mostly in paths to avoid forgeting the .
sourceraw docstring

not-frefclj/s

(not-fref fref)

:afield => :!afield

:afield => :!afield
sourceraw docstring

single-mapsclj/s

(single-maps ms)
(single-maps ms keys-to-seperate)

Makes all map members to have max 1 pair,and key to be keyword(if not starts with $) on those single maps. [{:a 1 :b 2} 20 {'c' 3} [1 2 3]] => [{:a 1} {:b 2} 20 {:c 3} [1 2 3]] It is used from read-write/project/add-fields In commands its needed ONLY when i want to seperate command options from extra command args. (if i only need command to have keywords i use command-keywords function)

Makes all map members to have max 1 pair,and key to be keyword(if not starts with $) on those single maps.
[{:a 1 :b 2} 20 {'c' 3} [1 2 3]] => [{:a 1} {:b 2} 20 {:c 3} [1 2 3]]
It is used from read-write/project/add-fields
In commands its needed ONLY when i want to seperate command options from extra command args.
(if i only need command to have keywords i use command-keywords function)
sourceraw docstring

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

× close