Object/Class

zio.query

ZQuery

Related Docs: class ZQuery | package query

Permalink

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 Acquire[-R, +E, +A] extends AnyVal

    Permalink
  2. final class AcquireExit[-R, +E, +A] extends AnyVal

    Permalink
  3. final class EnvironmentWithPartiallyApplied[R] extends AnyVal

    Permalink
  4. final class EnvironmentWithQueryPartiallyApplied[R] extends AnyVal

    Permalink
  5. final class EnvironmentWithZIOPartiallyApplied[R] extends AnyVal

    Permalink
  6. final class ProvideSomeLayer[R0, -R, +E, +A] extends AnyVal

    Permalink
  7. final class Release[-R, +E, +A] extends AnyRef

    Permalink
  8. final class ReleaseExit[-R, +E, E1, +A, B] extends AnyRef

    Permalink
  9. final class ServiceWithPartiallyApplied[R] extends AnyVal

    Permalink
  10. final class ServiceWithQueryPartiallyApplied[Service] extends AnyVal

    Permalink
  11. final class ServiceWithZIOPartiallyApplied[Service] extends AnyVal

    Permalink
  12. final class TimeoutTo[-R, +E, +A, +B] extends AnyRef

    Permalink

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. final def absolve[R, E, A](v: ⇒ ZQuery[R, E, Either[E, A]])(implicit trace: Trace): ZQuery[R, E, A]

    Permalink
  5. def acquireReleaseExitWith[R, E, A](acquire: ⇒ ZIO[R, E, A]): AcquireExit[R, E, A]

    Permalink

    Acquires the specified resource before the query begins execution and releases it after the query completes execution, whether by success, failure, or interruption.

  6. def acquireReleaseWith[R, E, A](acquire: ⇒ ZIO[R, E, A]): Acquire[R, E, A]

    Permalink

    Acquires the specified resource before the query begins execution and releases it after the query completes execution, whether by success, failure, or interruption.

  7. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  8. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @IntrinsicCandidate() @throws( ... )
  9. def collectAll[R, E, A](as: NonEmptyChunk[ZQuery[R, E, A]])(implicit trace: Trace): ZQuery[R, E, NonEmptyChunk[A]]

    Permalink

    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 collectAll[R, E, A](as: Option[ZQuery[R, E, A]])(implicit trace: Trace): ZQuery[R, E, Option[A]]

    Permalink

    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.

  11. def collectAll[R, E, A](as: Array[ZQuery[R, E, A]])(implicit arg0: ClassTag[A], trace: Trace): ZQuery[R, E, Array[A]]

    Permalink

    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.

  12. def collectAll[R, E, A](as: Set[ZQuery[R, E, A]])(implicit trace: Trace): ZQuery[R, E, Set[A]]

    Permalink

    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.

  13. 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]], trace: Trace): ZQuery[R, E, Collection[A]]

    Permalink

    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.

  14. def collectAllBatched[R, E, A](as: NonEmptyChunk[ZQuery[R, E, A]])(implicit trace: Trace): ZQuery[R, E, NonEmptyChunk[A]]

    Permalink

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

  15. def collectAllBatched[R, E, A](as: Array[ZQuery[R, E, A]])(implicit arg0: ClassTag[A], trace: Trace): ZQuery[R, E, Array[A]]

    Permalink

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

  16. def collectAllBatched[R, E, A](as: Set[ZQuery[R, E, A]])(implicit trace: Trace): ZQuery[R, E, Set[A]]

    Permalink

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

  17. 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]], trace: Trace): ZQuery[R, E, Collection[A]]

    Permalink

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

  18. def collectAllPar[R, E, A](as: NonEmptyChunk[ZQuery[R, E, A]])(implicit trace: Trace): ZQuery[R, E, NonEmptyChunk[A]]

    Permalink

    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.

  19. def collectAllPar[R, E, A](as: Array[ZQuery[R, E, A]])(implicit arg0: ClassTag[A], trace: Trace): ZQuery[R, E, Array[A]]

    Permalink

    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.

  20. def collectAllPar[R, E, A](as: Set[ZQuery[R, E, A]])(implicit trace: Trace): ZQuery[R, E, Set[A]]

    Permalink

    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.

  21. 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]], trace: Trace): ZQuery[R, E, Collection[A]]

    Permalink

    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.

  22. def die(t: ⇒ Throwable)(implicit trace: Trace): ZQuery[Any, Nothing, Nothing]

    Permalink

    Constructs a query that dies with the specified error.

  23. def environment[R](implicit trace: Trace): ZQuery[R, Nothing, ZEnvironment[R]]

    Permalink

    Accesses the whole environment of the query.

  24. final def environmentWith[R]: EnvironmentWithPartiallyApplied[R]

    Permalink

    Accesses the environment of the effect.

    Accesses the environment of the effect.

    val portNumber = effect.access(_.config.portNumber)
  25. final def environmentWithQuery[R]: EnvironmentWithQueryPartiallyApplied[R]

    Permalink

    Effectfully accesses the environment of the effect.

  26. final def environmentWithZIO[R]: EnvironmentWithZIOPartiallyApplied[R]

    Permalink

    Effectfully accesses the environment of the effect.

  27. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  28. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  29. def fail[E](error: ⇒ E)(implicit trace: Trace): ZQuery[Any, E, Nothing]

    Permalink

    Constructs a query that fails with the specified error.

  30. def failCause[E](cause: ⇒ Cause[E])(implicit trace: Trace): ZQuery[Any, E, Nothing]

    Permalink

    Constructs a query that fails with the specified cause.

  31. final def foreach[R, E, A, B](in: NonEmptyChunk[A])(f: (A) ⇒ ZQuery[R, E, B])(implicit trace: Trace): ZQuery[R, E, NonEmptyChunk[B]]

    Permalink

    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.

  32. final def foreach[R, E, A, B](in: Option[A])(f: (A) ⇒ ZQuery[R, E, B])(implicit trace: Trace): ZQuery[R, E, Option[B]]

    Permalink

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

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

    Permalink

    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.

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

    Permalink

    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.

  35. final def foreach[R, E, A, B](in: Set[A])(f: (A) ⇒ ZQuery[R, E, B])(implicit trace: Trace): ZQuery[R, E, Set[B]]

    Permalink

    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.

  36. 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]], trace: Trace): ZQuery[R, E, Collection[B]]

    Permalink

    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.

  37. final def foreachBatched[R, E, A, B](as: NonEmptyChunk[A])(f: (A) ⇒ ZQuery[R, E, B])(implicit trace: Trace): ZQuery[R, E, NonEmptyChunk[B]]

    Permalink

    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.

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

    Permalink

    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.

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

    Permalink

    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.

  40. final def foreachBatched[R, E, A, B](as: Set[A])(fn: (A) ⇒ ZQuery[R, E, B])(implicit trace: Trace): ZQuery[R, E, Set[B]]

    Permalink
  41. 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]], trace: Trace): ZQuery[R, E, Collection[B]]

    Permalink

    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.

  42. final def foreachPar[R, E, A, B](as: NonEmptyChunk[A])(fn: (A) ⇒ ZQuery[R, E, B])(implicit trace: Trace): ZQuery[R, E, NonEmptyChunk[B]]

    Permalink

    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.

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

    Permalink

    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.

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

    Permalink

    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.

  45. final def foreachPar[R, E, A, B](as: Set[A])(fn: (A) ⇒ ZQuery[R, E, B])(implicit trace: Trace): ZQuery[R, E, Set[B]]

    Permalink

    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.

  46. 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]], trace: Trace): ZQuery[R, E, Collection[B]]

    Permalink

    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.

  47. def fromEither[E, A](either: ⇒ Either[E, A])(implicit trace: Trace): ZQuery[Any, E, A]

    Permalink

    Constructs a query from an either

  48. def fromOption[A](option: ⇒ Option[A])(implicit trace: Trace): ZQuery[Any, Option[Nothing], A]

    Permalink

    Constructs a query from an option

  49. def fromRequest[R, E, A, B](request0: ⇒ A)(dataSource0: ⇒ DataSource[R, A])(implicit ev: <:<[A, Request[E, B]], trace: Trace): ZQuery[R, E, B]

    Permalink

    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.

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

    Permalink

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

  51. def fromZIO[R, E, A](effect: ⇒ ZIO[R, E, A])(implicit trace: Trace): ZQuery[R, E, A]

    Permalink

    Constructs a query from an effect.

  52. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
    Annotations
    @IntrinsicCandidate()
  53. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
    Annotations
    @IntrinsicCandidate()
  54. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  55. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  56. def never(implicit trace: Trace): ZQuery[Any, Nothing, Nothing]

    Permalink

    Constructs a query that never completes.

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

    Permalink

    Constructs a query that succeds with the empty value.

  58. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @IntrinsicCandidate()
  59. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @IntrinsicCandidate()
  60. def partitionQuery[R, E, A, B](as: Iterable[A])(f: (A) ⇒ ZQuery[R, E, B])(implicit ev: CanFail[E], trace: Trace): ZQuery[R, Nothing, (Iterable[E], Iterable[B])]

    Permalink

    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.

  61. def partitionQueryPar[R, E, A, B](as: Iterable[A])(f: (A) ⇒ ZQuery[R, E, B])(implicit ev: CanFail[E], trace: Trace): ZQuery[R, Nothing, (Iterable[E], Iterable[B])]

    Permalink

    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.

  62. def service[R](implicit arg0: Tag[R], trace: Trace): ZQuery[R, Nothing, R]

    Permalink

    Accesses the whole environment of the query.

  63. final def serviceWith[R]: ServiceWithPartiallyApplied[R]

    Permalink

    Accesses the environment of the effect.

    Accesses the environment of the effect.

    val portNumber = effect.access(_.config.portNumber)
  64. final def serviceWithQuery[R]: ServiceWithQueryPartiallyApplied[R]

    Permalink

    Effectfully accesses the environment of the effect.

  65. final def serviceWithZIO[R]: ServiceWithZIOPartiallyApplied[R]

    Permalink

    Effectfully accesses the environment of the effect.

  66. def some[A](a: ⇒ A)(implicit trace: Trace): ZQuery[Any, Nothing, Option[A]]

    Permalink

    Constructs a query that succeeds with the optional value.

  67. def succeed[A](value: ⇒ A)(implicit trace: Trace): ZQuery[Any, Nothing, A]

    Permalink

    Constructs a query that succeeds with the specified value.

  68. def suspend[R, E, A](query: ⇒ ZQuery[R, E, A])(implicit trace: Trace): ZQuery[R, E, A]

    Permalink

    Returns a lazily constructed query.

  69. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  70. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  71. val unit: ZQuery[Any, Nothing, Unit]

    Permalink

    The query that succeeds with the unit value.

  72. def unsandbox[R, E, A](v: ⇒ ZQuery[R, Cause[E], A])(implicit trace: Trace): ZQuery[R, E, A]

    Permalink

    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]

  73. def unwrap[R, E, A](zio: ⇒ ZIO[R, E, ZQuery[R, E, A]])(implicit trace: Trace): ZQuery[R, E, A]

    Permalink

    Unwraps a query that is produced by an effect.

  74. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  75. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  76. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Deprecated Value Members

  1. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @Deprecated @deprecated @throws( classOf[java.lang.Throwable] )
    Deprecated

    (Since version ) see corresponding Javadoc for more information.

Inherited from AnyRef

Inherited from Any

Ungrouped