Files

12 lines
1.1 KiB
Plaintext

statements sent: 1
SQL: select "public"."book"."title", (select coalesce(jsonb_agg(jsonb_build_array(t."v0", t."v1")), jsonb_build_array()) from (select "public"."review"."rating" as "v0", "public"."review"."body" as "v1" from "public"."review" where "public"."review"."book_id" = "public"."book"."id" order by "public"."review"."id") as t) from "public"."book" order by "public"."book"."title"
BookWithReviews[title=Compilers for Humans, reviews=[ReviewView[rating=5, body=Changed how I think], ReviewView[rating=4, body=Great examples], ReviewView[rating=5, body=Buy it]]]
BookWithReviews[title=Debugging a Moth, reviews=[]]
BookWithReviews[title=Kata of Clean Code, reviews=[ReviewView[rating=2, body=Too many koans]]]
BookWithReviews[title=Notes on the Analytical Engine, reviews=[ReviewView[rating=5, body=Foundational], ReviewView[rating=4, body=Dense but worth it]]]
BookWithReviews[title=Poetical Science, reviews=[ReviewView[rating=3, body=Charming]]]
BookWithReviews[title=Tokyo Trains, reviews=[ReviewView[rating=4, body=Lovely photographs]]]
flat LEFT JOIN returns 9 rows for 6 books; MULTISET returns 6 rows