QueryAspect

zio.query.QueryAspect$
See theQueryAspect companion trait

Attributes

Companion:
trait
Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Members list

Concise view

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

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

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

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