Returns a tibble of <relation>
elements found in a Tableau TWB XML,
with key attributes and any custom SQL text.
Value
A tibble with columns:
- name
Relation name
- table
Table reference
- connection
Connection ID
- type
Relation type (table, join, etc.)
- join
Join type if applicable
- custom_sql
Inline SQL text if present
Examples
if (FALSE) { # \dontrun{
xml <- xml2::read_xml("inst/extdata/sample.twb")
extract_relations(xml)
} # }