Esempio n. 1
0
        public bool VisitExprInsertValueRow(ExprInsertValueRow expr, TCtx arg)
        {
            var res = this.Visit(expr, "InsertValueRow", arg, out var argOut) && this.Accept("Items", expr.Items, argOut);

            this._visitor.EndVisitExpr(expr, arg);
            return(res);
        }
Esempio n. 2
0
        public bool VisitExprInsertValueRow(ExprInsertValueRow exprInsertValueRow, IExpr?arg)
        {
            if (exprInsertValueRow.Items == null || exprInsertValueRow.Items.Count < 1)
            {
                throw new SqExpressException("Row value should have at least one column");
            }

            this.AcceptListComaSeparatedPar('(', exprInsertValueRow.Items, ')', exprInsertValueRow);

            return(true);
        }
Esempio n. 3
0
 public static ExprInsertValueRow WithItems(this ExprInsertValueRow original, IReadOnlyList <IExprAssigning> newItems)
 => new ExprInsertValueRow(items: newItems);