pub fn list(engine: &Engine) -> Result<Vec<CatalogEntry>, McpError>Expand description
Fetch every catalog row in name-sorted order. Returns an empty Vec if
the catalog table doesn’t exist (callers shouldn’t need to pre-check).
§Errors
- Propagates any error from
table_present(connection failure during the existence probe). - Propagates any error from
Engine::execute_query_to_json. - Propagates
ErrorCode::SchemaMismatchfromrow_to_entryif a persisted row cannot be decoded into aCatalogEntry.