Fetch

fetch.package$.Fetch$
See theFetch companion trait
object Fetch

Attributes

Companion:
trait
Graph
Supertypes
trait Sum
trait Mirror
class Object
trait Matchable
class Any
Self type
Fetch.type

Members list

Concise view

Type members

Inherited types

type MirroredElemLabels <: Tuple

The names of the product elements

The names of the product elements

Attributes

Inherited from:
Mirror
type MirroredLabel <: String

The name of the type

The name of the type

Attributes

Inherited from:
Mirror

Value members

Concrete methods

def apply[F[_] : Concurrent, I, A](id: I, ds: DataSource[F, I, A]): Fetch[F, A]
def batchAll[F[_] : Monad, A](fetches: Fetch[F, A]*): Fetch[F, List[A]]

Given a number of fetches, returns all of the results in a List. In the event that multiple fetches are made to the same data source, this will attempt to batch them together.

Given a number of fetches, returns all of the results in a List. In the event that multiple fetches are made to the same data source, this will attempt to batch them together.

As of 3.1.x, this is functionally equivalent to using .sequence syntax from Cats on any data structure implementing Traverse.

Attributes

def error[F[_] : Applicative, A](e: Throwable): Fetch[F, A]
def exception[F[_] : Applicative, A](e: Log => FetchException): Fetch[F, A]
def liftF[F[_] : ApplicativeThrow, A](f: F[A]): Fetch[F, A]
def liftIO[F[_] : LiftIO, A](io: IO[A]): Fetch[F, A]
def optional[F[_] : Concurrent, I, A](id: I, ds: DataSource[F, I, A]): Fetch[F, Option[A]]
def pure[F[_] : Applicative, A](a: A): Fetch[F, A]

Lift a plain value to the Fetch monad.

Lift a plain value to the Fetch monad.

Attributes

def run[F[_]]: FetchRunner[F]

Run a Fetch, the result in the F monad.

Run a Fetch, the result in the F monad.

Attributes

def runAll[F[_]]: FetchRunnerAll[F]

Run a Fetch getting the log, cache and result in the F monad.

Run a Fetch getting the log, cache and result in the F monad.

Attributes

def runCache[F[_]]: FetchRunnerCache[F]

Run a Fetch, the cache and the result in the F monad.

Run a Fetch, the cache and the result in the F monad.

Attributes

def runLog[F[_]]: FetchRunnerLog[F]

Run a Fetch, the log and the result in the F monad.

Run a Fetch, the log and the result in the F monad.

Attributes