Skip to contents

Obtain the names of the facts of a star database.

Usage

get_deployment_names(db)

# S3 method for star_database
get_deployment_names(db)

Arguments

db

A star_database object.

Value

A vector of strings, fact names.

See also

star_database

Other star database deployment functions: cancel_deployment(), deploy(), load_star_database()

Examples



mrs_rdb_file <- tempfile("mrs", fileext = ".rdb")
mrs_sqlite_file <- tempfile("mrs", fileext = ".sqlite")

mrs_sqlite_connect <- function() {
  DBI::dbConnect(RSQLite::SQLite(),
                 dbname = mrs_sqlite_file)
}

mrs_db <- mrs_db |>
  deploy(
    name = "mrs",
    connect = mrs_sqlite_connect,
    file = mrs_rdb_file
  )

names <- mrs_db |>
  get_deployment_names()