db_reconnect.POK | R Documentation |
Reconnect an object to a database
## S3 method for class 'POK'
db_reconnect(x, user, password, ntries = 3, ...)
## S3 method for class 'chMDB'
db_reconnect(x, user, password, ntries = 3, ...)
## S3 method for class 'chTKCat'
db_reconnect(x, user, password, ntries = 3, ...)
db_reconnect(x, user, password, ntries = 3, ...)
## S3 method for class 'metaMDB'
db_reconnect(x, user, password, ntries = 3, ...)
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 |
A new database connection object.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.