MCPcopy
hub / github.com/ent/ent / Selector

Struct Selector

dialect/sql/builder.go:1674–1696  ·  view source on GitHub ↗

Selector is a builder for the `SELECT` statement.

Source from the content-addressed store, hash-verified

1672
1673// Selector is a builder for the `SELECT` statement.
1674type 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.
1699func (s *Selector) New() *Selector {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected