Skip to content

Commit

Permalink
Use unique names in function arguments from internal package objects
Browse files Browse the repository at this point in the history
  • Loading branch information
jthompson-arcus committed Nov 11, 2024
1 parent 27c9220 commit d1c81ea
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions R/fct_SQLite.R
Original file line number Diff line number Diff line change
Expand Up @@ -112,16 +112,16 @@ db_create <- function(
#' @param con A DBI Connection to the SQLite DB
#' @param pk_data A named list of data frames to add a primary key field to DB
#' table. Names will correspond to the DB table names.
#' @param idx_cols A named list of the fields defining unique records for a
#' @param unique_cols A named list of the fields defining unique records for a
#' table. Names will correspond to the table to apply the index constraint.
#' @param other_data A named list of other data frames to add to the DB. Names
#' will correspond to the DB table names.
#'
#' @keywords internal
db_add_tables <- function(con, pk_data, idx_cols, other_data) {
db_add_tables <- function(con, pk_data, unique_cols, other_data) {
for(i in names(pk_data)){
cat("\nCreating new table: ", i, "\n")
db_add_primary_key(con, i, pk_data[[i]], idx_cols[[i]])
db_add_primary_key(con, i, pk_data[[i]], unique_cols[[i]])
}
for(i in names(other_data)){
cat("\nCreating new table: ", i, "\n")
Expand Down
4 changes: 2 additions & 2 deletions man/db_add_tables.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit d1c81ea

Please sign in to comment.