This helper walks a nested list and returns only
those branches whose dot-notation paths match the user patterns.
It understands *
as a wildcard for one whole segment.
extract_selected_elements(db, select_paths, quiet = FALSE)
A list
containing only the matching branches.
A list
. The database to extract from.
A character
vector of dot-notation paths (*
allowed).
A logical
. If FALSE
, shows CLI alerts.