sqlpaste: Wrapper function for paste for prettier sql statements

View source: R/database_functions.R

sqlpasteR Documentation

Wrapper function for paste for prettier sql statements

Description

sqlpaste will add a new line to the end of every paste statement. If the last object is a sole ";", it will be tacked onto the element before it.

Usage

sqlpaste(...)

Arguments

...

one or more 'R' objects, to be converted to character vectors.

Value

A nicely formatted SQL statement.

Examples

## Not run: 
tmp_qry <- sqlpaste(
"select * from tbldf",
"where tbldf.column == 'value'"
)
response <- SELECT(tmp_qry)

## End(Not run)

mfidino/uwinutils documentation built on June 11, 2025, 1:49 p.m.