connect,ConnectionDB-method | R Documentation |
connect method for ConnectionDB class
## S4 method for signature 'ConnectionDB' connect(object, base = NULL)
object |
An object of class ConnectionDB |
base |
a string with values for dbname, host, port, user, password, in this order. |
a connection with slot filled
Cedric Briand cedric.briand@eptb-vilaine.fr
## Not run: object <- new("ConnectionDB") object@dbname <- c("bd_contmig_nat","test") object@host <- "localhost" object@port <- "5432" object@user <- "myuser" object@password <- "mypassword" object@silent=FALSE object <- connect(object) pool::dbGetInfo(object@connection) pool::poolClose(object@connection) ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.