You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
7 lines
21 KiB
7 lines
21 KiB
{ |
|
"version": 3, |
|
"sources": ["../../../src/dialects/postgres/query.js"], |
|
"sourcesContent": ["'use strict';\n\nconst AbstractQuery = require('../abstract/query');\nconst QueryTypes = require('../../query-types');\nconst sequelizeErrors = require('../../errors');\nconst _ = require('lodash');\nconst { logger } = require('../../utils/logger');\n\nconst debug = logger.debugContext('sql:pg');\n\n\nclass Query extends AbstractQuery {\n /**\n * Rewrite query with parameters.\n *\n * @param {string} sql\n * @param {Array|object} values\n * @param {string} dialect\n * @private\n */\n static formatBindParameters(sql, values, dialect) {\n const stringReplaceFunc = value => typeof value === 'string' ? value.replace(/\\0/g, '\\\\0') : value;\n\n let bindParam;\n if (Array.isArray(values)) {\n bindParam = values.map(stringReplaceFunc);\n sql = AbstractQuery.formatBindParameters(sql, values, dialect, { skipValueReplace: true })[0];\n } else {\n bindParam = [];\n let i = 0;\n const seen = {};\n const replacementFunc = (match, key, values) => {\n if (seen[key] !== undefined) {\n return seen[key];\n }\n if (values[key] !== undefined) {\n i = i + 1;\n bindParam.push(stringReplaceFunc(values[key]));\n seen[key] = `$${i}`;\n return `$${i}`;\n }\n return undefined;\n };\n sql = AbstractQuery.formatBindParameters(sql, values, dialect, replacementFunc)[0];\n }\n return [sql, bindParam];\n }\n\n async run(sql, parameters) {\n const { connection } = this;\n\n if (!_.isEmpty(this.options.searchPath)) {\n sql = this.sequelize.getQueryInterface().queryGenerator.setSearchPath(this.options.searchPath) + sql;\n }\n\n if (this.sequelize.options.minifyAliases && this.options.includeAliases) {\n _.toPairs(this.options.includeAliases)\n // Sorting to replace the longest aliases first to prevent alias collision\n .sort((a, b) => b[1].length - a[1].length)\n .forEach(([alias, original]) => {\n const reg = new RegExp(_.escapeRegExp(original), 'g');\n\n sql = sql.replace(reg, alias);\n });\n }\n\n this.sql = sql;\n\n const query = parameters && parameters.length\n ? new Promise((resolve, reject) => connection.query(sql, parameters, (error, result) => error ? reject(error) : resolve(result)))\n : new Promise((resolve, reject) => connection.query(sql, (error, result) => error ? reject(error) : resolve(result)));\n\n const complete = this._logQuery(sql, debug, parameters);\n\n let queryResult;\n const errForStack = new Error();\n\n try {\n queryResult = await query;\n } catch (error) {\n // set the client so that it will be reaped if the connection resets while executing\n if (error.code === 'ECONNRESET'\n // https://github.com/sequelize/sequelize/pull/14090\n // pg-native throws custom exception or libpq formatted errors\n || /Unable to set non-blocking to true/i.test(error)\n || /SSL SYSCALL error: EOF detected/i.test(error)\n || /Local: Authentication failure/i.test(error)\n // https://github.com/sequelize/sequelize/pull/15144\n || error.message === 'Query read timeout'\n ) {\n connection._invalid = true;\n }\n\n error.sql = sql;\n error.parameters = parameters;\n throw this.formatError(error, errForStack.stack);\n }\n\n complete();\n\n let rows = Array.isArray(queryResult)\n ? queryResult.reduce((allRows, r) => allRows.concat(r.rows || []), [])\n : queryResult.rows;\n const rowCount = Array.isArray(queryResult)\n ? queryResult.reduce(\n (count, r) => Number.isFinite(r.rowCount) ? count + r.rowCount : count,\n 0\n )\n : queryResult.rowCount || 0;\n\n if (this.sequelize.options.minifyAliases && this.options.aliasesMapping) {\n rows = rows\n .map(row => _.toPairs(row)\n .reduce((acc, [key, value]) => {\n const mapping = this.options.aliasesMapping.get(key);\n acc[mapping || key] = value;\n return acc;\n }, {})\n );\n }\n\n const isTableNameQuery = sql.startsWith('SELECT table_name FROM information_schema.tables');\n const isRelNameQuery = sql.startsWith('SELECT relname FROM pg_class WHERE oid IN');\n\n if (isRelNameQuery) {\n return rows.map(row => ({\n name: row.relname,\n tableName: row.relname.split('_')[0]\n }));\n }\n if (isTableNameQuery) {\n return rows.map(row => Object.values(row));\n }\n\n if (rows[0] && rows[0].sequelize_caught_exception !== undefined) {\n if (rows[0].sequelize_caught_exception !== null) {\n throw this.formatError({\n sql,\n parameters,\n code: '23505',\n detail: rows[0].sequelize_caught_exception\n });\n }\n for (const row of rows) {\n delete row.sequelize_caught_exception;\n }\n }\n\n if (this.isShowIndexesQuery()) {\n for (const row of rows) {\n const attributes = /ON .*? (?:USING .*?\\s)?\\(([^]*)\\)/gi.exec(row.definition)[1].split(',');\n\n // Map column index in table to column name\n const columns = _.zipObject(\n row.column_indexes,\n this.sequelize.getQueryInterface().queryGenerator.fromArray(row.column_names)\n );\n delete row.column_indexes;\n delete row.column_names;\n\n let field;\n let attribute;\n\n // Indkey is the order of attributes in the index, specified by a string of attribute indexes\n row.fields = row.indkey.split(' ').map((indKey, index) => {\n field = columns[indKey];\n // for functional indices indKey = 0\n if (!field) {\n return null;\n }\n attribute = attributes[index];\n return {\n attribute: field,\n collate: attribute.match(/COLLATE \"(.*?)\"/) ? /COLLATE \"(.*?)\"/.exec(attribute)[1] : undefined,\n order: attribute.includes('DESC') ? 'DESC' : attribute.includes('ASC') ? 'ASC' : undefined,\n length: undefined\n };\n }).filter(n => n !== null);\n delete row.columns;\n }\n return rows;\n }\n if (this.isForeignKeysQuery()) {\n const result = [];\n for (const row of rows) {\n let defParts;\n if (row.condef !== undefined && (defParts = row.condef.match(/FOREIGN KEY \\((.+)\\) REFERENCES (.+)\\((.+)\\)( ON (UPDATE|DELETE) (CASCADE|RESTRICT))?( ON (UPDATE|DELETE) (CASCADE|RESTRICT))?/))) {\n row.id = row.constraint_name;\n row.table = defParts[2];\n row.from = defParts[1];\n row.to = defParts[3];\n let i;\n for (i = 5; i <= 8; i += 3) {\n if (/(UPDATE|DELETE)/.test(defParts[i])) {\n row[`on_${defParts[i].toLowerCase()}`] = defParts[i + 1];\n }\n }\n }\n result.push(row);\n }\n return result;\n }\n if (this.isSelectQuery()) {\n let result = rows;\n // Postgres will treat tables as case-insensitive, so fix the case\n // of the returned values to match attributes\n if (this.options.raw === false && this.sequelize.options.quoteIdentifiers === false) {\n const attrsMap = _.reduce(this.model.rawAttributes, (m, v, k) => {\n m[k.toLowerCase()] = k;\n return m;\n }, {});\n result = rows.map(row => {\n return _.mapKeys(row, (value, key) => {\n const targetAttr = attrsMap[key];\n if (typeof targetAttr === 'string' && targetAttr !== key) {\n return targetAttr;\n }\n return key;\n });\n });\n }\n return this.handleSelectQuery(result);\n }\n if (QueryTypes.DESCRIBE === this.options.type) {\n const result = {};\n\n for (const row of rows) {\n result[row.Field] = {\n type: row.Type.toUpperCase(),\n allowNull: row.Null === 'YES',\n defaultValue: row.Default,\n comment: row.Comment,\n special: row.special ? this.sequelize.getQueryInterface().queryGenerator.fromArray(row.special) : [],\n primaryKey: row.Constraint === 'PRIMARY KEY'\n };\n\n if (result[row.Field].type === 'BOOLEAN') {\n result[row.Field].defaultValue = { 'false': false, 'true': true }[result[row.Field].defaultValue];\n\n if (result[row.Field].defaultValue === undefined) {\n result[row.Field].defaultValue = null;\n }\n }\n\n if (typeof result[row.Field].defaultValue === 'string') {\n result[row.Field].defaultValue = result[row.Field].defaultValue.replace(/'/g, '');\n\n if (result[row.Field].defaultValue.includes('::')) {\n const split = result[row.Field].defaultValue.split('::');\n if (split[1].toLowerCase() !== 'regclass)') {\n result[row.Field].defaultValue = split[0];\n }\n }\n }\n }\n\n return result;\n }\n if (this.isVersionQuery()) {\n return rows[0].server_version;\n }\n if (this.isShowOrDescribeQuery()) {\n return rows;\n }\n if (QueryTypes.BULKUPDATE === this.options.type) {\n if (!this.options.returning) {\n return parseInt(rowCount, 10);\n }\n return this.handleSelectQuery(rows);\n }\n if (QueryTypes.BULKDELETE === this.options.type) {\n return parseInt(rowCount, 10);\n }\n if (this.isInsertQuery() || this.isUpdateQuery() || this.isUpsertQuery()) {\n if (this.instance && this.instance.dataValues) {\n // If we are creating an instance, and we get no rows, the create failed but did not throw.\n // This probably means a conflict happened and was ignored, to avoid breaking a transaction.\n if (this.isInsertQuery() && !this.isUpsertQuery() && rowCount === 0) {\n throw new sequelizeErrors.EmptyResultError();\n }\n\n for (const key in rows[0]) {\n if (Object.prototype.hasOwnProperty.call(rows[0], key)) {\n const record = rows[0][key];\n\n const attr = _.find(this.model.rawAttributes, attribute => attribute.fieldName === key || attribute.field === key);\n\n this.instance.dataValues[attr && attr.fieldName || key] = record;\n }\n }\n }\n\n if (this.isUpsertQuery()) {\n return [\n this.instance,\n null\n ];\n }\n\n return [\n this.instance || rows && (this.options.plain && rows[0] || rows) || undefined,\n rowCount\n ];\n }\n if (this.isRawQuery()) {\n return [rows, queryResult];\n }\n return rows;\n }\n\n formatError(err, errStack) {\n let match;\n let table;\n let index;\n let fields;\n let errors;\n let message;\n\n const code = err.code || err.sqlState;\n const errMessage = err.message || err.messagePrimary;\n const errDetail = err.detail || err.messageDetail;\n\n switch (code) {\n case '23503':\n index = errMessage.match(/violates foreign key constraint \"(.+?)\"/);\n index = index ? index[1] : undefined;\n table = errMessage.match(/on table \"(.+?)\"/);\n table = table ? table[1] : undefined;\n\n return new sequelizeErrors.ForeignKeyConstraintError({\n message: errMessage,\n fields: null,\n index,\n table,\n parent: err,\n stack: errStack\n });\n case '23505':\n // there are multiple different formats of error messages for this error code\n // this regex should check at least two\n if (errDetail && (match = errDetail.replace(/\"/g, '').match(/Key \\((.*?)\\)=\\((.*?)\\)/))) {\n fields = _.zipObject(match[1].split(', '), match[2].split(', '));\n errors = [];\n message = 'Validation error';\n\n _.forOwn(fields, (value, field) => {\n errors.push(new sequelizeErrors.ValidationErrorItem(\n this.getUniqueConstraintErrorMessage(field),\n 'unique violation', // sequelizeErrors.ValidationErrorItem.Origins.DB,\n field,\n value,\n this.instance,\n 'not_unique'\n ));\n });\n\n if (this.model && this.model.uniqueKeys) {\n _.forOwn(this.model.uniqueKeys, constraint => {\n if (_.isEqual(constraint.fields, Object.keys(fields)) && !!constraint.msg) {\n message = constraint.msg;\n return false;\n }\n });\n }\n\n return new sequelizeErrors.UniqueConstraintError({ message, errors, parent: err, fields, stack: errStack });\n }\n\n return new sequelizeErrors.UniqueConstraintError({\n message: errMessage,\n parent: err,\n stack: errStack\n });\n\n case '23P01':\n match = errDetail.match(/Key \\((.*?)\\)=\\((.*?)\\)/);\n\n if (match) {\n fields = _.zipObject(match[1].split(', '), match[2].split(', '));\n }\n message = 'Exclusion constraint error';\n\n return new sequelizeErrors.ExclusionConstraintError({\n message,\n constraint: err.constraint,\n fields,\n table: err.table,\n parent: err,\n stack: errStack\n });\n\n case '42704':\n if (err.sql && /(CONSTRAINT|INDEX)/gi.test(err.sql)) {\n message = 'Unknown constraint error';\n index = errMessage.match(/(?:constraint|index) \"(.+?)\"/i);\n index = index ? index[1] : undefined;\n table = errMessage.match(/relation \"(.+?)\"/i);\n table = table ? table[1] : undefined;\n\n throw new sequelizeErrors.UnknownConstraintError({\n message,\n constraint: index,\n fields,\n table,\n parent: err,\n stack: errStack\n });\n }\n // falls through\n default:\n return new sequelizeErrors.DatabaseError(err, { stack: errStack });\n }\n }\n\n isForeignKeysQuery() {\n return /SELECT conname as constraint_name, pg_catalog\\.pg_get_constraintdef\\(r\\.oid, true\\) as condef FROM pg_catalog\\.pg_constraint r WHERE r\\.conrelid = \\(SELECT oid FROM pg_class WHERE relname = '.*' LIMIT 1\\) AND r\\.contype = 'f' ORDER BY 1;/.test(this.sql);\n }\n\n getInsertIdField() {\n return 'id';\n }\n}\n\nmodule.exports = Query;\nmodule.exports.Query = Query;\nmodule.exports.default = Query;\n"], |
|
"mappings": ";AAEA,MAAM,gBAAgB,QAAQ;AAC9B,MAAM,aAAa,QAAQ;AAC3B,MAAM,kBAAkB,QAAQ;AAChC,MAAM,IAAI,QAAQ;AAClB,MAAM,EAAE,WAAW,QAAQ;AAE3B,MAAM,QAAQ,OAAO,aAAa;AAGlC,oBAAoB,cAAc;AAAA,SASzB,qBAAqB,KAAK,QAAQ,SAAS;AAChD,UAAM,oBAAoB,WAAS,OAAO,UAAU,WAAW,MAAM,QAAQ,OAAO,SAAS;AAE7F,QAAI;AACJ,QAAI,MAAM,QAAQ,SAAS;AACzB,kBAAY,OAAO,IAAI;AACvB,YAAM,cAAc,qBAAqB,KAAK,QAAQ,SAAS,EAAE,kBAAkB,QAAQ;AAAA,WACtF;AACL,kBAAY;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