cat_sql: Concatenate SQL statement

Description Usage Arguments

View source: R/utils-typewrite.R

Description

Return a SQL statement to the console. Output will be written verbatim to an sql file path if provided.

Usage

1
2
3
4
5
6
7
cat_sql(
  sql_statement,
  tab_count = 0,
  sep = "\n",
  sql_file = "",
  append = FALSE
)

Arguments

sql_statement

SQL statement.

tab_count

Number of tabs the chunk will be indented when printed in the console, Default: 0.

sep

Passed to cat().

sql_file

Passed as file argument to cat(). An error will be thrown if the extension is not sql. If value is '""', then no file is written.

append

Passed to cat().


patelm9/pg13 documentation built on Dec. 26, 2021, 8:17 p.m.