MCPcopy
hub / github.com/ent/ent / WithRecursive

Function WithRecursive

dialect/sql/builder.go:2716–2720  ·  view source on GitHub ↗

WithRecursive returns a new builder for the `WITH RECURSIVE` statement. n := Queries{ WithRecursive("users_view").As(Select().From(Table("users"))), Select().From(Table("users_view")), } return n.Query()

(name string, columns ...string)

Source from the content-addressed store, hash-verified

2714// }
2715// return n.Query()
2716func WithRecursive(name string, columns ...string) *WithBuilder {
2717 w := With(name, columns...)
2718 w.recursive = true
2719 return w
2720}
2721
2722// Name returns the name of the view.
2723func (w *WithBuilder) Name() string {

Calls 1

WithFunction · 0.85

Tested by 2

Used in the wild real call sites across dependent graphs

searching dependent graphs…