whereClauseElementToSql function

String whereClauseElementToSql(
  1. WhereClauseElement element
)

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 => ')',
    };