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
//! `/schema/tables` catalog loader helpers.
//!
//! This module owns service-layer loading for the schema tables endpoint.

use sqlx::{Pool, Postgres};

use super::super::service::{SchemaRelationRecord, fetch_relations};

/// Loads all non-system relations for `/schema/tables`.
pub(in super::super) async fn load_schema_table_rows(
    pool: &Pool<Postgres>,
) -> Result<Vec<SchemaRelationRecord>, sqlx::Error> {
    fetch_relations(pool, None, true).await
}