Packages

object ZQuery

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

Type Members

  1. final class AccessMPartiallyApplied[R] extends AnyVal
  2. final class AccessPartiallyApplied[R] extends AnyVal
  3. final class ProvideSomeLayer[R0 <: Has[_], -R, +E, +A] extends AnyVal
  4. final class TimeoutTo[-R, +E, +A, +B] extends AnyRef

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. final def absolve[R, E, A](v: ZQuery[R, E, Either[E, A]]): ZQuery[R, E, A]
  5. final def access[R]: AccessPartiallyApplied[R]

    Accesses the environment of the effect.

    Accesses the environment of the effect.

    val portNumber = effect.access(_.config.portNumber)
  6. final def accessM[R]: AccessMPartiallyApplied[R]

    Effectfully accesses the environment of the effect.

  7. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  8. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()
  9. def collectAll[R, E, A, Collection[+Element] <: Iterable[Element]](as: Collection[ZQuery[R, E, A]])(implicit bf: zio.BuildFrom[Collection[ZQuery[R, E, A]], A, Collection[A]]): ZQuery[R, E, Collection[A]]

    Collects a collection of queries into a query returning a collection of their results.

    Collects a collection of queries into a query returning a collection of their results. Requests will be executed sequentially and will be pipelined.

  10. def collectAllBatched[R, E, A, Collection[+Element] <: Iterable[Element]](as: Collection[ZQuery[R, E, A]])(implicit bf: zio.BuildFrom[Collection[ZQuery[R, E, A]], A, Collection[A]]): ZQuery[R, E, Collection[A]]

    Collects a collection of queries into a query returning a collection of their results, batching requests to data sources.

  11. def collectAllPar[R, E, A, Collection[+Element] <: Iterable[Element]](as: Collection[ZQuery[R, E, A]])(implicit bf: zio.BuildFrom[Collection[ZQuery[R, E, A]], A, Collection[A]]): ZQuery[R, E, Collection[A]]

    Collects a collection of queries into a query returning a collection of their results.

    Collects a collection of queries into a query returning a collection of their results. Requests will be executed in parallel and will be batched.

  12. def die(t: ⇒ Throwable): ZQuery[Any, Nothing, Nothing]

    Constructs a query that dies with the specified error.

  13. def environment[R]: ZQuery[R, Nothing, R]

    Accesses the whole environment of the query.

  14. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  15. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  16. def fail[E](error: ⇒ E): ZQuery[Any, E, Nothing]

    Constructs a query that fails with the specified error.

  17. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  18. final def foreach[R, E, A, B](in: NonEmptyChunk[A])(f: (A) ⇒ ZQuery[R, E, B]): ZQuery[R, E, NonEmptyChunk[B]]

    Applies the function f to each element of the NonEmptyChunk[A] and returns the results in a new NonEmptyChunk[B].

    Applies the function f to each element of the NonEmptyChunk[A] and returns the results in a new NonEmptyChunk[B].

    For a parallel version of this method, see foreachPar. If you do not need the results, see foreach_ for a more efficient implementation.

  19. final def foreach[R, E, A, B](in: Option[A])(f: (A) ⇒ ZQuery[R, E, B]): ZQuery[R, E, Option[B]]

    Applies the function f if the argument is non-empty and returns the results in a new Option[B].

  20. def foreach[R, E, Key, Key2, Value, Value2](map: Map[Key, Value])(f: (Key, Value) ⇒ ZQuery[R, E, (Key2, Value2)]): ZQuery[R, E, Map[Key2, Value2]]

    Applies the function f to each element of the Map[Key, Value] and returns the results in a new Map[Key2, Value2].

    Applies the function f to each element of the Map[Key, Value] and returns the results in a new Map[Key2, Value2].

    For a parallel version of this method, see foreachPar. If you do not need the results, see foreach_ for a more efficient implementation.

  21. final def foreach[R, E, A, B](in: Array[A])(f: (A) ⇒ ZQuery[R, E, B])(implicit arg0: ClassTag[B]): ZQuery[R, E, Array[B]]

    Applies the function f to each element of the Array[A] and returns the results in a new Array[B].

    Applies the function f to each element of the Array[A] and returns the results in a new Array[B].

    For a parallel version of this method, see foreachPar. If you do not need the results, see foreach_ for a more efficient implementation.

  22. final def foreach[R, E, A, B](in: Set[A])(f: (A) ⇒ ZQuery[R, E, B]): ZQuery[R, E, Set[B]]

    Applies the function f to each element of the Set[A] and returns the results in a new Set[B].

    Applies the function f to each element of the Set[A] and returns the results in a new Set[B].

    For a parallel version of this method, see foreachPar. If you do not need the results, see foreach_ for a more efficient implementation.

  23. def foreach[R, E, A, B, Collection[+Element] <: Iterable[Element]](as: Collection[A])(f: (A) ⇒ ZQuery[R, E, B])(implicit bf: zio.BuildFrom[Collection[A], B, Collection[B]]): ZQuery[R, E, Collection[B]]

    Performs a query for each element in a collection, collecting the results into a query returning a collection of their results.

    Performs a query for each element in a collection, collecting the results into a query returning a collection of their results. Requests will be executed sequentially and will be pipelined.

  24. final def foreachBatched[R, E, A, B](as: NonEmptyChunk[A])(f: (A) ⇒ ZQuery[R, E, B]): ZQuery[R, E, NonEmptyChunk[B]]

    Performs a query for each element in a NonEmptyChunk, batching requests to data sources and collecting the results into a query returning a collection of their results.

    Performs a query for each element in a NonEmptyChunk, batching requests to data sources and collecting the results into a query returning a collection of their results.

    For a sequential version of this method, see foreach.

  25. def foreachBatched[R, E, Key, Key2, Value, Value2](map: Map[Key, Value])(f: (Key, Value) ⇒ ZQuery[R, E, (Key2, Value2)]): ZQuery[R, E, Map[Key2, Value2]]

    Performs a query for each element in a Map, batching requests to data sources and collecting the results into a query returning a collection of their results.

    Performs a query for each element in a Map, batching requests to data sources and collecting the results into a query returning a collection of their results.

    For a sequential version of this method, see foreach.

  26. final def foreachBatched[R, E, A, B](as: Array[A])(f: (A) ⇒ ZQuery[R, E, B])(implicit arg0: ClassTag[B]): ZQuery[R, E, Array[B]]

    Performs a query for each element in an Array, batching requests to data sources and collecting the results into a query returning a collection of their results.

    Performs a query for each element in an Array, batching requests to data sources and collecting the results into a query returning a collection of their results.

    For a sequential version of this method, see foreach.

  27. final def foreachBatched[R, E, A, B](as: Set[A])(fn: (A) ⇒ ZQuery[R, E, B]): ZQuery[R, E, Set[B]]
  28. def foreachBatched[R, E, A, B, Collection[+Element] <: Iterable[Element]](as: Collection[A])(f: (A) ⇒ ZQuery[R, E, B])(implicit bf: zio.BuildFrom[Collection[A], B, Collection[B]]): ZQuery[R, E, Collection[B]]

    Performs a query for each element in a collection, batching requests to data sources and collecting the results into a query returning a collection of their results.

  29. final def foreachPar[R, E, A, B](as: NonEmptyChunk[A])(fn: (A) ⇒ ZQuery[R, E, B]): ZQuery[R, E, NonEmptyChunk[B]]

    Performs a query for each element in a NonEmptyChunk, collecting the results into a query returning a collection of their results.

    Performs a query for each element in a NonEmptyChunk, collecting the results into a query returning a collection of their results. Requests will be executed in parallel and will be batched.

    For a sequential version of this method, see foreach.

  30. def foreachPar[R, E, Key, Key2, Value, Value2](map: Map[Key, Value])(f: (Key, Value) ⇒ ZQuery[R, E, (Key2, Value2)]): ZQuery[R, E, Map[Key2, Value2]]

    Performs a query for each element in a Map, collecting the results into a query returning a collection of their results.

    Performs a query for each element in a Map, collecting the results into a query returning a collection of their results. Requests will be executed in parallel and will be batched.

    For a sequential version of this method, see foreach.

  31. final def foreachPar[R, E, A, B](as: Array[A])(f: (A) ⇒ ZQuery[R, E, B])(implicit arg0: ClassTag[B]): ZQuery[R, E, Array[B]]

    Performs a query for each element in an Array, collecting the results into a query returning a collection of their results.

    Performs a query for each element in an Array, collecting the results into a query returning a collection of their results. Requests will be executed in parallel and will be batched.

    For a sequential version of this method, see foreach.

  32. final def foreachPar[R, E, A, B](as: Set[A])(fn: (A) ⇒ ZQuery[R, E, B]): ZQuery[R, E, Set[B]]

    Performs a query for each element in a Set, collecting the results into a query returning a collection of their results.

    Performs a query for each element in a Set, collecting the results into a query returning a collection of their results. Requests will be executed in parallel and will be batched.

  33. def foreachPar[R, E, A, B, Collection[+Element] <: Iterable[Element]](as: Collection[A])(f: (A) ⇒ ZQuery[R, E, B])(implicit bf: zio.BuildFrom[Collection[A], B, Collection[B]]): ZQuery[R, E, Collection[B]]

    Performs a query for each element in a collection, collecting the results into a query returning a collection of their results.

    Performs a query for each element in a collection, collecting the results into a query returning a collection of their results. Requests will be executed in parallel and will be batched.

  34. def fromEffect[R, E, A](effect: ZIO[R, E, A]): ZQuery[R, E, A]

    Constructs a query from an effect.

  35. def fromEither[E, A](either: ⇒ Either[E, A]): ZQuery[Any, E, A]

    Constructs a query from an either

  36. def fromOption[A](option: Option[A]): ZQuery[Any, Option[Nothing], A]

    Constructs a query from an option

  37. def fromRequest[R, E, A, B](request: A)(dataSource: DataSource[R, A])(implicit ev: <:<[A, Request[E, B]]): ZQuery[R, E, B]

    Constructs a query from a request and a data source.

    Constructs a query from a request and a data source. Queries will die with a QueryFailure when run if the data source does not provide results for all requests received. Queries must be constructed with fromRequest or one of its variants for optimizations to be applied.

  38. def fromRequestUncached[R, E, A, B](request: A)(dataSource: DataSource[R, A])(implicit ev: <:<[A, Request[E, B]]): ZQuery[R, E, B]

    Constructs a query from a request and a data source but does not apply caching to the query.

  39. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  40. def halt[E](cause: ⇒ Cause[E]): ZQuery[Any, E, Nothing]

    Constructs a query that fails with the specified cause.

  41. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  42. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  43. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  44. val never: ZQuery[Any, Nothing, Nothing]

    Constructs a query that never completes.

  45. val none: ZQuery[Any, Nothing, Option[Nothing]]

    Constructs a query that succeds with the empty value.

  46. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  47. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  48. def partitionM[R, E, A, B](as: Iterable[A])(f: (A) ⇒ ZQuery[R, E, B])(implicit ev: CanFail[E]): ZQuery[R, Nothing, (Iterable[E], Iterable[B])]

    Performs a query for each element in a collection, collecting the results into a collection of failed results and a collection of successful results.

    Performs a query for each element in a collection, collecting the results into a collection of failed results and a collection of successful results. Requests will be executed sequentially and will be pipelined.

  49. def partitionMPar[R, E, A, B](as: Iterable[A])(f: (A) ⇒ ZQuery[R, E, B])(implicit ev: CanFail[E]): ZQuery[R, Nothing, (Iterable[E], Iterable[B])]

    Performs a query for each element in a collection, collecting the results into a collection of failed results and a collection of successful results.

    Performs a query for each element in a collection, collecting the results into a collection of failed results and a collection of successful results. Requests will be executed in parallel and will be batched.

  50. def some[A](a: ⇒ A): ZQuery[Any, Nothing, Option[A]]

    Constructs a query that succeeds with the optional value.

  51. def succeed[A](value: ⇒ A): ZQuery[Any, Nothing, A]

    Constructs a query that succeeds with the specified value.

  52. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  53. def toString(): String
    Definition Classes
    AnyRef → Any
  54. def unsandbox[R, E, A](v: ZQuery[R, Cause[E], A]): ZQuery[R, E, A]

    The inverse operation ZQuery.sandbox

    The inverse operation ZQuery.sandbox

    Terminates with exceptions on the Left side of the Either error, if it exists. Otherwise extracts the contained IO[E, A]

  55. def unwrap[R, E, A](zio: ZIO[R, E, ZQuery[R, E, A]]): ZQuery[R, E, A]

    Unwraps a query that is produced by an effect.

  56. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  57. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  58. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()

Inherited from AnyRef

Inherited from Any

Ungrouped