defaultAllClausesFormatter function

String defaultAllClausesFormatter(
  1. AllClauses clauses
)

Converts AllClauses to an SQL string.

Implementation

String defaultAllClausesFormatter(AllClauses clauses) =>
    'SELECT ${clauses.selectClause} FROM '
    '${clauses.fromClause}${clauses.joinClause}'
    '${clauses.whereClause.isNotEmpty ? ' WHERE ${clauses.whereClause}' : ''}'
    '${clauses.orderByClause.isNotEmpty ? ' ORDER BY ${clauses.orderByClause}' : ''}';