Skip to contents

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.

Examples

if (FALSE) {
sc <- sparklyr::spark_connect(master = "local")
current_database(sc = sc)
}