func (u *Use) RowIter(ctx *sql.Context, row sql.Row) (sql.RowIter, error) {
	dbName := u.db.Name()
	_, err := u.Catalog.Database(dbName)
	if err != nil {
		return nil, err
	}
	ctx.SetCurrentDatabase(dbName)
	return sql.RowsToRowIter(), nil
}
RowIter implements the sql.Node interface.
package plan
import (
	"fmt"
	"github.com/dolthub/go-mysql-server/sql"
)
type Use struct {
	db      sql.Database
	Catalog sql.Catalog
}
func NewUse(db sql.Database) *Use {
	return &Use{db: db}
}
var _ sql.Node = (*Use)(nil)
var _ sql.Databaser = (*Use)(nil)
func (u *Use) Database() sql.Database {
	return u.db
}
func (u *Use) WithDatabase(db sql.Database) (sql.Node, error) {
	nc := *u
	nc.db = db
	return &nc, nil
}
func (Use) Children() []sql.Node { return nil }
func (u *Use) Resolved() bool {
	_, ok := u.db.(sql.UnresolvedDatabase)
	return !ok
}
func (Use) Schema() sql.Schema { return nil }