sdr_dbExecute: Formats an RPostgres dbExecute and then submits the query

Description Usage Arguments

View source: R/tools.R

Description

This function allows the text of a SQL query to be formatted across multiple lines in an R document, by stripping the line breaks prior to submitting the query based on provided con object. Also logs the queries if in debug mode.

Usage

1
sdr_dbExecute(con, query)

Arguments

con

A database connection object for RPostgres.

query

The query to be formatted.


station-demand-forecasting-tool/sdft-Rpackage documentation built on July 9, 2021, 3:38 a.m.