Skip to main content

normalize_table_label

Function normalize_table_label 

Source
pub fn normalize_table_label(table: &str) -> String
Expand description

Strip an optional schema prefix from a qualified table name to derive a node label.

For example, "public.users" becomes "users" and "orders" stays "orders". This is used by database sources (Postgres, MSSQL) when converting configured table names into graph node labels.