@mikro-orm/sql
Advanced tools
@@ -16,2 +16,3 @@ import { type EntityProperty, type IsolationLevel, RawQueryFragment, type SimpleColumnMeta, Type } from '@mikro-orm/core'; | ||
| usesEnumCheckConstraints(): boolean; | ||
| getEnumArrayCheckConstraintExpression(column: string, items: string[]): string; | ||
| supportsMaterializedViews(): boolean; | ||
@@ -18,0 +19,0 @@ supportsCustomPrimaryKeyNames(): boolean; |
@@ -27,2 +27,5 @@ import { ALIAS_REPLACEMENT, ARRAY_OPERATORS, raw, RawQueryFragment, Type, Utils, } from '@mikro-orm/core'; | ||
| } | ||
| getEnumArrayCheckConstraintExpression(column, items) { | ||
| return `${this.quoteIdentifier(column)} <@ array[${items.map(item => `'${item}'::text`).join(', ')}]`; | ||
| } | ||
| supportsMaterializedViews() { | ||
@@ -29,0 +32,0 @@ return true; |
+2
-2
| { | ||
| "name": "@mikro-orm/sql", | ||
| "version": "7.0.4-dev.12", | ||
| "version": "7.0.4-dev.13", | ||
| "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.", | ||
@@ -56,3 +56,3 @@ "keywords": [ | ||
| "peerDependencies": { | ||
| "@mikro-orm/core": "7.0.4-dev.12" | ||
| "@mikro-orm/core": "7.0.4-dev.13" | ||
| }, | ||
@@ -59,0 +59,0 @@ "engines": { |
Network access
Supply chain riskThis module accesses the network.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
URL strings
Supply chain riskPackage contains fragments of external URLs or IP addresses, which the package may be accessing at runtime.
Found 1 instance in 1 package
Network access
Supply chain riskThis module accesses the network.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
URL strings
Supply chain riskPackage contains fragments of external URLs or IP addresses, which the package may be accessing at runtime.
Found 1 instance in 1 package
851159
0.03%18155
0.02%