Liking cljdoc? Tell your friends :D

fluree.db.query.fql-parser


conform-whereclj/s

(conform-where db [where-type statements])

Conforms a where spec, using provided db, to use predicate ids and coerces where match values. If an predicate does not exist, it drops it.

Conforms a where spec, using provided db, to use predicate ids and coerces where match values.
If an predicate does not exist, it drops it.
raw docstring

ns-lookup-pred-specclj/s

(ns-lookup-pred-spec db collection-id ns-lookup-spec-map)

Given an predicate spec produced by the parsed select statement, when an predicate does not have a namespace we will default it to utilize the namespace of the subject.

This fills out the predicate spec that couldn't be done earlier because we did not know the collection.

Given an predicate spec produced by the parsed select statement,
when an predicate does not have a namespace we will default it to
utilize the namespace of the subject.

This fills out the predicate spec that couldn't be done earlier because
we did not know the collection.
raw docstring

p->pred-configclj/s

(p->pred-config db p compact?)

parseclj/s

(parse select opts)

Parses select statement into our own select format. Has no dependency on a database, or a given schema at this point.

Select spec has the following keys: :name - name of the predicate :namespace? - if the predicate 'name' has a namespace included :wildcard? - true if wildcard query :id? - true if _id was explicitly requested :reverse? - if this predicate is a reverse lookup. 'name' will be the non-reverse named predicate :as - The result key name to use in the results map for this predicate :recur - number of recur iterations, if specified :limit - limit the number of results, if specified (100 default) :offset - offset the number of results, if specified (0 default) :select - sub-selection for this predicate - only applicable to 'ref' predicates :compact - If we are to remove namespaces (or names from reverse refs)

Parses select statement into our own select format.
Has no dependency on a database, or a given schema
at this point.

Select spec has the following keys:
:name  - name of the predicate
:namespace? - if the predicate 'name' has a namespace included
:wildcard? - true if wildcard query
:id? - true if  _id was explicitly requested
:reverse? - if this predicate is a reverse lookup. 'name' will be the non-reverse named predicate
:as - The result key name to use in the results map for this predicate
:recur - number of recur iterations, if specified
:limit - limit the number of results, if specified (100 default)
:offset - offset the number of results, if specified (0 default)
:select - sub-selection for this predicate - only applicable to 'ref' predicates
:compact - If we are to remove namespaces (or names from reverse refs)
raw docstring

parse-dbclj/s

(parse-db db select opts)

Parses, but leverages a specific db to convert predicate names that it can into more complete select statement maps.

Caches results based on database version.

Parses, but leverages a specific db to convert predicate
names that it can into more complete select statement maps.

Caches results based on database version.
raw docstring

parse-whereclj/s

(parse-where db where)
(parse-where db where default-collection)

Parses a where clause and coerces the predicates

Parses a where clause and coerces the predicates 
raw docstring

parse-where-specclj/s

(parse-where-spec where)
(parse-where-spec where default-collection)

Returns a where clause spec based on a string where caluse. The spec can be applied to a specific db to coerce predicate names to predicate ids, validate types, and ultimately generate a filtering function.

Returns a where clause spec based on a string where caluse.
The spec can be applied to a specific db to coerce predicate names
to predicate ids, validate types, and ultimately generate a filtering function.
raw docstring

reset-select-cache!clj/s

(reset-select-cache!)

select-cacheclj/s


where-clause-valid?clj/s

(where-clause-valid? where-clause)

Checks to see if the where clause has ' = ', ' > ', ' < ', ' <= ', or ' >= ', and returns true if yes

Checks to see if the where clause has ' = ', ' > ', ' < ', ' <= ', or ' >= ', and returns true if yes
raw docstring

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

× close