| 460 | * If not, generate using UK(s). Else throw error |
| 461 | */ |
| 462 | const getJoinSnippet = array => { |
| 463 | return array.map(key => { |
| 464 | key = this.quoteIdentifier(key); |
| 465 | return `${targetTableAlias}.${key} = ${sourceTableAlias}.${key}`; |
| 466 | }); |
| 467 | }; |
| 468 | |
| 469 | if (clauses.length === 0) { |
| 470 | throw new Error('Primary Key or Unique key should be passed to upsert query'); |
nothing calls this directly
no test coverage detected