With returns a new builder for the `WITH` statement. n := Queries{ With("users_view").As(Select().From(Table("users"))), Select().From(Table("users_view")), } return n.Query()
(name string, columns ...string)
| 2695 | // } |
| 2696 | // return n.Query() |
| 2697 | func With(name string, columns ...string) *WithBuilder { |
| 2698 | return &WithBuilder{ |
| 2699 | ctes: []struct { |
| 2700 | name string |
| 2701 | columns []string |
| 2702 | s *Selector |
| 2703 | }{ |
| 2704 | {name: name, columns: columns}, |
| 2705 | }, |
| 2706 | } |
| 2707 | } |
| 2708 | |
| 2709 | // WithRecursive returns a new builder for the `WITH RECURSIVE` statement. |
| 2710 | // |
no outgoing calls
searching dependent graphs…