examples/fs: add example for recursive traversals (#1599)

This commit is contained in:
Ariel Mashraki
2021-05-25 20:45:37 +03:00
committed by GitHub
parent 02452aad89
commit 961dc08d14
24 changed files with 4732 additions and 0 deletions

View File

@@ -2110,6 +2110,9 @@ func (s *Selector) Query() (string, []interface{}) {
})
b.WriteString(" AS ")
b.Ident(t.as)
case *WithBuilder:
t.SetDialect(s.dialect)
b.Ident(t.name)
}
for _, join := range s.joins {
b.WriteString(" " + join.kind + " ")
@@ -2124,6 +2127,9 @@ func (s *Selector) Query() (string, []interface{}) {
})
b.WriteString(" AS ")
b.Ident(view.as)
case *WithBuilder:
view.SetDialect(s.dialect)
b.Ident(view.name)
}
if join.on != nil {
b.WriteString(" ON ")