//! `/schema/migrations` loader helpers.
//!
//! This module isolates migration-table loading from general catalog loader
//! flows used by non-migration endpoints.
use sqlx::{Pool, Postgres};
use super::service::{SchemaMigrationRecord, fetch_migrations};
/// Loads migration rows for `/schema/migrations`.
pub(super) async fn load_schema_migration_rows(
pool: &Pool<Postgres>,
) -> Result<Vec<SchemaMigrationRecord>, sqlx::Error> {
fetch_migrations(pool).await
}