Creates function that checks for an existing DB connection and creates/open a new one if its not found open
1 2 | db_connector(con_name, def_driver, checker = con_checker(con_name =
con_name), def_args = NULL, def_args_nse = TRUE)
|
con_name |
name of the connection |
def_driver |
default DBI driver |
checker |
function that can check the connection (returns TRUE or FALSE) |
def_args |
list of default arguments (such as connection parameters, user name etc...) - see details |
def_args_nse |
if TRUE (default) arguments in |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.