dbplyr (version 0.0.0.9000)

testing: Infrastructure for testing dplyr

Description

Register testing sources, then use test_load() to load an existing data frame into each source. To create a new table in each source, use test_frame().

Usage

test_register_src(name, src)

test_register_con(name, ...)

test_load(df, name = random_table_name(), srcs = test_srcs$get(), ignore = character())

test_frame(..., srcs = test_srcs$get(), ignore = character())

Arguments

Examples

Run this code
## Not run: ------------------------------------
# test_register_src("df", src_df(env = new.env()))
# test_register_src("sqlite", src_sqlite(":memory:", create = TRUE))
# 
# test_frame(x = 1:3, y = 3:1)
# test_load(mtcars)
## ---------------------------------------------

Run the code above in your browser using DataCamp Workspace