On Feb 8, 3:41 am, John Anderson <[email protected]> wrote: > Hey > > I'm about to start using Sequel alongside AR in a rails 2.3.x project. > Seems to be pretty seamless so far. I'm wondering how connections and > connection info work: > > - seems like Sequel (3.32.0) automagically finds the db connection > information? Maybe from config/database.yml? Either that or I edited a > config file and forgot about it...
You must be using an extension like sequel_rails. Sequel itself never automatically creates a database connection. > - I'm guessing Sequel and AR each have their own db connection(s), ie > they're not sharing a common db connection? Correct. Having them share connections would be a bad idea, unless Sequel used AR's connection pool or AR used Sequel's connection pool. Sequel will never use AR's connection pool because Sequel has a much better connection pool design, and AR is unlikely to ever use Sequel's connection pool as it is fairly Sequel specific. Jeremy -- 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.
