Acquires the specified resource before the query begins execution and releases it after the query completes execution, whether by success, failure, or interruption.
Acquires the specified resource before the query begins execution and releases it after the query completes execution, whether by success, failure, or interruption.
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.
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.
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.
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.
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.
Collects a collection of queries into a query returning a collection of their results, batching requests to data sources.
Collects a collection of queries into a query returning a collection of their results, batching requests to data sources.
Collects a collection of queries into a query returning a collection of their results, batching requests to data sources.
Collects a collection of queries into a query returning a collection of their results, batching requests to data sources.
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.
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.
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.
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.
Constructs a query that dies with the specified error.
Accesses the whole environment of the query.
Accesses the environment of the effect.
Accesses the environment of the effect.
val portNumber = effect.access(_.config.portNumber)
Effectfully accesses the environment of the effect.
Effectfully accesses the environment of the effect.
Constructs a query that fails with the specified error.
Constructs a query that fails with the specified cause.
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.
Applies the function f
if the argument is non-empty and returns the
results in a new Option[B]
.
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.
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.
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.
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.
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
.
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
.
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
.
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.
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
.
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
.
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
.
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.
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.
Constructs a query from an either
Constructs a query from an option
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.
Constructs a query from a request and a data source but does not apply caching to the query.
Constructs a query from an effect.
Constructs a query that never completes.
Constructs a query that succeds with the empty value.
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.
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.
Accesses the whole environment of the query.
Accesses the environment of the effect.
Accesses the environment of the effect.
val portNumber = effect.access(_.config.portNumber)
Effectfully accesses the environment of the effect.
Effectfully accesses the environment of the effect.
Constructs a query that succeeds with the optional value.
Constructs a query that succeeds with the specified value.
Returns a lazily constructed query.
The query that succeeds with the unit value.
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]
Unwraps a query that is produced by an effect.