public AqlForOperation( string variableName, AqlExpression collectionExpression ) { VariableName = variableName; CollectionExpression = collectionExpression; }
public AqlRemoveOperation( AqlExpression keyExpression, string collectionName, JsonObject options = null ) { ArangoUtils.ValidateCollectionName(collectionName); KeyExpression = keyExpression; CollectionName = collectionName; Options = options ?? new JsonObject(); }
public AqlInsertOperation( AqlExpression expression, string collectionName, JsonObject options = null ) { ArangoUtils.ValidateCollectionName(collectionName); Expression = expression; CollectionName = collectionName; Options = options ?? new JsonObject(); }
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); }
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 ) ); })); }
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 ) ); })); }
public AqlFilterOperation(AqlExpression expression) { Expression = expression; }
public AqlReturnOperation(AqlExpression expression) { Expression = expression; }
protected AqlForOperationBuilder InRawExpression(AqlExpression e) { IsTraversal = false; CollectionExpression = e; return(this); }
public AqlReplaceOperationBuilder WithRawExpression(AqlExpression e) { WithExpression = e; return(this); }