R/sql_statement.R

Defines functions sql_statement

sql_statement <- function(s) {
  sql_dir <- file.path(system.file(package = "dbi.table"), "sql_statements")
  f <- file.path(sql_dir, paste(s, "sql", sep = "."))
  DBI::SQL(readChar(f, file.info(f)$size))
}

Try the dbi.table package in your browser

Any scripts or data that you put into this service are public.

dbi.table documentation built on June 29, 2025, 1:07 a.m.