sequelize
Advanced tools
Comparing version 6.19.0 to 6.19.1
@@ -46,2 +46,3 @@ "use strict"; | ||
const { HasMany } = require("./associations/has-many"); | ||
const { injectReplacements } = require("./utils/sql"); | ||
class Sequelize { | ||
@@ -281,7 +282,3 @@ constructor(database, username, password, options) { | ||
if (options.replacements) { | ||
if (Array.isArray(options.replacements)) { | ||
sql = Utils.format([sql].concat(options.replacements), this.options.dialect); | ||
} else { | ||
sql = Utils.formatNamedParameters(sql, options.replacements, this.options.dialect); | ||
} | ||
sql = injectReplacements(sql, this.dialect, options.replacements); | ||
} | ||
@@ -288,0 +285,0 @@ let bindParameters; |
{ | ||
"name": "sequelize", | ||
"description": "Sequelize is a promise-based Node.js ORM tool for Postgres, MySQL, MariaDB, SQLite, Microsoft SQL Server, Amazon Redshift and Snowflake’s Data Cloud. It features solid transaction support, relations, eager and lazy loading, read replication and more.", | ||
"version": "6.19.0", | ||
"version": "6.19.1", | ||
"funding": [ | ||
@@ -64,2 +64,3 @@ { | ||
"@types/chai": "^4.3.0", | ||
"@types/lodash": "4.14.182", | ||
"@types/mocha": "^9.0.0", | ||
@@ -66,0 +67,0 @@ "@types/node": "^16.11.17", |
export type Escapable = undefined | null | boolean | number | string | Date; | ||
export function escapeId(val: string, forbidQualified?: boolean): string; | ||
export function escape(val: Escapable | Escapable[], timeZone?: string, dialect?: string, format?: string): string; | ||
export function escape(val: Escapable | Escapable[], timeZone?: string, dialect?: string, format?: boolean): string; | ||
export function format(sql: string, values: unknown[], timeZone?: string, dialect?: string): string; | ||
export function formatNamedParameters(sql: string, values: unknown[], timeZone?: string, dialect?: string): string; |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
2627585
285
30297
59