src_mysql_cnf {etl} | R Documentation |
Connect to local MySQL Server using ~/.my.cnf
Description
Connect to local MySQL Server using ~/.my.cnf
Usage
src_mysql_cnf(dbname = "test", groups = "rs-dbi", ...)
Arguments
dbname |
name of the local database you wish to connect to. Default is
|
groups |
section of |
... |
arguments passed to |
See Also
Examples
if (require(RMySQL) && mysqlHasDefault()) {
# connect to test database using rs-dbi
db <- src_mysql_cnf()
class(db)
db
# connect to another server using the 'client' group
src_mysql_cnf(groups = "client")
}
[Package etl version 0.4.1 Index]