list_databases: List Databases

View source: R/database.R

list_databasesR Documentation

List Databases

Description

Returns a list of databases available across all sessions. The result contains the name, description and locationUri of each database.

Usage

list_databases(sc)

Arguments

sc

A spark_connection.

Value

A tibble containing 3 columns:

  • name - The name of the database.

  • description - Description of the database.

  • locationUri - Path (in the form of a uri) to data files.

See Also

current_database(), database_exists(), set_current_database()

Examples

## Not run: 
sc <- sparklyr::spark_connect(master = "local")
list_databases(sc = sc)

## End(Not run)


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