Skip to contents

Load star_database (from a RDS file)

Usage

load_star_database(file)

Arguments

file

A string, name of the file that stores the object.

Value

A star_database object.

See also

star_database

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

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
  )

mrs_db2 <- load_star_database(mrs_rdb_file)