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

Method _joinKeyValue

lib/dialects/abstract/query-generator.js:2550–2559  ·  lib/dialects/abstract/query-generator.js::QueryGenerator._joinKeyValue
(key, value, comparator, prefix)

Source from the content-addressed store, hash-verified

2548 }
2549
2550 _joinKeyValue(key, value, comparator, prefix) {
2551 if (!key) {
2552 return value;
2553 }
2554 if (comparator === undefined) {
2555 throw new Error(`${key} and ${value} has no comparator`);
2556 }
2557 key = this._getSafeKey(key, prefix);
2558 return [key, value].join(` ${comparator} `);
2559 }
2560
2561 _getSafeKey(key, prefix) {
2562 if (key instanceof Utils.SequelizeMethod) {

Callers 2

whereItemQueryMethod · 0.95

Calls 1

_getSafeKeyMethod · 0.95

Tested by

no test coverage detected