MCPcopy
hub / github.com/sequelize/sequelize / getJoinSnippet

Method getJoinSnippet

lib/dialects/db2/query-generator.js:452–457  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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');

Callers

nothing calls this directly

Calls 1

quoteIdentifierMethod · 0.95

Tested by

no test coverage detected