make_table_with_index: Make a new database tables with 'index'

Description Usage Arguments Value

View source: R/db_create.R

Description

IMPORTANT TODO: this should be re-written with direct SQL Commands e.g. "CREATE INDEX user_id ON user_list (user_id);"

Usage

1
2
3
4
5
6
make_table_with_index(
  con,
  table_name = "experiments",
  table = NULL,
  index = NULL
)

Arguments

con

valid database connection

table_name

character string name for the table.

table

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

index

(list) table column to be used for index

Value

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


richardsprague/cgmrdb documentation built on Dec. 22, 2021, 4 p.m.