Learn R Programming

replyr (version 0.3.01)

replyr_drop_table_name: Drop a table from a source

Description

Drop a table from a source

Usage

replyr_drop_table_name(dest, name)

Arguments

dest

remote data source

name

name of table to drop

Value

logical TRUE if table was present

Examples

Run this code

if (requireNamespace("RSQLite", quietly = TRUE)) {
  my_db <- dplyr::src_sqlite(":memory:", create = TRUE)
  d <- replyr_copy_to(my_db, data.frame(x=c(1,2)), 'd')
  print(d)
  dplyr::db_list_tables(my_db$con)
  replyr_drop_table_name(my_db, 'd')
  dplyr::db_list_tables(my_db$con)
}

Run the code above in your browser using DataLab