Skip to contents

Cancel deployment

Usage

cancel_deployment(db, name)

# S3 method for star_database
cancel_deployment(db, name)

Arguments

db

A star_database object.

name

A string, name of the deployment.

Value

A star_database object.

See also

star_database

Other star database deployment functions: deploy(), get_deployment_names(), 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
  )

mrs_db <- mrs_db |>
  cancel_deployment(name = "mrs")