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)
| 2714 | // } |
| 2715 | // return n.Query() |
| 2716 | func 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. |
| 2723 | func (w *WithBuilder) Name() string { |
searching dependent graphs…