pub fn validate_row(
table: &Table,
row: &Map<String, Value>,
) -> Result<(), ValidationError>Expand description
Validate a JSON row against a table definition.
Checks performed:
- not-null constraints
- type compatibility with the column’s
ColumnType enum_valuesmembership- numeric
min/max - string/bytes
min_length/max_length regexpattern match- JSON parseability for
Jsoncolumns - table-level
check_constraintsnames (validation of the expression itself is left to the runtime that registered the named check)