JoinableRequest

extension JoinableRequest
  • Creates a request that prefetches an association.

    Declaration

    Swift

    public func including<A>(all association: A) -> Self where A : AssociationToMany, Self.RowDecoder == A.OriginRowDecoder
  • Creates a request that includes an association. The columns of the associated record are selected. The returned request does not require that the associated database table contains a matching row.

    Declaration

    Swift

    public func including<A>(optional association: A) -> Self where A : Association, Self.RowDecoder == A.OriginRowDecoder
  • Creates a request that includes an association. The columns of the associated record are selected. The returned request requires that the associated database table contains a matching row.

    Declaration

    Swift

    public func including<A>(required association: A) -> Self where A : Association, Self.RowDecoder == A.OriginRowDecoder
  • Creates a request that joins an association. The columns of the associated record are not selected. The returned request does not require that the associated database table contains a matching row.

    Declaration

    Swift

    public func joining<A>(optional association: A) -> Self where A : Association, Self.RowDecoder == A.OriginRowDecoder
  • Creates a request that joins an association. The columns of the associated record are not selected. The returned request requires that the associated database table contains a matching row.

    Declaration

    Swift

    public func joining<A>(required association: A) -> Self where A : Association, Self.RowDecoder == A.OriginRowDecoder