func (sq *SubqueryAlias) AsView() *sql.View {
	return sql.NewView(sq.Name(), sq, sq.TextDefinition)
}
Returns the view wrapper for this subquery
package plan
import (
	"github.com/dolthub/go-mysql-server/sql"
)
type SubqueryAlias struct {
	UnaryNode
	Columns        []string
	name           string
	TextDefinition string
}
func NewSubqueryAlias(name, textDefinition string, node sql.Node) *SubqueryAlias {
	return &SubqueryAlias{
		UnaryNode:      UnaryNode{Child: node},
		name:           name,
		TextDefinition: textDefinition,
	}
}