RowIter implements the interface sql.ExecSourceRel.
(ctx *sql.Context, r sql.Row)
| 78 | |
| 79 | // RowIter implements the interface sql.ExecSourceRel. |
| 80 | func (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. |
| 97 | func (d *DropProcedure) WithResolvedChildren(ctx context.Context, children []any) (any, error) { |
nothing calls this directly
no test coverage detected