db_type | R Documentation |
Return the database type for an ETL or DBI connection
db_type(obj, ...)
## S3 method for class 'src_dbi'
db_type(obj, ...)
## S3 method for class 'DBIConnection'
db_type(obj, ...)
obj |
and |
... |
currently ignored |
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
db_type(db)
db_type(db$con)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.