Beispiel #1
0
 public static ExprIsNull IsNull(ExprValue value) => new ExprIsNull(value, not: false);
Beispiel #2
0
 public static ExprAggregateFunction Min(ExprValue expression) => AggregateFunction("MIN", false, expression);
Beispiel #3
0
 public static ExprAggregateFunction MaxDistinct(ExprValue expression) => AggregateFunction("MAX", true, expression);
Beispiel #4
0
 public static ExprScalarFunction ScalarFunctionDbCustom(string databaseName, string schemaName, string name, ExprValue argument1, params ExprValue[] rest)
 => new ExprScalarFunction(new ExprDbSchema(new ExprDatabaseName(databaseName), new ExprSchemaName(schemaName)), new ExprFunctionName(false, name), Helpers.Combine(argument1, rest));
Beispiel #5
0
 public static ExprAggregateFunction CountDistinct(ExprValue expression) => AggregateFunction("COUNT", true, expression);
Beispiel #6
0
 public static AnalyticFunctionOverPartitionsFrameBuilder AnalyticFunctionFrame(string name, ExprValue argument, params ExprValue[] rest)
 => new AnalyticFunctionOverPartitionsFrameBuilder(name, Helpers.Combine(argument, rest));
Beispiel #7
0
 public static FrameBorder Following(ExprValue value)
 => new FrameBorder(new ExprValueFrameBorder(value, FrameBorderDirection.Following));
 public static IQuerySpecificationBuilderInitial SelectTopDistinct(ExprValue top, IReadOnlyList <IExprSelecting> selection)
 => new QuerySpecificationBuilder(top, true, selection);
 public static IQuerySpecificationBuilderInitial SelectTopDistinct(ExprValue top, SelectingProxy selection, params SelectingProxy[] selections)
 => new QuerySpecificationBuilder(top, true, Helpers.Combine(selection, selections, SelectingProxy.MapSelectionProxy));
Beispiel #10
0
 public static ColumnMetaBuilder DefaultValue(ExprValue defaultValue) => ColumnMetaBuilder.Default.DefaultValue(defaultValue);
 public static IQuerySpecificationBuilderInitial Select(ExprValue selection, params ExprValue[] selections)
 => new QuerySpecificationBuilder(null, false, Helpers.Combine(selection, selections));
Beispiel #12
0
 public static ExprCast Cast(ExprValue expression, ExprType asType)
 => new ExprCast(expression, asType);
Beispiel #13
0
 public static ExprLike Like(ExprValue test, string pattern) => new ExprLike(test, pattern);
Beispiel #14
0
 public static ExprIsNull IsNotNull(ExprValue value) => new ExprIsNull(value, not: true);
Beispiel #15
0
 public static ExprDateAdd DateAdd(DateAddDatePart datePart, int number, ExprValue date)
 => new ExprDateAdd(datePart, number, date);
 public static IQuerySpecificationBuilderInitial SelectTop(int top, ExprValue selection, params ExprValue[] selections)
 => new QuerySpecificationBuilder(Literal(top), false, Helpers.Combine(selection, selections));
Beispiel #17
0
 public AnalyticFunctionOverOrderByFrameBuilder OverPartitionBy(ExprValue item, params ExprValue[] rest)
 => new AnalyticFunctionOverOrderByFrameBuilder(this._name, this._arguments, Helpers.Combine(item, rest));
 public static IQuerySpecificationBuilderInitial SelectTopDistinct(ExprValue top, ExprValue selection, params ExprValue[] selections)
 => new QuerySpecificationBuilder(top, true, Helpers.Combine(selection, selections));
Beispiel #19
0
 public static FrameBorder Preceding(ExprValue value)
 => new FrameBorder(new ExprValueFrameBorder(value, FrameBorderDirection.Preceding));
 public static ExprOrderByItem Asc(ExprValue value) => new ExprOrderByItem(value, false);
Beispiel #21
0
 public static ExprScalarFunction ScalarFunctionSys(string name, ExprValue argument1, params ExprValue[] rest)
 => new ExprScalarFunction(null, new ExprFunctionName(true, name), Helpers.Combine(argument1, rest));
 public static ExprOrderByItem Desc(ExprValue value) => new ExprOrderByItem(value, true);
Beispiel #23
0
 public static ExprAggregateFunction Count(ExprValue expression) => AggregateFunction("COUNT", false, expression);
Beispiel #24
0
        //Known scalar functions

        public static ExprFuncIsNull IsNull(ExprValue test, ExprValue alt) => new ExprFuncIsNull(test, alt);
Beispiel #25
0
 public static ExprAnalyticFunction CountOver(ExprValue expression, params ExprValue[] partitions) => AnalyticFunction("COUNT", new [] { expression }, new ExprOver(partitions.Length == 0 ? null : partitions, null, null));
Beispiel #26
0
 public static ExprAggregateFunction AggregateFunction(string name, bool distinct, ExprValue expression)
 => new ExprAggregateFunction(distinct, new ExprFunctionName(true, name), expression);
Beispiel #27
0
 public static ExprAggregateFunction Max(ExprValue expression) => AggregateFunction("MAX", false, expression);
Beispiel #28
0
 public static ExprFuncCoalesce Coalesce(ExprValue test, ExprValue alt, params ExprValue[] rest)
 => new ExprFuncCoalesce(test, Helpers.Combine(alt, rest));
Beispiel #29
0
 public static ExprAggregateFunction Sum(ExprValue expression) => AggregateFunction("SUM", false, expression);
Beispiel #30
0
 public ExprBooleanGtEq(ExprValue left, ExprValue right)
 {
     this.Left  = left;
     this.Right = right;
 }