db_send_table: Save a Dataframe as a Table

Description Usage Arguments Value Details Examples

View source: R/RMariaDBHelper.R

Description

Send a dataframe to the database as a new table.

Usage

1
db_send_table(df, tablename, conf_file = "~/.db_conf.yml", ...)

Arguments

df

(dataframe) A dataframe to send to the database.

tablename

(character) A table name to use for the new table.

conf_file

(character) A file containing database connection parameters. (Default: "~/.db_conf.yml")

...

Additional arguments passed to RMariaDB::dbWriteTable().

Value

(boolean) Success: TRUE; failure: FALSE.

Details

A dataframe will be sent to the database to be stored as a new table.

Examples

1
2
3
4
## Not run: 
db_send_table(datasets::iris, "iris")

## End(Not run)

deohs/RMariaDBHelper documentation built on Dec. 31, 2020, 11:17 p.m.