Exemplo n.º 1
0
        public bool VisitExprFunctionName(ExprFunctionName expr, TCtx arg)
        {
            var res = this.Visit(expr, "FunctionName", arg, out var argOut);

            this.VisitPlainProperty("BuiltIn", expr.BuiltIn, argOut);
            this.VisitPlainProperty("Name", expr.Name, argOut);
            this._visitor.EndVisitExpr(expr, arg);
            return(res);
        }
Exemplo n.º 2
0
 public bool VisitExprFunctionName(ExprFunctionName exprFunctionName, IExpr?parent)
 {
     if (exprFunctionName.BuiltIn)
     {
         SqlInjectionChecker.AssertValidBuildInFunctionName(exprFunctionName.Name);
         this.Builder.Append(exprFunctionName.Name);
     }
     else
     {
         this.AppendName(exprFunctionName.Name);
     }
     return(true);
 }
Exemplo n.º 3
0
 //CodeGenStart
 public static ExprAggregateFunction WithName(this ExprAggregateFunction original, ExprFunctionName newName)
 => new ExprAggregateFunction(name: newName, expression: original.Expression, isDistinct: original.IsDistinct);
Exemplo n.º 4
0
 public static ExprScalarFunction WithName(this ExprScalarFunction original, ExprFunctionName newName)
 => new ExprScalarFunction(schema: original.Schema, name: newName, arguments: original.Arguments);
Exemplo n.º 5
0
 public static ExprFunctionName WithName(this ExprFunctionName original, String newName)
 => new ExprFunctionName(builtIn: original.BuiltIn, name: newName);
Exemplo n.º 6
0
 public static ExprFunctionName WithBuiltIn(this ExprFunctionName original, Boolean newBuiltIn)
 => new ExprFunctionName(builtIn: newBuiltIn, name: original.Name);
Exemplo n.º 7
0
 public static ExprAnalyticFunction WithName(this ExprAnalyticFunction original, ExprFunctionName newName)
 => new ExprAnalyticFunction(name: newName, arguments: original.Arguments, over: original.Over);
Exemplo n.º 8
0
 public ExprScalarFunction(ExprDbSchema?schema, ExprFunctionName name, IReadOnlyList <ExprValue>?arguments)
 {
     this.Schema    = schema;
     this.Name      = name;
     this.Arguments = arguments;
 }
Exemplo n.º 9
0
 public ExprAggregateFunction(bool isDistinct, ExprFunctionName name, ExprValue expression)
 {
     this.IsDistinct = isDistinct;
     this.Name       = name;
     this.Expression = expression;
 }
Exemplo n.º 10
0
 public ExprAnalyticFunction(ExprFunctionName name, IReadOnlyList <ExprValue>?arguments, ExprOver over)
 {
     this.Name      = name;
     this.Arguments = arguments;
     this.Over      = over;
 }