Hi: I would like to know if it possible to connect dynamically a database and then inside a block execute operations againt that database. One database could be a mysql, another a posgresql... I mean, using sequel model, I see if you connect several databases you can access them with Sequel::DATABASES and if you select a database you can make queries against it but Sequel::Model is different, takes the first one and makes queries against that database.
For Example if I have my sequel model but I have two databases (same schema) and I want to insert the title in a specific database: ``` class Title < Sequel::Model end ::Sequel::DATABASES.count #=> 2 MyDatabase do Title.create(name: "test") end ``` MyDatabse can be selected from ::Sequel::DATABASES or other CONSTANT depend on a param. Cheers, Alfonso -- 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 https://groups.google.com/group/sequel-talk. For more options, visit https://groups.google.com/d/optout.
