MCPcopy
hub / github.com/Masterminds/squirrel / setRunWith

Function setRunWith

squirrel.go:85–93  ·  view source on GitHub ↗
(b interface{}, runner BaseRunner)

Source from the content-addressed store, hash-verified

83}
84
85func setRunWith(b interface{}, runner BaseRunner) interface{} {
86 switch r := runner.(type) {
87 case StdSqlCtx:
88 runner = WrapStdSqlCtx(r)
89 case StdSql:
90 runner = WrapStdSql(r)
91 }
92 return builder.Set(b, "RunWith", runner)
93}
94
95// RunnerNotSet is returned by methods that need a Runner if it isn't set.
96var RunnerNotSet = fmt.Errorf("cannot run; no Runner set (RunWith)")

Callers 5

RunWithMethod · 0.85
RunWithMethod · 0.85
RunWithMethod · 0.85
RunWithMethod · 0.85
RunWithMethod · 0.85

Calls 3

WrapStdSqlCtxFunction · 0.85
WrapStdSqlFunction · 0.85
SetMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…