@mikro-orm/sql 7.0.0-dev.296 → 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/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 { QueryBuilder } from './query/QueryBuilder.js';
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 | QueryBuilder | NativeQueryBuilder;
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
  }