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
- Self type
-
BatchBinder.type
Members list
Givens
Givens
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) )
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) )
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) )