MCPcopy Create free account
hub / github.com/brimdata/super / sqlFromItem

Method sqlFromItem

compiler/sfmt/ast.go:823–835  ·  view source on GitHub ↗
(item *ast.SQLFromItem)

Source from the content-addressed store, hash-verified

821}
822
823func (c *canon) sqlFromItem(item *ast.SQLFromItem) {
824 switch input := item.Input.(type) {
825 case *ast.FromItem:
826 c.fromItem(input)
827 case *ast.SQLPipe:
828 c.sqlPipe(input)
829 default:
830 panic(input)
831 }
832 if item.Alias != nil {
833 c.tableAlias(item.Alias)
834 }
835}
836
837func (c *canon) tableAlias(alias *ast.TableAlias) {
838 c.write(" as %s", sup.QuotedName(alias.Name))

Callers 1

tableExprMethod · 0.95

Calls 3

fromItemMethod · 0.95
sqlPipeMethod · 0.95
tableAliasMethod · 0.95

Tested by

no test coverage detected