writeSql: Write SQL to a SQL (text) file

View source: R/HelperFunctions.R

writeSqlR Documentation

Write SQL to a SQL (text) file

Description

writeSql writes SQL to a file

Usage

writeSql(sql, targetFile)

Arguments

sql

A string containing the sql

targetFile

The target SQL file

Details

writeSql writes SQL to a file

Examples

## Not run: 
sql <- "SELECT * FROM @table_name"
writeSql(sql, "myParamStatement.sql")

## End(Not run)

OHDSI/SqlRender documentation built on March 26, 2024, 5:32 p.m.