Skip to main content

table_name_constraint_errors

Function table_name_constraint_errors 

Source
pub fn table_name_constraint_errors(
    table_name: Option<&str>,
    context: TableNameContext,
) -> Vec<String>
Expand description

Collect table-name constraint errors for the multi-error validation format.

Returns a (possibly empty) list of error strings. If table_name is None, a “must not be null” error is emitted. If it is present but invalid, pattern and/or length errors are emitted, gated by context.