Produce a :class:`_sql.Select` construct that represents the rows within this instance-local :class:`_orm.WriteOnlyCollection`.
(self)
| 581 | ) |
| 582 | |
| 583 | def select(self) -> Select[Tuple[_T]]: |
| 584 | """Produce a :class:`_sql.Select` construct that represents the |
| 585 | rows within this instance-local :class:`_orm.WriteOnlyCollection`. |
| 586 | |
| 587 | """ |
| 588 | stmt = select(self.attr.target_mapper).where(*self._where_criteria) |
| 589 | if self._from_obj: |
| 590 | stmt = stmt.select_from(*self._from_obj) |
| 591 | if self._order_by_clauses: |
| 592 | stmt = stmt.order_by(*self._order_by_clauses) |
| 593 | return stmt |
| 594 | |
| 595 | def insert(self) -> Insert: |
| 596 | """For one-to-many collections, produce a :class:`_dml.Insert` which |
no test coverage detected