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

Method resolveTarget

core/compilation_sql/index.ts:9–15  ·  view source on GitHub ↗
(target: dataform.ITarget)

Source from the content-addressed store, hash-verified

7 ) {}
8
9 public resolveTarget(target: dataform.ITarget) {
10 const database = target.database || this.project.defaultDatabase;
11 if (!database) {
12 return `\`${target.schema || this.project.defaultSchema}.${target.name}\``;
13 }
14 return `\`${database}.${target.schema || this.project.defaultSchema}.${target.name}\``;
15 }
16
17 public sqlString(stringContents: string) {
18 // Escape escape characters, then escape single quotes, then wrap the string in single quotes.

Callers 3

resolveMethod · 0.45
getTableRowsFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected