← ZIO Query docs

QueryAspect

zio.query.QueryAspect
See theQueryAspect companion trait
object QueryAspect

Attributes

Companion
trait
Source
QueryAspect.scala
Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Members list

Value members

Concrete methods

def around[R, A](before: ZIO[R, Nothing, A])(after: A => ZIO[R, Nothing, Any]): QueryAspect[Nothing, R, Nothing, Any, Nothing, Any]

A query aspect that executes queries between two effects, before and after, where the result of before can be used by after.

A query aspect that executes queries between two effects, before and after, where the result of before can be used by after.

Attributes

Source
QueryAspect.scala
def aroundDataSource[R, A](before: Described[ZIO[R, Nothing, A]])(after: Described[A => ZIO[R, Nothing, Any]]): QueryAspect[Nothing, R, Nothing, Any, Nothing, Any]

A query aspect that executes requests between two effects, before and after, where the result of before can be used by after.

A query aspect that executes requests between two effects, before and after, where the result of before can be used by after.

Attributes

Source
QueryAspect.scala
def fromDataSourceAspect[R](dataSourceAspect: DataSourceAspect[R]): QueryAspect[Nothing, R, Nothing, Any, Nothing, Any]

A query aspect that executes requests with the specified data source aspect.

A query aspect that executes requests with the specified data source aspect.

Attributes

Source
QueryAspect.scala
def maxBatchSize(n: Int): QueryAspect[Nothing, Any, Nothing, Any, Nothing, Any]

A query aspect that limits data sources to executing at most n requests in parallel.

A query aspect that limits data sources to executing at most n requests in parallel.

Attributes

Source
QueryAspect.scala