get_sql_from_file: Read in an SQL file and inject arguments with Jinja (if given...

View source: R/wrap.R

get_sql_from_fileR Documentation

Read in an SQL file and inject arguments with Jinja (if given params).

Description

Read in an SQL file and inject arguments with Jinja (if given params).

Usage

get_sql_from_file(filepath, jinja_args = NULL)

Arguments

filepath

A filepath to your SQL file.

jinja_args

If not NULL, will pass the read in SQL file through a jinja template to render the template. Otherwise will just return the SQL file as is. Defaults to NULL.


moj-analytical-services/dbtools documentation built on Sept. 29, 2024, 2:06 a.m.