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

Method RowIter

server/node/drop_function.go:87–101  ·  view source on GitHub ↗

RowIter implements the interface sql.ExecSourceRel.

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

Source from the content-addressed store, hash-verified

85
86// RowIter implements the interface sql.ExecSourceRel.
87func (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.
104func (d *DropFunction) WithResolvedChildren(ctx context.Context, children []any) (any, error) {

Callers

nothing calls this directly

Calls 2

dropFunctionFunction · 0.85

Tested by

no test coverage detected