A cdm object can optionally contain a single schema in a database with write access. assert_write_schema checks that the cdm contains the "write_schema" attribute and tests that local dataframes can be written to tables in this schema.
Arguments
- cdm
A cdm object
- add
An optional AssertCollection created by
checkmate::makeAssertCollection()
that errors should be added to.