create_log: Create a Log Table

Description Usage Arguments See Also

View source: R/log.R

Description

Create a Log Table if it does not already exist. A log table consists of a user-defined timestamp field, followed by activity and status fields.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
create_log(
  datetime_field = "log_datetime",
  conn,
  conn_fun,
  schema,
  log_table,
  verbose = TRUE,
  render_sql = TRUE,
  render_only = FALSE
)

Arguments

datetime_field

Name of the datetime field. Defaults to log_datetime.

conn

Connection object

schema

The target schema for the operation.

log_table

Log table name

verbose

If TRUE, details on the activity are returned in the console, such as when the querying starting and was completed.

render_sql

If TRUE, the SQL statement for the operation is returned in the console.

See Also

render

Other logging functions: log_error_ff(), log_start_ff(), log_stop_ff()


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