R/create_tbl.R

#' @title TBL To DB
#' @description U
#' @param con DB connection
#' @param schema Schema name
#' @param tbl_path The path to the table
#' @return The df variable without the anomalous columns
#' @export
create_tbl <- \(data, schema_name, tbl_name){

    tbl = read_csv(tbl_path)

    dbWriteTable(
        con,
        DBI::Id(schema = schema_name, table = tbl_name),
        data
    )

    return(TRUE)

}
gfleetwood/sansor documentation built on Nov. 23, 2022, 10:31 a.m.