dbplyr (version 1.4.1)

tbl_lazy: Create a local lazy tibble

Description

These functions are useful for testing SQL generation without having to have an active database connection. See simulate_dbi() for a list available database simulations.

Usage

tbl_lazy(df, con = simulate_dbi(), src = NULL)

lazy_frame(..., con = simulate_dbi(), src = NULL)

Arguments

Examples

Run this code
# NOT RUN {
library(dplyr)
df <- data.frame(x = 1, y = 2)

df_sqlite <- tbl_lazy(df, con = simulate_sqlite())
df_sqlite %>% summarise(x = sd(x, na.rm = TRUE)) %>% show_query()
# }

Run the code above in your browser using DataCamp Workspace