Method: Sequel::Database#test_connection
- Defined in:
- lib/sequel/database.rb
#test_connection(server = nil) ⇒ Object
Attempts to acquire a database connection. Returns true if successful. Will probably raise an error if unsuccessful.
446 447 448 449 |
# File 'lib/sequel/database.rb', line 446 def test_connection(server=nil) synchronize(server){|conn|} true end |