I just started with Ruby and I am playing with Sinatra, but could not find a way to share database connections between requests.
I came from Java web developement and one of the basic things you have to do is to pool the database connections, so I am sure that something similar exists 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 some specific approach for Sinatra or there are general ways for all Rack-based applications?