OrderBy

public enum OrderBy : Buildable

An SQL ORDER BY clause.

  • Order ascending.

    Declaration

    Swift

    case ASC(Field)
  • Order descending.

    Declaration

    Swift

    case DESC(Field)
  • Build the query component using QueryBuilder.

    Throws

    QueryError.syntaxError if query build fails.

    Declaration

    Swift

    public func build(queryBuilder: QueryBuilder) throws -> String

    Parameters

    queryBuilder

    The QueryBuilder to use.

    Return Value

    A String representation of the query component.