object ZQuery
- Alphabetic
- By Inheritance
- ZQuery
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Type Members
- final class ProvideSomeLayer[R0 <: Has[_], -R, +E, +A] extends AnyVal
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- def collectAll[R, E, A](as: Iterable[ZQuery[R, E, A]]): ZQuery[R, E, List[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 not be batched.
- def collectAllPar[R, E, A](as: Iterable[ZQuery[R, E, A]]): ZQuery[R, E, List[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. All requests will be batched.
- def die(t: => Throwable): ZQuery[Any, Nothing, Nothing]
Constructs a query that dies with the specified error.
- def environment[R]: ZQuery[R, Nothing, R]
Accesses the whole environment of the query.
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def fail[E](error: => E): ZQuery[Any, E, Nothing]
Constructs a query that fails with the specified error.
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- def foreach[R, E, A, B](as: Iterable[A])(f: (A) => ZQuery[R, E, B]): ZQuery[R, E, List[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 not be batched.
- def foreachPar[R, E, A, B](as: Iterable[A])(f: (A) => ZQuery[R, E, B]): ZQuery[R, E, List[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. All requests will be batched.
- def fromEffect[R, E, A](effect: ZIO[R, E, A]): ZQuery[R, E, A]
Constructs a query from an effect.
- 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 withfromRequest
or combinators derived from it for optimizations to be applied. - final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def halt[E](cause: => Cause[E]): ZQuery[Any, E, Nothing]
Constructs a query that fails with the specified cause.
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- val never: ZQuery[Any, Nothing, Nothing]
Constructs a query that never completes.
- val none: ZQuery[Any, Nothing, Option[Nothing]]
Constructs a query that succeds with the empty value.
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- def partitionM[R, E, A, B](as: Iterable[A])(f: (A) => ZQuery[R, E, B])(implicit ev: CanFail[E]): ZQuery[R, Nothing, (List[E], List[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 not be batched.
- def partitionMPar[R, E, A, B](as: Iterable[A])(f: (A) => ZQuery[R, E, B])(implicit ev: CanFail[E]): ZQuery[R, Nothing, (List[E], List[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. All requests will be batched.
- def some[A](a: => A): ZQuery[Any, Nothing, Option[A]]
Constructs a query that succeeds with the optional value.
- def succeed[A](value: => A): ZQuery[Any, Nothing, A]
Constructs a query that succeeds with the specified value.
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()