Learn R Programming

SCDB (version 0.5.1)

create_logs_if_missing: 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)

Value

Invisibly returns the generated (or existing) log table.

Arguments

conn

(DBIConnection(1))
Connection object.

log_table

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

Examples

Run this code
if (FALSE) { # requireNamespace("RSQLite", quietly = TRUE)
  conn <- get_connection()
  log_table <- id("test.logs", conn = conn, allow_table_only = TRUE)

  create_logs_if_missing(conn, log_table)

  close_connection(conn)
}

Run the code above in your browser using DataLab