- drv
A DBI Driver, e.g. RSQLite::SQLite()
,
RPostgres::Postgres()
, odbc::odbc()
etc.
- ...
Arguments passed on to DBI::dbConnect()
. These are used to
identify the database and provide needed authentication.
- minSize, maxSize
The minimum and maximum number of objects in the pool.
- onCreate
A function that takes a single argument, a connection,
and is called when the connection is created. Use this with
DBI::dbExecute()
to set default options on every connection created
by the pool.
- idleTimeout
Number of seconds to wait before destroying idle objects
(i.e. objects available for checkout over and above minSize
).
- validationInterval
Number of seconds to wait between validating
objects that are available for checkout. These objects are validated
in the background to keep them alive.
To force objects to be validated on every checkout, set
validationInterval = 0
.
- validateQuery
A simple query that can be used to verify that the
connetction is valid. If not provided, dbPool()
will try a few common
options, but these don't work for all databases.