Reconnect an object to a database
# 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, ...)
A new database connection object.
an object with a database connection
user name. If not provided, it's taken from x
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.
the number of times the user can enter a wrong password (default: 3)
additional parameters for methods