@@ -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 } ` ;
0 commit comments