* 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)
| 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. |
no test coverage detected