This backend supports databases accessed via OdbcConnection created by
DBI::dbConnect(). Use dialect_odbc() with lazy_frame() to see simulated
SQL without connecting to a live database.
Key differences for this backend are minor translations for common data types.
See vignette("translation-function") and vignette("translation-verb") for
details of overall translation technology.
See also
with_dialect() to use a different dialect if dbplyr guesses
incorrectly, or a more specific translation is available.
Examples
library(dplyr, warn.conflicts = FALSE)
lf <- lazy_frame(a = TRUE, b = 1, d = 2, c = "z", con = dialect_odbc())
lf |> transmute(x = as.numeric(b))
#> <SQL>
#> SELECT CAST("b" AS DOUBLE) AS "x"
#> FROM "df"
lf |> transmute(x = as.integer(b))
#> <SQL>
#> SELECT CAST("b" AS INT) AS "x"
#> FROM "df"
lf |> transmute(x = as.character(b))
#> <SQL>
#> SELECT CAST("b" AS STRING) AS "x"
#> FROM "df"
