Skip to main content

OuterJoin

A Join subclass that hard-codes JoinType.OUTER, rendering outer join. See the Joins guide for a full walkthrough.

Constructor

OuterJoin(table: string | TableName | Select | Raw): OuterJoin
new OuterJoin(table: string | TableName | Select | Raw): OuterJoin

Dual-callable. Equivalent to Join(JoinType.OUTER, table).

import { OuterJoin, Select } from '@sqb/builder';

Select().from('t1').join(OuterJoin('t2'));
// ... outer join t2

Properties

Inherits every property from Join (_type, _joinType, _table, _conditions); _joinType is always JoinType.OUTER.

Methods

Inherits .on() from Join; OuterJoin adds no methods of its own.

See also