database_exists | R Documentation |
Check if the database with the specified name exists. This will check the list of hive databases in the current session to see if the database exists.
database_exists(sc, name)
sc |
A |
name |
|
A logical(1)
vector indicating TRUE
if the database exists and FALSE
otherwise.
current_database()
, set_current_database()
, list_databases()
## Not run: sc <- sparklyr::spark_connect(master = "local") database_exists(sc = sc, name = "default") database_exists(sc = sc, name = "fake_database") ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.