I just started with Ruby and I play with Sinatra, but could not find a way to exchange connections between requests.
I came from Java web developmentement, and one of the main things you should do is combine the database connections, so I'm sure there is something similar in Ruby, but I just can't find it.
ActiveRecord and DataMapper offer this feature, but I don't need ORM and just want to make regular SQL queries.
Is there any specific approach for Sinatra or are there common ways for all rack applications?
Nikoi source share