Skip to contents

A convenience function to use the @inserted, @updated, and @deleted tables to write back to the database using a series of corresponding dplyr::rows functions, then restart the faketablesServer with the new data to maintain integrity for future writes.

Usage

dbWriteTable(src, name, reactive_faketable)

Arguments

src

A DBIConnection object produced by DBI::dbConnect()

name

A table name for a table already present in the src

reactive_faketable

A shiny::reactive object that holds an underlying faketable()

Value

dbWriteTable does not return, but does reassign the faketable reactive object in the parent environment

See also

For more details, see the vignette by running vignette('db_writing')