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

Method setBySchemaLevel

core/utils.ts:654–664  ·  view source on GitHub ↗
(
    targetMap: Map<string, Map<string, T[]>>,
    actionTarget: dataform.ITarget,
    value: T
  )

Source from the content-addressed store, hash-verified

652 }
653
654 private setBySchemaLevel(
655 targetMap: Map<string, Map<string, T[]>>,
656 actionTarget: dataform.ITarget,
657 value: T
658 ) {
659 if (!targetMap.has(actionTarget.schema)) {
660 targetMap.set(actionTarget.schema, new Map());
661 }
662 const forSchema = targetMap.get(actionTarget.schema);
663 this.setByNameLevel(forSchema, actionTarget.name, value);
664 }
665}

Callers 1

setMethod · 0.95

Calls 3

setByNameLevelMethod · 0.95
getMethod · 0.80
setMethod · 0.45

Tested by

no test coverage detected