get_deployment_names {rolap}R Documentation

Get the names of the facts of a star database

Description

Obtain the names of the facts of a star database.

Usage

get_deployment_names(db)

## S3 method for class '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()


[Package rolap version 2.5.1 Index]