orderByElementToSql function

String orderByElementToSql(
  1. OrderByElement element
)

Converts an OrderByElement to a SQL string.

Implementation

String orderByElementToSql(OrderByElement element) => switch (element) {
      OrderByColumn() =>
        '${element.tableName != null ? '${element.tableName}.' : ''}'
            '${element.columnName} ${element.toSql()}',
    };