DRDataRaft/ docs
GitHub ↗

dr_write_target()

The default executor calls this only after its contract and quality gate pass. Methods receive a data frame and descriptive run context. A writer must raise an error on failure and must never silently report success. It owns its destination's atomicity and cleanup. Return a list describing the output, without input rows, credentials or open connections. File and database adapters can return paths or stable table identifiers.

Usage

dr_write_target(target, data, context, ...)

Arguments

target
Target adapter. NULL retains data in the run result.


data
Checked data frame or tibble.


context
List with run ID, product ID, contract and metadata.


...
Reserved for adapter-specific options.

Value

A list describing the written output.

Examples

dr_write_target(NULL, data.frame(id = 1L), list(product = "orders"))
Documentation source snapshot · View source at d9cb454 ↗
Code examples are documented source examples; they are not executed in this website build.

Search documentation

Search functions, packages and guides.