MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / select

Method select

lib/sqlalchemy/orm/writeonly.py:603–613  ·  view source on GitHub ↗

Produce a :class:`_sql.Select` construct that represents the rows within this instance-local :class:`_orm.WriteOnlyCollection`.

(self)

Source from the content-addressed store, hash-verified

601 )
602
603 def select(self) -> Select[_T]:
604 """Produce a :class:`_sql.Select` construct that represents the
605 rows within this instance-local :class:`_orm.WriteOnlyCollection`.
606
607 """
608 stmt = select(self.attr.target_mapper).where(*self._where_criteria)
609 if self._from_obj:
610 stmt = stmt.select_from(*self._from_obj)
611 if self._order_by_clauses:
612 stmt = stmt.order_by(*self._order_by_clauses)
613 return stmt
614
615 def insert(self) -> Insert:
616 """For one-to-many collections, produce a :class:`_dml.Insert` which

Callers 7

_subclass_load_via_inMethod · 0.45
polymorphic_unionFunction · 0.45
refreshMethod · 0.45
_get_implMethod · 0.45

Calls 4

selectFunction · 0.90
whereMethod · 0.45
select_fromMethod · 0.45
order_byMethod · 0.45

Tested by

no test coverage detected