Skip to contents

Write table to DB

Usage

write_to_db(dt, table_name, settings, con = NULL, overwrite = FALSE)

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_pops to get a POPS connection).

overwrite

Logical. Should the table be overwritten if it already exists?

Value

a logical value.

Examples

if (FALSE) { # \dontrun{
con = connect_to_pops("metcouncil_wave1")
write_to_db(con, "my_table", my_data_table, overwrite = TRUE)
} # }