Learn R Programming

pool (version 0.1.0.9000)

dbConnect,Pool-method: Fetch a connection from the pool

Description

Fetch a DBIConnection object from the pool (a wrapper around poolCheckout(pool)). This method should be used with care, since this puts the onus of releasing the connection on you (the user). While this means that you still enjoy the performance benefits associated with having a pool, you lose the benefits of automatic connection management, since you are now yourself responsible for releasing the connection (using poolReturn(conn) or dbDisconnect(conn)) at the appropriate time.

Usage

# S4 method for Pool
dbConnect(drv, ...)

Arguments

drv

The pool object to fetch the connection from.

...

Not in use.