I have a rails application (with puma) and postgresql databases. As a DB 
driver gem Sequel is used. 

I did a test in my program and saw that in this code:
def test_select
db = Sequel::Model.db = Sequel.connect(@database_url)
db['select 1'].first
db.disconnect
puts "valid? #{db.test_connection}"
true
rescue
false
end

  and saw that db connection is valid after disconnect, and the 
Sequel.connect is called  automatically before test_connection

what are the scenarios the Sequel.connect called?
I saw that if i run a simple query after db.disconnect the Sequel.connect 
is also called

thanks

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/sequel-talk/8b73cc7f-7308-4635-9d00-6a80608fca47n%40googlegroups.com.

Reply via email to