Esempio n. 1
0
 /// <summary>
 ///   Returns the offset position of a string in another string.
 /// <para>
 /// See the <see href="https://docs.fauna.com/fauna/current/api/fql/functions/findstr">FaunaDB FindStr Function</see>
 /// </para>
 /// </summary>
 public static Expr FindStr(Expr expr, Expr find, Expr start = null) =>
 UnescapedObject.With("findstr", expr, "find", find, "start", start);
Esempio n. 2
0
 /// <summary>
 /// Creates a new Get expression.
 /// <para>
 /// See the <see href="https://fauna.com/documentation/queries#read_functions">FaunaDB Read Functions</see>
 /// </para>
 /// </summary>
 public static Expr Get(Expr @ref, Expr ts = null) =>
 UnescapedObject.With("get", @ref, "ts", ts);
Esempio n. 3
0
 /// <summary>
 /// Creates a new Exists expression.
 /// <para>
 /// See the <see href="https://fauna.com/documentation/queries#read_functions">FaunaDB Read Functions</see>
 /// </para>
 /// </summary>
 public static Expr Exists(Expr @ref, Expr ts = null) =>
 UnescapedObject.With("exists", @ref, "ts", ts);
Esempio n. 4
0
 public static Expr Classes(Expr scope = null) =>
 UnescapedObject.With("classes", scope ?? Null());
Esempio n. 5
0
 /// <summary>
 /// Returns the sum of all items.
 /// <para>
 /// See the <see href="https://docs.fauna.com/fauna/current/api/fql/functions/sum">FaunaDB Sum Function</see>
 /// </para>
 /// </summary>
 public static Expr Sum(Expr expr) =>
 UnescapedObject.With("sum", expr);
Esempio n. 6
0
 /// <summary>
 /// <para>
 /// See the <see href="https://docs.fauna.com/fauna/current/api/fql/functions/containsstr">FaunaDB ContainsStr Function</see>
 /// </para>
 /// </summary>
 public static Expr ContainsStr(Expr value, Expr search) =>
 UnescapedObject.With("containsstr", value, "search", search);
Esempio n. 7
0
 /// <summary>
 /// <para>
 /// See the <see href="https://docs.fauna.com/fauna/current/api/fql/functions/regexescape">FaunaDB RegexEscape Function</see>
 /// </para>
 /// </summary>
 public static Expr RegexEscape(Expr value) =>
 UnescapedObject.With("regexescape", value);
Esempio n. 8
0
 /// <summary>
 ///   Returns a string consisting of the value string repeated number times.
 /// <para>
 /// See the <see href="https://docs.fauna.com/fauna/current/api/fql/functions/repeat">FaunaDB Repeat Function</see>
 /// </para>
 /// </summary>
 public static Expr Repeat(Expr expr, Expr number) =>
 UnescapedObject.With("repeat", expr, "number", number);
Esempio n. 9
0
 /// <summary>
 ///   Replaces a string.
 /// <para>
 /// See the <see href="https://docs.fauna.com/fauna/current/api/fql/functions/replacestr">FaunaDB ReplaceStr Function</see>
 /// </para>
 /// </summary>
 public static Expr ReplaceStr(Expr expr, Expr find, Expr replace) =>
 UnescapedObject.With("replacestr", expr, "find", find, "replace", replace);
Esempio n. 10
0
 /// <summary>
 /// Creates a new Role expression.
 /// <para>
 /// See the <see href="https://app.fauna.com/documentation/reference/queryapi#miscellaneous-functions">FaunaDB Miscellaneous Functions</see>
 /// </para>
 /// </summary>
 public static Expr Role(Expr role_name, Expr scope = null) =>
 UnescapedObject.With("role", role_name, "scope", scope);
Esempio n. 11
0
 /// <summary>
 ///   Returns a string consisting of the value string repeated number times.
 /// <para>
 /// See the <see href="https://docs.fauna.com/fauna/current/api/fql/functions/repeat">FaunaDB Repeat Function</see>
 /// </para>
 /// </summary>
 public static Expr Repeat(Expr expr) =>
 UnescapedObject.With("repeat", expr);
Esempio n. 12
0
 /// <summary>
 ///   Returns a string in which all uppercase characters have been replaced by their corresponding lowercase characters.
 /// <para>
 /// See the <see href="https://docs.fauna.com/fauna/current/api/fql/functions/lowercase">FaunaDB LowerCase Function</see>
 /// </para>
 /// </summary>
 public static Expr LowerCase(Expr expr) =>
 UnescapedObject.With("lowercase", expr);
Esempio n. 13
0
 /// <summary>
 ///   Returns the number of code points in the string.
 /// <para>
 /// See the <see href="https://docs.fauna.com/fauna/current/api/fql/functions/length">FaunaDB Length Function</see>
 /// </para>
 /// </summary>
 public static Expr Length(Expr expr) =>
 UnescapedObject.With("length", expr);
Esempio n. 14
0
 /// <summary>
 ///   Returns an array of up to 1024 objects describing where the pattern is found in the search string.
 /// <para>
 /// See the <see href="https://docs.fauna.com/fauna/current/api/fql/functions/findstrregex">FaunaDB FindStrRegex Function</see>
 /// </para>
 /// </summary>
 public static Expr FindStrRegex(Expr expr, Expr pattern, Expr start = null, Expr numResults = null) =>
 UnescapedObject.With("findstrregex", expr, "pattern", pattern, "start", start, "num_results", numResults);
Esempio n. 15
0
 /// <summary>
 /// See the <see href="https://docs.fauna.com/fauna/current/api/fql/functions/startswith">FaunaDB StartsWith Function</see>
 /// </summary>
 public static Expr StartsWith(Expr value, Expr search) =>
 UnescapedObject.With("startswith", value, "search", search);
Esempio n. 16
0
 /// <summary>
 ///   Replaces all the occurrences (or the first one) of find pattern substituted with replace string.
 /// <para>
 /// See the <see href="https://docs.fauna.com/fauna/current/api/fql/functions/replacestrregex">FaunaDB Length Function</see>
 /// </para>
 /// </summary>
 public static Expr ReplaceStrRegex(Expr expr, Expr pattern, Expr replace, Expr first = null) =>
 UnescapedObject.With("replacestrregex", expr, "pattern", pattern, "replace", replace, "first", first);
Esempio n. 17
0
 /// <summary>
 /// See the <see href="https://docs.fauna.com/fauna/current/api/fql/functions/endswith">FaunaDB EndsWith Function</see>
 /// </summary>
 public static Expr EndsWith(Expr value, Expr search) =>
 UnescapedObject.With("endswith", value, "search", search);
Esempio n. 18
0
 /// <summary>
 ///   Replaces a string inside.
 /// <para>
 /// See the <see href="https://docs.fauna.com/fauna/current/api/fql/functions/space">FaunaDB Space Function</see>
 /// </para>
 /// </summary>
 public static Expr Space(Expr count) =>
 UnescapedObject.With("space", count);
Esempio n. 19
0
 /// <summary>
 /// <para>
 /// See the <see href="https://docs.fauna.com/fauna/current/api/fql/functions/containsstrregex">FaunaDB ContainsStrRegex Function</see>
 /// </para>
 /// </summary>
 public static Expr ContainsStrRegex(Expr value, Expr pattern) =>
 UnescapedObject.With("containsstrregex", value, "pattern", pattern);
Esempio n. 20
0
 /// <summary>
 ///   Returns a portion of the string.
 /// <para>
 /// See the <see href="https://docs.fauna.com/fauna/current/api/fql/functions/substring">FaunaDB SubString Function</see>
 /// </para>
 /// </summary>
 public static Expr SubString(Expr expr, Expr start = null, Expr length = null) =>
 UnescapedObject.With("substring", expr, "start", start, "length", length);
Esempio n. 21
0
 /// <summary>
 /// <para>
 /// See the <see href="https://docs.fauna.com/fauna/current/api/fql/functions/documents">FaunaDB Documents Function</see>
 /// </para>
 /// </summary>
 public static Expr Documents(Expr collection) =>
 UnescapedObject.With("documents", collection);
Esempio n. 22
0
 /// <summary>
 ///   Returns a string which has the first letter of each word capitalized.
 /// <para>
 /// See the <see href="https://docs.fauna.com/fauna/current/api/fql/functions/titlecase">FaunaDB TitleCase Function</see>
 /// </para>
 /// </summary>
 public static Expr TitleCase(Expr expr) =>
 UnescapedObject.With("titlecase", expr);
Esempio n. 23
0
 /// <summary>
 /// Returns the number of items that exist in the array or set
 /// <para>
 /// See the <see href="https://docs.fauna.com/fauna/current/api/fql/functions/count">FaunaDB Count Function</see>
 /// </para>
 /// </summary>
 public static Expr Count(Expr expr) =>
 UnescapedObject.With("count", expr);
Esempio n. 24
0
 /// <summary>
 ///   Returns a string which has both the leading and trailing white spaces, tabs, and new lines removed.
 /// <para>
 /// See the <see href="https://docs.fauna.com/fauna/current/api/fql/functions/trim">FaunaDB Trim Function</see>
 /// </para>
 /// </summary>
 public static Expr Trim(Expr expr) =>
 UnescapedObject.With("trim", expr);
Esempio n. 25
0
 /// <summary>
 /// Returns the average value of the items.
 /// <para>
 /// See the <see href="https://docs.fauna.com/fauna/current/api/fql/functions/mean">FaunaDB Mean Function</see>
 /// </para>
 /// </summary>
 public static Expr Mean(Expr expr) =>
 UnescapedObject.With("mean", expr);
Esempio n. 26
0
 /// <summary>
 ///   Returns a string which has all lowercase characters in the string replaced by their corresponding uppercase characters.
 /// <para>
 /// See the <see href="https://docs.fauna.com/fauna/current/api/fql/functions/uppercase">FaunaDB UpperCase Function</see>
 /// </para>
 /// </summary>
 public static Expr UpperCase(Expr expr) =>
 UnescapedObject.With("uppercase", expr);
Esempio n. 27
0
 /// <summary>
 /// Creates a new KeyFromSecret expression.
 /// <para>
 /// See the <see href="https://fauna.com/documentation/queries#read_functions">FaunaDB Read Functions</see>
 /// </para>
 /// </summary>
 public static Expr KeyFromSecret(Expr secret) =>
 UnescapedObject.With("key_from_secret", secret);
Esempio n. 28
0
 /// <summary>
 /// Returns an internal reference to collections object. Useful to paginate over all classes of a given scope database.
 /// <para>
 /// See the <see href="https://docs.fauna.com/fauna/current/api/fql/functions/collections">FaunaDB Collections</see>
 /// </para>
 /// </summary>
 public static Expr Collections(Expr scope = null) =>
 UnescapedObject.With("collections", scope ?? Null());
Esempio n. 29
0
 /// <summary>
 /// Creates a new Exists expression.
 /// <para>
 /// See the <see href="https://docs.fauna.com/fauna/current/api/fql/functions/reduce">FaunaDB Reduce Function</see>
 /// </para>
 /// </summary>
 public static Expr Reduce(Expr lambda, Expr initial, Expr collection) =>
 UnescapedObject.With("reduce", lambda, "initial", initial, "collection", collection);
Esempio n. 30
0
 /// <summary>
 /// Creates a new Trunc expression.
 /// <para>
 /// See the <see href="https://docs.fauna.com/fauna/current/api/fql/functions/trunc">FaunaDB Trunc Function</see>
 /// </para>
 /// </summary>
 public static Expr Trunc(Expr expr, Expr precision = null) =>
 UnescapedObject.With("trunc", expr, "precision", precision);