espresso_api/v1/database.rs
1//! V1 database API.
2//!
3//! Mirrors the tide-disco endpoints defined in `crates/espresso/node/api/database.toml`.
4//! Diagnostic-only; not required to be byte-identical with the tide-disco response.
5
6use async_trait::async_trait;
7use serde::Serialize;
8
9#[async_trait]
10pub trait DatabaseApi {
11 type TableSizes: Serialize + Send + Sync + 'static;
12
13 async fn get_table_sizes(&self) -> anyhow::Result<Self::TableSizes>;
14}