On Wednesday, September 24, 2014 11:53:32 PM UTC-7, henry beh wrote: > > Table below is retrieve from second database, but i always get an error > ERROR Sequel::DatabaseError: Mysql2::Error: Table 'database1.user' doesn't > exist > > class User< Sequel::Model(:user) >
You aren't specifying a database here, so Sequel will use the first database connected to. You probably want: class User< Sequel::Model($database2[:user]) > def get_user > User.dataset > end > Not sure what you are trying to do here, but this looks wrong. 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.
