diff options
| author | Sébastien Dailly <sebastien@dailly.me> | 2026-11-22 13:58:16 +0100 |
|---|---|---|
| committer | Sébastien Dailly <sebastien@dailly.me> | 2026-11-22 13:58:16 +0100 |
| commit | 056fcabaeec238a7aa927df39a90acea028b1aa0 (patch) | |
| tree | 3246359561eb2375e85da4537e05a083a1348467 /lib/value/tests | |
| parent | bc78bea63b7c75e8a9d222dc86fb75ed293a2242 (diff) | |
Added an option for loading a value content without the multivaluated fields (allow single query)main
Diffstat (limited to 'lib/value/tests')
| -rw-r--r-- | lib/value/tests/load.t | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/value/tests/load.t b/lib/value/tests/load.t index e20860a..dee6d0f 100644 --- a/lib/value/tests/load.t +++ b/lib/value/tests/load.t @@ -1,7 +1,9 @@ High level test of [Value.load]: two rows are inserted in the table of the content given as argument (the configuration is read on the standard input), loaded as values with [Value.load] and printed with [Value.pp] — the primary -key and every field, as read back as typed data with [Value.get]. +key and every field, as read back as typed data with [Value.get]. The first row +is then loaded again with [~multivalued:false]: only the row itself is read, so +the multivalued field [aliases] is missing from the output. $ tests --load "entity" <<EOF > { @@ -38,4 +40,6 @@ key and every field, as read back as typed data with [Value.get]. {id = 1; aliases = [1, 2]; country = 1; name = "name-1"; year = 1} row 2: {id = 2; aliases = [2]; country = 1; name = "name-2"; year = 2} + row 1 (without multivalued fields): + {id = 1; country = 1; name = "name-1"; year = 1} |
