prep_sql: Converts .SQL files (or other readable files) into a format...

Description Usage Arguments Value Author(s) Examples

View source: R/prep_sql.R

Description

Converts .SQL files (or other readable files) into a format readable by the run_query() function.

Usage

1
prep_sql(path_to_query)

Arguments

path_to_query

character. The filepath of the SQL file to be formatted. This should contain the SQL code, can be .SQL or other readable type.

Value

string of condensed SQL query with '–' comments removed and spacing reduced

Author(s)

Mike Bruno

Examples

1
2
3
4
## Not run: 
prep_sql("/path/to/query.SQL")

## End(Not run)

robertzk/berdie documentation built on May 27, 2019, 10:34 a.m.