Learn R Programming

TKCat (version 1.1.12)

db_reconnect.POK: Reconnect an object to a database

Description

Reconnect an object to a database

Usage

# S3 method for POK
db_reconnect(x, user, password, ntries = 3, ...)

# S3 method for chMDB db_reconnect(x, user, password, ntries = 3, ...)

# S3 method for chTKCat db_reconnect(x, user, password, ntries = 3, ...)

db_reconnect(x, user, password, ntries = 3, ...)

# S3 method for metaMDB db_reconnect(x, user, password, ntries = 3, ...)

Value

A new database connection object.

Arguments

x

an object with a database connection

user

user name. If not provided, it's taken from x

password

user password. If not provided, first the function tries to connect without any password.If it fails, the function asks the user to provide a password.

ntries

the number of times the user can enter a wrong password (default: 3)

...

additional parameters for methods