RowIter implements the interface sql.ExecSourceRel.
(ctx *sql.Context, r sql.Row)
| 85 | |
| 86 | // RowIter implements the interface sql.ExecSourceRel. |
| 87 | func (d *DropFunction) RowIter(ctx *sql.Context, r sql.Row) (iter sql.RowIter, err error) { |
| 88 | funcColl, err := core.GetFunctionsCollectionFromContext(ctx, "") |
| 89 | if err != nil { |
| 90 | return nil, err |
| 91 | } |
| 92 | |
| 93 | for _, routineWithArgs := range d.RoutinesWithArgs { |
| 94 | err = dropFunction(ctx, funcColl, routineWithArgs, d.IfExists) |
| 95 | if err != nil { |
| 96 | return nil, err |
| 97 | } |
| 98 | } |
| 99 | |
| 100 | return sql.RowsToRowIter(), nil |
| 101 | } |
| 102 | |
| 103 | // WithResolvedChildren implements the interface vitess.Injectable. |
| 104 | func (d *DropFunction) WithResolvedChildren(ctx context.Context, children []any) (any, error) { |
nothing calls this directly
no test coverage detected