mythix-orm 1.11.6 → 1.12.0

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.
@@ -16,12 +16,24 @@ export declare interface CallableInterface {
16
16
  [key: string]: QueryEngine;
17
17
  }
18
18
 
19
+ export declare interface QueryInfo {
20
+ hasDistinct: boolean;
21
+ hasOrder: boolean;
22
+ hasProjection: boolean;
23
+ hasGroupBy: boolean;
24
+ hasHaving: boolean;
25
+ hasCondition: boolean;
26
+ hasTableJoins: boolean;
27
+ hasField: boolean;
28
+ hasModel: boolean;
29
+ }
30
+
19
31
  export declare class QueryEngine<T = ConnectionBase> {
20
32
  // QueryEngineBase
21
33
  static generateID(): number;
22
34
  static isQueryOperationContext(value: any): boolean;
23
35
  static isQuery(value: any): boolean;
24
- static queryOperationInfo(queryContext: GenericObject): { hasCondition: boolean; hasField: boolean; hasModel: boolean; };
36
+ static getQueryOperationInfo(query: QueryEngine): QueryInfo;
25
37
 
26
38
  public getModelScopeClass(): QueryEngine;
27
39
  public getFieldScopeClass(): QueryEngine;
@@ -75,7 +87,6 @@ export declare class QueryEngine<T = ConnectionBase> {
75
87
 
76
88
  // ModelScope
77
89
  public _getField(fieldName: string): Field | undefined;
78
- public _getQueryEngineClass(): QueryEngineClass;
79
90
  public Field(fieldName: string): QueryEngine;
80
91
  public LIMIT(value: number): QueryEngine;
81
92
  public OFFSET(value: number): QueryEngine;