func (dv *SingleDropView) Database() sql.Database {
	return dv.database
}
Database implements the sql.Databaser interface. It returns the node's database.
package plan
import (
	errors "gopkg.in/src-d/go-errors.v1"
	"github.com/dolthub/go-mysql-server/sql"
)
var errDropViewChild = errors.NewKind("any child of DropView must be of type SingleDropView")
type SingleDropView struct {
	database sql.Database
	viewName string
}
func NewSingleDropView(
	database sql.Database,
	viewName string,
) *SingleDropView {
	return &SingleDropView{database, viewName}
}
func (dv *SingleDropView) Children() []sql.Node {
	return nil
}
func (dv *SingleDropView) Resolved() bool {
	_, ok := dv.database.(sql.UnresolvedDatabase)
	return !ok
}
func (dv *SingleDropView) RowIter(ctx *sql.Context, row sql.Row) (sql.RowIter, error) {
	return sql.RowsToRowIter(), nil
}
func (dv *SingleDropView) Schema() sql.Schema { return nil }
func (dv *SingleDropView) String() string {
	pr := sql.NewTreePrinter()
	_ = pr.WriteNode("SingleDropView(%s.%s)", dv.database.Name(), dv.viewName)
	return pr.String()
}
func (dv *SingleDropView) WithChildren(children ...sql.Node) (sql.Node, error) {
	if len(children) != 0 {
		return nil, sql.ErrInvalidChildrenNumber.New(dv, len(children), 0)
	}
	return dv, nil
}