On Monday, June 30, 2014 12:26:52 PM UTC-7, Andreas Yankopolus wrote:
>
> This is mostly falling into place and I've figured out exclude statements 
> and a couple other things.
>
> How can I send() commands from Sequel::SQL::Builders like Sequel.as? 
> There's an obvious workaround in the case of Sequel.as using :foo___bar to 
> get 'foo' as 'bar'. But can this be done with a send()?
>

Let's say you wanted the SQL:

  WHERE timestamp > 60

You could use Sequel's DSL:

  send(:where, Sequel.expr(:timestamp) > 60)

Alternatively, you could build the expression directly using standard ruby 
constructors:

  send(:where, Sequel::SQL::BooleanExpression.new(:>, :timestamp, 60))

If that doesn't answer your question, please provide more detail.

Thanks,
Jeremy

-- 
You received this message because you are subscribed to the Google Groups 
"sequel-talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sequel-talk.
For more options, visit https://groups.google.com/d/optout.

Reply via email to