From

public final class From: Query, JoinRouter, WhereRouter, GroupByRouter, OrderByRouter

A From component representing a FROM clause for specifying the data source of the query.

  • Create and chain a WHERE component for specifying the WHERE clause of the query.

    Declaration

    Swift

    public func `where`(_ whereExpression: Expression) -> Where
  • Create and chain a GROUP BY component to group the query result.

    Declaration

    Swift

    public func groupBy(_ expressions: Expression...) -> GroupBy
  • Create and chain an ORDER BY component for specifying the orderings of the query result.

    Declaration

    Swift

    public func orderBy(_ orderings: Ordering...) -> OrderBy
  • Create and chain JOIN components for specifying the JOIN clause of the query.

    Declaration

    Swift

    public func join(_ joins: Join...) -> Joins