[Nitro] Og: Custom selects
Michael Neumann
mneumann at ntecs.de
Sun Jun 19 05:58:19 EDT 2005
Am Thursday 16 June 2005 18:53 schrieb George Moschovitis:
> > Now, I'd like to issue a SQL query that returns a simple integer (e.g. a
> > custom SUM(a_column)). How can I do this from within Og?
>
> In the latest version you can do:
>
> store.query(sql).first_value.to_i
what if query returns a result set? for me it would be enough if query would
simply return an array (rows) of arrays (columns).
> do you think that I should add special helper method that encapsulates
> this? any suggestions for a name?
I think the bare functionality is enough for now.
Regards,
MIchael
More information about the Nitro-general
mailing list