current_database: Get The Current Database

View source: R/database.R

current_databaseR 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 spark_connection.

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)


catalog documentation built on Aug. 23, 2022, 1:07 a.m.