athena_rs 3.26.4

Hyper performant polyglot Database driver
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
//! `/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
}