Produce a :class:`_sql.Select` construct that represents the rows within this instance-local :class:`_orm.WriteOnlyCollection`.
(self)
| 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 |
no test coverage detected