Skip to main content
Glama
schemas.rs780 B
use dal::{ DalContext, cached_module::CachedModule, }; use si_frontend_mv_types::cached_schemas::{ CachedSchema, CachedSchemas as CachedSchemasMv, CachedSchemas, }; use telemetry::prelude::*; #[instrument( name = "dal_materialized_views.cached_schemas", level = "debug", skip_all )] pub async fn assemble(ctx: DalContext) -> crate::Result<CachedSchemasMv> { let mut schemas = vec![]; for module in CachedModule::latest_modules(&ctx).await? { schemas.push(CachedSchema { id: module.schema_id, name: module.schema_name, }); } // Try to get the order to be stable so that the checksums match for the content schemas.sort_by(|a, b| a.id.cmp(&b.id)); Ok(CachedSchemas::new(schemas)) }

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/systeminit/si'

If you have feedback or need assistance with the MCP directory API, please join our Discord server