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

Method _getAttributeMap

src/dialects/oracle/query.js:280–286  ·  view source on GitHub ↗

* Building the attribute map by matching the column names received * from DB and the one in rawAttributes * to sequelize format * * @param {object} attrsMap * @param {object} rawAttributes * @private

(attrsMap, rawAttributes)

Source from the content-addressed store, hash-verified

278 * @private
279 */
280 _getAttributeMap(attrsMap, rawAttributes) {
281 attrsMap = Object.assign(attrsMap, _.reduce(rawAttributes, (mp, _, key) => {
282 const catalogKey = this.sequelize.queryInterface.queryGenerator.getCatalogName(key);
283 mp[catalogKey] = key;
284 return mp;
285 }, {}));
286 }
287
288 /**
289 * Process rows received from the DB.

Callers 2

_processRowsMethod · 0.95
formatResultsMethod · 0.95

Calls 1

getCatalogNameMethod · 0.80

Tested by

no test coverage detected