sql.format: Formats SQL using the sqlformat.org API.

View source: R/sqlformat.R

sql.formatR Documentation

Formats SQL using the sqlformat.org API.

Description

See example usage below. Arguments are named list elements corresponding to format parameters. Only sql is required; the rest have sensible defaults.

See https://sqlformat.org/api/ for details. A usage limit exists: 500 requests per hour based on the IP address.

Usage

sql.format(sql, ...)

Arguments

sql

Structured Query Language.

...

Format parameters.

Examples

sql.format(sql="select * from foo", reindent=1, keyword_case="upper")
# -> [1] "SELECT *\nFROM foo"

royratcliffe/canny.tudor documentation built on Oct. 17, 2022, 4:17 a.m.