Liking cljdoc? Tell your friends :D

:lookup

The :lookup operation is used for queries against indexes, when you need to be explicit.

One thing to know about :lookup is you cannot mat it, it is fairly unique in that regard.

(def CustomerByName [[:from :Customer] [:hash :firstname]])
(def db (rel/mat {} CustomerByName))
(def db (rel/transact {} [:insert :Customer {:firstname "bob"}]))
(rel/q db [[:lookup CustomerByName "bob"]]) 
;; =>
({:firstname "bob"})

Can you improve this documentation?Edit on GitHub

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

× close