← ZIO Query docs

QueryAspect

zio.query.QueryAspect
See theQueryAspect companion object
trait QueryAspect[+LowerR, -UpperR, +LowerE, -UpperE, +LowerA, -UpperA]

A QueryAspect is an aspect that can be weaved into queries. You can think of an aspect as a polymorphic function, capable of transforming one data source into another, possibly enlarging the environment type.

Attributes

Companion
object
Source
QueryAspect.scala
Graph
Supertypes
class Object
trait Matchable
class Any
Self type
QueryAspect[LowerR, UpperR, LowerE, UpperE, LowerA, UpperA]

Members list

Value members

Abstract methods

def apply[R >: LowerR <: UpperR, E >: LowerE <: UpperE, A >: LowerA <: UpperA](query: ZQuery[R, E, A])(implicit trace: Trace): ZQuery[R, E, A]

Applies the aspect to a query.

Applies the aspect to a query.

Attributes

Source
QueryAspect.scala

Concrete methods

def >>>[LowerR1 >: LowerR, UpperR1 <: UpperR, LowerE1 >: LowerE, UpperE1 <: UpperE, LowerA1 >: LowerA, UpperA1 <: UpperA](that: QueryAspect[LowerR1, UpperR1, LowerE1, UpperE1, LowerA1, UpperA1]): QueryAspect[LowerR1, UpperR1, LowerE1, UpperE1, LowerA1, UpperA1]

A symbolic alias for andThen.

A symbolic alias for andThen.

Attributes

Source
QueryAspect.scala
def andThen[LowerR1 >: LowerR, UpperR1 <: UpperR, LowerE1 >: LowerE, UpperE1 <: UpperE, LowerA1 >: LowerA, UpperA1 <: UpperA](that: QueryAspect[LowerR1, UpperR1, LowerE1, UpperE1, LowerA1, UpperA1]): QueryAspect[LowerR1, UpperR1, LowerE1, UpperE1, LowerA1, UpperA1]

Returns a new aspect that represents the sequential composition of this aspect with the specified one.

Returns a new aspect that represents the sequential composition of this aspect with the specified one.

Attributes

Source
QueryAspect.scala