Skip to main content

check_constraint_name

Function check_constraint_name 

Source
pub fn check_constraint_name(table: &str, expr: &str) -> String
Expand description

Generate a deterministic CHECK constraint name for a table and expression.

Constraint names must be unique within a schema, so we include the table name and a stable hash of the expression (after whitespace normalization).