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

Method IterateFunctions

core/functions/collection.go:260–270  ·  view source on GitHub ↗

IterateFunctions iterates over all functions in the collection.

(ctx context.Context, callback func(f Function) (stop bool, err error))

Source from the content-addressed store, hash-verified

258
259// IterateFunctions iterates over all functions in the collection.
260func (pgf *Collection) IterateFunctions(ctx context.Context, callback func(f Function) (stop bool, err error)) error {
261 for _, funcID := range pgf.idCache {
262 stop, err := callback(pgf.accessCache[funcID])
263 if err != nil {
264 return err
265 } else if stop {
266 return nil
267 }
268 }
269 return nil
270}
271
272// Clone returns a new *Collection with the same contents as the original.
273func (pgf *Collection) Clone(ctx context.Context) *Collection {

Callers 2

IterAllMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected