sbf_save_data_to_db: Save Data Frame to Existing Database

View source: R/save.R

sbf_save_data_to_dbR Documentation

Save Data Frame to Existing Database

Description

Save Data Frame to Existing Database

Usage

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.

See Also

Other save functions: sbf_basename_sans_ext(), sbf_save_aws_files(), sbf_save_block(), sbf_save_data(), sbf_save_data_to_pg(), sbf_save_datas(), sbf_save_datas_to_db(), sbf_save_db_metatable_descriptions(), sbf_save_db_to_workbook(), sbf_save_excel(), sbf_save_excels(), sbf_save_gpkg(), sbf_save_gpkgs(), sbf_save_number(), sbf_save_numbers(), sbf_save_object(), sbf_save_objects(), sbf_save_plot(), sbf_save_png(), sbf_save_string(), sbf_save_strings(), sbf_save_table(), sbf_save_window(), sbf_save_workbook()


poissonconsulting/subfoldr2 documentation built on Nov. 17, 2024, 1:33 a.m.