MCPcopy Create free account
hub / github.com/couchbase/sync_gateway / call

Method call

db/functions/js_function.go:44–51  ·  view source on GitHub ↗
(ctx context.Context, jsArgs ...any)

Source from the content-addressed store, hash-verified

42}
43
44func (fn *jsInvocation) call(ctx context.Context, jsArgs ...any) (any, error) {
45 return fn.compiled.WithTask(ctx, func(task sgbucket.JSServerTask) (result any, err error) {
46 runner := task.(*jsRunner)
47 return runner.CallWithDB(fn.db,
48 fn.ctx,
49 jsArgs...)
50 })
51}

Callers 1

RunMethod · 0.95

Calls 1

CallWithDBMethod · 0.80

Tested by

no test coverage detected