Commit 93663e6
committed
refactor(sql-orm-client): drop OrderByItem re-export, keep reverse() as the API
Re-exporting OrderByItem (and Direction) from the ORM client singled out
two AST types out of the whole alphabet that otherwise lives only in
@prisma-next/sql-relational-core/ast. .reverse() being an instance method
is enough: integrations call it on the item the orderBy selector already
returns, so no value-level import of OrderByItem is needed.
Move the public-shape type test to relational-core (OrderByItem.reverse()
returns OrderByItem; readable dir/expr) next to the runtime round-trip
test; drop the now-redundant sql-orm-client tests; reword the README
pagination note to use .reverse() inline.
TML-2596
Signed-off-by: Alexey Orlenko's AI Agent <robot@aqrln.net>1 parent e1b6dc2 commit 93663e6
4 files changed
Lines changed: 11 additions & 44 deletions
File tree
- packages
- 2-sql/4-lanes/relational-core/test/ast
- 3-extensions/sql-orm-client
- src/exports
- test
Lines changed: 1 addition & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
2 | 1 | | |
3 | | - | |
| 2 | + | |
4 | 3 | | |
5 | 4 | | |
6 | 5 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
64 | 64 | | |
65 | 65 | | |
66 | 66 | | |
67 | | - | |
| 67 | + | |
| 68 | + | |
68 | 69 | | |
69 | 70 | | |
70 | 71 | | |
71 | 72 | | |
72 | 73 | | |
73 | | - | |
| 74 | + | |
74 | 75 | | |
75 | 76 | | |
76 | | - | |
77 | | - | |
78 | | - | |
79 | | - | |
80 | | - | |
81 | | - | |
82 | | - | |
83 | | - | |
84 | | - | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
85 | 82 | | |
86 | 83 | | |
| 84 | + | |
| 85 | + | |
87 | 86 | | |
88 | 87 | | |
89 | 88 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
2 | | - | |
3 | 1 | | |
4 | 2 | | |
5 | 3 | | |
| |||
Lines changed: 0 additions & 29 deletions
This file was deleted.
0 commit comments