Liking cljdoc? Tell your friends :D

eva.query.dialect.pull.core


classify-specclj

(classify-spec [attr-key spec])
source

conform-pull-specclj

(conform-pull-spec pull-spec)
source

fetch-datomsclj

(fetch-datoms db index-name query)

query is a sequence like [[entity-id-to-query full-spec]] where full-spec is a tuple [attr-key attr-spec] where attr-spec is a map containing at least the normalized attribute ident under the keyword :attr

query is a sequence like [[entity-id-to-query full-spec]]
where full-spec is a tuple [attr-key attr-spec]
where attr-spec is a map containing at least the normalized attribute ident
under the keyword :attr
sourceraw docstring

fetch-wildcardclj

(fetch-wildcard db query)
source

initial-frameclj

(initial-frame eids pattern multi?)
source

kwify-aclj

(kwify-a db datom)
source

multi-select-datoms-ordered*clj

(multi-select-datoms-ordered* db [index-name & comp-colls])

A variant of multi-select-datoms-ordered that will only execute the search on the criteria that have attributes which we can resolve.

A variant of multi-select-datoms-ordered that will only execute the
search on the criteria that have attributes which we can resolve.
sourceraw docstring

pullclj

(pull db selector eid)
source

pull-manyclj

(pull-many db selector eids)
source

pull-patternclj

(pull-pattern db root frontier)
source

pull-specclj

(pull-spec db selector eids multi?)
source

PullCollapseStatecljprotocol

ascendclj

(ascend state db)

Ascend during the collapse of a pull frame tree, merging a child onto a parent.

Ascend during the collapse of a pull frame tree, merging a child onto a parent.

collapse-complete?clj

(collapse-complete? state)

descendclj

(descend state)

Descend during the collapse of a pull frame tree, traversing from a parent to a child

Descend during the collapse of a pull frame tree, traversing from a parent to a child
source

PullFramecljprotocol

realize-spec!clj

(realize-spec! this db eid spec datoms)

The primary workhorse of the expansion process. Given the eid, spec, and datoms realized therefor, 'evaluate' the spec and merge the results into the state of the frame.

The primary workhorse of the expansion process.  Given the eid, spec, and
datoms realized therefor, 'evaluate' the spec and merge the results into
the state of the frame.

consume-child!clj

(consume-child! this db child-frame)

Merge the data from the child frame into this frame and remove the child from subframes.

Merge the data from the child frame into this frame and remove the child from subframes.

merge-infoclj

(merge-info frame)

Retrieve the information for merging this frame onto its parent

Retrieve the information for merging this frame onto its parent

data->final-mapclj

(data->final-map frame)

Take the data stored in the frame and finalize it for collapse

Take the data stored in the frame and finalize it for collapse

add-recursion!clj

(add-recursion! this
                multi?
                rec-depths
                join-spec
                parent-eid
                rec-comp?
                child-eids)

Add a recursive frame per child eid.

Add a recursive frame per child eid.

assoc-subframe!clj

(assoc-subframe! frame k subframe)

Adds a subframe to this pull frame under the key 'k'

Adds a subframe to this pull frame under the key 'k'

frame->flattened-specsclj

(frame->flattened-specs frame)

set-subframe-map!clj

(set-subframe-map! frame subframes)

update-data!clj

(update-data! frame eid attr-key data)

Adds 'data' to the frames internal data under eid and attr-key

Adds 'data' to the frames internal data under eid and attr-key

subframe-mapclj

(subframe-map frame)

set-data!clj

(set-data! frame data)

Sets the pull-frames data as a whole.

Sets the pull-frames data as a whole.

seqify-subframes!clj

(seqify-subframes! frame)

Replaces the subframe map with a seq of itself. Pretty gross.

Replaces the subframe map with a seq of itself. Pretty gross.

subframesclj

(subframes frame)

collapse!clj

(collapse! frame db)

Collapses a frame to its final pull-result state.

Collapses a frame to its final pull-result state.

specsclj

(specs frame)

Return the sequence of specs from this frame's pattern

Return the sequence of specs from this frame's pattern

realize!clj

(realize! frame db data)

Given a map of data selected across all entity ids and specs, realize the frame

Given a map of data selected across all entity ids and specs, realize the frame
source

realize-frontierclj

(realize-frontier db frontier)

Gathers data for the requisite queries across the pull's frontier

Gathers data for the requisite queries across the pull's frontier
sourceraw docstring

reverse-attr?clj

(reverse-attr? kw)
source

selectclj

(select db query)

Given a query as [[eid spec]], yields a map of: {[eid spec] --> multi-select-result-on-eid+spec}

Given a query as [[eid spec]], yields a map of:
{[eid spec] --> multi-select-result-on-eid+spec}
sourceraw docstring

shape-db-idclj

(shape-db-id db query)
source

subkeyclj

(subkey parent-eid [attr-key spec])
(subkey parent-eid attr-key spec)
source

subpattern-frameclj

(subpattern-frame eids
                  pattern
                  multi?
                  merge-info
                  seen-eids
                  recursion-depths
                  rec-comp?)
source

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

× close