Join

public class Join

A Join component representing a single JOIN clause in the query statement.

  • Create a JOIN (same as INNER JOIN) component with the given data source. Use the returned On component to specify join conditions.

    Declaration

    Swift

    public static func join(_ datasource: DataSource) -> On

    Parameters

    datasource

    The DataSource object of the JOIN clause.

    Return Value

    The On object used for specifying join conditions.

  • Create a LEFT JOIN (same as LEFT OUTER JOIN) component with the given data source. Use the returned On component to specify join conditions.

    Declaration

    Swift

    public static func leftJoin(_ datasource: DataSource) -> On

    Parameters

    datasource

    The DataSource object of the JOIN clause.

    Return Value

    The On object used for specifying join conditions.

  • Create a LEFT OUTER JOIN component with the given data source. Use the returned On component to specify join conditions.

    Declaration

    Swift

    public static func leftOuterJoin(_ datasource: DataSource) -> On

    Parameters

    datasource

    The DataSource object of the JOIN clause.

    Return Value

    The On object used for specifying join conditions.

  • Create an INNER JOIN component with the given data source. Use the returned On component to specify join conditions.

    Declaration

    Swift

    public static func innerJoin(_ datasource: DataSource) -> On

    Parameters

    datasource

    The DataSource object of the JOIN clause.

    Return Value

    The On object used for specifying join conditions.

  • Create an CROSS JOIN component with the given data source. Use the returned On component to specify join conditions.

    Declaration

    Swift

    public static func crossJoin(_ datasource: DataSource) -> On

    Parameters

    datasource

    The DataSource object of the JOIN clause.

    Return Value

    The On object used for specifying join conditions.