| 450 | * If not, generate using UK(s). Else throw error |
| 451 | */ |
| 452 | const getJoinSnippet = array => { |
| 453 | return array.map(key => { |
| 454 | key = this.quoteIdentifier(key); |
| 455 | return `${targetTableAlias}.${key} = ${sourceTableAlias}.${key}`; |
| 456 | }); |
| 457 | }; |
| 458 | |
| 459 | if (clauses.length === 0) { |
| 460 | throw new Error('Primary Key or Unique key should be passed to upsert query'); |
nothing calls this directly
no test coverage detected