func (b *BeginEndBlock) String() string {
	p := sql.NewTreePrinter()
	_ = p.WriteNode("BEGIN .. END")
	var children []string
	for _, s := range b.statements {
		children = append(children, s.String())
	}
	_ = p.WriteChildren(children...)
	return p.String()
}
String implements the sql.Node interface.
package plan
import (
	"github.com/dolthub/go-mysql-server/sql"
)
type BeginEndBlock struct {
	*Block
}
func NewBeginEndBlock(block *Block) *BeginEndBlock {
	return &BeginEndBlock{
		Block: block,
	}
}
var _ sql.Node = (*BeginEndBlock)(nil)
var _ sql.DebugStringer = (*BeginEndBlock)(nil)