Thanks. I don't know how I missed that in the documentation.
On Mon, 25 Sep 2017 at 4:39 AM, Jeremy Evans <[email protected]> wrote:
> On Sunday, September 24, 2017 at 2:04:36 AM UTC-7, Tim Uckun wrote:
>>
>> One more question if you don't mind. Is there a convenient way to get
>> scalar values from the database? I often do select count or select
>> somefunc() and get a single result.
>>
>
> Database#get:
>
> DB.get(Sequel.function(:count).*)
> DB.get(Sequel.function(:somefunc))
>
> Can also take a virtual row block:
>
> DB.get{count.function.*}
> DB.get{somefunc.function}
>
> 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 https://groups.google.com/group/sequel-talk.
> For more options, visit https://groups.google.com/d/optout.
>
--
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 https://groups.google.com/group/sequel-talk.
For more options, visit https://groups.google.com/d/optout.