parseConstraintTableFields static method
All the table.columns of a constraint message (a composite
constraint names each one): the table and the columns, in order.
Implementation
static (String?, List<String>?) parseConstraintTableFields(String message) {
var match = _regExpConstraintFields.firstMatch(message);
if (match == null) return (null, null);
var pairs = match[1]!.split(',').map((p) => p.trim().split('.')).toList();
return (pairs.first[0], pairs.map((p) => p[1]).toList());
}