Is this expected and desired behavior?

irb(main):001:0> require 'sequel'; DB = Sequel.sqlite
=> #<Sequel::SQLite::Database: "sqlite:/">
irb(main):002:0> class Foo < Sequel::Model; end
=> nil
irb(main):003:0> Foo.select_all
=> #<Sequel::SQLite::Dataset: "SELECT * FROM `foos`">
irb(main):004:0> Foo.select_all.select_more(:bar)
=> #<Sequel::SQLite::Dataset: "SELECT `bar` FROM `foos`">

I was looking to get "SELECT *,bar FROM foos". My use case was that my
model had a method that used every record in the table (a nicer to_s),
but I also wanted to select an additional custom field for additional
use in the results. Something like
puts MyModel.select_all.select_more('EXTRACT (dow FROM created_on) AS
wday'.lit).order(:wday)

-- 
You received this message because you are subscribed to the Google Groups 
"sequel-talk" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/sequel-talk?hl=en.

Reply via email to