Save Data Frame to Existing Database

sbf_save_data_to_db(
  x,
  x_name = substitute(x),
  db_name = sbf_get_db_name(),
  sub = sbf_get_sub(),
  main = sbf_get_main(),
  commit = TRUE,
  strict = TRUE,
  silent = getOption("rws.silent", FALSE)
)

Arguments

x

The object to save.

x_name

A string of the table name.

db_name

A string of the database name.

sub

A string specifying the path to the sub folder (by default the current sub folder).

main

A string specifying the path to the main folder (by default the current main folder)

commit

A flag specifying whether to commit the operations (calling with commit = FALSE can be useful for checking data).

strict

A flag specifying whether to error if x has extraneous columns or if exists = TRUE extraneous data frames.

silent

A flag specifying whether to suppress messages and warnings.

Value

An invisible character vector of the paths to the saved objects.