(args->query-updateOperators-options args command-keys)
Seperates update arguments to [query update-pipeline options] Its used from update command,and from others like delete(dq) , that dont have pipeline just query and options
Seperates update arguments to [query update-pipeline options] Its used from update command,and from others like delete(dq) , that dont have pipeline just query and options
(args->query-updatePipeline-options args command-keys)
Seperates update arguments to [query update-pipeline options] Its used from update command,and from others like delete(dq) , that dont have pipeline just query and options
Seperates update arguments to [query update-pipeline options] Its used from update command,and from others like delete(dq) , that dont have pipeline just query and options
(cmql-filters->match-stage filters)
Many filters(aggregate operators) combined to a match $exprs using $and operators
Many filters(aggregate operators) combined to a match $exprs using $and operators
(cmql-map->mql-map m)
Converts a smongo query a valid mongo query (removes the smongo symbols)
Variables :aname- => '$$aname' :aname-.afield => '$$aname.afield' :- => anonymous variable converts to '$$m'
Keyword in key poistion => field name {:f ''} => {'f' ''}
Keyword not in key position => field reference :v => '$v' (can be as value in a map,a value in a vector,or out of a collection)
else no change
Converts a smongo query a valid mongo query (removes the smongo symbols) Variables :aname- => '$$aname' :aname-.afield => '$$aname.afield' :- => anonymous variable converts to '$$__m__' Keyword in key poistion => field name {:f ''} => {'f' ''} Keyword not in key position => field reference :v => '$v' (can be as value in a map,a value in a vector,or out of a collection) else no change
(cmql-pipeline->mql-pipeline cmql-pipeline)
Converts a cmql-pipeline to a mongo pipeline (1 vector with members stage operators) [],{}../nil => empty stages or nil stages are removed [[] []] => [] [] flatten of stages (used when one stage produces more than 1 stages) cmql-filters combined => $match stage with $and [] projects => $project
Converts a cmql-pipeline to a mongo pipeline (1 vector with members stage operators) [],{}../nil => empty stages or nil stages are removed [[] []] => [] [] flatten of stages (used when one stage produces more than 1 stages) cmql-filters combined => $match stage with $and [] projects => $project
(seperate-bulk bulk-key args)
Used in bulk deletes/updates seperate the bulk queries from the args ({:dq ...} {:dq ...} arg1 arg2 ...) => [ [{:dq ...} {:dq ...}] [arg1 arg2 ...] ]
Used in bulk deletes/updates seperate the bulk queries from the args ({:dq ...} {:dq ...} arg1 arg2 ...) => [ [{:dq ...} {:dq ...}] [arg1 arg2 ...] ]
(split-db-namespace db-namespace)
Arguments can be :db-name.coll-name :db-name :.coll-name ;;db-name will be '',the default db will be added later in the command Seperator can be the . or /
Arguments can be :db-name.coll-name :db-name :.coll-name ;;db-name will be '',the default db will be added later in the command Seperator can be the . or /
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close