BatchBinder

com.softinio.duck4s.algebra.BatchBinder
See theBatchBinder companion trait
object BatchBinder

Companion object providing implicit BatchBinder instances for common types.

This object contains given instances for tuples of various sizes (2, 3, and 4 elements). Each binder uses the appropriate ParameterBinder instances for the tuple elements.

Attributes

Since

0.1.0

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

Members list

Givens

Givens

given batchBinder2[A, B](using ba: ParameterBinder[A], bb: ParameterBinder[B]): batchBinder2[A, B]

Implicit BatchBinder for 2-element tuples.

Implicit BatchBinder for 2-element tuples.

Type parameters

A

the type of the first element

B

the type of the second element

Value parameters

ba

implicit ParameterBinder for type A

bb

implicit ParameterBinder for type B

Attributes

Returns

a BatchBinder for (A, B) tuples

Since

0.1.0

Example
batch.addBatch( ("Alice", 25), ("Bob", 30) )
given batchBinder3[A, B, C](using ba: ParameterBinder[A], bb: ParameterBinder[B], bc: ParameterBinder[C]): batchBinder3[A, B, C]

Implicit BatchBinder for 3-element tuples.

Implicit BatchBinder for 3-element tuples.

Type parameters

A

the type of the first element

B

the type of the second element

C

the type of the third element

Value parameters

ba

implicit ParameterBinder for type A

bb

implicit ParameterBinder for type B

bc

implicit ParameterBinder for type C

Attributes

Returns

a BatchBinder for (A, B, C) tuples

Since

0.1.0

Example
 batch.addBatch( ("Product A", 19.99, true), ("Product B", 29.99,
 false) ) 
given batchBinder4[A, B, C, D](using ba: ParameterBinder[A], bb: ParameterBinder[B], bc: ParameterBinder[C], bd: ParameterBinder[D]): batchBinder4[A, B, C, D]

Implicit BatchBinder for 4-element tuples.

Implicit BatchBinder for 4-element tuples.

Type parameters

A

the type of the first element

B

the type of the second element

C

the type of the third element

D

the type of the fourth element

Value parameters

ba

implicit ParameterBinder for type A

bb

implicit ParameterBinder for type B

bc

implicit ParameterBinder for type C

bd

implicit ParameterBinder for type D

Attributes

Returns

a BatchBinder for (A, B, C, D) tuples

Since

0.1.0

Example
 batch.addBatch( ("Alice", 25, "Engineer", 75000.0), ("Bob", 30,
 "Manager", 85000.0) )