tbl_lazy

0th

Percentile

Create a local lazy tibble

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.

Keywords
internal
Usage
tbl_lazy(df, con = simulate_dbi(), src = NULL)

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

Aliases
  • tbl_lazy
  • lazy_frame
Examples
# 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()
# }
Documentation reproduced from package dbplyr, version 1.4.0, License: MIT + file LICENSE

Community examples

Looks like there are no examples yet.