← ZIO Query docs

DataSourceAspect

zio.query.DataSourceAspect
See theDataSourceAspect companion object
trait DataSourceAspect[-R]

A DataSourceAspect 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
DataSourceAspect.scala
Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Members list

Value members

Abstract methods

def apply[R1 <: R, A](dataSource: DataSource[R1, A]): DataSource[R1, A]

Applies the aspect to a data source.

Applies the aspect to a data source.

Attributes

Source
DataSourceAspect.scala

Concrete methods

final def >>>[R1 <: R](that: DataSourceAspect[R1]): DataSourceAspect[R1]

A symbolic alias for andThen.

A symbolic alias for andThen.

Attributes

Source
DataSourceAspect.scala
final def andThen[R1 <: R](that: DataSourceAspect[R1]): DataSourceAspect[R1]

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
DataSourceAspect.scala