Skip to content

Commit 09a0396

Browse files
committed
ajustes
1 parent 76cfcf7 commit 09a0396

3 files changed

Lines changed: 2 additions & 18 deletions

File tree

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@
1212
"publish-npm": "tsc & npm publish"
1313
},
1414
"dependencies": {
15-
"moment": "2.22.0",
16-
"lambda-expression": "0.1.2"
15+
"moment": ">=2.22.0",
16+
"lambda-expression": ">=0.1.2"
1717
},
1818
"devDependencies": {
1919
"@types/chai": "^4.1.1",

src/crud/query/query-builder-base.ts

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@ export abstract class QueryBuilderBase<T, TQuery extends QueryBuilderBase<T, TQu
2424
implements QueryBuilderBaseContract<T, QueryBuilderBase<T, TQuery>> {
2525

2626
protected _limit: BuilderCompiled = new BuilderCompiled();
27-
// protected _offset: BuilderCompiled = new BuilderCompiled();
2827
protected _orderBy: string = "";
2928
protected _groupBy: string = "";
3029
protected _having: WhereCompiled = {
@@ -151,15 +150,10 @@ export abstract class QueryBuilderBase<T, TQuery extends QueryBuilderBase<T, TQu
151150
projectionCallback(instanceProjection);
152151
this.compileProjection(instanceProjection.compile());
153152
return this._getInstance();
154-
// return this.select(projectionCallback);
155153
}
156154

157155
public select(...expressions: Array<ExpressionOrColumn<T>>): TQuery {
158156
return this.projection(projection => projection.columns(...expressions));
159-
// const instanceProjection: ProjectionBuilder<T> = this.createProjectionBuilder();
160-
// instanceProjection.columns(...expressions);
161-
// this.compileProjection(instanceProjection.compile());
162-
// return this._getInstance();
163157
}
164158

165159
public orderBy(expression: ExpressionOrColumn<T>, order: OrderBy = OrderBy.ASC): TQuery {
@@ -218,10 +212,6 @@ export abstract class QueryBuilderBase<T, TQuery extends QueryBuilderBase<T, TQu
218212
this._limit.builder.length > 0
219213
? `${this.LIMIT}${this._limit.builder}`
220214
: "";
221-
// const buildOffset = () =>
222-
// this._offset.builder.length > 0
223-
// ? `${this.OFFSET}${this._offset.builder}`
224-
// : "";
225215
return this.buildUnions({
226216
params: sqlBase.params.concat(
227217
this._joinParams.concat(
@@ -273,11 +263,6 @@ export abstract class QueryBuilderBase<T, TQuery extends QueryBuilderBase<T, TQu
273263
return queryBase;
274264
}
275265

276-
// In Utils
277-
// private addAlias(column: string): string {
278-
// return `${this._alias}.${column}`;
279-
// }
280-
281266
private compileGroupBy(groupBy: string) {
282267
if (groupBy && groupBy.length) {
283268
this._groupBy += `${this._groupBy.length ? ", " : ""}${groupBy}`;

src/crud/query/query.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,6 @@ export class Query<T> implements QueryCompilable {
8181
}
8282

8383
/**
84-
* @deprecated Use `select`
8584
* @param projectionCallback
8685
*/
8786
public projection(projectionCallback: (projection: ProjectionBuilder<T>) => void): Query<T> {

0 commit comments

Comments
 (0)