Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions crates/buzz-db/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -450,6 +450,11 @@ impl Db {
usage::active_channel_counts(&self.pool, interval_sql).await
}

/// Return per-user storage byte totals and object counts (logical attribution).
pub async fn usage_storage_byte_counts(&self) -> Result<Vec<usage::UserStorageCounts>> {
usage::storage_byte_counts(&self.pool).await
}

/// Return all community id → host mappings.
pub async fn usage_community_hosts(&self) -> Result<Vec<usage::CommunityHost>> {
usage::community_hosts(&self.pool).await
Expand Down
Loading
Loading