On Monday, June 16, 2014 8:30:31 AM UTC-7, Caleb Woods wrote: > > I'm trying to use the DB Sharding features of Sequel described on the > sharding page > http://sequel.jeremyevans.net/rdoc/files/doc/sharding_rdoc.html. > Specifically I'm trying use the `with_server` block so that I can switch > connections inside a block. > > Here is my connection setup > > servers = { > "server1"=> { > "adapter"=>"oracle", > "database"=>"db1", > "username"=>"user1", > "password"=>"password2"}, > "server2"=> { > "adapter"=>"oracle", > "database"=>"db2", > "username"=>"user2", > "password"=>"password2" > } > } >
The keys for this hash and subhashes should be symbols, not strings. Also, there is no point in including :adapter as a key, since you can't use a different adapter when sharding. Please try fixing that first, and if you still have problems, report back. 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.
