DRDataRaft/ docs
GitHub ↗

dr_target_lake()

A folder path opens local DuckDB storage. Pass dr_lake_config() for DuckLake, S3 or PostgreSQL catalog configuration, or reuse an open lake. Connections supplied by the caller remain caller-owned. The adapter compiles to the existing immutable landing, candidate and publication transaction.

Usage

dr_target_lake(
  destination = "dataraft",
  partition_by = character(),
  layer = "validated"
)

Arguments

destination
Folder path, connected lake, or lake configuration.


partition_by
Optional columns identifying complete partitions to replace. Retained partitions are included in the final quality gate.


layer
Publication layer in the lake configuration.

Value

A target accepted by dataraft.core::dr_set_target() or dataraft.core::dr_publish().

Examples

dataraft.core::dr_product("orders") |>
  dataraft.core::dr_add_source(data.frame(id = 1:2)) |>
  dataraft.core::dr_set_target(dr_target_lake("reporting-lake"))
Documentation source snapshot · View source at 113c179 ↗
Code examples are documented source examples; they are not executed in this website build.

Search documentation

Search functions, packages and guides.