On Friday, January 23, 2015 at 1:19:35 AM UTC-8, ronak banka wrote: > > Hello, > > I am trying to use connection validator extension for sequel in my rails > application, but not sure how to load the pool > connection_validation_timeout from my database yaml file?? > > > http://sequel.jeremyevans.net/rdoc-plugins/files/lib/sequel/extensions/connection_validator_rb.html > connection_validation_timeout isn't an option you specify, it's a setting you change after loading the extension into the database. So you should do:
DB.extension(:connection_validator) DB.pool.connection_validation_timeout = -1 Where DB is your Sequel::Database instance. If you are not sure what your Sequel::Database instance is, try Sequel::Model.db. 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.
