Packages

p

faunadb

query

package query

Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. query
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Type Members

  1. sealed abstract class Action extends AnyRef

    Enumeration for event action types.

  2. case class After (expr: Expr) extends Cursor with Product with Serializable
  3. case class Before (expr: Expr) extends Cursor with Product with Serializable
  4. sealed trait Cursor extends AnyRef

    Helper for pagination cursors

  5. final case class Expr extends AnyVal with Product with Serializable

    A query language expression.

  6. sealed abstract class Normalizer extends AnyRef

    Enumeration for casefold operation.

  7. final case class Path extends AnyVal with Product with Serializable

    Helper for path syntax

  8. class QueryMacros extends AnyRef
  9. sealed abstract class TimeUnit extends AnyRef

    Enumeration for time units.

    Enumeration for time units. Used by https://fauna.com/documentation/queries#time_functions.

Value Members

  1. def Abort(msg: Expr): Expr

    A Abort expression.

  2. def Add(terms: Expr*): Expr

    An Add expression.

  3. def And(terms: Expr*): Expr

    An And expression.

  4. def Append(elems: Expr, collection: Expr): Expr

    An Append expression.

  5. def Arr(elems: Expr*): Expr

    An Array value.

  6. def At(timestamp: Expr, expr: Expr): Expr

    A At expression.

  7. def Call(ref: Expr, arguments: Expr*): Expr

    A Call expression.

  8. def Casefold(term: Expr, normalizer: Expr): Expr
  9. def Casefold(term: Expr, normalizer: Normalizer): Expr
  10. def Casefold(term: Expr): Expr

    A Casefold expression.

  11. def Class(name: Expr, scope: Expr): Expr

    A Class expression.

  12. def Class(name: Expr): Expr

    A Class expression.

  13. def Classes(scope: Expr = NullV): Expr

    Native reference to all classes

  14. def Concat(term: Expr, separator: Expr): Expr
  15. def Concat(term: Expr): Expr

    A Concat expression.

  16. def Contains(path: Expr, in: Expr): Expr

    A Contains expression.

  17. def Create(ref: Expr, params: Expr): Expr

    A Create expression.

  18. def CreateClass(params: Expr): Expr

    A Create Class expression.

    A Create Class expression.

    Reference: https://fauna.com/documentation/queries#write-functions

  19. def CreateDatabase(params: Expr): Expr

    A Create Database expression.

    A Create Database expression.

    Reference: https://fauna.com/documentation/queries#write-functions

  20. def CreateFunction(params: Expr): Expr

    A Create Function expression.

    A Create Function expression.

    Reference: https://fauna.com/documentation/queries#write-functions

  21. def CreateIndex(params: Expr): Expr

    A Create Index expression.

    A Create Index expression.

    Reference: https://fauna.com/documentation/queries#write-functions

  22. def CreateKey(params: Expr): Expr

    A Create Key expression.

  23. def Credentials(scope: Expr = NullV): Expr

    Native reference to all credentials

  24. def Database(name: Expr, scope: Expr): Expr

    A Database expression.

  25. def Database(name: Expr): Expr

    A Database expression.

  26. def Databases(scope: Expr = NullV): Expr

    Native reference to all databases

  27. def Date(str: Expr): Expr

    A Date expression.

  28. def Delete(ref: Expr): Expr

    A Delete expression.

  29. def Difference(sets: Expr*): Expr

    A Difference set.

  30. def Distinct(set: Expr): Expr

    A Distinct set.

  31. def Divide(terms: Expr*): Expr

    A Divide expression.

  32. def Do(exprs: Expr*): Expr

    A Do expression.

  33. def Drop(num: Expr, collection: Expr): Expr

    A Drop expression.

  34. def Epoch(num: Expr, unit: Expr): Expr
  35. def Epoch(num: Expr, unit: TimeUnit): Expr

    An Epoch expression.

  36. def Equals(terms: Expr*): Expr

    An Equals expression.

  37. def Events(refSet: Expr): Expr

    A Events set.

  38. def Exists(ref: Expr, ts: Expr): Expr
  39. def Exists(ref: Expr): Expr

    An Exists expression.

  40. def Filter(collection: Expr, lambda: Expr): Expr

    A Filter expression.

  41. def Foreach(collection: Expr, lambda: Expr): Expr

    A Foreach expression.

  42. def Function(name: Expr, scope: Expr): Expr

    A Function expression.

  43. def Function(name: Expr): Expr

    A Function expression.

  44. def Functions(scope: Expr = NullV): Expr

    Native reference to all functions

  45. def GT(terms: Expr*): Expr

    A GT expression.

  46. def GTE(terms: Expr*): Expr

    A GTE expression.

  47. def Get(resource: Expr, ts: Expr): Expr
  48. def Get(resource: Expr): Expr

    A Get expression.

  49. def HasIdentity(): Expr

    An HasIdentity expression.

    An HasIdentity expression.

    Reference: https://fauna.com/documentation/queries#authentication

  50. def Identify(ref: Expr, password: Expr): Expr

    An Identify expression.

  51. def Identity(): Expr

    An Identity expression.

  52. def If(pred: Expr, then: Expr, else: Expr): Expr

    An If expression.

  53. def Index(name: Expr, scope: Expr): Expr

    An Index expression.

  54. def Index(name: Expr): Expr

    An Index expression.

  55. def Indexes(scope: Expr = NullV): Expr

    Native reference to all indexes

  56. def Insert(ref: Expr, ts: Expr, action: Expr, params: Expr): Expr
  57. def Insert(ref: Expr, ts: Expr, action: Action, params: Expr): Expr

    An Insert expression.

  58. def Intersection(sets: Expr*): Expr

    An Intersection set.

    An Intersection set.

    Reference: https://fauna.com/documentation/queries#sets

  59. def IsEmpty(collection: Expr): Expr

    A IsEmpty expression.

  60. def IsNonEmpty(collection: Expr): Expr

    A IsNonEmpty expression.

    A IsNonEmpty expression.

    Reference: https://fauna.com/documentation/queries#collections

  61. def Join(source: Expr, with: Expr): Expr

    A Join set.

  62. def KeyFromSecret(secret: Expr): Expr

    A KeyFromSecret expression.

    A KeyFromSecret expression.

    Reference: https://fauna.com/documentation/queries#read-functions

  63. def Keys(scope: Expr = NullV): Expr

    Native reference to all keys

  64. def LT(terms: Expr*): Expr

    A LT expression.

  65. def LTE(terms: Expr*): Expr

    A LTE expression.

  66. def Lambda(lambda: Expr, expr: Expr): Expr
  67. macro def Lambda(fn: (Expr, Expr, Expr, Expr, Expr, Expr, Expr, Expr, Expr, Expr) ⇒ Expr): Expr
  68. macro def Lambda(fn: (Expr, Expr, Expr, Expr, Expr, Expr, Expr, Expr, Expr) ⇒ Expr): Expr
  69. macro def Lambda(fn: (Expr, Expr, Expr, Expr, Expr, Expr, Expr, Expr) ⇒ Expr): Expr
  70. macro def Lambda(fn: (Expr, Expr, Expr, Expr, Expr, Expr, Expr) ⇒ Expr): Expr
  71. macro def Lambda(fn: (Expr, Expr, Expr, Expr, Expr, Expr) ⇒ Expr): Expr
  72. macro def Lambda(fn: (Expr, Expr, Expr, Expr, Expr) ⇒ Expr): Expr
  73. macro def Lambda(fn: (Expr, Expr, Expr, Expr) ⇒ Expr): Expr
  74. macro def Lambda(fn: (Expr, Expr, Expr) ⇒ Expr): Expr
  75. macro def Lambda(fn: (Expr, Expr) ⇒ Expr): Expr
  76. macro def Lambda(fn: (Expr) ⇒ Expr): Expr

    A Lambda expression.

  77. def Let(bindings: Seq[(String, Expr)], in: Expr): Expr
  78. macro def Let(block: ⇒ Any): Expr

    A Let expression.

  79. def Login(ref: Expr, params: Expr): Expr

    A Login expression.

  80. def Logout(invalidateAll: Expr): Expr

    A Logout expression.

  81. def Map(collection: Expr, lambda: Expr): Expr

    A Map expression.

  82. def Match(index: Expr, terms: Expr*): Expr

    A Match set.

  83. def Modulo(terms: Expr*): Expr

    A Modulo expression.

  84. def Multiply(terms: Expr*): Expr

    A Multiply expression.

  85. def NGram(terms: Expr, min: Expr = NullV, max: Expr = NullV): Expr

    A NGram expression.

  86. def NewId(): Expr

    A New Id expression.

  87. def Not(term: Expr): Expr

    A Not expression.

  88. def Null(): Expr

    A Null value.

  89. def Obj(pairs: (String, Expr)*): Expr

    An Object value.

  90. def Or(terms: Expr*): Expr

    An Or expression.

  91. def Paginate(resource: Expr, cursor: Cursor = NoCursor, ts: Expr = Expr(NullV), size: Expr = Expr(NullV), sources: Expr = Expr(NullV), events: Expr = Expr(NullV)): Expr

    A Paginate expression.

  92. def Prepend(elems: Expr, collection: Expr): Expr

    A Prepend expression.

  93. def Query(lambda: Expr): Expr
  94. macro def Query(fn: (Expr, Expr, Expr, Expr, Expr, Expr, Expr, Expr, Expr, Expr) ⇒ Expr): Expr
  95. macro def Query(fn: (Expr, Expr, Expr, Expr, Expr, Expr, Expr, Expr, Expr) ⇒ Expr): Expr
  96. macro def Query(fn: (Expr, Expr, Expr, Expr, Expr, Expr, Expr, Expr) ⇒ Expr): Expr
  97. macro def Query(fn: (Expr, Expr, Expr, Expr, Expr, Expr, Expr) ⇒ Expr): Expr
  98. macro def Query(fn: (Expr, Expr, Expr, Expr, Expr, Expr) ⇒ Expr): Expr
  99. macro def Query(fn: (Expr, Expr, Expr, Expr, Expr) ⇒ Expr): Expr
  100. macro def Query(fn: (Expr, Expr, Expr, Expr) ⇒ Expr): Expr
  101. macro def Query(fn: (Expr, Expr, Expr) ⇒ Expr): Expr
  102. macro def Query(fn: (Expr, Expr) ⇒ Expr): Expr
  103. macro def Query(fn: (Expr) ⇒ Expr): Expr

    A Query expression.

  104. def Ref(classRef: Expr, id: Expr): Expr
  105. def Ref(value: String): Expr

    Creates a RefV value.

    Creates a RefV value. The string "classes/widget/123" will be equivalent to:

    RefV("123", RefV("widget", Native.Classes))

    Reference: https://fauna.com/documentation/queries#values

  106. def Remove(ref: Expr, ts: Expr, action: Expr): Expr
  107. def Remove(ref: Expr, ts: Expr, action: Action): Expr

    A Remove expression.

  108. def Replace(ref: Expr, params: Expr): Expr

    A Replace expression.

  109. def Select(path: Expr, from: Expr, default: Expr): Expr
  110. def Select(path: Expr, from: Expr): Expr

    A Select expression.

  111. def SelectAll(path: Expr, from: Expr, default: Expr): Expr
  112. def SelectAll(path: Expr, from: Expr): Expr

    A SelectAll expression.

  113. def Singleton(ref: Expr): Expr

    A Singleton set.

  114. def Subtract(terms: Expr*): Expr

    A Subtract expression.

  115. def Take(num: Expr, collection: Expr): Expr

    A Take expression.

  116. def Time(str: Expr): Expr

    A Time expression.

  117. def ToDate(term: Expr): Expr

    Casts an expression to a data value, if possible.

  118. def ToNumber(term: Expr): Expr

    Casts an expression to a numeric value, if possible.

  119. def ToString(term: Expr): Expr

    Casts an expression to a string value, if possible.

  120. def ToTime(term: Expr): Expr

    Casts an expression to a time value, if possible.

  121. def Tokens(scope: Expr = NullV): Expr

    Native reference to all tokens

  122. def Union(sets: Expr*): Expr

    A Union set.

  123. def Update(ref: Expr, params: Expr): Expr

    An Update expression.

  124. def Var(name: String): Expr

    A Var expression.

  125. implicit def intToPath(int: Int): Path
  126. implicit def pathToExpr(path: Path): Expr
  127. implicit def strToPath(str: String): Path
  128. object Action
  129. object Expr extends Serializable
  130. object NoCursor extends Cursor with Product with Serializable
  131. object Normalizer
  132. object TimeUnit

Deprecated Value Members

  1. def NextId(): Expr

    A Next Id expression.

    Annotations
    @deprecated
    Deprecated

    use NewId instead

Inherited from AnyRef

Inherited from Any

Ungrouped