You're Invited:Meet the Socket Team at RSAC and BSidesSF 2026, March 23–26.RSVP
Socket
Book a DemoSign in
Socket

@mikro-orm/core

Package Overview
Dependencies
Maintainers
1
Versions
4228
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@mikro-orm/core - npm Package Compare versions

Comparing version
7.0.6-dev.5
to
7.0.6-dev.6
+1
-1
package.json
{
"name": "@mikro-orm/core",
"version": "7.0.6-dev.5",
"version": "7.0.6-dev.6",
"description": "TypeScript ORM for Node.js based on Data Mapper, Unit of Work and Identity Map patterns. Supports MongoDB, MySQL, PostgreSQL and SQLite databases as well as usage with vanilla JavaScript.",

@@ -5,0 +5,0 @@ "keywords": [

@@ -40,2 +40,4 @@ import { EntityRepository } from '../entity/EntityRepository.js';

usesEnumCheckConstraints(): boolean;
/** Returns the check constraint expression for an enum column. */
getEnumCheckConstraintExpression(column: string, items: string[]): string;
/** Returns the check constraint expression for an enum array column, or null if unsupported. */

@@ -42,0 +44,0 @@ getEnumArrayCheckConstraintExpression(column: string, items: string[]): string | null;

@@ -53,2 +53,6 @@ import { clone } from '../utils/clone.js';

}
/** Returns the check constraint expression for an enum column. */
getEnumCheckConstraintExpression(column, items) {
return `${this.quoteIdentifier(column)} in (${items.map(v => this.quoteValue(v)).join(', ')})`;
}
/** Returns the check constraint expression for an enum array column, or null if unsupported. */

@@ -55,0 +59,0 @@ getEnumArrayCheckConstraintExpression(column, items) {

@@ -187,3 +187,5 @@ import { ReferenceKind, } from './enums.js';

property: prop.name,
expression: `${config.getPlatform().quoteIdentifier(prop.fieldNames[0])} in ('${prop.items.join("', '")}')`,
expression: config
.getPlatform()
.getEnumCheckConstraintExpression(prop.fieldNames[0], prop.items),
});

@@ -190,0 +192,0 @@ }

@@ -132,3 +132,3 @@ import { clone } from './clone.js';

static PK_SEPARATOR = '~~~';
static #ORM_VERSION = '7.0.6-dev.5';
static #ORM_VERSION = '7.0.6-dev.6';
/**

@@ -135,0 +135,0 @@ * Checks if the argument is instance of `Object`. Returns false for arrays.

Sorry, the diff of this file is too big to display