@mikro-orm/sql 7.0.0-dev.298 → 7.0.0-dev.299
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/AbstractSqlDriver.d.ts +12 -12
- package/SqlEntityManager.d.ts +1 -1
- package/dialects/mssql/MsSqlNativeQueryBuilder.d.ts +2 -0
- package/dialects/mssql/MsSqlNativeQueryBuilder.js +5 -0
- package/package.json +2 -2
- package/query/NativeQueryBuilder.d.ts +25 -0
- package/query/NativeQueryBuilder.js +60 -0
- package/query/QueryBuilder.d.ts +94 -40
- package/query/QueryBuilder.js +65 -8
- package/query/QueryBuilderHelper.d.ts +1 -0
- package/query/QueryBuilderHelper.js +5 -1
- package/tsconfig.build.tsbuildinfo +1 -1
- package/typings.d.ts +5 -3
package/typings.d.ts
CHANGED
|
@@ -3,8 +3,8 @@ import type { CheckCallback, DeferMode, Dictionary, EntityName, EntityProperty,
|
|
|
3
3
|
import type { JoinType, QueryType } from './query/enums.js';
|
|
4
4
|
import type { DatabaseSchema } from './schema/DatabaseSchema.js';
|
|
5
5
|
import type { DatabaseTable } from './schema/DatabaseTable.js';
|
|
6
|
-
import type {
|
|
7
|
-
import type { NativeQueryBuilder } from './query/NativeQueryBuilder.js';
|
|
6
|
+
import type { AnyQueryBuilder } from './query/QueryBuilder.js';
|
|
7
|
+
import type { CteOptions, NativeQueryBuilder } from './query/NativeQueryBuilder.js';
|
|
8
8
|
import type { MikroKyselyPluginOptions } from './plugin/index.js';
|
|
9
9
|
export interface Table {
|
|
10
10
|
table_name: string;
|
|
@@ -12,7 +12,7 @@ export interface Table {
|
|
|
12
12
|
table_comment?: string;
|
|
13
13
|
}
|
|
14
14
|
/** @internal */
|
|
15
|
-
export type InternalField<T> = string | RawQueryFragment |
|
|
15
|
+
export type InternalField<T> = string | RawQueryFragment | AnyQueryBuilder | NativeQueryBuilder;
|
|
16
16
|
export interface JoinOptions {
|
|
17
17
|
table: string;
|
|
18
18
|
schema?: string;
|
|
@@ -202,6 +202,8 @@ export interface IQueryBuilder<T> {
|
|
|
202
202
|
setFlag(flag: QueryFlag): this;
|
|
203
203
|
unsetFlag(flag: QueryFlag): this;
|
|
204
204
|
hasFlag(flag: QueryFlag): boolean;
|
|
205
|
+
with(name: string, query: AnyQueryBuilder | NativeQueryBuilder | RawQueryFragment, options?: CteOptions): this;
|
|
206
|
+
withRecursive(name: string, query: AnyQueryBuilder | NativeQueryBuilder | RawQueryFragment, options?: CteOptions): this;
|
|
205
207
|
scheduleFilterCheck(path: string): void;
|
|
206
208
|
withSchema(schema: string): this;
|
|
207
209
|
}
|