Lotus.Web.SourcesMap (Lotus Web v1.2.0)

Copy Markdown View Source

Data structure representing the complete database schema hierarchy.

Summary

Functions

build(opts \\ [], source_names \\ Lotus.list_data_source_names())

Build the schema hierarchy for every configured source.

opts are the actor options (:context, :scope) forwarded to every core discovery call, so a scoped dashboard sees only the schemas and tables its visibility resolver allows.

source_names limits the map to those sources. The dashboard passes the sources the user may query, so a denied source's schemas are never listed.

get_database(sources_map, db_name)

get_schema_count(database)

get_table_count(database)

get_tables_for_database(sources_map, db_name)