MCPcopy Create free account
hub / github.com/dolthub/doltgresql / RowIter

Method RowIter

server/node/drop_procedure.go:80–94  ·  view source on GitHub ↗

RowIter implements the interface sql.ExecSourceRel.

(ctx *sql.Context, r sql.Row)

Source from the content-addressed store, hash-verified

78
79// RowIter implements the interface sql.ExecSourceRel.
80func (d *DropProcedure) RowIter(ctx *sql.Context, r sql.Row) (iter sql.RowIter, err error) {
81 procColl, err := core.GetProceduresCollectionFromContext(ctx, "")
82 if err != nil {
83 return nil, err
84 }
85
86 for _, routineWithArgs := range d.RoutinesWithArgs {
87 err = dropProcedure(ctx, procColl, routineWithArgs, d.IfExists)
88 if err != nil {
89 return nil, err
90 }
91 }
92
93 return sql.RowsToRowIter(), nil
94}
95
96// WithResolvedChildren implements the interface vitess.Injectable.
97func (d *DropProcedure) WithResolvedChildren(ctx context.Context, children []any) (any, error) {

Callers

nothing calls this directly

Calls 2

dropProcedureFunction · 0.85

Tested by

no test coverage detected