Skip to contents

Sets the current default database in this session.

Usage

set_current_database(sc, name)

Arguments

sc

A spark_connection.

name

character(1). The name of the database to set the current database to.

Value

If successful, TRUE, otherwise errors.

Examples

if (FALSE) {
sc <- sparklyr::spark_connect(master = "local")
set_current_database(sc = sc, name = "new_db")
}