sql_to_rqry: Retrieve SQL query string from .sql files

View source: R/utils.R

sql_to_rqryR Documentation

Retrieve SQL query string from .sql files

Description

This function extracts a query string from simple .sql file. The SQL file should only contain a comment block at the top and the SQL query itself.

Usage

sql_to_rqry(sql_path)

Arguments

sql_path

File path to .sql file as a character vector.

Value

Returns an SQL statement as a character vector, which can be executed on a database connection using functions in the RODBC or ROracle packages.


afsc-gap-products/coldpool documentation built on Feb. 25, 2024, 9:44 p.m.