connect-ConnectionDB-method: connect method for ConnectionDB class

connect,ConnectionDB-methodR Documentation

connect method for ConnectionDB class

Description

connect method for ConnectionDB class

Usage

## S4 method for signature 'ConnectionDB'
connect(object, base = NULL)

Arguments

object

An object of class ConnectionDB

base

a string with values for dbname, host, port, user, password, in this order.

Value

a connection with slot filled

Author(s)

Cedric Briand cedric.briand@eptb-vilaine.fr

Examples

## 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)

stacomirtools documentation built on Sept. 9, 2022, 3:07 p.m.