Skip to contents

Reads col_filters from all metadata tables in the connected database. Returns a nested list keyed by table type and table key (code type or mapping pair).

Usage

get_col_filters(defaults_only = TRUE)

Arguments

defaults_only

Logical. If TRUE (default), return only the default filter values. If FALSE, return the full specification including all available values (useful for Shiny UI checkboxes).

Value

A named list with entries for lookup, mapping, and relationship. Each entry is a named list keyed by code type (or "from > to" for mappings), containing either:

  • If defaults_only = TRUE: a flat list(col = c(default_values))

  • If defaults_only = FALSE: a full list(col = list(values = ..., defaults = ...))

Returns an empty list if no database is connected.