Commit 471261d
committed
test(sql-orm-client): integration parity for arrow-path M:N include
Add a real emitted PSL fixture (mn-psl-arrow-path) authoring a Post <-> Tag
many-to-many over a relation-field-less PostTag junction via the quoted
arrow-path through: form, e.g.
tags Tag[] @relation(through: "id -> PostTag.postId -> PostTag.tagId -> Tag.id")
with the mirror-imaged path on Tag.posts. The resolver builds the through
descriptor straight from the named columns and lowers both ends to
cardinality: 'N:M' + through over post_tags -- the same runtime-consumable
shape the authored-junction (mn-psl-through) and implicit (mn-psl-implicit)
forms emit.
Wire the fixture into the sql-orm-client emit chain so fixtures:check regen
covers it, and add a PGlite integration parity test that drives
db.orm.Post.include('tags') over the arrow-path M:N -- whole-row toEqual,
explicit .select() plus one implicit-selection readback -- proving the
column-based arrow-path contract drives the ORM include end-to-end.
Signed-off-by: Alexey Orlenko's AI Agent <robot@aqrln.net>1 parent aa1022f commit 471261d
6 files changed
Lines changed: 881 additions & 1 deletion
File tree
- packages/3-extensions/sql-orm-client
- test/integration/test/sql-orm-client
- fixtures/mn-psl-arrow-path
- generated
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | | - | |
| 10 | + | |
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
| |||
Lines changed: 51 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
Lines changed: 323 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
0 commit comments