sql_collapse: Collapse a Multi-line SQL Query

Description Usage Arguments Examples

Description

Collapses a well formatted SQL query such as you would get with readLines() reading a query created with, say, dbVis into a single character string. Also any "to end of line" comments are removed before doing the collapse.

Usage

1
sql_collapse(query)

Arguments

query

string The multi-line SQL query with, perhaps, "–" comments.

Examples

1
2
3
4
5
## Not run: 
q <- readLines('./SQL/qVariablesInQueryExample1.sql')
sql_collapse(q)

## End(Not run)

ds4ci/ds4ciMisc documentation built on May 15, 2019, 2:56 p.m.