sql_expr {dbplyr} | R Documentation |
Low-level building block for generating SQL from R expressions.
Strings are escaped; names become bare SQL identifiers. User infix
functions have %
stripped.
sql_expr(x, con = sql_current_con())
x |
A quasiquoted expression |
con |
An optional database connection to control the details of
the translation. The default, |
sql_expr(f(x + 1)) sql_expr(f("x", "y")) sql_expr(f(x, y)) sql_expr(cast("x" %as% DECIMAL)) sql_expr(round(x) %::% numeric)