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}')")); }
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}')")); }
public static GremlinQuery Is(this GremlinQuery queryBase, int value) { return(new ComposedGremlinQuery(queryBase, $".is({queryBase.ComposeParameter(value)})")); }
public static GremlinQuery Cap(this GremlinQuery queryBase, params string[] values) { return(queryBase.Params("cap", values)); }
internal static GremlinQuery Params(this GremlinQuery queryBase, string name, params long[] values) { return(new ComposedGremlinQuery(queryBase, $".{name}({string.Join(",", values)})")); }
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()")); }
public static GremlinQuery And(this GremlinQuery queryBase) { return(new ComposedGremlinQuery(queryBase, "and()")); }
public static GremlinQuery HasLabel(this GremlinQuery queryBase, params string[] labels) { return(queryBase.Params("hasLabel", labels)); }
public static GremlinQuery Optional(this GremlinQuery queryBase, Func <PredicateGremlinQuery, GremlinQuery> expression) { return(new LambdaComposedGremlinQuery(queryBase, "optional({0})", query => expression.Invoke(new PredicateGremlinQuery(query)).CompileQuery())); }
public static GremlinQuery HasKey(this GremlinQuery queryBase, params string[] keys) { return(queryBase.Params("hasKey", keys)); }
/// <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()")); }
public static GremlinQuery HasId(this GremlinQuery queryBase, params string[] ids) { return(queryBase.Params("hasId", ids)); }
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)))})")); }
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}')")); }
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()})")); }
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()")); }
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)})")); }