generateSQL: Generate query from an SQL template file

Description Usage Arguments Value See Also Examples

Description

Generate query from an SQL template file

Usage

1
generateSQL(sqlTemplate, activate = NULL, tagMap = NULL)

Arguments

sqlTemplate

String: path to SQL Template File

activate

String: Vector of column names that should be uncommented. If using alias, include the alias: c('prod.CORP_DIV_CD','cust.ADDRESS')

tagMap

List: Tags and the string they should be replaced with

Value

string

See Also

vignette(“sqlTemplateR”)

Examples

1
generateSQL(sqlTemplate = 'exampleQuery.sql', 'MARKET', "CORP_DIV_CD = 'DIV_A'")

TonyBlonigan/sqlTemplateR documentation built on May 14, 2019, 6:08 a.m.