func (n *ShowIndexes) Resolved() bool {
	_, ok := n.db.(sql.UnresolvedDatabase)
	return !ok
}
Resolved implements the Resolvable interface.
package plan
import (
	"fmt"
	"io"
	"github.com/src-d/go-mysql-server/sql"
)
type ShowIndexes struct {
	db       sql.Database
	Table    string
	Registry *sql.IndexRegistry
}
func NewShowIndexes(db sql.Database, table string, registry *sql.IndexRegistry) sql.Node {
	return &ShowIndexes{db, table, registry}
}
var _ sql.Databaser = (*ShowIndexes)(nil)
func (n *ShowIndexes) Database() sql.Database {
	return n.db
}
func (n *ShowIndexes) WithDatabase(db sql.Database) (sql.Node, error) {
	nc := *n
	nc.db = db
	return &nc, nil
}