athena_rs 3.23.0

Hyper performant polyglot Database driver
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
//! Schema catalog route registration.
//!
//! This module keeps route registration separate from handler execution so
//! route-group composition stays thin in `routes`.

use actix_web::web;

use super::catalog_route_handlers::{schema_migrations, schema_overview, schema_tables};
use super::catalog_route_handlers_query::{schema_columns, schema_constraints};

/// Registers schema catalog endpoints.
pub(super) fn services(cfg: &mut web::ServiceConfig) {
    cfg.service(schema_overview)
        .service(schema_tables)
        .service(schema_columns)
        .service(schema_constraints)
        .service(schema_migrations);
}