MCPcopy Create free account
hub / github.com/dataform-co/dataform / ambiguousActionNameMsg

Function ambiguousActionNameMsg

core/utils.ts:179–189  ·  view source on GitHub ↗
(act: Resolvable, allActs: Action[] | string[])

Source from the content-addressed store, hash-verified

177}
178
179export function ambiguousActionNameMsg(act: Resolvable, allActs: Action[] | string[]) {
180 const allActNames =
181 typeof allActs[0] === "string"
182 ? allActs
183 : (allActs as Array<Table | Operation | Assertion>).map(
184 r => `${r.getTarget().schema}.${r.getTarget().name}`
185 );
186 return `Ambiguous Action name: ${stringifyResolvable(
187 act
188 )}. Did you mean one of: ${allActNames.join(", ")}.`;
189}
190
191/**
192 * @deprecated use ActionBuilder.applySessionToTarget() instead.

Callers 3

resolveMethod · 0.90
compileMethod · 0.90
matchPatternsFunction · 0.85

Calls 2

stringifyResolvableFunction · 0.85
getTargetMethod · 0.45

Tested by

no test coverage detected