MCPcopy
hub / github.com/sequelize/sequelize / _joinKeyValue

Method _joinKeyValue

src/dialects/abstract/query-generator.js:2735–2744  ·  view source on GitHub ↗
(key, value, comparator, prefix)

Source from the content-addressed store, hash-verified

2733 }
2734
2735 _joinKeyValue(key, value, comparator, prefix) {
2736 if (!key) {
2737 return value;
2738 }
2739 if (comparator === undefined) {
2740 throw new Error(`${key} and ${value} has no comparator`);
2741 }
2742 key = this._getSafeKey(key, prefix);
2743 return [key, value].join(` ${comparator} `);
2744 }
2745
2746 _getSafeKey(key, prefix) {
2747 if (key instanceof Utils.SequelizeMethod) {

Callers 2

whereItemQueryMethod · 0.95

Calls 1

_getSafeKeyMethod · 0.95

Tested by

no test coverage detected