Use `check_dots_used()` in `dbGetQuery()` and friends
mgirlich opened this issue · comments
Maximilian Girlich commented
e.g. dbGetQuery()
doesn't complain about extra arguments. I guess this affects all backends.
library(DBI)
con <- dbConnect(RSQLite::SQLite(), ":memory:")
DBI::dbGetQuery(
con,
"SELECT 1",
extra_arg = 1
)
#> 1
#> 1 1
Created on 2023-04-25 with reprex v2.0.2
Kirill Müller commented
Thanks. We could experiment with adding rlang to "Suggests" and calling it only if it is installed. No idea if it works for S4 methods.