athena_rs 3.26.3

Hyper performant polyglot Database driver
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
//! SQL query definitions for schema migration introspection.
//!
//! This module isolates migration-table query ownership from general
//! information-schema catalog query definitions.

/// Query for Supabase-style schema migrations.
const MIGRATIONS_QUERY: &str = r#"
        SELECT version, name
        FROM supabase_migrations.schema_migrations
        ORDER BY version
        "#;

/// Returns the migrations query text.
pub(super) fn migrations_query() -> &'static str {
    MIGRATIONS_QUERY
}