Description Usage Arguments Details
Connects to a database, possibly after multiple tries, e.g., if the number of concurrent connections hit its limit.
1 2 |
dbname |
database connection specification(s) |
max |
maximum number of connection attempts (integer) |
timeout |
time (in seconds) after which an error is thrown if the connection could not be
opened.
Within this period of time, |
cache |
logical that indicates if the last open connection should be returned if still valid. |
verbose |
verbosity level |
where |
namespace of the calling package (not to be used) |
This function is a wrapper around dbConnect
,
which provides the following extra features:
useful when running many batch array jobs, which query a database that have a limited number of concurrent connection.
the last opened connection is cached and returned, if still valid
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.