typewrite_sql: Typewrite SQL

Description Usage Arguments See Also

View source: R/utils-typewrite.R

Description

Wrapper around cat function in R that returns a timestamped SQL: heading followed by the SQL statement along with writing it to a log file.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
typewrite_sql(
  sql_statement,
  style = c("inline", "chunk"),
  log_file = "",
  sep = "\n",
  append = TRUE
)

typewrite_sql(
  sql_statement,
  style = c("inline", "chunk"),
  log_file = "",
  sep = "\n",
  append = TRUE
)

Arguments

sql_statement

SQL statement.

style

The inline style where the statement is flattened into a single line or a chunk style where the statement is taken in its native format and returned within a set of ticks for R Markdown, Default: "inline".

See Also

str_replace c("typewrite", "enbold", "blueTxt")


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