Skip to content

Commit c85ccf3

Browse files
committed
reorganize imports
1 parent d026815 commit c85ccf3

26 files changed

Lines changed: 17 additions & 96 deletions

main.ts

Lines changed: 0 additions & 9 deletions
This file was deleted.

src/core/enums/expression-or-column-enum.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
21
export enum ExpressionOrColumnEnum {
32
Expression,
43
Column,

src/core/enums/expression-or-value-enum.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
21
export enum ExpressionOrValueEnum {
32
Expression,
43
Value,

src/core/query-compilable.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import { ValueType } from "./utils";
21
import { QueryCompiled } from ".";
32

43
export interface QueryCompilable {

src/core/utils.ts

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import { Projection } from "./../crud/enums/projection";
21
import { ExpressionOrValueEnum } from "./enums/expression-or-value-enum";
32
import * as moment from "moment";
43
import { ValueTypeToParse } from "./utils";
@@ -13,7 +12,6 @@ import { ColumnType } from "./enums/column-type";
1312
import { ProjectionCompiled } from "../crud/projection-compiled";
1413
import { Condition } from "../crud/enums/condition";
1514
import { DatabaseBuilderError } from "./errors";
16-
import { ExpressionOrColumnOrProjectionEnum } from "./enums/expression-or-column-or-projection-enum";
1715
import { ProjectionsHelper } from "./projections-helper";
1816
import { ColumnParams } from "./column-params";
1917
import { ColumnRef } from "./column-ref";
@@ -109,19 +107,19 @@ export class Utils {
109107
return this.isNumber(value) || this.isString(value) || this.isBoolean(value);
110108
}
111109

112-
public static isValueTypeToParse<T>(value: any): boolean {
110+
public static isValueTypeToParse(value: any): boolean {
113111
return this.isValueType(value) || this.isDate(value) || this.isMoment(value) || this.isObject(value);
114112
}
115113

116-
public static isWhereBuilder<T>(whereCandidate: any): boolean {
114+
public static isWhereBuilder(whereCandidate: any): boolean {
117115
return whereCandidate instanceof WhereBuilder;
118116
}
119117

120-
public static isColumnRef<T>(instance: any): boolean {
118+
public static isColumnRef(instance: any): boolean {
121119
return instance instanceof ColumnRef;
122120
}
123121

124-
public static isPlanRef<T>(instance: any): boolean {
122+
public static isPlanRef(instance: any): boolean {
125123
return instance instanceof PlanRef;
126124
}
127125

src/crud/delete/index.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1 @@
1-
21
export * from "./delete";

src/crud/insert/index.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1 @@
1-
21
export * from "./insert";

src/crud/projection-case.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import { BuilderCompiled } from "../core/builder-compiled";
22
import { WhereBuilder } from "./where-builder";
33
import { ExpressionOrColumn, Utils, ValueType } from "../core/utils";
4-
import { ExpressionUtils } from "lambda-expression";
54
import { ProjectionCaseWhen } from "./projection-case-when";
65

76
export class ProjectionCase<T> {

src/crud/query/index.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,2 @@
1-
21
export * from "./query";
32
export * from "./query-builder";

src/crud/query/join-compiled.ts

Lines changed: 0 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -10,27 +10,3 @@ export class JoinCompiled {
1010

1111
}
1212
}
13-
14-
// // tslint:disable-next-line:max-classes-per-file
15-
// export class JoinQueryCompiled {
16-
17-
// public hasAlias(alias: string): boolean {
18-
// if (this._alias === alias) {
19-
// return true;
20-
// }
21-
// return false;
22-
// }
23-
24-
// public get alias(): string {
25-
// return this._alias;
26-
// }
27-
28-
// public joins: Array<JoinQueryBuilder<any>> = [];
29-
30-
// constructor(
31-
// private readonly _alias: string,
32-
// public params: ValueType[] = [],
33-
// ) {
34-
35-
// }
36-
// }

0 commit comments

Comments
 (0)