Example of usage of post-query in a Korma select

26 views
Skip to first unread message

Sam Griffith

unread,
Jan 11, 2015, 12:23:19 AM1/11/15
to sqlk...@googlegroups.com
Hello,

I'm not sure how to use post-query and was wondering if someone is using it and could post an example of it's correct usage.  I looked in the documentation but there are no examples in it or in the api doc either.

Thanks,

Sam Griffith

Sam Griffith

unread,
Jan 11, 2015, 12:25:29 AM1/11/15
to sqlk...@googlegroups.com
I also forgot to ask if you could show me an example using both select and exec-raw usage of post-query.

Thanks for the help.

Sam Griffith

Immo Heikkinen

unread,
Jan 15, 2015, 3:13:37 AM1/15/15
to sqlk...@googlegroups.com
I don't think there's any sensible use for `post-query` and it should be probably removed from the public api. 

You could use it like this:

(select :users
  (post-query set))

and it would return a set instead of a sequence.

This can be easily rewritten without `post-query`:

(set (select :users))






--
You received this message because you are subscribed to the Google Groups "Korma" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sqlkorma+u...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages