pub struct ProjectSources {
pub wren_project_yml: String,
pub model_ymls: Vec<String>,
pub relationships_yml: Option<String>,
pub cubes_yml: Option<String>,
pub cube_ymls: Vec<String>,
pub views: Vec<(String, String)>,
pub knowledge_sql_mds: Vec<(String, String)>,
pub dashboards_yml: Option<String>,
}Expand description
The raw file contents of a wren project, read by the host. assemble operates purely over
these bytes (WASM-friendly); the native read_project_dir convenience fills them from disk.
Fields§
§wren_project_yml: String§model_ymls: Vec<String>§relationships_yml: Option<String>§cubes_yml: Option<String>§cube_ymls: Vec<String>Per-cube cubes/<name>/metadata.yml contents (wren CLI layout). Used only when
cubes_yml is None — a root cubes.yml takes precedence.
views: Vec<(String, String)>Each view as (metadata.yml, sql.yml) contents.
knowledge_sql_mds: Vec<(String, String)>Confirmed saved queries from the wren CLI’s knowledge/sql/<slug>.md store, as
(slug, file contents). Consumer sources: they never enter the MDL manifest — they only
enrich the lineage graph with query:<slug> consumer nodes.
dashboards_yml: Option<String>The root dashboards.yml contents (the minimal declarative dashboard-spec convention:
dashboards[].name + panels[].sql or panels[].cube+measures). Consumer source, like
knowledge_sql_mds.