Markdown content management, sources, and event tracking for systemprompt.io AI governance dashboards. Governed publishing pipeline for the MCP governance platform.
//! Authoritative content counts for behavioral classification.
//!//! Copyright (c) systemprompt.io — Business Source License 1.1.
//! See <https://systemprompt.io> for licensing details.
useasync_trait::async_trait;usesystemprompt_traits::{ContentCatalogStats, RepositoryError};usesuper::ContentRepository;#[async_trait]implContentCatalogStats forContentRepository{
async fncount_public_pages(&self)->Result<i64, RepositoryError>{sqlx::query_scalar!(r#"
SELECT COUNT(*)::BIGINT as "count!"
FROM markdown_content
WHERE public = true
"#).fetch_one(&*self.write_pool).await
.map_err(RepositoryError::database)}}