Skip to contents

Gathers runtime tables (from the object graph), merges in named connection metadata (class, caption, targets), and augments with top-level datasource definitions (field counts, connection type, location). Also returns a filtered table of parameter datasources.

Usage

extract_datasource_details(xml_doc)

Arguments

xml_doc

An xml2 document for a Tableau .twb.

Value

A named list with:

data_sources

Tibble of datasources joined with connection metadata.

parameters

Tibble of parameter datasources (if present).

all_sources

Same as data_sources (placeholder for future variants).

Examples

if (FALSE) { # \dontrun{
xml <- xml2::read_xml("inst/extdata/sample.twb")
out <- extract_datasource_details(xml)
out$data_sources
} # }