fetch
Instantiate this trait in one place in your app pass around the object, importing it where you want to use it.
Attributes
- F
Underlying effect type, usually
cats.effect.IO
or similar.- Graph
- Supertypes
- trait catsMonad[[_] =>> Fetch[F, _$2]]trait module[[_] =>> Fetch[F, _$2]]trait reifiedRelationtrait prooftrait accessclass Objecttrait Matchableclass Any
- Self type
- fetch[F]
Members list
Type members
Classlikes
Attributes
- Graph
- Supertypes
- class Objecttrait Matchableclass Any
Syntax for Relation values
Syntax for Relation values
Attributes
- Graph
- Supertypes
- class Objecttrait Matchableclass Any
Syntax for Relation values
Syntax for Relation values
Attributes
- Graph
- Supertypes
- class Objecttrait Matchableclass Any
Attributes
- Graph
- Supertypes
- class Objecttrait Matchableclass Any
Inherited classlikes
A Proof
shows that a relation is reifiable as In => Access[Out]
.
A Proof
shows that a relation is reifiable as In => Access[Out]
.
In practice, this data structure is the outer shell of ReifiedRelation
that guides the implicit derivation mechanism.
Attributes
- Inherited from:
- proof
- Graph
- Supertypes
- class Objecttrait Matchableclass Any
Defines the behavior of Proofs.
The below cases embody the patterns in which the reifiedRelations can
actually be composed. Composition patterns of of ReifiedRelation
is orthogonal
to the composition patterns of Proofs.
Defines the behavior of Proofs.
The below cases embody the patterns in which the reifiedRelations can
actually be composed. Composition patterns of of ReifiedRelation
is orthogonal
to the composition patterns of Proofs.
Notice that there is no Rel
type parameter. This is because it's not relevant
when the relations are already reified.
Attributes
- Inherited from:
- reifiedRelation
- Graph
- Supertypes
- class Objecttrait Matchableclass Any
Attributes
- Inherited from:
- reifiedRelation
- Graph
- Supertypes
- class Objecttrait Matchableclass Any
Attributes
- Inherited from:
- proof
- Graph
- Supertypes
- class Objecttrait Matchableclass Any
Inherited types
An Access
datatype represents an action, when evaluated, brings a value of type A into memory.
The datatype needs to be monadic for the derivation mechanism to work.
An Access
datatype represents an action, when evaluated, brings a value of type A into memory.
The datatype needs to be monadic for the derivation mechanism to work.
Attributes
- Inherited from:
- module
Value members
Concrete methods
aka traverse
.
aka traverse
.
If you are implementing Access
with your own datatype, and if you want batching/parallel behavior,
please override this default behavior with a more efficient version that comes with your datatype.
See zquery
or fetch
modules for examples.
Attributes
- Definition Classes
- access
Inherited methods
Good ol' flatMap
.
Good ol' flatMap
.
To traverse a relation graph edge by edge is sequential computation, so we require flatMap
to be implemented
on Access
.
Attributes
- Inherited from:
- catsMonad
Plain ol' map
.
Plain ol' map
.
Can be implemented in terms of flatMap
and succeed
, but probably a bad idea considering what kinds of datatypes
will be used to implement Access
.
Attributes
- Inherited from:
- catsMonad
aka pure
, point
, ...
aka pure
, point
, ...
Attributes
- Inherited from:
- catsMonad
Implicits
Implicits
Syntax for Relation values
Syntax for Relation values
Attributes
Syntax for Relation values
Syntax for Relation values
Attributes
Inherited implicits
Attributes
- Inherited from:
- proof