MCPcopy Create free account
hub / github.com/sqlalchemy/sqlalchemy / outerjoin

Method outerjoin

lib/sqlalchemy/orm/query.py:2477–2494  ·  view source on GitHub ↗

Create a left outer join against this ``Query`` object's criterion and apply generatively, returning the newly resulting ``Query``. Usage is the same as the ``join()`` method. .. seealso:: :meth:`_sql.Select.outerjoin` - v2 equivalent method.

(
        self,
        target: _JoinTargetArgument,
        onclause: Optional[_OnClauseArgument] = None,
        *,
        full: bool = False,
    )

Source from the content-addressed store, hash-verified

2475 return self
2476
2477 def outerjoin(
2478 self,
2479 target: _JoinTargetArgument,
2480 onclause: Optional[_OnClauseArgument] = None,
2481 *,
2482 full: bool = False,
2483 ) -> Self:
2484 """Create a left outer join against this ``Query`` object's criterion
2485 and apply generatively, returning the newly resulting ``Query``.
2486
2487 Usage is the same as the ``join()`` method.
2488
2489 .. seealso::
2490
2491 :meth:`_sql.Select.outerjoin` - v2 equivalent method.
2492
2493 """
2494 return self.join(target, onclause=onclause, isouter=True, full=full)
2495
2496 @_generative
2497 @_assertions(_no_statement_condition)

Callers 15

_columns_queryMethod · 0.45
_constraint_queryMethod · 0.45
_foreing_key_queryMethod · 0.45
_index_queryMethod · 0.45
_comment_queryMethod · 0.45
_enum_queryMethod · 0.45
_domain_queryMethod · 0.45
_column_queryMethod · 0.45
_index_queryMethod · 0.45
_constraint_queryMethod · 0.45
get_columnsMethod · 0.45

Calls 1

joinMethod · 0.95