package nested
Type Members
-
trait
Nested extends AnyRef
Add nested molecule.
Add nested molecule.
Related data of cardinality-many referenced entities can be queried in a "flat" way:m(Order.no.LineItem.product.price.quantity).get === List( (23, "Chocolate", 48.00, 1), (23, "Whisky", 38.00, 2) )
For convenience, Molecule offers to automatically nest the same data so that redundancy is avoided and we can work straight on the hierarchical data:
m(Order.no * LineItem.product.price.quantity).get === List( (23, List(("Chocolate", 48.00, 1), ("Whisky", 38.00, 2))) )
Nested molecules can nest up to 7 levels deep.
Internally, Molecule adds entity ids to each level in the query to be able to group data on each level by a unique entity id.- See also
Manual | Tests: nested, nested json, nested json types
- trait Nested00[Ns1[_], In1_1[_, _], In2_1[_, _, _], In3_1[_, _, _, _]] extends Nested
- trait Nested01[Ns2[_, _], In1_2[_, _, _], In2_2[_, _, _, _], In3_2[_, _, _, _, _], A] extends Nested
- trait Nested02[Ns3[_, _, _], In1_3[_, _, _, _], In2_3[_, _, _, _, _], In3_3[_, _, _, _, _, _], A, B] extends Nested
- trait Nested03[Ns4[_, _, _, _], In1_4[_, _, _, _, _], In2_4[_, _, _, _, _, _], In3_4[_, _, _, _, _, _, _], A, B, C] extends Nested
- trait Nested04[Ns5[_, _, _, _, _], In1_5[_, _, _, _, _, _], In2_5[_, _, _, _, _, _, _], In3_5[_, _, _, _, _, _, _, _], A, B, C, D] extends Nested
- trait Nested05[Ns6[_, _, _, _, _, _], In1_6[_, _, _, _, _, _, _], In2_6[_, _, _, _, _, _, _, _], In3_6[_, _, _, _, _, _, _, _, _], A, B, C, D, E] extends Nested
- trait Nested06[Ns7[_, _, _, _, _, _, _], In1_7[_, _, _, _, _, _, _, _], In2_7[_, _, _, _, _, _, _, _, _], In3_7[_, _, _, _, _, _, _, _, _, _], A, B, C, D, E, F] extends Nested
- trait Nested07[Ns8[_, _, _, _, _, _, _, _], In1_8[_, _, _, _, _, _, _, _, _], In2_8[_, _, _, _, _, _, _, _, _, _], In3_8[_, _, _, _, _, _, _, _, _, _, _], A, B, C, D, E, F, G] extends Nested
- trait Nested08[Ns9[_, _, _, _, _, _, _, _, _], In1_9[_, _, _, _, _, _, _, _, _, _], In2_9[_, _, _, _, _, _, _, _, _, _, _], In3_9[_, _, _, _, _, _, _, _, _, _, _, _], A, B, C, D, E, F, G, H] extends Nested
- trait Nested09[Ns10[_, _, _, _, _, _, _, _, _, _], In1_10[_, _, _, _, _, _, _, _, _, _, _], In2_10[_, _, _, _, _, _, _, _, _, _, _, _], In3_10[_, _, _, _, _, _, _, _, _, _, _, _, _], A, B, C, D, E, F, G, H, I] extends Nested
- trait Nested10[Ns11[_, _, _, _, _, _, _, _, _, _, _], In1_11[_, _, _, _, _, _, _, _, _, _, _, _], In2_11[_, _, _, _, _, _, _, _, _, _, _, _, _], In3_11[_, _, _, _, _, _, _, _, _, _, _, _, _, _], A, B, C, D, E, F, G, H, I, J] extends Nested
- trait Nested11[Ns12[_, _, _, _, _, _, _, _, _, _, _, _], In1_12[_, _, _, _, _, _, _, _, _, _, _, _, _], In2_12[_, _, _, _, _, _, _, _, _, _, _, _, _, _], In3_12[_, _, _, _, _, _, _, _, _, _, _, _, _, _, _], A, B, C, D, E, F, G, H, I, J, K] extends Nested
- trait Nested12[Ns13[_, _, _, _, _, _, _, _, _, _, _, _, _], In1_13[_, _, _, _, _, _, _, _, _, _, _, _, _, _], In2_13[_, _, _, _, _, _, _, _, _, _, _, _, _, _, _], In3_13[_, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _], A, B, C, D, E, F, G, H, I, J, K, L] extends Nested
- trait Nested13[Ns14[_, _, _, _, _, _, _, _, _, _, _, _, _, _], In1_14[_, _, _, _, _, _, _, _, _, _, _, _, _, _, _], In2_14[_, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _], In3_14[_, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _], A, B, C, D, E, F, G, H, I, J, K, L, M] extends Nested
- trait Nested14[Ns15[_, _, _, _, _, _, _, _, _, _, _, _, _, _, _], In1_15[_, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _], In2_15[_, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _], In3_15[_, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _], A, B, C, D, E, F, G, H, I, J, K, L, M, N] extends Nested
- trait Nested15[Ns16[_, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _], In1_16[_, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _], In2_16[_, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _], In3_16[_, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _], A, B, C, D, E, F, G, H, I, J, K, L, M, N, O] extends Nested
- trait Nested16[Ns17[_, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _], In1_17[_, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _], In2_17[_, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _], In3_17[_, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _], A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P] extends Nested
- trait Nested17[Ns18[_, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _], In1_18[_, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _], In2_18[_, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _], In3_18[_, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _], A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q] extends Nested
- trait Nested18[Ns19[_, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _], In1_19[_, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _], In2_19[_, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _], In3_19[_, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _], A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R] extends Nested
- trait Nested19[Ns20[_, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _], In1_20[_, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _], In2_20[_, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _], In3_20[_, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _], A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S] extends Nested
- trait Nested20[Ns21[_, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _], In1_21[_, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _], In2_21[_, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _], In3_21[_, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _], A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S, T] extends Nested
- trait Nested21[Ns22[_, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _], In1_22[_, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _], In2_22[_, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _], In3_22[_, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _], A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S, T, U] extends Nested
Documentation/API for the Molecule library - a meta DSL for the Datomic database.
Manual | scalamolecule.org | Github | Forum