SelectoComponents.Debug.ConfigReader (selecto_components v0.3.21)
Reads and manages debug configuration from domain modules. Provides a centralized way to control debug information display.
Link to this section Summary
Functions
Creates a debug info map based on configuration.
Checks if debug is enabled for a domain and optional view type.
Checks if a specific debug feature is enabled.
Formats SQL query based on configuration.
Gets the debug configuration for a domain. Falls back to defaults if domain doesn't implement debug_config/0.
Gets the default debug configuration. Can be overridden via application config.
Gets configuration for a specific view type.
Truncates parameters based on configuration.
Link to this section Functions
build_debug_info(data, config)
Creates a debug info map based on configuration.
debug_enabled?(domain_module, view_type \\ nil)
Checks if debug is enabled for a domain and optional view type.
feature_enabled?(domain_module, feature, view_type \\ nil)
Checks if a specific debug feature is enabled.
format_sql(sql, config)
Formats SQL query based on configuration.
get_config(domain_module)
Gets the debug configuration for a domain. Falls back to defaults if domain doesn't implement debug_config/0.
get_default_config()
@spec get_default_config() :: map()
Gets the default debug configuration. Can be overridden via application config.
get_view_config(domain_module, view_type)
Gets configuration for a specific view type.
truncate_params(params, config)
Truncates parameters based on configuration.