Write table to DB
write_to_db.RdWrite table to DB
Arguments
- dt
The data.table to write.
- table_name
The name of the table to write to.
- settings
A list of settings.
- con
A connection object (can use
connect_to_popsto get a POPS connection).- overwrite
Logical. Should the table be overwritten if it already exists?
Examples
if (FALSE) { # \dontrun{
con = connect_to_pops("metcouncil_wave1")
write_to_db(con, "my_table", my_data_table, overwrite = TRUE)
} # }