Class FlexiRecord::ConnectionPool
In: lib/flexirecord.rb
Parent: ThreadResourcePool

A pool of database connections to be used exclusively by one thread at a time.

Methods

Public Class methods

Creates a new ConnectionPool which automatically generates and caches Connection objects with the given options.

Public Instance methods

Wrapper for Connection#transaction for the Connection of the current thread.

Passes a Connection object to the given block, which then can be used by the current thread.

[Validate]