Latest Threat Research:SANDWORM_MODE: Shai-Hulud-Style npm Worm Hijacks CI Workflows and Poisons AI Toolchains.Details
Socket
Book a DemoSign in
Socket

@mikro-orm/sql

Package Overview
Dependencies
Maintainers
1
Versions
215
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@mikro-orm/sql - npm Package Compare versions

Comparing version
7.0.0-dev.219
to
7.0.0-dev.220
+2
-2
package.json
{
"name": "@mikro-orm/sql",
"version": "7.0.0-dev.219",
"version": "7.0.0-dev.220",
"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.",

@@ -59,4 +59,4 @@ "type": "module",

"peerDependencies": {
"@mikro-orm/core": "7.0.0-dev.219"
"@mikro-orm/core": "7.0.0-dev.220"
}
}

@@ -1,2 +0,2 @@

import { type AnyEntity, type AutoPath, type ConnectionType, type Dictionary, type EntityData, type EntityKey, type EntityManager, type EntityMetadata, type EntityName, type EntityProperty, type ExpandProperty, type FilterOptions, type FilterValue, type FlushMode, type GroupOperator, type Loaded, LockMode, type LoggingOptions, type MetadataStorage, type ObjectQuery, PopulateHint, type PopulateOptions, type PopulatePath, QueryFlag, type QueryOrderKeysFlat, type QueryOrderMap, type QueryResult, RawQueryFragment, type Raw, type RequiredEntityData, type Scalar, type Subquery, type Transaction } from '@mikro-orm/core';
import { type AnyEntity, type AutoPath, type ConnectionType, type Dictionary, type EntityData, type EntityKey, type EntityManager, type EntityMetadata, type EntityName, type EntityProperty, type ExpandProperty, type FilterObject, type FilterOptions, type FilterQuery, type FilterValue, type FlushMode, type GroupOperator, type Loaded, LockMode, type LoggingOptions, type MetadataStorage, type ObjectQuery, PopulateHint, type PopulateOptions, type PopulatePath, QueryFlag, type QueryOrderKeysFlat, type QueryOrderMap, type QueryResult, RawQueryFragment, type Raw, type RequiredEntityData, type Scalar, type Subquery, type Transaction } from '@mikro-orm/core';
import { JoinType, QueryType } from './enums.js';

@@ -124,3 +124,3 @@ import type { AbstractSqlDriver } from '../AbstractSqlDriver.js';

};
type NestedFilterCondition<Entity, RootAlias extends string, Context, RawAliases extends string> = ObjectQuery<Entity> | ((IsNever<RootAlias> extends true ? {} : RootAliasFilterKeys<RootAlias, Entity>) & ([Context] extends [never] ? {} : ContextFilterKeys<Context>) & (IsNever<RawAliases> extends true ? {} : RawFilterKeys<RawAliases>));
type NestedFilterCondition<Entity, RootAlias extends string, Context, RawAliases extends string> = ObjectQuery<Entity> & (IsNever<RootAlias> extends true ? {} : string extends RootAlias ? {} : RootAliasFilterKeys<RootAlias, Entity>) & ([Context] extends [never] ? {} : ContextFilterKeys<Context>) & (IsNever<RawAliases> extends true ? {} : string extends RawAliases ? {} : RawFilterKeys<RawAliases>);
type GroupOperators<RootAlias extends string, Context, Entity, RawAliases extends string> = {

@@ -131,4 +131,4 @@ $and?: NestedFilterCondition<Entity, RootAlias, Context, RawAliases>[];

};
export type AliasedFilterCondition<RootAlias extends string, Context, Entity, RawAliases extends string = never> = (IsNever<RootAlias> extends true ? {} : RootAliasFilterKeys<RootAlias, Entity>) & ([Context] extends [never] ? {} : ContextFilterKeys<Context>) & (IsNever<RawAliases> extends true ? {} : RawFilterKeys<RawAliases>) & GroupOperators<RootAlias, Context, Entity, RawAliases>;
export type QBFilterQuery<Entity, RootAlias extends string = never, Context = never, RawAliases extends string = never> = ObjectQuery<Entity> | AliasedFilterCondition<RootAlias, Context, Entity, RawAliases>;
export type AliasedFilterCondition<RootAlias extends string, Context, Entity, RawAliases extends string = never> = (IsNever<RootAlias> extends true ? {} : string extends RootAlias ? {} : RootAliasFilterKeys<RootAlias, Entity>) & ([Context] extends [never] ? {} : ContextFilterKeys<Context>) & (IsNever<RawAliases> extends true ? {} : string extends RawAliases ? {} : RawFilterKeys<RawAliases>) & GroupOperators<RootAlias, Context, Entity, RawAliases>;
export type QBFilterQuery<Entity, RootAlias extends string = never, Context = never, RawAliases extends string = never> = FilterObject<Entity> & AliasedFilterCondition<RootAlias, Context, Entity, RawAliases>;
/**

@@ -445,2 +445,7 @@ * SQL query builder with fluent interface.

/**
* Adds a WHERE clause using a plain `FilterQuery` (without alias support).
* This overload accepts pre-typed `FilterQuery<Entity>` variables and entity-level operators like `$in`.
*/
where(cond: FilterQuery<Entity>, operator?: keyof typeof GroupOperator): this;
/**
* Adds a WHERE clause to the query using a raw SQL string or fragment.

@@ -469,2 +474,7 @@ *

/**
* Adds an AND WHERE clause using a plain `FilterQuery` (without alias support).
* This overload accepts pre-typed `FilterQuery<Entity>` variables and entity-level operators like `$in`.
*/
andWhere(cond: FilterQuery<Entity>): this;
/**
* Adds an AND WHERE clause to the query using a raw SQL string or fragment.

@@ -489,2 +499,7 @@ *

/**
* Adds an OR WHERE clause using a plain `FilterQuery` (without alias support).
* This overload accepts pre-typed `FilterQuery<Entity>` variables and entity-level operators like `$in`.
*/
orWhere(cond: FilterQuery<Entity>): this;
/**
* Adds an OR WHERE clause to the query using a raw SQL string or fragment.

@@ -575,3 +590,3 @@ *

*/
having(cond?: QBFilterQuery<Entity, RootAlias, Context, RawAliases> | string, params?: any[], operator?: keyof typeof GroupOperator): SelectQueryBuilder<Entity, RootAlias, Hint, Context, RawAliases, Fields>;
having(cond?: QBFilterQuery<Entity, RootAlias, Context, RawAliases> | FilterQuery<Entity> | string, params?: any[], operator?: keyof typeof GroupOperator): SelectQueryBuilder<Entity, RootAlias, Hint, Context, RawAliases, Fields>;
andHaving(cond?: QBFilterQuery<Entity, RootAlias, Context, RawAliases> | string, params?: any[]): SelectQueryBuilder<Entity, RootAlias, Hint, Context, RawAliases, Fields>;

@@ -578,0 +593,0 @@ orHaving(cond?: QBFilterQuery<Entity, RootAlias, Context, RawAliases> | string, params?: any[]): SelectQueryBuilder<Entity, RootAlias, Hint, Context, RawAliases, Fields>;

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