replyr_list_tables: list tables

Description Usage Arguments Value Examples

View source: R/serviceName.R

Description

Work around connection v.s. handle issues https://github.com/tidyverse/dplyr/issues/2849

Usage

1

Arguments

con

connection

Value

list of tables names

Examples

1
2
3
4
5
6
7
8
9
if (requireNamespace("RSQLite", quietly = TRUE)) {
   my_db <- DBI::dbConnect(RSQLite::SQLite(), ":memory:")
   RSQLite::initExtension(my_db)
  d <- replyr_copy_to(my_db, data.frame(x=c(1,2)), 'd',
                      overwrite=TRUE, temporary=TRUE)
  print(d)
  print(replyr_list_tables(my_db))
  DBI::dbDisconnect(my_db)
}

WinVector/replyr documentation built on Oct. 22, 2020, 8:07 p.m.