Skip to main content

cross_join

Function cross_join 

Source
pub fn cross_join<'a, Table>(
    table: Table,
    condition: impl ToSQL<'a, PostgresValue<'a>>,
) -> SQL<'a, PostgresValue<'a>>
where Table: PostgresTable<'a>,
Expand description

Compatibility helper for a conditional cross join.

This renders the portable equivalent INNER JOIN ... ON .... Use the dialect builder’s bare .cross_join(source) for an unconditional CROSS JOIN.