current_database {catalog} | R Documentation |
Get The Current Database
Description
Returns the current database in this session. By default your session will be
connected to the "default" database (named "default") and to change database
you can use set_current_database()
.
Usage
current_database(sc)
Arguments
sc |
A |
Value
character(1)
, the current database name.
See Also
set_current_database()
, database_exists()
, list_databases()
Examples
## Not run:
sc <- sparklyr::spark_connect(master = "local")
current_database(sc = sc)
## End(Not run)
[Package catalog version 0.1.1 Index]