Files
plainleaf/website
Matouš Jan Fialka b6d4f71aca [LIQ/doc] Fix docs typo
The `select` part operates not over a single record, but over each group
(i.e., the set of records sharing the same group key). The `select`
clause's environment is generally:

* `name` (the group key)

* `group` (the table of records in the group)

Note: no `p` is bound (`p` is not set; it was the row variable during scan, but we are now at the group level).

In the `select { name = name }` the name refers to the group key (what
we `group by`-ed).

We typically use:

* `name = name` (group key, as in the query), or

* if we want data from the first record (say all grouped `p.name` are
  the same and non-`nil`) then `name = group[1].name`.

Signed-off-by: Matouš Jan Fialka <mjf@mjf.cz>
2026-02-25 10:45:08 +01:00
..
2026-02-05 11:09:05 +01:00
2026-01-29 11:07:28 +01:00
2026-01-29 11:07:28 +01:00
2025-08-29 15:21:01 +02:00
2026-02-25 10:45:08 +01:00
2026-01-13 15:46:47 +01:00
2025-11-24 10:55:49 +01:00
2026-01-12 17:19:23 +01:00
2025-11-14 15:36:38 +01:00
2025-11-14 15:36:38 +01:00
2025-04-06 21:49:15 +02:00
2026-01-15 11:14:16 +01:00
2025-11-24 10:24:09 +01:00
2026-01-25 14:38:53 +01:00
2025-03-26 17:46:35 +01:00
2026-01-27 10:33:56 +01:00
2025-11-14 15:36:38 +01:00
2025-11-24 10:53:46 +01:00
2026-01-16 08:34:11 +01:00
2025-11-14 15:36:38 +01:00
2026-01-29 11:07:28 +01:00
2025-11-14 15:36:38 +01:00
2026-01-29 11:07:28 +01:00
2025-04-06 21:49:15 +02:00
2026-01-08 11:45:34 +01:00
2026-01-29 11:07:28 +01:00
2025-11-14 15:36:38 +01:00
2025-08-24 16:16:19 +02:00
2025-11-14 15:36:38 +01:00
2025-11-14 15:36:38 +01:00
2025-11-14 15:36:38 +01:00
2025-06-17 18:46:15 +02:00
2025-03-23 15:56:02 +01:00
2025-11-14 15:36:38 +01:00
2025-11-24 10:55:49 +01:00
2025-11-24 10:57:13 +01:00
2025-11-14 15:36:38 +01:00
2026-01-29 11:07:28 +01:00
2026-01-29 11:07:28 +01:00
2026-01-15 11:56:54 +01:00
2026-01-08 11:45:34 +01:00
2025-04-06 21:49:15 +02:00
2026-01-29 11:07:28 +01:00
2025-11-24 10:57:13 +01:00
2026-01-08 11:45:34 +01:00
2025-11-14 15:36:38 +01:00