Skip to main content

unique_index_name

Function unique_index_name 

Source
pub fn unique_index_name(table: &str, columns: &[impl AsRef<str>]) -> String
Expand description

Generate a standard unique index name for a table and columns.

Uses the convention uq_{table}_{columns} where columns are joined by underscore.