Closed ulsa closed 10 years ago
Trying to figure out the same thing, can you give an example that worked? Thanks.
(dyn/query *cred* "sometable" {:id [:eq ["someid"]]})
Hi Ulrik, funge:
Have just pushed v0.13.0
which adds a docstring example to both scan
and query
to show how the condition format works. Have also made the format a little more flexible, so you can now specify the above as (dyn/query *cred* "sometable" {:id [:eq "someid"]})
(i.e. you can drop the inner vector when there's only a single val).
Hope that helps - just shout if you're still having any trouble or if the docs could be further improved (PRs also welcome).
Cheers! :-)
Yep, 0.13.0 works fine without a vector. Thanks!
Great - thanks!
On Oct 9, 2013, at 12:34 AM, Peter Taoussanis notifications@github.com wrote:
Hi Ulrik, funge:
Have just pushed v0.13.0 which adds a docstring example to both scan and query to show how the condition format works. Have also made the format a little more flexible, so you can now specify the above as (dyn/query cred "sometable" {:id [:eq "someid"]}) (i.e. you can drop the inner vector when there's only a single val).
Hope that helps - just shout if you're still having any trouble or if the docs could be further improved (PRs also welcome).
Cheers! :-)
— Reply to this email directly or view it on GitHub.
The query docs specify
prim-key-conds
, but don't say what<values>
should be. After looking at the sources, I concluded that it must be a collection, so I used a vector and that worked.