Example #1
0
 public SelectClause(
     IFromListItem from,
     SelectType distinctType,
     IReadOnlyList <LambdaExpression> distinctOn,
     WindowClauses window,
     LambdaExpression select,
     LambdaExpression where,
     IReadOnlyList <GroupByExpr> groupBy,
     IReadOnlyList <OrderByExpr> orderBy,
     int?limit,
     IReadOnlyList <UnionClause> unions)
 {
     From         = from;
     DistinctType = distinctType;
     DistinctOn   = distinctOn;
     Window       = window;
     Select       = select;
     Where        = where;
     GroupBy      = groupBy;
     OrderBy      = orderBy;
     Limit        = limit;
     Unions       = unions;
 }
Example #2
0
 public SqlWindowBuilder(WindowClauses input, ISqlWindow previous, SqlWindowClause current)
 {
     Input    = input;
     Previous = previous;
     Current  = current;
 }
Example #3
0
 public SelectClause SetWindow(WindowClauses window) => Immutable.Set(this, x => x.Window, window);