| ConnectionDB-class | R Documentation |
ConnectionDB class
connection an S4 object of class connectionDB
dbnamename of the database, length 1
hosthost default "localhost", length 1
portport of the database default "5432", length 1
useruser of the database, length 1
passwordpassword for the datatbase, length 1
silentA "logical" stating if the program returns output to the user
statusCan be -1 or string
connectionCould be both string or S3
Mother class for connection, opens the connection but does not shut it
Cedric Briand cedric.briand@eptb-vilaine.fr
##this wont be run as the user need to manually configure the connection before using it
## 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.