basiliq 0.1.2

REST API server exposing a Postgres database using JSON:API
1
2
3
4
5
6
7
8
9
10
11
use super::*;

/// Create a default resource name
pub(super) fn create_resource_name(table: &BasiliqDbScannedTable) -> String {
    create_resource_name_from_parts(table.schema().name(), table.table().name())
}

/// Create a resource name from a schema name and a table name
pub(super) fn create_resource_name_from_parts(schema: &str, table: &str) -> String {
    format!("{}__{}", schema, table)
}