public static GremlinQuery Sack(this GremlinQuery queryBase, SackTypes type)
 {
     return(new ComposedGremlinQuery(queryBase, $".sack({type.ToString().ToLower()})"));
 }
 public static GremlinQuery To(this GremlinQuery queryBase, string key)
 {
     return(new ComposedGremlinQuery(queryBase, $".to('{key}')"));
 }
 public static GremlinQuery By(this GremlinQuery queryBase, string name)
 {
     return(new ComposedGremlinQuery(queryBase, $".by('{name}')"));
 }
Example #4
0
 public static GremlinQuery Barrier(this GremlinQuery queryBase)
 {
     return(new ComposedGremlinQuery(queryBase, ".barrier()"));
 }
 public static GremlinQuery Store(this GremlinQuery queryBase, string value)
 {
     return(new ComposedGremlinQuery(queryBase, $".store('{value}')"));
 }
Example #6
0
 public static GremlinQuery Is(this GremlinQuery queryBase, int value)
 {
     return(new ComposedGremlinQuery(queryBase, $".is({queryBase.ComposeParameter(value)})"));
 }
Example #7
0
 public static GremlinQuery Cap(this GremlinQuery queryBase, params string[] values)
 {
     return(queryBase.Params("cap", values));
 }
Example #8
0
 internal static GremlinQuery Params(this GremlinQuery queryBase, string name, params long[] values)
 {
     return(new ComposedGremlinQuery(queryBase, $".{name}({string.Join(",", values)})"));
 }
Example #9
0
 internal static GremlinQuery Params(this GremlinQuery queryBase, string name, params decimal[] values)
 {
     return(new ComposedGremlinQuery(queryBase, $".{name}({string.Join(",", values.Select(s=>s.ToString(CultureInfo.InvariantCulture)))})"));
 }
 public static GremlinQuery ValueMap(this GremlinQuery queryBase, bool inclueAll, params string[] names)
 {
     return(new ComposedGremlinQuery(queryBase, $".valueMap({inclueAll.ToString().ToLower()},{string.Join(",", names.Select(s => $"'{s}'"))})"));
 }
 public static GremlinQuery PropertiesMap(this GremlinQuery queryBase, params string[] names)
 {
     return(new ComposedGremlinQuery(queryBase, $".propertiesMap({string.Join(",", names.Select(s => $"{queryBase.ComposeParameter(s)}"))})"));
 }
 public static GremlinQuery ValueMap(this GremlinQuery queryBase, params string[] names)
 {
     return(queryBase.Params("valueMap", names));
 }
 public static GremlinQuery ValueMap(this GremlinQuery queryBase, bool inclueAll)
 {
     return(new ComposedGremlinQuery(queryBase, $".valueMap({queryBase.ComposeParameter(inclueAll)})"));
 }
 public static GremlinQuery ValueMap(this GremlinQuery queryBase)
 {
     return(new ComposedGremlinQuery(queryBase, $".valueMap()"));
 }
Example #15
0
 public static GremlinQuery And(this GremlinQuery queryBase)
 {
     return(new ComposedGremlinQuery(queryBase, "and()"));
 }
Example #16
0
 public static GremlinQuery HasLabel(this GremlinQuery queryBase, params string[] labels)
 {
     return(queryBase.Params("hasLabel", labels));
 }
Example #17
0
 public static GremlinQuery Optional(this GremlinQuery queryBase, Func <PredicateGremlinQuery, GremlinQuery> expression)
 {
     return(new LambdaComposedGremlinQuery(queryBase, "optional({0})", query => expression.Invoke(new PredicateGremlinQuery(query)).CompileQuery()));
 }
Example #18
0
 public static GremlinQuery HasKey(this GremlinQuery queryBase, params string[] keys)
 {
     return(queryBase.Params("hasKey", keys));
 }
Example #19
0
 /// <summary>
 ///     Not supported by all gremlin implementations
 /// </summary>
 /// <param name="queryBase"></param>
 /// <returns></returns>
 public static GremlinQuery Explain(this GremlinQuery queryBase)
 {
     return(new ComposedGremlinQuery(queryBase, ".explain()"));
 }
Example #20
0
 public static GremlinQuery HasId(this GremlinQuery queryBase, params string[] ids)
 {
     return(queryBase.Params("hasId", ids));
 }
Example #21
0
 internal static GremlinQuery Params(this GremlinQuery queryBase, string name, params bool[] values)
 {
     return(new ComposedGremlinQuery(queryBase,
                                     $".{name}({string.Join(",", values.Select(s => queryBase.ComposeParameter(s)))})"));
 }
Example #22
0
 public static GremlinQuery HasValue(this GremlinQuery queryBase, params string[] values)
 {
     return(queryBase.Params("hasValue", values));
 }
 public static GremlinQuery Aggregate(this GremlinQuery queryBase, string value)
 {
     return(new ComposedGremlinQuery(queryBase, $".aggregate('{value}')"));
 }
Example #24
0
 public static GremlinQuery HasNot(this GremlinQuery queryBase, string key)
 {
     return(new ComposedGremlinQuery(queryBase, $"hasNot({queryBase.ComposeParameter(key)})"));
 }
 public static GremlinQuery By(this GremlinQuery queryBase, string name, OrderingTypes ordering)
 {
     return(new ComposedGremlinQuery(queryBase, $".by('{name}',{ordering.ToString().ToLower()})"));
 }
Example #26
0
 public static GremlinQuery Has(this GremlinQuery queryBase, string label, string key, Func <PredicateGremlinQuery, GremlinQuery> expression)
 {
     return(new ComposedGremlinQuery(queryBase, $"has({queryBase.ComposeParameter(label)},{queryBase.ComposeParameter(key)},{expression.Invoke(new PredicateGremlinQuery(queryBase))})"));
 }
 public static GremlinQuery By(this GremlinQuery queryBase)
 {
     return(new ComposedGremlinQuery(queryBase, $".by()"));
 }
Example #28
0
 public static GremlinQuery Has(this GremlinQuery queryBase, string label, string key, string value)
 {
     return(new ComposedGremlinQuery(queryBase, $"has({queryBase.ComposeParameter(label)},{queryBase.ComposeParameter(key)},{queryBase.ComposeParameter(value)})"));
 }
 public static GremlinQuery By(this GremlinQuery queryBase, Func <GremlinQuery, GremlinQuery> inner)
 {
     return(new LambdaComposedGremlinQuery(queryBase, ".by('{0}')", query => inner.Invoke(new PredicateGremlinQuery(query._connector))));
 }
 public static GremlinQuery Values(this GremlinQuery queryBase, string name)
 {
     return(new ComposedGremlinQuery(queryBase, $".values({queryBase.ComposeParameter(name)})"));
 }