コード例 #1
0
 public AqlForOperation(
     string variableName,
     AqlExpression collectionExpression
     )
 {
     VariableName         = variableName;
     CollectionExpression = collectionExpression;
 }
コード例 #2
0
        public AqlRemoveOperation(
            AqlExpression keyExpression,
            string collectionName,
            JsonObject options = null
            )
        {
            ArangoUtils.ValidateCollectionName(collectionName);

            KeyExpression  = keyExpression;
            CollectionName = collectionName;
            Options        = options ?? new JsonObject();
        }
コード例 #3
0
        public AqlInsertOperation(
            AqlExpression expression,
            string collectionName,
            JsonObject options = null
            )
        {
            ArangoUtils.ValidateCollectionName(collectionName);

            Expression     = expression;
            CollectionName = collectionName;
            Options        = options ?? new JsonObject();
        }
コード例 #4
0
        public AqlQuery AddReturnOperation(AqlExpression e)
        {
            if (operations.Any(o => o is AqlReturnOperation))
            {
                throw new InvalidQueryException(
                          "Query already contains a RETURN operation."
                          );
            }

            ValidateParametersCanBeResolved(e.Parameters);
            operations.Add(new AqlReturnOperation(e));
            return(this);
        }
コード例 #5
0
 public AqlRemoveOperationBuilder AddRemoveOperation(AqlExpression e)
 {
     ValidateParametersCanBeResolved(e.Parameters);
     return(new AqlRemoveOperationBuilder(this, builder => {
         variables.Add("OLD");
         operations.Add(
             new AqlRemoveOperation(
                 e,
                 builder.CollectionName,
                 builder.Options
                 )
             );
     }));
 }
コード例 #6
0
 public AqlReplaceOperationBuilder AddReplaceOperation(AqlExpression e)
 {
     ValidateParametersCanBeResolved(e.Parameters);
     return(new AqlReplaceOperationBuilder(this, builder => {
         variables.Add("NEW");
         variables.Add("OLD");
         if (builder.WithExpression != null)
         {
             ValidateParametersCanBeResolved(
                 builder.WithExpression.Parameters
                 );
         }
         operations.Add(
             new AqlReplaceOperation(
                 e,
                 builder.WithExpression,
                 builder.CollectionName,
                 builder.Options
                 )
             );
     }));
 }
コード例 #7
0
 public AqlFilterOperation(AqlExpression expression)
 {
     Expression = expression;
 }
コード例 #8
0
 public AqlReturnOperation(AqlExpression expression)
 {
     Expression = expression;
 }
コード例 #9
0
 protected AqlForOperationBuilder InRawExpression(AqlExpression e)
 {
     IsTraversal          = false;
     CollectionExpression = e;
     return(this);
 }
コード例 #10
0
 public AqlReplaceOperationBuilder WithRawExpression(AqlExpression e)
 {
     WithExpression = e;
     return(this);
 }