@prisma-next/sql-lane 0.3.0-dev.4 → 0.3.0-dev.40

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -19,7 +19,7 @@ This package provides the relational query DSL and raw SQL helpers for building
19
19
  - `@prisma-next/contract` - Contract types and plan metadata
20
20
  - `@prisma-next/plan` - Plan helpers and error utilities
21
21
  - `@prisma-next/sql-relational-core` - Schema and column builders, AST factories
22
- - `@prisma-next/sql-target` - SQL contract types and AST definitions
22
+ - `@prisma-next/sql-contract` - SQL contract types (via `@prisma-next/sql-contract/types`)
23
23
 
24
24
  ## Exports
25
25
 
@@ -30,6 +30,14 @@ This package provides the relational query DSL and raw SQL helpers for building
30
30
 
31
31
  This package compiles relational DSL queries to SQL AST nodes using factories from `@prisma-next/sql-relational-core/ast`. Dialect-specific lowering to SQL strings happens in adapters (per ADR 015 and ADR 016).
32
32
 
33
+ ```mermaid
34
+ flowchart LR
35
+ DSL[SQL DSL] --> AST[SqlQueryPlan AST]
36
+ AST --> Plan[SqlQueryPlan]
37
+ Plan --> Runtime[Runtime Lowering + Execute]
38
+ Core[Relational Core] --> DSL
39
+ ```
40
+
33
41
  ### Module Structure
34
42
 
35
43
  The package is organized into focused modules:
@@ -58,5 +66,14 @@ All AST construction flows through factories from `@prisma-next/sql-relational-c
58
66
  ## Related Packages
59
67
 
60
68
  - `@prisma-next/sql-relational-core` - Provides schema and column builders, AST factories used by this package
61
- - `@prisma-next/sql-orm-lane` - ORM builder that compiles to this package's DSL primitives
62
- - `@prisma-next/sql-target` - Defines SQL contract types and AST structures
69
+ - `@prisma-next/sql-orm-client` - Higher-level ORM client extension for model-centric queries
70
+ - `@prisma-next/sql-contract` - Defines SQL contract types (via `@prisma-next/sql-contract/types`)
71
+
72
+ ## Related Subsystems
73
+
74
+ - **[Query Lanes](../../../../docs/architecture%20docs/subsystems/3.%20Query%20Lanes.md)** — Lane authoring and plan building
75
+ - **[Runtime & Plugin Framework](../../../../docs/architecture%20docs/subsystems/4.%20Runtime%20%26%20Plugin%20Framework.md)** — Runtime execution pipeline
76
+
77
+ ## Related ADRs
78
+
79
+ - [ADR 140 - Package Layering & Target-Family Namespacing](../../../../docs/architecture%20docs/adrs/ADR%20140%20-%20Package%20Layering%20%26%20Target-Family%20Namespacing.md)