psi_make_table_if_necessary: Make new database tables if necessary

Description Usage Arguments Value

View source: R/db_create.R

Description

Make new database tables if necessary

Usage

1
2
3
4
5
psi_make_table_if_necessary(
  conn_args = config::get("dataconnection"),
  table_name = "glucose_records",
  table = GLUCOSE_DATA_FRAME
)

Arguments

conn_args

connection

table_name

character string name for the table.

table

a valid glucose data frame. Never use the default value unless you are testing.

Value

NULL if table already exists. Otherwise creates the table and returns TRUE invisibly.


personalscience/tasterdb documentation built on Dec. 22, 2021, 7:44 a.m.