create_logs_if_missing: Create a table with the SCDB log structure if it does not...

View source: R/create_logs_if_missing.R

create_logs_if_missingR Documentation

Create a table with the SCDB log structure if it does not exists

Description

Create a table with the SCDB log structure if it does not exists

Usage

create_logs_if_missing(conn, log_table)

Arguments

conn

(DBIConnection(1))
Connection object.

log_table

(⁠id-like object⁠)
A table specification where the logs should exist (coercible by id()).

Value

Invisibly returns the generated (or existing) log table.

Examples


  conn <- get_connection()
  log_table <- id("test.logs", conn = conn, allow_table_only = TRUE)

  create_logs_if_missing(conn, log_table)

  close_connection(conn)


SCDB documentation built on Oct. 4, 2024, 1:09 a.m.