[Nitro] Og: Custom selects
George Moschovitis
george.moschovitis at gmail.com
Thu Jun 16 12:53:26 EDT 2005
> 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
do you think that I should add special helper method that encapsulates this?
any suggestions for a name?
-g.
--
http://nitro.rubyforge.org
http://www.joy.gr
More information about the Nitro-general
mailing list