whereClauseElementToSql function
Converts a WhereClauseElement to a SQL string.
Implementation
String whereClauseElementToSql(WhereClauseElement element) => switch (element) {
WhereCondition() => conditionToSQL(element),
LogicalOperator() => element.name.toUpperCase(),
WhereClauseGroup() => '(${defaultWhereFormatter(element)})',
GroupingOperator.open => '(',
GroupingOperator.close => ')',
};