translateSqlFile: Translate a SQL file

Description Usage Arguments Details Examples

Description

This function takes SQL and translates it to a different dialect.

Usage

1
2
translateSqlFile(sourceFile, targetFile, sourceDialect = "sql server",
  targetDialect = "oracle", oracleTempSchema = NULL)

Arguments

sourceFile

The source SQL file

targetFile

The target SQL file

sourceDialect

The source dialect. Currently, only 'sql server' for Microsoft SQL Server is supported

targetDialect

The target dialect. Currently 'oracle', 'postgresql', and 'redshift' are supported

oracleTempSchema

A schema that can be used to create temp tables in when using Oracle.

Details

This function takes SQL and translates it to a different dialect.

Examples

1
2
3
4
5
6
## Not run: 
translateSqlFile("myRenderedStatement.sql",
                 "myTranslatedStatement.sql",
                 targetDialect = "postgresql")

## End(Not run)

fagirtmi/SqlRender documentation built on May 16, 2019, 9:58 a.m.