func (c *CreateProcedure) Children() []sql.Node {
	return []sql.Node{c.Procedure}
}
Children implements the sql.Node interface.
package plan
import (
	"fmt"
	"io"
	"sync"
	"time"
	"github.com/dolthub/go-mysql-server/sql"
)
type CreateProcedure struct {
	*Procedure
	BodyString string
	Db         sql.Database
}
var _ sql.Node = (*CreateProcedure)(nil)
var _ sql.Databaser = (*CreateProcedure)(nil)
var _ sql.DebugStringer = (*CreateProcedure)(nil)
func NewCreateProcedure(
	name,
	definer string,
	params []ProcedureParam,
	createdAt, modifiedAt time.Time,
	securityContext ProcedureSecurityContext,
	characteristics []Characteristic,
	body sql.Node,
	comment, createString, bodyString string,
) *CreateProcedure {
	procedure := NewProcedure(
		name,
		definer,
		params,
		securityContext,
		comment,
		characteristics,
		createString,
		body,
		createdAt,
		modifiedAt)
	return &CreateProcedure{
		Procedure:  procedure,
		BodyString: bodyString,
	}
}
func (c *CreateProcedure) Database() sql.Database {
	return c.Db
}
func (c *CreateProcedure) WithDatabase(database sql.Database) (sql.Node, error) {
	nc := *c
	nc.Db = database
	return &nc, nil
}
func (c *CreateProcedure) Resolved() bool {
	return c.Procedure.Resolved()
}
func (c *CreateProcedure) Schema() sql.Schema {
	return nil
}