Description Usage Arguments Details Examples
Represents the credentials of a database which are necessary to perform a connection.
1 2 3 4 5 | databaseCredentials <- DBCredentials$new(dataSourceName = "", userID = "", password = "")
databaseCredentials$getDataServiceName()
databaseCredentials$getUserID()
databaseCredentials$getPassword()
|
Data structure normally used to describe the connection to a database.
Id of the user, usually necessary to perform database connections.
Password of the user, usually necessary to perform database connections.
$new(dataSourceName = "", userID = "", password = "")
Creates an instance of DatabaseCredentials.
$getDataSourceName()
Returns the data source name.
$getUserID()
Returns the id of the user.
$getPassword()
Returns the password of the user.
1 2 3 4 5 6 7 8 9 10 | # Building a simple DatabaseCredentials object and extracting each of its attributes.
dsn <- "connection"
uid <- "root"
pwd <- "password"
databaseCredentials <- DatabaseCredentials$new(dsn, uid, pwd)
databaseCredentials$getDataSourceName()
databaseCredentials$getUserID()
databaseCredentials$getPassword()
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.