We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
:lookup
:unique
With :hash
:hash
(let [db {:A [{:id 1 :x 1} {:id 2 :x 1} {:id 3 :x 2}]} idx [[:from :A] [:hash :id]] db (mat db idx)] (q db [[:lookup idx 1]])) => ({:id 1, :x 1})
With :unique
(let [db {:A [{:id 1 :x 1} {:id 2 :x 1} {:id 3 :x 2}]} idx [[:from :A] [:unique :id]] db (mat db idx)] (q db [[:lookup idx 1]])) => ([:id 1] [:x 1])
Failing test and fix please :)
The text was updated successfully, but these errors were encountered:
Make sense, the lookup fn needs to somehow be specialised for :unique as it maps to single rows, rather than sets (like btree, hash).
Sorry, something went wrong.
No branches or pull requests
With
:hash
With
:unique
Failing test and fix please :)
The text was updated successfully, but these errors were encountered: