sql_options {dbplyr} | R Documentation |
Options for generating SQL
Description
Options for generating SQL
Usage
sql_options(cte = FALSE, use_star = TRUE, qualify_all_columns = FALSE)
Arguments
cte |
If |
use_star |
If |
qualify_all_columns |
If |
Value
A <dbplyr_sql_options> object.
Examples
library(dplyr, warn.conflicts = FALSE)
lf1 <- lazy_frame(key = 1, a = 1, b = 2)
lf2 <- lazy_frame(key = 1, a = 1, c = 3)
result <- left_join(lf1, lf2, by = "key") %>%
filter(c >= 3)
show_query(result)
sql_options <- sql_options(cte = TRUE, qualify_all_columns = TRUE)
show_query(result, sql_options = sql_options)
[Package dbplyr version 2.5.0 Index]