ScanamoSyncInterpreter

org.scanamo.ops.ScanamoSyncInterpreter
class ScanamoSyncInterpreter(client: DynamoDbClient) extends FunctionK[ScanamoOpsA, Id]

Interpret Scanamo operations using blocking requests to DynamoDB with any transport errors or semantic errors within DynamoDB thrown as exceptions.

Attributes

Graph
Supertypes
trait Serializable
class Object
trait Matchable
class Any

Members list

Value members

Concrete methods

def apply[A](op: ScanamoOpsA[A]): Id[A]

Applies this functor transformation from F to G

Applies this functor transformation from F to G

Attributes

Inherited methods

def and[H[_]](h: FunctionK[ScanamoOpsA, H]): FunctionK[ScanamoOpsA, [_] =>> Tuple2K[Id, H, _$9]]

Composes two instances of FunctionK into a new FunctionK that transforms one single functor to a cats.data.Tuple2K of two functors.

Composes two instances of FunctionK into a new FunctionK that transforms one single functor to a cats.data.Tuple2K of two functors.

scala> import cats.arrow.FunctionK
scala> val list2option = λ[FunctionK[List, Option]](_.headOption)
scala> val list2vector = λ[FunctionK[List, Vector]](_.toVector)
scala> val optionAndVector = list2option and list2vector
scala> optionAndVector(List(1,2,3))
res0: cats.data.Tuple2K[Option,Vector,Int] = Tuple2K(Some(1),Vector(1, 2, 3))

Attributes

Inherited from:
FunctionK

Composes two instances of FunctionK into a new FunctionK with this transformation applied first.

Composes two instances of FunctionK into a new FunctionK with this transformation applied first.

Attributes

Inherited from:
FunctionK

Composes two instances of FunctionK into a new FunctionK with this transformation applied last.

Composes two instances of FunctionK into a new FunctionK with this transformation applied last.

Attributes

Inherited from:
FunctionK

Narrows the input type of this FunctionK from F to F0

Narrows the input type of this FunctionK from F to F0

Attributes

Inherited from:
FunctionK
def or[H[_]](h: FunctionK[H, Id]): FunctionK[[_] =>> EitherK[ScanamoOpsA, H, _$6], Id]

Composes two instances of FunctionK into a new FunctionK that transforms a cats.data.EitherK to a single functor.

Composes two instances of FunctionK into a new FunctionK that transforms a cats.data.EitherK to a single functor.

This transformation will be used to transform left F values while h will be used to transform right H values.

Attributes

Inherited from:
FunctionK

Widens the output type of this FunctionK from G to G0

Widens the output type of this FunctionK from G to G0

Attributes

Inherited from:
FunctionK