A pooled postgres connection class. This class represents a proxy interface to a connection pool of fibered postgresql connections.

Methods
Public Class methods
new(conn_params, size=4) [ source ]

Requires a hash with connection parameters and a pool size (defaults to 4)

Public Instance methods
begin_db_transaction() [ source ]

This method must be called for transactions to work correctly. One cannot just send "begin" as you never know which connection will be available next. This method ensures you get the same connection while in a transaction.

commit_db_transaction() [ source ]
exec(query) [ source ]

A proxy for the connection‘s exec method quries the pool to get a connection first

rollback_db_transaction() [ source ]