spod_read_sql: Load an SQL query, glue it, dplyr::sql it

View source: R/duckdb-helpers.R

spod_read_sqlR Documentation

Load an SQL query, glue it, dplyr::sql it

Description

Load an SQL query from a specified file in package installation directory, glue::collapse it, glue::glue it in case of any variables that need to be replaced, and dplyr::sql it for additional safety.

Usage

spod_read_sql(sql_file_name)

Arguments

sql_file_name

The name of the SQL file to load from the package installation directory.

Value

Text of the SQL query of class sql/character.


spanishoddata documentation built on April 12, 2025, 1:24 a.m.