MCPcopy Index your code
hub / github.com/sequelize/sequelize / getJoinSnippet

Method getJoinSnippet

src/dialects/db2/query-generator.js:462–467  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 1

quoteIdentifierMethod · 0.95

Tested by

no test coverage detected