Selector is a builder for the `SELECT` statement.
| 1672 | |
| 1673 | // Selector is a builder for the `SELECT` statement. |
| 1674 | type Selector struct { |
| 1675 | Builder |
| 1676 | // ctx stores contextual data typically from |
| 1677 | // generated code such as alternate table schemas. |
| 1678 | ctx context.Context |
| 1679 | as string |
| 1680 | selection []selection |
| 1681 | from []TableView |
| 1682 | joins []join |
| 1683 | collected [][]*Predicate |
| 1684 | where *Predicate |
| 1685 | or bool |
| 1686 | not bool |
| 1687 | order []any |
| 1688 | group []string |
| 1689 | having *Predicate |
| 1690 | limit *int |
| 1691 | offset *int |
| 1692 | distinct bool |
| 1693 | setOps []setOp |
| 1694 | prefix Queries |
| 1695 | lock *LockOptions |
| 1696 | } |
| 1697 | |
| 1698 | // New returns a new Selector with the same dialect and context. |
| 1699 | func (s *Selector) New() *Selector { |
nothing calls this directly
no outgoing calls
no test coverage detected