@prisma/orm-family-sql 8.0.0-rc.20-dev.7 → 8.0.0-rc.20-dev.9

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.
Files changed (123) hide show
  1. package/dist/{aggregate-descriptor-registry-ZrKjxwQe.mjs → aggregate-descriptor-registry-CkybswmO.mjs} +2 -2
  2. package/dist/{aggregate-descriptor-registry-ZrKjxwQe.mjs.map → aggregate-descriptor-registry-CkybswmO.mjs.map} +1 -1
  3. package/dist/{ast-YEMe_B8z.d.mts → ast-DcphKbq9.d.mts} +6 -8
  4. package/dist/{ast-YEMe_B8z.d.mts.map → ast-DcphKbq9.d.mts.map} +1 -1
  5. package/dist/{ast-D0miQ1B6.mjs → ast-e_02t9Nt.mjs} +2 -2
  6. package/dist/{ast-D0miQ1B6.mjs.map → ast-e_02t9Nt.mjs.map} +1 -1
  7. package/dist/builder.d.mts +3 -3
  8. package/dist/builder__runtime.d.mts +7 -7
  9. package/dist/builder__runtime.mjs +5 -5
  10. package/dist/builder__types.d.mts +5 -5
  11. package/dist/{collection-methods-D2UnCS0S-DOy2qHYS.d.mts → collection-methods-D9CYfePl-DsDjYS6t.d.mts} +3 -3
  12. package/dist/{collection-methods-D2UnCS0S-DOy2qHYS.d.mts.map → collection-methods-D9CYfePl-DsDjYS6t.d.mts.map} +1 -1
  13. package/dist/collection-methods-FWiYjZ5j.d.mts +1 -0
  14. package/dist/{control-4J_KkH9m.d.mts → control-CffuMKgt.d.mts} +103 -9
  15. package/dist/control-CffuMKgt.d.mts.map +1 -0
  16. package/dist/{control-D1Er9MJE.mjs → control-D7N_L18S.mjs} +510 -152
  17. package/dist/control-D7N_L18S.mjs.map +1 -0
  18. package/dist/{control-adapter-BfyLe7rh-DKIl5Ft6.d.mts → control-adapter-BfyLe7rh-C_rrUuhb.d.mts} +4 -4
  19. package/dist/{control-adapter-BfyLe7rh-DKIl5Ft6.d.mts.map → control-adapter-BfyLe7rh-C_rrUuhb.d.mts.map} +1 -1
  20. package/dist/{control-adapter-cNZNO0Nc.d.mts → control-adapter-CZ84jQ_z.d.mts} +2 -2
  21. package/dist/{control-adapter-cNZNO0Nc.d.mts.map → control-adapter-CZ84jQ_z.d.mts.map} +1 -1
  22. package/dist/{db-D1d75IvM-D4mRDC6w.d.mts → db-D1d75IvM-D5CqruQz.d.mts} +10 -10
  23. package/dist/{db-D1d75IvM-D4mRDC6w.d.mts.map → db-D1d75IvM-D5CqruQz.d.mts.map} +1 -1
  24. package/dist/{ddl-types-By5mT2_S-CdaaFvsX.d.mts → ddl-types-BeA1kjV1-C4d5owxE.d.mts} +3 -3
  25. package/dist/{ddl-types-By5mT2_S-CdaaFvsX.d.mts.map → ddl-types-BeA1kjV1-C4d5owxE.d.mts.map} +1 -1
  26. package/dist/{diff-Bh3cSTWM.d.mts → diff-FNTO8gbI.d.mts} +2 -2
  27. package/dist/{diff-Bh3cSTWM.d.mts.map → diff-FNTO8gbI.d.mts.map} +1 -1
  28. package/dist/{exports-CGzFaakG-DWGJbXKM.mjs → exports-CGzFaakG-Dddm8emA.mjs} +5 -5
  29. package/dist/{exports-CGzFaakG-DWGJbXKM.mjs.map → exports-CGzFaakG-Dddm8emA.mjs.map} +1 -1
  30. package/dist/{expression-CieaNuRM-B1uVqxwd.d.mts → expression-BWRsWR6O-BrUVz0V2.d.mts} +4 -4
  31. package/dist/expression-BWRsWR6O-BrUVz0V2.d.mts.map +1 -0
  32. package/dist/{expression-6ld_ZQL6-fOuazzzm.d.mts → expression-C3F6gxZH-DrYNeDbh.d.mts} +4 -4
  33. package/dist/{expression-6ld_ZQL6-fOuazzzm.d.mts.map → expression-C3F6gxZH-DrYNeDbh.d.mts.map} +1 -1
  34. package/dist/expression-CQHy0GY7.d.mts +2 -0
  35. package/dist/{expression-impl-B-XNINxr-BhN2sysZ.mjs → expression-impl-DtbmFnnz-CUKzBisY.mjs} +3 -3
  36. package/dist/{expression-impl-B-XNINxr-BhN2sysZ.mjs.map → expression-impl-DtbmFnnz-CUKzBisY.mjs.map} +1 -1
  37. package/dist/family.d.mts +7 -7
  38. package/dist/family.mjs +4 -4
  39. package/dist/family__control-adapter.d.mts +2 -2
  40. package/dist/family__control.d.mts +3 -3
  41. package/dist/family__control.mjs +2 -2
  42. package/dist/family__diff.d.mts +1 -1
  43. package/dist/family__migration.d.mts +1 -1
  44. package/dist/family__pack.mjs +2 -2
  45. package/dist/{functions-EW-RrRn3.d.mts → functions-CQrsCHCj.d.mts} +3 -3
  46. package/dist/{functions-EW-RrRn3.d.mts.map → functions-CQrsCHCj.d.mts.map} +1 -1
  47. package/dist/{functions-CsOoN7I3.mjs → functions-D7lN5-JU.mjs} +3 -3
  48. package/dist/{functions-CsOoN7I3.mjs.map → functions-D7lN5-JU.mjs.map} +1 -1
  49. package/dist/{generator-functions-Cg5QkM46-D6M4ayK9.mjs → generator-functions-Cg5QkM46-C1ByFzyT.mjs} +2 -2
  50. package/dist/{generator-functions-Cg5QkM46-D6M4ayK9.mjs.map → generator-functions-Cg5QkM46-C1ByFzyT.mjs.map} +1 -1
  51. package/dist/{index-BvH9bNl_.d.mts → index-0qfR8_db.d.mts} +17 -17
  52. package/dist/{index-BvH9bNl_.d.mts.map → index-0qfR8_db.d.mts.map} +1 -1
  53. package/dist/index-reference-BVkoanQn.d.mts +1 -0
  54. package/dist/{index-reference-4wsdeB7v-DCwswK-q.d.mts → index-reference-YHvh6wAL-BAhOS7RC.d.mts} +3 -3
  55. package/dist/{index-reference-4wsdeB7v-DCwswK-q.d.mts.map → index-reference-YHvh6wAL-BAhOS7RC.d.mts.map} +1 -1
  56. package/dist/middleware-DYiOUIpn.d.mts +1 -0
  57. package/dist/{middleware-DHkW6pRr-DM6hd9iZ.d.mts → middleware-JfHt_Ax8-DKXbos9y.d.mts} +3 -3
  58. package/dist/{middleware-DHkW6pRr-DM6hd9iZ.d.mts.map → middleware-JfHt_Ax8-DKXbos9y.d.mts.map} +1 -1
  59. package/dist/{middleware-yBAfiVWn-DZO0vCRQ.mjs → middleware-qY3R0WsS-8GWtk_Bf.mjs} +3 -3
  60. package/dist/{middleware-yBAfiVWn-DZO0vCRQ.mjs.map → middleware-qY3R0WsS-8GWtk_Bf.mjs.map} +1 -1
  61. package/dist/{migration-D7inCpXQ.d.mts → migration-qalbcIUs.d.mts} +2 -2
  62. package/dist/{migration-D7inCpXQ.d.mts.map → migration-qalbcIUs.d.mts.map} +1 -1
  63. package/dist/orm-client.d.mts +17 -17
  64. package/dist/orm-client.mjs +6 -6
  65. package/dist/{pack-CNrW7w8L.mjs → pack-DOTaBfUC.mjs} +2 -2
  66. package/dist/{pack-CNrW7w8L.mjs.map → pack-DOTaBfUC.mjs.map} +1 -1
  67. package/dist/{plan-Cr4azjnG-CuL8FqXC.d.mts → plan-CMqVpPq6-Bllx5Zpk.d.mts} +3 -3
  68. package/dist/{plan-Cr4azjnG-CuL8FqXC.d.mts.map → plan-CMqVpPq6-Bllx5Zpk.d.mts.map} +1 -1
  69. package/dist/plan-Cg0h96GD.d.mts +2 -0
  70. package/dist/{query-lane-context-BCEoKy0_-CzmyavC9.d.mts → query-lane-context-DLSXDsDK-pEiQmuYy.d.mts} +5 -5
  71. package/dist/{query-lane-context-BCEoKy0_-CzmyavC9.d.mts.map → query-lane-context-DLSXDsDK-pEiQmuYy.d.mts.map} +1 -1
  72. package/dist/query-lane-context-Dqs5qCXx.d.mts +1 -0
  73. package/dist/relational-core.d.mts +12 -12
  74. package/dist/relational-core.mjs +5 -5
  75. package/dist/relational-core__aggregate-descriptor-registry.d.mts +1 -1
  76. package/dist/relational-core__aggregate-descriptor-registry.mjs +1 -1
  77. package/dist/relational-core__ast.d.mts +3 -3
  78. package/dist/relational-core__ast.mjs +3 -3
  79. package/dist/relational-core__codec-descriptor-registry.d.mts +2 -2
  80. package/dist/relational-core__collection-methods.d.mts +2 -2
  81. package/dist/relational-core__contract-free.d.mts +2 -2
  82. package/dist/relational-core__contract-free.mjs +1 -1
  83. package/dist/relational-core__contract-free.mjs.map +1 -1
  84. package/dist/relational-core__expression.d.mts +3 -3
  85. package/dist/relational-core__expression.mjs +1 -1
  86. package/dist/relational-core__functions.d.mts +1 -1
  87. package/dist/relational-core__functions.mjs +1 -1
  88. package/dist/relational-core__index-reference.d.mts +2 -2
  89. package/dist/relational-core__middleware.d.mts +2 -2
  90. package/dist/relational-core__middleware.mjs +1 -1
  91. package/dist/relational-core__plan.d.mts +3 -3
  92. package/dist/relational-core__query-lane-context.d.mts +2 -2
  93. package/dist/relational-core__types.d.mts +2 -2
  94. package/dist/runtime.d.mts +4 -4
  95. package/dist/runtime.mjs +1 -1
  96. package/dist/runtime__internal__prepared-query.d.mts +1 -1
  97. package/dist/{sql-execution-plan-3uxYjHyu-DLknM-Pj.d.mts → sql-execution-plan-CN-FEwrR-CzRFoxKR.d.mts} +3 -3
  98. package/dist/sql-execution-plan-CN-FEwrR-CzRFoxKR.d.mts.map +1 -0
  99. package/dist/{transaction-state-DR3nKTmH-D29jmVE-.d.mts → transaction-state-DR3nKTmH-BIKF_fP6.d.mts} +9 -9
  100. package/dist/{transaction-state-DR3nKTmH-D29jmVE-.d.mts.map → transaction-state-DR3nKTmH-BIKF_fP6.d.mts.map} +1 -1
  101. package/dist/{types-NTQsD2MS-xcLtvKO9.mjs → types-BkTuhW3Z-BJfTjcxS.mjs} +3 -5
  102. package/dist/{types-NTQsD2MS-xcLtvKO9.mjs.map → types-BkTuhW3Z-BJfTjcxS.mjs.map} +1 -1
  103. package/dist/{types-COXfSNOP-GD5gtZcQ.d.mts → types-COXfSNOP-DcuULeD9.d.mts} +2 -2
  104. package/dist/{types-COXfSNOP-GD5gtZcQ.d.mts.map → types-COXfSNOP-DcuULeD9.d.mts.map} +1 -1
  105. package/dist/types-CvmPNREJ.d.mts +1 -0
  106. package/dist/{types-TXO7x1BA-CYYIY8NI.d.mts → types-NgqqVAo5-Be_uYGQx.d.mts} +6 -6
  107. package/dist/{types-TXO7x1BA-CYYIY8NI.d.mts.map → types-NgqqVAo5-Be_uYGQx.d.mts.map} +1 -1
  108. package/dist/{types-DriMIMNQ-BkbsW7w3.d.mts → types-ijhejJhK-EdACW3bY.d.mts} +5 -8
  109. package/dist/{types-DriMIMNQ-BkbsW7w3.d.mts.map → types-ijhejJhK-EdACW3bY.d.mts.map} +1 -1
  110. package/dist/{util-BBgcP3gI-CpL-0VuC.mjs → util-DixeJBri-Cad7x5ec.mjs} +5 -7
  111. package/dist/{util-BBgcP3gI-CpL-0VuC.mjs.map → util-DixeJBri-Cad7x5ec.mjs.map} +1 -1
  112. package/package.json +18 -18
  113. package/dist/collection-methods-BB8YH69u.d.mts +0 -1
  114. package/dist/control-4J_KkH9m.d.mts.map +0 -1
  115. package/dist/control-D1Er9MJE.mjs.map +0 -1
  116. package/dist/expression-CieaNuRM-B1uVqxwd.d.mts.map +0 -1
  117. package/dist/expression-D8HstQiB.d.mts +0 -2
  118. package/dist/index-reference-D8ewQRJr.d.mts +0 -1
  119. package/dist/middleware-gqy3l13N.d.mts +0 -1
  120. package/dist/plan-Di6Gs2JD.d.mts +0 -2
  121. package/dist/query-lane-context-VqH0mS9B.d.mts +0 -1
  122. package/dist/sql-execution-plan-3uxYjHyu-DLknM-Pj.d.mts.map +0 -1
  123. package/dist/types-B9wSEUsV.d.mts +0 -1
@@ -1,6 +1,6 @@
1
- import { c as AnyExpression } from "./types-DriMIMNQ-BkbsW7w3.mjs";
2
- import { o as Expression, x as ScopeField } from "./expression-6ld_ZQL6-fOuazzzm.mjs";
3
- //#region ../../../2-sql-family/4-lanes/relational-core/dist/expression-CieaNuRM.d.mts
1
+ import { c as AnyExpression } from "./types-ijhejJhK-EdACW3bY.mjs";
2
+ import { o as Expression, x as ScopeField } from "./expression-C3F6gxZH-DrYNeDbh.mjs";
3
+ //#region ../../../2-sql-family/4-lanes/relational-core/dist/expression-BWRsWR6O.d.mts
4
4
  //#region src/expression-impl.d.ts
5
5
  /**
6
6
  * Runtime wrapper around a relational-core AST expression node. Carries ScopeField metadata (codecId, nullable) so aggregate-like combinators can propagate the input codec onto their result.
@@ -19,4 +19,4 @@ declare class ExpressionImpl<T extends ScopeField = ScopeField> implements Expre
19
19
  }
20
20
  //#endregion
21
21
  export { ExpressionImpl as t };
22
- //# sourceMappingURL=expression-CieaNuRM-B1uVqxwd.d.mts.map
22
+ //# sourceMappingURL=expression-BWRsWR6O-BrUVz0V2.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"expression-BWRsWR6O-BrUVz0V2.d.mts","names":[],"sources":["../../../../2-sql-family/4-lanes/relational-core/dist/expression-BWRsWR6O.d.mts"],"mappings":";;;;;;;;;;;cAUc,eAAe,UAAU,aAAa,uBAAuB,WAAW;mBACnE;mBACA;WACR,YAAY;EACrB,YAAY,KAAK,eAAe,YAAY,GAAG,gBAAgB;EAC/D,YAAY;EACZ,sBAAsB"}
@@ -2,12 +2,12 @@ import { l as SqlStorage } from "./sql-storage-DeCAh5Hi-CEM-m8cs.mjs";
2
2
  import { w as QueryOperationReturn } from "./types-DfKvtJwS-CrpWTGBJ.mjs";
3
3
  import "./types-CkAd8SWm.mjs";
4
4
  import { t as SqlLoweringSpec } from "./index-Nqc3OHR_.mjs";
5
- import { At as RawQueryColumn, E as CodecRef$1, Mt as RawSqlLiteral, c as AnyExpression, kt as RawQueryAst, wt as ParamRef } from "./types-DriMIMNQ-BkbsW7w3.mjs";
5
+ import { At as RawQueryColumn, E as CodecRef$1, Mt as RawSqlLiteral, c as AnyExpression, kt as RawQueryAst, wt as ParamRef } from "./types-ijhejJhK-EdACW3bY.mjs";
6
6
  import { l as SqlStatementStats } from "./driver-types-DRsYeq3j-BimeCnUk.mjs";
7
- import { n as SqlQueryPlan } from "./plan-Cr4azjnG-CuL8FqXC.mjs";
7
+ import { n as SqlQueryPlan } from "./plan-CMqVpPq6-Bllx5Zpk.mjs";
8
8
  import { Contract } from "@prisma/orm-framework/contract/types";
9
9
  import { ParamSpec } from "@prisma/orm-framework/operations";
10
- //#region ../../../2-sql-family/4-lanes/relational-core/dist/expression-6ld_ZQL6.d.mts
10
+ //#region ../../../2-sql-family/4-lanes/relational-core/dist/expression-C3F6gxZH.d.mts
11
11
  //#region src/expression.d.ts
12
12
  type ScopeField = {
13
13
  codecId: string;
@@ -275,4 +275,4 @@ declare function createRawSql(adapter: RawCodecInferer, planContext: RawPlanCont
275
275
  declare function createRawSql(adapter: RawCodecInferer): RawSqlTag;
276
276
  //#endregion
277
277
  export { TraitExpression as C, isExpression as D, createRawSql as E, param as O, StorageColumnScopeField as S, codecOf as T, RawSqlStatementBuilder as _, CodecValue as a, ScalarListExpression as b, RawAffectedCountQuery as c, RawRow as d, RawRowQuery as f, RawSqlInterpolation as g, RawSqlBuilder as h, CodecTypesBase as i, toExpr as k, RawCodecInferer as l, RawRowSpecEntry as m, BuildOperationSpec as n, Expression as o, RawRowSpec as p, CodecExpression as r, NoReservedRowColumn as s, AffectedCount as t, RawPlanContext as u, RawSqlStatementTag as v, buildOperation as w, ScopeField as x, RawSqlTag as y };
278
- //# sourceMappingURL=expression-6ld_ZQL6-fOuazzzm.d.mts.map
278
+ //# sourceMappingURL=expression-C3F6gxZH-DrYNeDbh.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"expression-6ld_ZQL6-fOuazzzm.d.mts","names":[],"sources":["../../../../2-sql-family/4-lanes/relational-core/dist/expression-6ld_ZQL6.d.mts"],"mappings":";;;;;;;;;;;KAQK;EACH;EACA;;;;;;;;EAQA;;;;EAIA,QAAQ;;;KAGL,wBAAwB;WAClB;WACA;;EAET,SAAS;EACT,UAAU;KACP;EACH;;EAEA;IACE;KACC,iBAAiB;WACX;WACA;;;;;KAKN,WAAW,UAAU,cAAc;WAC7B,YAAY;EACrB,YAAY;;KAET,kBAAkB,WAAW;WACvB;IACP,+CAA+C,WAAW,cAAc,GAAG;WACpE,cAAc;KACpB,iCAAiC,KAAK,2BAA2B;KACjE,WAAW,KAAK;;;;;KAKhB,WAAW,wBAAwB,0BAA0B,WAAW;WAClE;OACJ,sBAAsB,KA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B,QAAQ,0BAA0B;;KAEjF,sBAAsB,SAAS,yBAAyB,QAAQ,0BAA0B;;KAE1F,uBAAuB,WAAW,cAAc,WAAW;;KAE3D,sBAAsB,uBAAuB;;;;;;;;iBAQjC,aAAa,SAAS,iBAAiB,aAAa,iBAAiB;iBACrE,aAAa,SAAS,kBAAkB"}
1
+ {"version":3,"file":"expression-C3F6gxZH-DrYNeDbh.d.mts","names":[],"sources":["../../../../2-sql-family/4-lanes/relational-core/dist/expression-C3F6gxZH.d.mts"],"mappings":";;;;;;;;;;;KAQK;EACH;EACA;;;;;;;;EAQA;;;;EAIA,QAAQ;;;KAGL,wBAAwB;WAClB;WACA;;EAET,SAAS;EACT,UAAU;KACP;EACH;;EAEA;IACE;KACC,iBAAiB;WACX;WACA;;;;;KAKN,WAAW,UAAU,cAAc;WAC7B,YAAY;EACrB,YAAY;;KAET,kBAAkB,WAAW;WACvB;IACP,+CAA+C,WAAW,cAAc,GAAG;WACpE,cAAc;KACpB,iCAAiC,KAAK,2BAA2B;KACjE,WAAW,KAAK;;;;;KAKhB,WAAW,wBAAwB,0BAA0B,WAAW;WAClE;OACJ,sBAAsB,KAAK,GAAG,6BAA6B,WAAW;;;;;;;;;;;;;;;KAexE,gBAAgB,wBAAwB,0BAA0B,WAAW;WACvE;MACL;EACJ,SAAS;EACT,UAAU;EACV;KACG,WAAW,SAAS,UAAU;;;;;;;KAO9B,qBAAqB,wBAAwB,4BAA4B;EAC5E,SAAS;EACT,UAAU;EACV;;;;;;;KAOG,gBAAgB,kCAAkC,0BAA0B,WAAW;WACjF;MACL,gBAAgB,kBAAkB,IAAI,SAAS,UAAU;;;;;;;;iBAQ9C,OAAO,gBAAgB,QAAQ,aAAW;;;;iBAI1C,MAAM,GAAG,OAAO,GAAG;EAClC;IACE;;;;;;;;;;iBAUa,QAAQ,iBAAiB;iBACzB,aAAa,iBAAiB,SAAS,WAAW;UACzD,mBAAmB,UAAU;WAC5B;;;;WAIA,gBAAgB,kBAAkB;WAClC,SAAS,IAAI;WACb,UAAU;;;;;iBAKJ,eAAe,UAAU,YAAY,MAAM,mBAAmB,KAAK,WAAW;;;;;;;;;;;;;UAarF;EACR,WAAW,OAAO;;;UAGV;EACR,QAAQ,kBAAkB,MAAM,IAAI;IAClC,SAAS;IACT;;EAEF,QAAQ,kBAAkB,2BAA2B;aAC1C,SAAS;aACT,WAAW;MAClB;IACF,SAAS;IACT,UAAU;;;;;;;;;KAST;WACM;WACA;;;;;;;;;KASN;WACM;;;KAGN,aAAa,SAAS,eAAe,oBAAoB;;;;;;KAMzD,OAAO,aAAa,0BAA0B,WAAW;;;;;UAKpD;WACC,UAAU,SAAS;WACnB;;;;;;;;;;UAUD,YAAY,eAAe,aAAa,SAAS,eAAe,mBAAmB,SAAS,eAAe;;;;;;;;;WAS1G,SAAS;EAClB,YAAY;EACZ,SAAS,aAAa;;cAEV;;;;;;;;;;UAUJ,sBAAsB;YACpB;;;;;;;;UAQF;EACR,SAAS,aAAa;;;;;;;UAOd,+BAA+B;EACvC,WAAW,aAAa,YAAY,MAAM,OAAO,YAAY,OAAO;EACpE,iBAAiB;;;KAGd,aAAa,SAAS,yBAAyB,QAAQ,0BAA0B;;KAEjF,sBAAsB,SAAS,yBAAyB,QAAQ,0BAA0B;;KAE1F,uBAAuB,WAAW,cAAc,WAAW;;KAE3D,sBAAsB,uBAAuB;;;;;;;;iBAQjC,aAAa,SAAS,iBAAiB,aAAa,iBAAiB;iBACrE,aAAa,SAAS,kBAAkB"}
@@ -0,0 +1,2 @@
1
+ import "./expression-C3F6gxZH-DrYNeDbh.mjs";
2
+ import "./expression-BWRsWR6O-BrUVz0V2.mjs";
@@ -1,8 +1,8 @@
1
- import { A as ParamRef, D as OperationExpr, N as RawExpr, P as RawQueryAst } from "./types-NTQsD2MS-xcLtvKO9.mjs";
1
+ import { A as ParamRef, D as OperationExpr, N as RawExpr, P as RawQueryAst } from "./types-BkTuhW3Z-BJfTjcxS.mjs";
2
2
  import { t as planFromAst } from "./plan-Dh0LbYIv-ubBSdUgl.mjs";
3
3
  import { runtimeError } from "@prisma/orm-framework/components/runtime";
4
4
  import { invariant } from "@prisma/orm-framework/utils/assertions";
5
- //#region ../../../2-sql-family/4-lanes/relational-core/dist/expression-impl-B-XNINxr.mjs
5
+ //#region ../../../2-sql-family/4-lanes/relational-core/dist/expression-impl-DtbmFnnz.mjs
6
6
  /**
7
7
  * Resolve a raw value or an Expression into an AST expression node.
8
8
  *
@@ -168,4 +168,4 @@ var ExpressionImpl = class {
168
168
  //#endregion
169
169
  export { isExpression as a, createRawSql as i, buildOperation as n, param as o, codecOf as r, toExpr as s, ExpressionImpl as t };
170
170
 
171
- //# sourceMappingURL=expression-impl-B-XNINxr-BhN2sysZ.mjs.map
171
+ //# sourceMappingURL=expression-impl-DtbmFnnz-CUKzBisY.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"expression-impl-B-XNINxr-BhN2sysZ.mjs","names":[],"sources":["../../../../2-sql-family/4-lanes/relational-core/dist/expression-impl-B-XNINxr.mjs"],"sourcesContent":["import { A as ParamRef, D as OperationExpr, N as RawExpr, P as RawQueryAst } from \"./types-NTQsD2MS.mjs\";\nimport { t as planFromAst } from \"./plan-Dh0LbYIv.mjs\";\nimport { runtimeError } from \"@internal/framework-components/runtime\";\nimport { invariant } from \"@internal/utils/assertions\";\n//#region src/expression.ts\n/**\n* Resolve a raw value or an Expression into an AST expression node.\n*\n* When `value` is an object with a callable `buildAst`, the AST it wraps is returned. Otherwise the value is embedded as a ParamRef tagged with the caller-supplied {@link CodecRef} (when known). The runtime resolves the ref via `contractCodecs.forCodecRef(codec)`; content-keyed memoisation collapses repeated lookups for the same logical column onto one shared codec.\n*\n* Operation implementations that compare a column-bound expression to a user value derive the column's {@link CodecRef} from the column-bound side (via {@link codecOf}) and forward it here so encode-side dispatch resolves to the per-instance codec for parameterized codec ids (`vector(1024)` vs. `vector(1536)`).\n*/\nfunction toExpr(value, codec) {\n\tif (isExpression(value)) return value.buildAst();\n\tif (codec === void 0) throw runtimeError(\"RUNTIME.PARAM_REF_CODEC_REQUIRED\", `Cannot construct a ParamRef for a ${value === null ? \"null\" : typeof value} value without an explicit codec. Provide a CodecRef at the call site or use a column-bound builder path.`);\n\treturn ParamRef.of(value, { codec });\n}\n/**\n* Construct a `ParamRef` for a value whose codec identity is known at call time. Use this when interpolating a value into a raw SQL expression and the codec cannot be inferred from context — e.g. `param(myDate, { codecId: 'pg/timestamptz-temporal@1' })`.\n*/\nfunction param(value, opts) {\n\treturn ParamRef.of(value, { codec: { codecId: opts.codecId } });\n}\n/**\n* Derive the {@link CodecRef} carried by an expression-like value.\n*\n* Resolution order:\n* 1. `wrapper.returnType.codec` — scope-level codec when the scope was built from contract storage.\n* 2. `{ codecId: wrapper.returnType.codecId }` — minimal ref derived from the expression's declared codec id (covers synthetic expressions like `count()` whose returnType has a known codec id but no explicit column binding).\n*\n* Returns `undefined` for raw scalar values (non-expression-like).\n*/\nfunction codecOf(value) {\n\tif (!isExpression(value)) return void 0;\n\treturn value.returnType?.codec ?? (value.returnType?.codecId ? { codecId: value.returnType.codecId } : void 0);\n}\nfunction isExpression(value) {\n\treturn typeof value === \"object\" && value !== null && \"buildAst\" in value && typeof value.buildAst === \"function\";\n}\n/**\n* Construct an OperationExpr AST node and wrap it as a typed Expression. Operation implementations use this to turn their user-facing arguments into the AST node the compilation pipeline eventually lowers to SQL.\n*/\nfunction buildOperation(spec) {\n\tconst [self, ...rest] = spec.args;\n\tconst op = new OperationExpr({\n\t\tmethod: spec.method,\n\t\tself,\n\t\targs: rest.length > 0 ? rest : void 0,\n\t\treturns: spec.returns,\n\t\tlowering: spec.lowering\n\t});\n\treturn {\n\t\treturnType: spec.returns,\n\t\tbuildAst: () => op\n\t};\n}\nfunction resolveInterpolation(adapter, value) {\n\tif (isExpression(value)) return value.buildAst();\n\tif (value instanceof ParamRef) return value;\n\tif (typeof value === \"number\" || typeof value === \"bigint\" || typeof value === \"string\" || typeof value === \"boolean\" || value instanceof Uint8Array) return ParamRef.of(value, { codec: { codecId: adapter.inferCodec(value) } });\n\tthrow runtimeError(\"RUNTIME.RAW_SQL_UNSUPPORTED_INTERPOLATION\", \"unsupported JS value type for raw-SQL interpolation: wrap this value in `param(...)` with an explicit codec\");\n}\nfunction isRawRowQuery(value) {\n\treturn typeof value === \"object\" && value !== null && \"buildAst\" in value && typeof value.buildAst === \"function\" && \"build\" in value && typeof value.build === \"function\";\n}\nfunction templateParts(adapter, strings, values) {\n\tconst parts = [strings[0] ?? \"\"];\n\tvalues.forEach((value, i) => {\n\t\tif (isRawRowQuery(value)) parts.push(...value.buildAst().parts);\n\t\telse parts.push(resolveInterpolation(adapter, value));\n\t\tparts.push(strings[i + 1] ?? \"\");\n\t});\n\treturn parts;\n}\n/**\n* Normalizes each authored entry to a {@link RawQueryColumn}. The record is\n* assembled with `Object.fromEntries`, which defines each key as an own\n* property: a spec built at runtime with a `__proto__` key reaches the AST,\n* which refuses it by name, rather than silently setting the record's\n* prototype and leaving the column to vanish.\n*/\nfunction resolveRowSpec(spec) {\n\treturn Object.fromEntries(Object.entries(spec).map(([name, entry]) => [name, typeof entry === \"string\" ? {\n\t\tcodecId: entry,\n\t\tnullable: false\n\t} : {\n\t\tcodecId: entry.codecId,\n\t\tnullable: entry.nullable ?? false\n\t}]));\n}\nfunction createRawSql(adapter, planContext) {\n\tif (planContext === void 0) return (strings, ...values) => new RawSqlBuilderImpl(templateParts(adapter, strings, values));\n\tconst context = planContext;\n\treturn (strings, ...values) => new RawSqlStatementBuilderImpl(templateParts(adapter, strings, values), context);\n}\nvar RawSqlBuilderImpl = class {\n\tparts;\n\tconstructor(parts) {\n\t\tthis.parts = parts;\n\t}\n\treturns(spec) {\n\t\tconst codecId = typeof spec === \"string\" ? spec : spec.codecId;\n\t\tconst nullable = typeof spec === \"string\" ? false : spec.nullable ?? false;\n\t\tconst paramSpec = {\n\t\t\tcodecId,\n\t\t\tnullable\n\t\t};\n\t\tconst node = new RawExpr({\n\t\t\tparts: this.parts,\n\t\t\treturns: paramSpec\n\t\t});\n\t\treturn {\n\t\t\treturnType: {\n\t\t\t\tcodecId,\n\t\t\t\tnullable\n\t\t\t},\n\t\t\tbuildAst: () => node\n\t\t};\n\t}\n};\nvar RawSqlStatementBuilderImpl = class extends RawSqlBuilderImpl {\n\tplanContext;\n\tconstructor(parts, planContext) {\n\t\tsuper(parts);\n\t\tthis.planContext = planContext;\n\t}\n\treturnsRow(spec) {\n\t\tconst node = RawQueryAst.rows(this.parts, resolveRowSpec(spec));\n\t\tconst result = node.result;\n\t\tinvariant(result.kind === \"rows\", \"RawQueryAst.rows built a non-rows result\");\n\t\treturn {\n\t\t\treturns: result.columns,\n\t\t\tbuildAst: () => node,\n\t\t\tbuild: () => this.planFor(node)\n\t\t};\n\t}\n\taffectedCount() {\n\t\tconst node = RawQueryAst.affectedCount(this.parts);\n\t\treturn { build: () => this.planFor(node) };\n\t}\n\tplanFor(node) {\n\t\treturn planFromAst(node, this.planContext.contract, this.planContext.laneId);\n\t}\n};\n//#endregion\n//#region src/expression-impl.ts\n/**\n* Runtime wrapper around a relational-core AST expression node. Carries ScopeField metadata (codecId, nullable) so aggregate-like combinators can propagate the input codec onto their result.\n*\n* `returnType.codec` records the column-bound codec ref when the field-proxy knows the binding — both the namespaced form (`f.user.email` → `ColumnRef`) and the top-level shortcut (`f.email` → `IdentifierRef`) stamp the ref derived from contract storage. `codecOf(expression)` exposes it for operation implementations forwarding the ref to `toExpr`.\n*\n* `projectionAst` carries the descriptor-lowered rendering of the expression, where a target declares one (e.g. SQLite's `CAST(count(*) AS TEXT)`). Lowering exists to carry the value across the driver boundary, so only the projection site consumes it — predicate and ordering positions (`buildAst()`) keep the plain form, where the rendering would change SQL semantics.\n*/\nvar ExpressionImpl = class {\n\tast;\n\tprojectionAst;\n\treturnType;\n\tconstructor(ast, returnType, projectionAst) {\n\t\tthis.ast = ast;\n\t\tthis.returnType = returnType;\n\t\tthis.projectionAst = projectionAst;\n\t}\n\tbuildAst() {\n\t\treturn this.ast;\n\t}\n\tbuildProjectionAst() {\n\t\treturn this.projectionAst ?? this.ast;\n\t}\n};\n//#endregion\nexport { isExpression as a, createRawSql as i, buildOperation as n, param as o, codecOf as r, toExpr as s, ExpressionImpl as t };\n\n//# sourceMappingURL=expression-impl-B-XNINxr.mjs.map"],"mappings":";;;;;;;;;;;;AAYA,SAAS,OAAO,OAAO,OAAO;CAC7B,IAAI,aAAa,KAAK,GAAG,OAAO,MAAM,SAAS;CAC/C,IAAI,UAAU,KAAK,GAAG,MAAM,aAAa,oCAAoC,qCAAqC,UAAU,OAAO,SAAS,OAAO,MAAM,0GAA0G;CACnQ,OAAO,SAAS,GAAG,OAAO,EAAE,MAAM,CAAC;AACpC;;;;AAIA,SAAS,MAAM,OAAO,MAAM;CAC3B,OAAO,SAAS,GAAG,OAAO,EAAE,OAAO,EAAE,SAAS,KAAK,QAAQ,EAAE,CAAC;AAC/D;;;;;;;;;;AAUA,SAAS,QAAQ,OAAO;CACvB,IAAI,CAAC,aAAa,KAAK,GAAG,OAAO,KAAK;CACtC,OAAO,MAAM,YAAY,UAAU,MAAM,YAAY,UAAU,EAAE,SAAS,MAAM,WAAW,QAAQ,IAAI,KAAK;AAC7G;AACA,SAAS,aAAa,OAAO;CAC5B,OAAO,OAAO,UAAU,YAAY,UAAU,QAAQ,cAAc,SAAS,OAAO,MAAM,aAAa;AACxG;;;;AAIA,SAAS,eAAe,MAAM;CAC7B,MAAM,CAAC,MAAM,GAAG,QAAQ,KAAK;CAC7B,MAAM,KAAK,IAAI,cAAc;EAC5B,QAAQ,KAAK;EACb;EACA,MAAM,KAAK,SAAS,IAAI,OAAO,KAAK;EACpC,SAAS,KAAK;EACd,UAAU,KAAK;CAChB,CAAC;CACD,OAAO;EACN,YAAY,KAAK;EACjB,gBAAgB;CACjB;AACD;AACA,SAAS,qBAAqB,SAAS,OAAO;CAC7C,IAAI,aAAa,KAAK,GAAG,OAAO,MAAM,SAAS;CAC/C,IAAI,iBAAiB,UAAU,OA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CACd;CACA,QAAQ,MAAM;EACb,MAAM,UAAU,OAAO,SAAS,WAAW,OAAO,KAAK;EACvD,MAAM,WAAW,OAAO,SAAS,WAAW,QAAQ,KAAK,YAAY;EACrE,MAAM,YAAY;GACjB;GACA;EACD;EACA,MAAM,OAAO,IAAI,QAAQ;GACxB,OAAO,KAAK;GACZ,SAAS;EACV,CAAC;EACD,OAAO;GACN,YAAY;IACX;IACA;GACD;GACA,gBAAgB;EACjB;CACD;AACD;AACA,IAAI,6BAA6B,cAAc,kBAAkB;CAChE;CACA,YAAY,OAAO,aAAa;EAC/B,MAAM,KAAK;EACX,KAAK,cAAc;CACpB;CACA,WAAW,MAAM;EAChB,MAAM,OAAO,YAAY,KAAK,KAAK,OAAO,eAAe,IAAI,CAAC;EAC9D,MAAM,SAAS,KAAK;EACpB,UAAU,OAAO,SAAS,QAAQ,0CAA0C;EAC5E,OAAO;GACN,SAAS,OAAO;GAChB,gBAAgB;GAChB,aAAa,KAAK,QAAQ,IAAI;EAC/B;CACD;CACA,gBAAgB;EACf,MAAM,OAAO,YAAY,cAAc,KAAK,KAAK;EACjD,OAAO,EAAE,aAAa,KAAK,QAAQ,IAAI,EAAE;CAC1C;CACA,QAAQ,MAAM;EACb,OAAO,YAAY,MAAM,KAAK,YAAY,UAAU,KAAK,YAAY,MAAM;CAC5E;AACD;;;;;;;;AAUA,IAAI,iBAAiB,MAAM;CAC1B;CACA;CACA;CACA,YAAY,KAAK,YAAY,eAAe;EAC3C,KAAK,MAAM;EACX,KAAK,aAAa;EAClB,KAAK,gBAAgB;CACtB;CACA,WAAW;EACV,OAAO,KAAK;CACb;CACA,qBAAqB;EACpB,OAAO,KAAK,iBAAiB,KAAK;CACnC;AACD"}
1
+ {"version":3,"file":"expression-impl-DtbmFnnz-CUKzBisY.mjs","names":[],"sources":["../../../../2-sql-family/4-lanes/relational-core/dist/expression-impl-DtbmFnnz.mjs"],"sourcesContent":["import { A as ParamRef, D as OperationExpr, N as RawExpr, P as RawQueryAst } from \"./types-BkTuhW3Z.mjs\";\nimport { t as planFromAst } from \"./plan-Dh0LbYIv.mjs\";\nimport { runtimeError } from \"@internal/framework-components/runtime\";\nimport { invariant } from \"@internal/utils/assertions\";\n//#region src/expression.ts\n/**\n* Resolve a raw value or an Expression into an AST expression node.\n*\n* When `value` is an object with a callable `buildAst`, the AST it wraps is returned. Otherwise the value is embedded as a ParamRef tagged with the caller-supplied {@link CodecRef} (when known). The runtime resolves the ref via `contractCodecs.forCodecRef(codec)`; content-keyed memoisation collapses repeated lookups for the same logical column onto one shared codec.\n*\n* Operation implementations that compare a column-bound expression to a user value derive the column's {@link CodecRef} from the column-bound side (via {@link codecOf}) and forward it here so encode-side dispatch resolves to the per-instance codec for parameterized codec ids (`vector(1024)` vs. `vector(1536)`).\n*/\nfunction toExpr(value, codec) {\n\tif (isExpression(value)) return value.buildAst();\n\tif (codec === void 0) throw runtimeError(\"RUNTIME.PARAM_REF_CODEC_REQUIRED\", `Cannot construct a ParamRef for a ${value === null ? \"null\" : typeof value} value without an explicit codec. Provide a CodecRef at the call site or use a column-bound builder path.`);\n\treturn ParamRef.of(value, { codec });\n}\n/**\n* Construct a `ParamRef` for a value whose codec identity is known at call time. Use this when interpolating a value into a raw SQL expression and the codec cannot be inferred from context — e.g. `param(myDate, { codecId: 'pg/timestamptz-temporal@1' })`.\n*/\nfunction param(value, opts) {\n\treturn ParamRef.of(value, { codec: { codecId: opts.codecId } });\n}\n/**\n* Derive the {@link CodecRef} carried by an expression-like value.\n*\n* Resolution order:\n* 1. `wrapper.returnType.codec` — scope-level codec when the scope was built from contract storage.\n* 2. `{ codecId: wrapper.returnType.codecId }` — minimal ref derived from the expression's declared codec id (covers synthetic expressions like `count()` whose returnType has a known codec id but no explicit column binding).\n*\n* Returns `undefined` for raw scalar values (non-expression-like).\n*/\nfunction codecOf(value) {\n\tif (!isExpression(value)) return void 0;\n\treturn value.returnType?.codec ?? (value.returnType?.codecId ? { codecId: value.returnType.codecId } : void 0);\n}\nfunction isExpression(value) {\n\treturn typeof value === \"object\" && value !== null && \"buildAst\" in value && typeof value.buildAst === \"function\";\n}\n/**\n* Construct an OperationExpr AST node and wrap it as a typed Expression. Operation implementations use this to turn their user-facing arguments into the AST node the compilation pipeline eventually lowers to SQL.\n*/\nfunction buildOperation(spec) {\n\tconst [self, ...rest] = spec.args;\n\tconst op = new OperationExpr({\n\t\tmethod: spec.method,\n\t\tself,\n\t\targs: rest.length > 0 ? rest : void 0,\n\t\treturns: spec.returns,\n\t\tlowering: spec.lowering\n\t});\n\treturn {\n\t\treturnType: spec.returns,\n\t\tbuildAst: () => op\n\t};\n}\nfunction resolveInterpolation(adapter, value) {\n\tif (isExpression(value)) return value.buildAst();\n\tif (value instanceof ParamRef) return value;\n\tif (typeof value === \"number\" || typeof value === \"bigint\" || typeof value === \"string\" || typeof value === \"boolean\" || value instanceof Uint8Array) return ParamRef.of(value, { codec: { codecId: adapter.inferCodec(value) } });\n\tthrow runtimeError(\"RUNTIME.RAW_SQL_UNSUPPORTED_INTERPOLATION\", \"unsupported JS value type for raw-SQL interpolation: wrap this value in `param(...)` with an explicit codec\");\n}\nfunction isRawRowQuery(value) {\n\treturn typeof value === \"object\" && value !== null && \"buildAst\" in value && typeof value.buildAst === \"function\" && \"build\" in value && typeof value.build === \"function\";\n}\nfunction templateParts(adapter, strings, values) {\n\tconst parts = [strings[0] ?? \"\"];\n\tvalues.forEach((value, i) => {\n\t\tif (isRawRowQuery(value)) parts.push(...value.buildAst().parts);\n\t\telse parts.push(resolveInterpolation(adapter, value));\n\t\tparts.push(strings[i + 1] ?? \"\");\n\t});\n\treturn parts;\n}\n/**\n* Normalizes each authored entry to a {@link RawQueryColumn}. The record is\n* assembled with `Object.fromEntries`, which defines each key as an own\n* property: a spec built at runtime with a `__proto__` key reaches the AST,\n* which refuses it by name, rather than silently setting the record's\n* prototype and leaving the column to vanish.\n*/\nfunction resolveRowSpec(spec) {\n\treturn Object.fromEntries(Object.entries(spec).map(([name, entry]) => [name, typeof entry === \"string\" ? {\n\t\tcodecId: entry,\n\t\tnullable: false\n\t} : {\n\t\tcodecId: entry.codecId,\n\t\tnullable: entry.nullable ?? false\n\t}]));\n}\nfunction createRawSql(adapter, planContext) {\n\tif (planContext === void 0) return (strings, ...values) => new RawSqlBuilderImpl(templateParts(adapter, strings, values));\n\tconst context = planContext;\n\treturn (strings, ...values) => new RawSqlStatementBuilderImpl(templateParts(adapter, strings, values), context);\n}\nvar RawSqlBuilderImpl = class {\n\tparts;\n\tconstructor(parts) {\n\t\tthis.parts = parts;\n\t}\n\treturns(spec) {\n\t\tconst codecId = typeof spec === \"string\" ? spec : spec.codecId;\n\t\tconst nullable = typeof spec === \"string\" ? false : spec.nullable ?? false;\n\t\tconst paramSpec = {\n\t\t\tcodecId,\n\t\t\tnullable\n\t\t};\n\t\tconst node = new RawExpr({\n\t\t\tparts: this.parts,\n\t\t\treturns: paramSpec\n\t\t});\n\t\treturn {\n\t\t\treturnType: {\n\t\t\t\tcodecId,\n\t\t\t\tnullable\n\t\t\t},\n\t\t\tbuildAst: () => node\n\t\t};\n\t}\n};\nvar RawSqlStatementBuilderImpl = class extends RawSqlBuilderImpl {\n\tplanContext;\n\tconstructor(parts, planContext) {\n\t\tsuper(parts);\n\t\tthis.planContext = planContext;\n\t}\n\treturnsRow(spec) {\n\t\tconst node = RawQueryAst.rows(this.parts, resolveRowSpec(spec));\n\t\tconst result = node.result;\n\t\tinvariant(result.kind === \"rows\", \"RawQueryAst.rows built a non-rows result\");\n\t\treturn {\n\t\t\treturns: result.columns,\n\t\t\tbuildAst: () => node,\n\t\t\tbuild: () => this.planFor(node)\n\t\t};\n\t}\n\taffectedCount() {\n\t\tconst node = RawQueryAst.affectedCount(this.parts);\n\t\treturn { build: () => this.planFor(node) };\n\t}\n\tplanFor(node) {\n\t\treturn planFromAst(node, this.planContext.contract, this.planContext.laneId);\n\t}\n};\n//#endregion\n//#region src/expression-impl.ts\n/**\n* Runtime wrapper around a relational-core AST expression node. Carries ScopeField metadata (codecId, nullable) so aggregate-like combinators can propagate the input codec onto their result.\n*\n* `returnType.codec` records the column-bound codec ref when the field-proxy knows the binding — both the namespaced form (`f.user.email` → `ColumnRef`) and the top-level shortcut (`f.email` → `IdentifierRef`) stamp the ref derived from contract storage. `codecOf(expression)` exposes it for operation implementations forwarding the ref to `toExpr`.\n*\n* `projectionAst` carries the descriptor-lowered rendering of the expression, where a target declares one (e.g. SQLite's `CAST(count(*) AS TEXT)`). Lowering exists to carry the value across the driver boundary, so only the projection site consumes it — predicate and ordering positions (`buildAst()`) keep the plain form, where the rendering would change SQL semantics.\n*/\nvar ExpressionImpl = class {\n\tast;\n\tprojectionAst;\n\treturnType;\n\tconstructor(ast, returnType, projectionAst) {\n\t\tthis.ast = ast;\n\t\tthis.returnType = returnType;\n\t\tthis.projectionAst = projectionAst;\n\t}\n\tbuildAst() {\n\t\treturn this.ast;\n\t}\n\tbuildProjectionAst() {\n\t\treturn this.projectionAst ?? this.ast;\n\t}\n};\n//#endregion\nexport { isExpression as a, createRawSql as i, buildOperation as n, param as o, codecOf as r, toExpr as s, ExpressionImpl as t };\n\n//# sourceMappingURL=expression-impl-DtbmFnnz.mjs.map"],"mappings":";;;;;;;;;;;;AAYA,SAAS,OAAO,OAAO,OAAO;CAC7B,IAAI,aAAa,KAAK,GAAG,OAAO,MAAM,SAAS;CAC/C,IAAI,UAAU,KAAK,GAAG,MAAM,aAAa,oCAAoC,qCAAqC,UAAU,OAAO,SAAS,OAAO,MAAM,0GAA0G;CACnQ,OAAO,SAAS,GAAG,OAAO,EAAE,MAAM,CAAC;AACpC;;;;AAIA,SAAS,MAAM,OAAO,MAAM;CAC3B,OAAO,SAAS,GAAG,OAAO,EAAE,OAAO,EAAE,SAAS,KAAK,QAAQ,EAAE,CAAC;AAC/D;;;;;;;;;;AAUA,SAAS,QAAQ,OAAO;CACvB,IAAI,CAAC,aAAa,KAAK,GAAG,OAAO,KAAK;CACtC,OAAO,MAAM,YAAY,UAAU,MAAM,Y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D,OAAO,EAAE,aAAa,KAAK,QAAQ,IAAI,EAAE;CAC1C;CACA,QAAQ,MAAM;EACb,OAAO,YAAY,MAAM,KAAK,YAAY,UAAU,KAAK,YAAY,MAAM;CAC5E;AACD;;;;;;;;AAUA,IAAI,iBAAiB,MAAM;CAC1B;CACA;CACA;CACA,YAAY,KAAK,YAAY,eAAe;EAC3C,KAAK,MAAM;EACX,KAAK,aAAa;EAClB,KAAK,gBAAgB;CACtB;CACA,WAAW;EACV,OAAO,KAAK;CACb;CACA,qBAAqB;EACpB,OAAO,KAAK,iBAAiB,KAAK;CACnC;AACD"}
package/dist/family.d.mts CHANGED
@@ -1,17 +1,17 @@
1
1
  import { n as resolveStorageTable, t as ResolvedStorageTable } from "./resolve-storage-table-DCqtmnSU.mjs";
2
2
  import { h as checkSqlDefaultText } from "./validators-FJs8HvFr.mjs";
3
- import { n as Lowerer, r as SqlControlAdapter, t as ExecuteRequestLowerer } from "./control-adapter-BfyLe7rh-DKIl5Ft6.mjs";
4
- import { C as SqlPlannerConflict, D as SqlPlannerResult, E as SqlPlannerFailureResult, O as SqlPlannerSuccessResult, S as SqlPlanTargetDetails, T as SqlPlannerConflictLocation, _ as SqlMigrationRunnerExecuteCallbacks, a as ResolveIdentityValueInput, b as SqlMigrationRunnerResult, c as SqlMigrationPlan, d as SqlMigrationPlanOperationStep, f as SqlMigrationPlanOperationTarget, g as SqlMigrationRunnerErrorCode, h as SqlMigrationRunner, i as FieldEventContext, k as StorageTypePlanResult, l as SqlMigrationPlanContractInfo, m as SqlMigrationPlannerPlanOptions, n as CreateSqlMigrationPlanOptions, o as SqlControlAdapterDescriptor, p as SqlMigrationPlanner, r as FieldEvent, s as SqlControlExtensionDescriptor, t as CodecControlHooks, u as SqlMigrationPlanOperation, v as SqlMigrationRunnerExecuteOptions, w as SqlPlannerConflictKind, x as SqlMigrationRunnerSuccessValue, y as SqlMigrationRunnerFailure } from "./types-COXfSNOP-GD5gtZcQ.mjs";
3
+ import { n as Lowerer, r as SqlControlAdapter, t as ExecuteRequestLowerer } from "./control-adapter-BfyLe7rh-C_rrUuhb.mjs";
4
+ import { C as SqlPlannerConflict, D as SqlPlannerResult, E as SqlPlannerFailureResult, O as SqlPlannerSuccessResult, S as SqlPlanTargetDetails, T as SqlPlannerConflictLocation, _ as SqlMigrationRunnerExecuteCallbacks, a as ResolveIdentityValueInput, b as SqlMigrationRunnerResult, c as SqlMigrationPlan, d as SqlMigrationPlanOperationStep, f as SqlMigrationPlanOperationTarget, g as SqlMigrationRunnerErrorCode, h as SqlMigrationRunner, i as FieldEventContext, k as StorageTypePlanResult, l as SqlMigrationPlanContractInfo, m as SqlMigrationPlannerPlanOptions, n as CreateSqlMigrationPlanOptions, o as SqlControlAdapterDescriptor, p as SqlMigrationPlanner, r as FieldEvent, s as SqlControlExtensionDescriptor, t as CodecControlHooks, u as SqlMigrationPlanOperation, v as SqlMigrationRunnerExecuteOptions, w as SqlPlannerConflictKind, x as SqlMigrationRunnerSuccessValue, y as SqlMigrationRunnerFailure } from "./types-COXfSNOP-DcuULeD9.mjs";
5
5
  import { n as SqlSchemaDiffInput, r as SqlSchemaDiffResult, t as SqlSchemaDiffFn } from "./schema-differ-DmP74bB8-tqHKiJ88.mjs";
6
- import { $ as SubjectStorage, $t as sqlOfSlot, A as NoTable, At as isUnfilledSlot, B as SingleOperationCall, Bt as readColumnDefault, C as MigrationPlannerConflict, Ct as detectDestructiveChanges, D as NO_RENAMED_ORIGINS, Dt as fieldOfColumn, E as ModelTable, Et as fieldEventStorage, F as ReportedBody, Ft as planFieldEventCalls, G as SqlPslBuildContext, Gt as resolveColumnRenameAgainst, H as SqlControlTargetDescriptor, Ht as requiredColumnMeta, I as ReportedLiteralDefault, It as planFieldEventOperations, J as SqlSlot, Jt as rowsWithoutValueSummary, K as SqlQuote, Kt as resolveTableRenameAgainst, L as RequiredColumn, Lt as planStatements, M as PlannedStatements, Mt as otherSpaceDeclaring, N as ReadColumnDefault, Nt as partitionCallsByControlPolicy, O as NamespaceRename, Ot as fieldRenameStorageEffect, P as ReadReportedDefault, Pt as partitionIssuesByControlPolicy, Q as StatementPlanningTarget, Qt as sqlDefaultFunctions, R as RequiredColumnMark, Rt as plannerFailure, S as MigrationPlanner, St as createSqlTextSources, T as ModelStorageEffect, Tt as extractCodecControlHooks, U as SqlDefaultFunctionName, Ut as requiredColumnOf, V as SqlControlFamilyInstance, Vt as readReportedDefault, W as SqlDescribedContractSpace, Wt as requiredColumnsOfMigration, X as StatementColumn, Xt as runnerSuccess, Y as SqlTextSources, Yt as runnerFailure, Z as StatementOwnership, Zt as slotSource, _ as INIT_ADDITIVE_POLICY, _t as contractNamespaceToSchemaIR, a as ColumnRename, an as unmatchedColumnRename, at as TableRenameByHand, b as MigrationPlan, bt as convertedColumnOf, c as ContractColumns, ct as TargetRefusal, d as ConvertedColumn, dt as appliedStatementsInOrder, en as sqlTypeLookupsOf, et as SuppressionRecord, f as DefaultResolver, ft as assembleAuthoringContributions, g as FieldStorageEffect, gt as contractColumns, h as FieldStatementColumns, ht as columnTakesTemporaryValue, i as ColumnOnOneSide, in as unknownCallNames, it as TableRename, j as PlanFieldEventOperationsOptions, jt as modelRenameStorageEffect, k as NamespaceStatementTarget, kt as fieldStatementColumns, l as ContractToSchemaIROptions, lt as WorkingSchemaOrigins, m as FieldEventCall, mt as checkSqlExpressionText, n as CallSubjects, nn as subjectsOfCalls, nt as TableMove, o as ColumnRenameRequest, on as unmatchedTableRename, ot as TableRenameRequest, p as DefaultResolverColumn, pt as backfillOfDefaultedField, q as SqlQuotingRules, qt as rowsWithoutValueFailure, r as CallWithCompanions, rn as unconvertedFieldOf, rt as TableNameCaseGuardTable, s as ContractColumn, st as TargetMigrationsCapability, t as COLUMN_RENAME_UNMATCHED_CODE, tn as storageNameOfOperation, tt as TABLE_NAME_CASE_CHANGED_CODE, u as ControlPolicySubject, v as MigrationOperationClass, vt as contractToSchemaIR, w as MigrationPlannerResult, wt as detectTableNameCaseChanges, x as MigrationPlanOperation, xt as createMigrationPlan, y as MigrationOperationPolicy, yt as convertedColumnMeta, z as SchemaTables, zt as plannerSuccess } from "./control-4J_KkH9m.mjs";
7
- import { t as resolveIntrospectedColumnType } from "./control-adapter-cNZNO0Nc.mjs";
8
- import { a as VerifySqlSchemaByDiffInput, c as classifySqlDiffIssue, d as verifySqlSchemaByDiff, i as StorageTypeVerdictInput, l as computeSqlDiffVerdict, n as SqlDiffVerdictInput, o as arraysEqual, r as StorageTypeVerdict, s as classifyDiffSubjectGranularity, t as SqlDiffVerdict, u as computeStorageTypeVerdict } from "./diff-Bh3cSTWM.mjs";
6
+ import { $ as StatementPlanningTarget, $t as resolveTableRenameAgainst, A as NoTable, At as encodeStoredValue, B as SchemaTables, Bt as partitionIssuesByControlPolicy, C as MigrationPlannerConflict, Ct as contractToSchemaIR, D as NO_RENAMED_ORIGINS, Dt as createSqlTextSources, E as ModelTable, Et as createMigrationPlan, F as ReportedBody, Ft as fieldStatementColumns, G as SqlDescribedContractSpace, Gt as plannerFailure, H as SqlControlFamilyInstance, Ht as planFieldEventCalls, I as ReportedLiteralDefault, It as isUnfilledSlot, J as SqlQuotingRules, Jt as readReportedDefault, K as SqlPslBuildContext, Kt as plannerSuccess, L as RequiredColumn, Lt as modelRenameStorageEffect, M as PlannedStatements, Mt as fieldEventStorage, N as ReadColumnDefault, Nt as fieldOfColumn, O as NamespaceRename, Ot as detectDestructiveChanges, P as ReadReportedDefault, Pt as fieldRenameStorageEffect, Q as StatementOwnership, Qt as resolveColumnRenameAgainst, R as RequiredColumnMark, Rt as otherSpaceDeclaring, S as MigrationPlanner, St as contractNamespaceToSchemaIR, T as ModelStorageEffect, Tt as convertedColumnOf, U as SqlControlTargetDescriptor, Ut as planFieldEventOperations, V as SingleOperationCall, Vt as planEnumValueRewrites, W as SqlDefaultFunctionName, Wt as planStatements, X as SqlTextSources, Xt as requiredColumnOf, Y as SqlSlot, Yt as requiredColumnMeta, Z as StatementColumn, Zt as requiredColumnsOfMigration, _ as INIT_ADDITIVE_POLICY, _n as withEnumValueOperations, _t as assembleAuthoringContributions, a as ColumnRename, an as runnerFailure, at as SuppressionRecord, b as MigrationPlan, bt as columnTakesTemporaryValue, c as ContractColumns, cn as sqlDefaultFunctions, ct as TableNameCaseGuardTable, d as ConvertedColumn, dn as storageNameOfOperation, dt as TableRenameRequest, en as rowsHoldingValueMeta, et as StoredEnumValue, f as DefaultResolver, fn as subjectsOfCalls, ft as TargetMigrationsCapability, g as FieldStorageEffect, gn as unmatchedTableRename, gt as appliedStatementsInOrder, h as FieldStatementColumns, hn as unmatchedColumnRename, i as ColumnOnOneSide, in as rowsWithoutValueSummary, it as SubjectStorage, j as PlanFieldEventOperationsOptions, jt as extractCodecControlHooks, k as NamespaceStatementTarget, kt as detectTableNameCaseChanges, l as ContractToSchemaIROptions, ln as sqlOfSlot, lt as TableRename, m as FieldEventCall, mn as unknownCallNames, mt as WorkingSchemaOrigins, n as CallSubjects, nn as rowsHoldingValueSummary, nt as StoredValueReplacement, o as ColumnRenameRequest, on as runnerSuccess, ot as TABLE_NAME_CASE_CHANGED_CODE, p as DefaultResolverColumn, pn as unconvertedFieldOf, pt as TargetRefusal, q as SqlQuote, qt as readColumnDefault, r as CallWithCompanions, rn as rowsWithoutValueFailure, rt as StoredValueRewrite, s as ContractColumn, sn as slotSource, st as TableMove, t as COLUMN_RENAME_UNMATCHED_CODE, tn as rowsHoldingValueOf, tt as StoredValueCodec, u as ControlPolicySubject, un as sqlTypeLookupsOf, ut as TableRenameByHand, v as MigrationOperationClass, vt as backfillOfDefaultedField, w as MigrationPlannerResult, wt as convertedColumnMeta, x as MigrationPlanOperation, xt as contractColumns, y as MigrationOperationPolicy, yt as checkSqlExpressionText, z as RowsHoldingValueMark, zt as partitionCallsByControlPolicy } from "./control-CffuMKgt.mjs";
7
+ import { t as resolveIntrospectedColumnType } from "./control-adapter-CZ84jQ_z.mjs";
8
+ import { a as VerifySqlSchemaByDiffInput, c as classifySqlDiffIssue, d as verifySqlSchemaByDiff, i as StorageTypeVerdictInput, l as computeSqlDiffVerdict, n as SqlDiffVerdictInput, o as arraysEqual, r as StorageTypeVerdict, s as classifyDiffSubjectGranularity, t as SqlDiffVerdict, u as computeStorageTypeVerdict } from "./diff-FNTO8gbI.mjs";
9
9
  import { i as SqlSchemaVerifierBase, n as SqlContractSerializerBase, r as SqlEntityHydrationFactory, t as SqlContractSerializer } from "./ir-BvptQsFW.mjs";
10
- import { t as SqlMigration } from "./migration-D7inCpXQ.mjs";
10
+ import { t as SqlMigration } from "./migration-qalbcIUs.mjs";
11
11
  import { a as temporalCodecPresetWithPrecision, i as sqlTargetTypeConstructors, o as temporalStringAuthoringPresets, r as sqlIntegerArgumentGeneratorFunctions, t as idGeneratorFunctionBindings } from "./pack-DA8HZ2mo.mjs";
12
12
  import { a as writeDefaultLiteral, i as writeDataTypeValue, n as DefaultMappingResult, r as mapDefault, t as DefaultMappingOptions } from "./default-mapping-CAOONlKQ-4m07nb-O.mjs";
13
13
  import { a as InferredTypeConstructors, c as PslTypeCall, d as inferColumnTypes, f as inferredTypeConstructors, i as InferredTypeConstructor, l as fewestArgumentsCall, m as writtenTypeArguments, n as GeneratorCallRefusal, o as IntrospectedTable, p as toEnumMemberName, r as GeneratorCallsResult, s as PhaseCallText, t as ColumnTypeOf, u as generatorCallsFor } from "./psl-build-RelubU2E.mjs";
14
14
  import { a as buildChildRelationField, c as inferRelations, d as toFieldName, f as toModelName, i as RelationField, l as pluralize, n as InferredRelations, o as deriveBackRelationFieldName, r as PslPrinterOptions, s as deriveRelationFieldName, t as EnumInfo, u as toEnumName } from "./psl-infer-DzoxPZGd.mjs";
15
15
  import { a as timestampNowRuntimeGenerator, n as UNBOUND_DOMAIN_NAMESPACE_ID, r as resolveDomainModel, t as ResolvedDomainModel } from "./runtime-CF6rAlE5.mjs";
16
16
  import { n as parseContractMarkerRow, t as ContractMarkerRow } from "./verify-DHXbuZPB.mjs";
17
- export { COLUMN_RENAME_UNMATCHED_CODE, type CallSubjects, type CallWithCompanions, type CodecControlHooks, type ColumnOnOneSide, type ColumnRename, type ColumnRenameRequest, type ColumnTypeOf, type ContractColumn, type ContractColumns, type ContractMarkerRow, type ContractToSchemaIROptions, type ControlPolicySubject, type ConvertedColumn, type CreateSqlMigrationPlanOptions, type DefaultMappingOptions, type DefaultMappingResult, type DefaultResolver, type DefaultResolverColumn, type EnumInfo, type ExecuteRequestLowerer, type FieldEvent, type FieldEventCall, type FieldEventContext, type FieldStatementColumns, type FieldStorageEffect, type GeneratorCallRefusal, type GeneratorCallsResult, INIT_ADDITIVE_POLICY, type InferredRelations, type InferredTypeConstructor, type InferredTypeConstructors, type IntrospectedTable, type Lowerer, SqlMigration as Migration, type MigrationOperationClass, type MigrationOperationPolicy, type MigrationPlan, type MigrationPlanOperation, type MigrationPlanner, type MigrationPlannerConflict, type MigrationPlannerResult, type ModelStorageEffect, type ModelTable, NO_RENAMED_ORIGINS, type NamespaceRename, type NamespaceStatementTarget, type NoTable, type PhaseCallText, type PlanFieldEventOperationsOptions, type PlannedStatements, type PslPrinterOptions, type PslTypeCall, type ReadColumnDefault, type ReadReportedDefault, type RelationField, type ReportedBody, type ReportedLiteralDefault, type RequiredColumn, type RequiredColumnMark, type ResolveIdentityValueInput, type ResolvedDomainModel, type ResolvedStorageTable, type SchemaTables, type SingleOperationCall, SqlContractSerializer, SqlContractSerializerBase, type SqlControlAdapter, type SqlControlExtensionDescriptor, type SqlControlFamilyInstance, type SqlControlTargetDescriptor, type SqlDefaultFunctionName, type SqlDescribedContractSpace, type SqlDiffVerdict, type SqlDiffVerdictInput, type SqlEntityHydrationFactory, type SqlMigrationPlan, type SqlMigrationPlanContractInfo, type SqlMigrationPlanOperation, type SqlMigrationPlanOperationStep, type SqlMigrationPlanOperationTarget, type SqlMigrationPlanner, type SqlMigrationPlannerPlanOptions, type SqlMigrationRunner, type SqlMigrationRunnerErrorCode, type SqlMigrationRunnerExecuteCallbacks, type SqlMigrationRunnerExecuteOptions, type SqlMigrationRunnerFailure, type SqlMigrationRunnerResult, type SqlMigrationRunnerSuccessValue, type SqlPlanTargetDetails, type SqlPlannerConflict, type SqlPlannerConflictKind, type SqlPlannerConflictLocation, type SqlPlannerFailureResult, type SqlPlannerResult, type SqlPlannerSuccessResult, type SqlPslBuildContext, type SqlQuote, type SqlQuotingRules, type SqlSchemaDiffFn, type SqlSchemaDiffInput, type SqlSchemaDiffResult, SqlSchemaVerifierBase, type SqlSlot, type SqlTextSources, type StatementColumn, type StatementOwnership, type StatementPlanningTarget, type StorageTypePlanResult, type StorageTypeVerdict, type StorageTypeVerdictInput, type SubjectStorage, type SuppressionRecord, TABLE_NAME_CASE_CHANGED_CODE, type TableMove, type TableNameCaseGuardTable, type TableRename, type TableRenameByHand, type TableRenameRequest, type TargetMigrationsCapability, type TargetRefusal, UNBOUND_DOMAIN_NAMESPACE_ID, type VerifySqlSchemaByDiffInput, type WorkingSchemaOrigins, appliedStatementsInOrder, arraysEqual, assembleAuthoringContributions, backfillOfDefaultedField, buildChildRelationField, checkSqlDefaultText, checkSqlExpressionText, classifyDiffSubjectGranularity, classifySqlDiffIssue, columnTakesTemporaryValue, computeSqlDiffVerdict, computeStorageTypeVerdict, contractColumns, contractNamespaceToSchemaIR, contractToSchemaIR, convertedColumnMeta, convertedColumnOf, createMigrationPlan, createSqlTextSources, deriveBackRelationFieldName, deriveRelationFieldName, detectDestructiveChanges, detectTableNameCaseChanges, extractCodecControlHooks, fewestArgumentsCall, fieldEventStorage, fieldOfColumn, fieldRenameStorageEffect, fieldStatementColumns, generatorCallsFor, idGeneratorFunctionBindings, inferColumnTypes, inferRelations, inferredTypeConstructors, isUnfilledSlot, mapDefault, modelRenameStorageEffect, otherSpaceDeclaring, parseContractMarkerRow, partitionCallsByControlPolicy, partitionIssuesByControlPolicy, planFieldEventCalls, planFieldEventOperations, planStatements, plannerFailure, plannerSuccess, pluralize, readColumnDefault, readReportedDefault, requiredColumnMeta, requiredColumnOf, requiredColumnsOfMigration, resolveColumnRenameAgainst, resolveDomainModel, resolveIntrospectedColumnType, resolveStorageTable, resolveTableRenameAgainst, rowsWithoutValueFailure, rowsWithoutValueSummary, runnerFailure, runnerSuccess, slotSource, sqlDefaultFunctions, sqlIntegerArgumentGeneratorFunctions, sqlOfSlot, sqlTargetTypeConstructors, sqlTypeLookupsOf, storageNameOfOperation, subjectsOfCalls, temporalCodecPresetWithPrecision, temporalStringAuthoringPresets, timestampNowRuntimeGenerator, toEnumMemberName, toEnumName, toFieldName, toModelName, unconvertedFieldOf, unknownCallNames, unmatchedColumnRename, unmatchedTableRename, verifySqlSchemaByDiff, writeDataTypeValue, writeDefaultLiteral, writtenTypeArguments };
17
+ export { COLUMN_RENAME_UNMATCHED_CODE, type CallSubjects, type CallWithCompanions, type CodecControlHooks, type ColumnOnOneSide, type ColumnRename, type ColumnRenameRequest, type ColumnTypeOf, type ContractColumn, type ContractColumns, type ContractMarkerRow, type ContractToSchemaIROptions, type ControlPolicySubject, type ConvertedColumn, type CreateSqlMigrationPlanOptions, type DefaultMappingOptions, type DefaultMappingResult, type DefaultResolver, type DefaultResolverColumn, type EnumInfo, type ExecuteRequestLowerer, type FieldEvent, type FieldEventCall, type FieldEventContext, type FieldStatementColumns, type FieldStorageEffect, type GeneratorCallRefusal, type GeneratorCallsResult, INIT_ADDITIVE_POLICY, type InferredRelations, type InferredTypeConstructor, type InferredTypeConstructors, type IntrospectedTable, type Lowerer, SqlMigration as Migration, type MigrationOperationClass, type MigrationOperationPolicy, type MigrationPlan, type MigrationPlanOperation, type MigrationPlanner, type MigrationPlannerConflict, type MigrationPlannerResult, type ModelStorageEffect, type ModelTable, NO_RENAMED_ORIGINS, type NamespaceRename, type NamespaceStatementTarget, type NoTable, type PhaseCallText, type PlanFieldEventOperationsOptions, type PlannedStatements, type PslPrinterOptions, type PslTypeCall, type ReadColumnDefault, type ReadReportedDefault, type RelationField, type ReportedBody, type ReportedLiteralDefault, type RequiredColumn, type RequiredColumnMark, type ResolveIdentityValueInput, type ResolvedDomainModel, type ResolvedStorageTable, type RowsHoldingValueMark, type SchemaTables, type SingleOperationCall, SqlContractSerializer, SqlContractSerializerBase, type SqlControlAdapter, type SqlControlExtensionDescriptor, type SqlControlFamilyInstance, type SqlControlTargetDescriptor, type SqlDefaultFunctionName, type SqlDescribedContractSpace, type SqlDiffVerdict, type SqlDiffVerdictInput, type SqlEntityHydrationFactory, type SqlMigrationPlan, type SqlMigrationPlanContractInfo, type SqlMigrationPlanOperation, type SqlMigrationPlanOperationStep, type SqlMigrationPlanOperationTarget, type SqlMigrationPlanner, type SqlMigrationPlannerPlanOptions, type SqlMigrationRunner, type SqlMigrationRunnerErrorCode, type SqlMigrationRunnerExecuteCallbacks, type SqlMigrationRunnerExecuteOptions, type SqlMigrationRunnerFailure, type SqlMigrationRunnerResult, type SqlMigrationRunnerSuccessValue, type SqlPlanTargetDetails, type SqlPlannerConflict, type SqlPlannerConflictKind, type SqlPlannerConflictLocation, type SqlPlannerFailureResult, type SqlPlannerResult, type SqlPlannerSuccessResult, type SqlPslBuildContext, type SqlQuote, type SqlQuotingRules, type SqlSchemaDiffFn, type SqlSchemaDiffInput, type SqlSchemaDiffResult, SqlSchemaVerifierBase, type SqlSlot, type SqlTextSources, type StatementColumn, type StatementOwnership, type StatementPlanningTarget, type StorageTypePlanResult, type StorageTypeVerdict, type StorageTypeVerdictInput, type StoredEnumValue, type StoredValueCodec, type StoredValueReplacement, type StoredValueRewrite, type SubjectStorage, type SuppressionRecord, TABLE_NAME_CASE_CHANGED_CODE, type TableMove, type TableNameCaseGuardTable, type TableRename, type TableRenameByHand, type TableRenameRequest, type TargetMigrationsCapability, type TargetRefusal, UNBOUND_DOMAIN_NAMESPACE_ID, type VerifySqlSchemaByDiffInput, type WorkingSchemaOrigins, appliedStatementsInOrder, arraysEqual, assembleAuthoringContributions, backfillOfDefaultedField, buildChildRelationField, checkSqlDefaultText, checkSqlExpressionText, classifyDiffSubjectGranularity, classifySqlDiffIssue, columnTakesTemporaryValue, computeSqlDiffVerdict, computeStorageTypeVerdict, contractColumns, contractNamespaceToSchemaIR, contractToSchemaIR, convertedColumnMeta, convertedColumnOf, createMigrationPlan, createSqlTextSources, deriveBackRelationFieldName, deriveRelationFieldName, detectDestructiveChanges, detectTableNameCaseChanges, encodeStoredValue, extractCodecControlHooks, fewestArgumentsCall, fieldEventStorage, fieldOfColumn, fieldRenameStorageEffect, fieldStatementColumns, generatorCallsFor, idGeneratorFunctionBindings, inferColumnTypes, inferRelations, inferredTypeConstructors, isUnfilledSlot, mapDefault, modelRenameStorageEffect, otherSpaceDeclaring, parseContractMarkerRow, partitionCallsByControlPolicy, partitionIssuesByControlPolicy, planEnumValueRewrites, planFieldEventCalls, planFieldEventOperations, planStatements, plannerFailure, plannerSuccess, pluralize, readColumnDefault, readReportedDefault, requiredColumnMeta, requiredColumnOf, requiredColumnsOfMigration, resolveColumnRenameAgainst, resolveDomainModel, resolveIntrospectedColumnType, resolveStorageTable, resolveTableRenameAgainst, rowsHoldingValueMeta, rowsHoldingValueOf, rowsHoldingValueSummary, rowsWithoutValueFailure, rowsWithoutValueSummary, runnerFailure, runnerSuccess, slotSource, sqlDefaultFunctions, sqlIntegerArgumentGeneratorFunctions, sqlOfSlot, sqlTargetTypeConstructors, sqlTypeLookupsOf, storageNameOfOperation, subjectsOfCalls, temporalCodecPresetWithPrecision, temporalStringAuthoringPresets, timestampNowRuntimeGenerator, toEnumMemberName, toEnumName, toFieldName, toModelName, unconvertedFieldOf, unknownCallNames, unmatchedColumnRename, unmatchedTableRename, verifySqlSchemaByDiff, withEnumValueOperations, writeDataTypeValue, writeDefaultLiteral, writtenTypeArguments };
package/dist/family.mjs CHANGED
@@ -1,17 +1,17 @@
1
1
  import { t as resolveStorageTable } from "./resolve-storage-table-BHLQsOza.mjs";
2
2
  import { n as checkSqlDefaultText } from "./validators-BwA7ttZM.mjs";
3
- import { c as sqlIntegerArgumentGeneratorFunctions, l as sqlTargetTypeConstructors, t as idGeneratorFunctionBindings } from "./generator-functions-Cg5QkM46-D6M4ayK9.mjs";
3
+ import { c as sqlIntegerArgumentGeneratorFunctions, l as sqlTargetTypeConstructors, t as idGeneratorFunctionBindings } from "./generator-functions-Cg5QkM46-C1ByFzyT.mjs";
4
4
  import { a as computeStorageTypeVerdict, c as verifySqlSchemaByDiff, i as computeSqlDiffVerdict, n as classifyDiffSubjectGranularity, r as classifySqlDiffIssue, s as extractCodecControlHooks } from "./schema-verify-C3wbdviw-DMjIubOr.mjs";
5
5
  import { n as SqlContractSerializerBase, t as SqlContractSerializer } from "./sql-contract-serializer-sMY3prTx-D2BfrNxs.mjs";
6
6
  import { n as parseContractMarkerRow } from "./verify-BVk5bjdH-DhKm6hB3.mjs";
7
- import { $ as unmatchedColumnRename, A as planFieldEventOperations, B as resolveTableRenameAgainst, C as fieldStatementColumns, D as partitionCallsByControlPolicy, E as otherSpaceDeclaring, F as readReportedDefault, G as slotSource, H as rowsWithoutValueSummary, I as requiredColumnMeta, J as sqlTypeLookupsOf, K as sqlDefaultFunctions, L as requiredColumnOf, M as plannerFailure, N as plannerSuccess, O as partitionIssuesByControlPolicy, P as readColumnDefault, Q as unknownCallNames, R as requiredColumnsOfMigration, S as fieldRenameStorageEffect, T as modelRenameStorageEffect, U as runnerFailure, V as rowsWithoutValueFailure, W as runnerSuccess, X as subjectsOfCalls, Y as storageNameOfOperation, Z as unconvertedFieldOf, _ as createSqlTextSources, a as appliedStatementsInOrder, b as fieldEventStorage, c as checkSqlExpressionText, d as contractNamespaceToSchemaIR, et as unmatchedTableRename, f as contractToSchemaIR, g as createMigrationPlan, h as convertedColumnOf, i as TABLE_NAME_CASE_CHANGED_CODE, j as planStatements, k as planFieldEventCalls, l as columnTakesTemporaryValue, m as convertedColumnMeta, n as INIT_ADDITIVE_POLICY, o as assembleAuthoringContributions, q as sqlOfSlot, r as NO_RENAMED_ORIGINS, s as backfillOfDefaultedField, t as COLUMN_RENAME_UNMATCHED_CODE, u as contractColumns, v as detectDestructiveChanges, w as isUnfilledSlot, x as fieldOfColumn, y as detectTableNameCaseChanges, z as resolveColumnRenameAgainst } from "./control-D1Er9MJE.mjs";
7
+ import { $ as sqlTypeLookupsOf, A as planEnumValueRewrites, B as requiredColumnsOfMigration, C as fieldRenameStorageEffect, D as otherSpaceDeclaring, E as modelRenameStorageEffect, F as plannerSuccess, G as rowsHoldingValueSummary, H as resolveTableRenameAgainst, I as readColumnDefault, J as runnerFailure, K as rowsWithoutValueFailure, L as readReportedDefault, M as planFieldEventOperations, N as planStatements, O as partitionCallsByControlPolicy, P as plannerFailure, Q as sqlOfSlot, R as requiredColumnMeta, S as fieldOfColumn, T as isUnfilledSlot, U as rowsHoldingValueMeta, V as resolveColumnRenameAgainst, W as rowsHoldingValueOf, X as slotSource, Y as runnerSuccess, Z as sqlDefaultFunctions, _ as createSqlTextSources, a as appliedStatementsInOrder, at as unmatchedTableRename, b as encodeStoredValue, c as checkSqlExpressionText, d as contractNamespaceToSchemaIR, et as storageNameOfOperation, f as contractToSchemaIR, g as createMigrationPlan, h as convertedColumnOf, i as TABLE_NAME_CASE_CHANGED_CODE, it as unmatchedColumnRename, j as planFieldEventCalls, k as partitionIssuesByControlPolicy, l as columnTakesTemporaryValue, m as convertedColumnMeta, n as INIT_ADDITIVE_POLICY, nt as unconvertedFieldOf, o as assembleAuthoringContributions, ot as withEnumValueOperations, q as rowsWithoutValueSummary, r as NO_RENAMED_ORIGINS, rt as unknownCallNames, s as backfillOfDefaultedField, t as COLUMN_RENAME_UNMATCHED_CODE, tt as subjectsOfCalls, u as contractColumns, v as detectDestructiveChanges, w as fieldStatementColumns, x as fieldEventStorage, y as detectTableNameCaseChanges, z as requiredColumnOf } from "./control-D7N_L18S.mjs";
8
8
  import { t as resolveIntrospectedColumnType } from "./control-adapter-SlQkTEwT.mjs";
9
9
  import { t as arraysEqual } from "./diff-C1rFOhek.mjs";
10
10
  import { t as SqlSchemaVerifierBase } from "./ir-DzsUDO8e.mjs";
11
11
  import { t as SqlMigration } from "./migration-BJQjkqFz.mjs";
12
- import { n as temporalCodecPresetWithPrecision, r as temporalStringAuthoringPresets } from "./pack-CNrW7w8L.mjs";
12
+ import { n as temporalCodecPresetWithPrecision, r as temporalStringAuthoringPresets } from "./pack-DOTaBfUC.mjs";
13
13
  import { s as toEnumMemberName } from "./psl-names-C3cwe0rg-D1CTmC3a.mjs";
14
14
  import { a as mapDefault, c as writtenTypeArguments, i as inferredTypeConstructors, n as generatorCallsFor, o as writeDataTypeValue, r as inferColumnTypes, s as writeDefaultLiteral, t as fewestArgumentsCall } from "./psl-build-DFBG6vhz.mjs";
15
15
  import { a as pluralize, c as toModelName, i as inferRelations, n as deriveBackRelationFieldName, o as toEnumName, r as deriveRelationFieldName, s as toFieldName, t as buildChildRelationField } from "./psl-infer--g4i84Go.mjs";
16
16
  import { i as timestampNowRuntimeGenerator, n as resolveDomainModel, t as UNBOUND_DOMAIN_NAMESPACE_ID } from "./runtime-6tH1yOxK.mjs";
17
- export { COLUMN_RENAME_UNMATCHED_CODE, INIT_ADDITIVE_POLICY, SqlMigration as Migration, NO_RENAMED_ORIGINS, SqlContractSerializer, SqlContractSerializerBase, SqlSchemaVerifierBase, TABLE_NAME_CASE_CHANGED_CODE, UNBOUND_DOMAIN_NAMESPACE_ID, appliedStatementsInOrder, arraysEqual, assembleAuthoringContributions, backfillOfDefaultedField, buildChildRelationField, checkSqlDefaultText, checkSqlExpressionText, classifyDiffSubjectGranularity, classifySqlDiffIssue, columnTakesTemporaryValue, computeSqlDiffVerdict, computeStorageTypeVerdict, contractColumns, contractNamespaceToSchemaIR, contractToSchemaIR, convertedColumnMeta, convertedColumnOf, createMigrationPlan, createSqlTextSources, deriveBackRelationFieldName, deriveRelationFieldName, detectDestructiveChanges, detectTableNameCaseChanges, extractCodecControlHooks, fewestArgumentsCall, fieldEventStorage, fieldOfColumn, fieldRenameStorageEffect, fieldStatementColumns, generatorCallsFor, idGeneratorFunctionBindings, inferColumnTypes, inferRelations, inferredTypeConstructors, isUnfilledSlot, mapDefault, modelRenameStorageEffect, otherSpaceDeclaring, parseContractMarkerRow, partitionCallsByControlPolicy, partitionIssuesByControlPolicy, planFieldEventCalls, planFieldEventOperations, planStatements, plannerFailure, plannerSuccess, pluralize, readColumnDefault, readReportedDefault, requiredColumnMeta, requiredColumnOf, requiredColumnsOfMigration, resolveColumnRenameAgainst, resolveDomainModel, resolveIntrospectedColumnType, resolveStorageTable, resolveTableRenameAgainst, rowsWithoutValueFailure, rowsWithoutValueSummary, runnerFailure, runnerSuccess, slotSource, sqlDefaultFunctions, sqlIntegerArgumentGeneratorFunctions, sqlOfSlot, sqlTargetTypeConstructors, sqlTypeLookupsOf, storageNameOfOperation, subjectsOfCalls, temporalCodecPresetWithPrecision, temporalStringAuthoringPresets, timestampNowRuntimeGenerator, toEnumMemberName, toEnumName, toFieldName, toModelName, unconvertedFieldOf, unknownCallNames, unmatchedColumnRename, unmatchedTableRename, verifySqlSchemaByDiff, writeDataTypeValue, writeDefaultLiteral, writtenTypeArguments };
17
+ export { COLUMN_RENAME_UNMATCHED_CODE, INIT_ADDITIVE_POLICY, SqlMigration as Migration, NO_RENAMED_ORIGINS, SqlContractSerializer, SqlContractSerializerBase, SqlSchemaVerifierBase, TABLE_NAME_CASE_CHANGED_CODE, UNBOUND_DOMAIN_NAMESPACE_ID, appliedStatementsInOrder, arraysEqual, assembleAuthoringContributions, backfillOfDefaultedField, buildChildRelationField, checkSqlDefaultText, checkSqlExpressionText, classifyDiffSubjectGranularity, classifySqlDiffIssue, columnTakesTemporaryValue, computeSqlDiffVerdict, computeStorageTypeVerdict, contractColumns, contractNamespaceToSchemaIR, contractToSchemaIR, convertedColumnMeta, convertedColumnOf, createMigrationPlan, createSqlTextSources, deriveBackRelationFieldName, deriveRelationFieldName, detectDestructiveChanges, detectTableNameCaseChanges, encodeStoredValue, extractCodecControlHooks, fewestArgumentsCall, fieldEventStorage, fieldOfColumn, fieldRenameStorageEffect, fieldStatementColumns, generatorCallsFor, idGeneratorFunctionBindings, inferColumnTypes, inferRelations, inferredTypeConstructors, isUnfilledSlot, mapDefault, modelRenameStorageEffect, otherSpaceDeclaring, parseContractMarkerRow, partitionCallsByControlPolicy, partitionIssuesByControlPolicy, planEnumValueRewrites, planFieldEventCalls, planFieldEventOperations, planStatements, plannerFailure, plannerSuccess, pluralize, readColumnDefault, readReportedDefault, requiredColumnMeta, requiredColumnOf, requiredColumnsOfMigration, resolveColumnRenameAgainst, resolveDomainModel, resolveIntrospectedColumnType, resolveStorageTable, resolveTableRenameAgainst, rowsHoldingValueMeta, rowsHoldingValueOf, rowsHoldingValueSummary, rowsWithoutValueFailure, rowsWithoutValueSummary, runnerFailure, runnerSuccess, slotSource, sqlDefaultFunctions, sqlIntegerArgumentGeneratorFunctions, sqlOfSlot, sqlTargetTypeConstructors, sqlTypeLookupsOf, storageNameOfOperation, subjectsOfCalls, temporalCodecPresetWithPrecision, temporalStringAuthoringPresets, timestampNowRuntimeGenerator, toEnumMemberName, toEnumName, toFieldName, toModelName, unconvertedFieldOf, unknownCallNames, unmatchedColumnRename, unmatchedTableRename, verifySqlSchemaByDiff, withEnumValueOperations, writeDataTypeValue, writeDefaultLiteral, writtenTypeArguments };
@@ -1,3 +1,3 @@
1
- import { i as SqlControlAdapterDescriptor, n as Lowerer, r as SqlControlAdapter, t as ExecuteRequestLowerer } from "./control-adapter-BfyLe7rh-DKIl5Ft6.mjs";
2
- import { t as resolveIntrospectedColumnType } from "./control-adapter-cNZNO0Nc.mjs";
1
+ import { i as SqlControlAdapterDescriptor, n as Lowerer, r as SqlControlAdapter, t as ExecuteRequestLowerer } from "./control-adapter-BfyLe7rh-C_rrUuhb.mjs";
2
+ import { t as resolveIntrospectedColumnType } from "./control-adapter-CZ84jQ_z.mjs";
3
3
  export { type ExecuteRequestLowerer, type Lowerer, type SqlControlAdapter, type SqlControlAdapterDescriptor, resolveIntrospectedColumnType };
@@ -1,5 +1,5 @@
1
1
  import { h as checkSqlDefaultText } from "./validators-FJs8HvFr.mjs";
2
- import { C as SqlPlannerConflict, D as SqlPlannerResult, E as SqlPlannerFailureResult, O as SqlPlannerSuccessResult, S as SqlPlanTargetDetails, T as SqlPlannerConflictLocation, _ as SqlMigrationRunnerExecuteCallbacks, a as ResolveIdentityValueInput, b as SqlMigrationRunnerResult, c as SqlMigrationPlan, d as SqlMigrationPlanOperationStep, f as SqlMigrationPlanOperationTarget, g as SqlMigrationRunnerErrorCode, h as SqlMigrationRunner, i as FieldEventContext, k as StorageTypePlanResult, l as SqlMigrationPlanContractInfo, m as SqlMigrationPlannerPlanOptions, n as CreateSqlMigrationPlanOptions, o as SqlControlAdapterDescriptor, p as SqlMigrationPlanner, r as FieldEvent, s as SqlControlExtensionDescriptor, t as CodecControlHooks, u as SqlMigrationPlanOperation, v as SqlMigrationRunnerExecuteOptions, w as SqlPlannerConflictKind, x as SqlMigrationRunnerSuccessValue, y as SqlMigrationRunnerFailure } from "./types-COXfSNOP-GD5gtZcQ.mjs";
2
+ import { C as SqlPlannerConflict, D as SqlPlannerResult, E as SqlPlannerFailureResult, O as SqlPlannerSuccessResult, S as SqlPlanTargetDetails, T as SqlPlannerConflictLocation, _ as SqlMigrationRunnerExecuteCallbacks, a as ResolveIdentityValueInput, b as SqlMigrationRunnerResult, c as SqlMigrationPlan, d as SqlMigrationPlanOperationStep, f as SqlMigrationPlanOperationTarget, g as SqlMigrationRunnerErrorCode, h as SqlMigrationRunner, i as FieldEventContext, k as StorageTypePlanResult, l as SqlMigrationPlanContractInfo, m as SqlMigrationPlannerPlanOptions, n as CreateSqlMigrationPlanOptions, o as SqlControlAdapterDescriptor, p as SqlMigrationPlanner, r as FieldEvent, s as SqlControlExtensionDescriptor, t as CodecControlHooks, u as SqlMigrationPlanOperation, v as SqlMigrationRunnerExecuteOptions, w as SqlPlannerConflictKind, x as SqlMigrationRunnerSuccessValue, y as SqlMigrationRunnerFailure } from "./types-COXfSNOP-DcuULeD9.mjs";
3
3
  import { n as SqlSchemaDiffInput, r as SqlSchemaDiffResult, t as SqlSchemaDiffFn } from "./schema-differ-DmP74bB8-tqHKiJ88.mjs";
4
- import { $ as SubjectStorage, $t as sqlOfSlot, A as NoTable, At as isUnfilledSlot, B as SingleOperationCall, Bt as readColumnDefault, C as MigrationPlannerConflict, Ct as detectDestructiveChanges, D as NO_RENAMED_ORIGINS, Dt as fieldOfColumn, E as ModelTable, Et as fieldEventStorage, F as ReportedBody, Ft as planFieldEventCalls, G as SqlPslBuildContext, Gt as resolveColumnRenameAgainst, H as SqlControlTargetDescriptor, Ht as requiredColumnMeta, I as ReportedLiteralDefault, It as planFieldEventOperations, J as SqlSlot, Jt as rowsWithoutValueSummary, K as SqlQuote, Kt as resolveTableRenameAgainst, L as RequiredColumn, Lt as planStatements, M as PlannedStatements, Mt as otherSpaceDeclaring, N as ReadColumnDefault, Nt as partitionCallsByControlPolicy, O as NamespaceRename, Ot as fieldRenameStorageEffect, P as ReadReportedDefault, Pt as partitionIssuesByControlPolicy, Q as StatementPlanningTarget, Qt as sqlDefaultFunctions, R as RequiredColumnMark, Rt as plannerFailure, S as MigrationPlanner, St as createSqlTextSources, T as ModelStorageEffect, Tt as extractCodecControlHooks, U as SqlDefaultFunctionName, Ut as requiredColumnOf, V as SqlControlFamilyInstance, Vt as readReportedDefault, W as SqlDescribedContractSpace, Wt as requiredColumnsOfMigration, X as StatementColumn, Xt as runnerSuccess, Y as SqlTextSources, Yt as runnerFailure, Z as StatementOwnership, Zt as slotSource, _ as INIT_ADDITIVE_POLICY, _t as contractNamespaceToSchemaIR, a as ColumnRename, an as unmatchedColumnRename, at as TableRenameByHand, b as MigrationPlan, bt as convertedColumnOf, c as ContractColumns, ct as TargetRefusal, d as ConvertedColumn, dt as appliedStatementsInOrder, en as sqlTypeLookupsOf, et as SuppressionRecord, f as DefaultResolver, ft as assembleAuthoringContributions, g as FieldStorageEffect, gt as contractColumns, h as FieldStatementColumns, ht as columnTakesTemporaryValue, i as ColumnOnOneSide, in as unknownCallNames, it as TableRename, j as PlanFieldEventOperationsOptions, jt as modelRenameStorageEffect, k as NamespaceStatementTarget, kt as fieldStatementColumns, l as ContractToSchemaIROptions, lt as WorkingSchemaOrigins, m as FieldEventCall, mt as checkSqlExpressionText, n as CallSubjects, nn as subjectsOfCalls, nt as TableMove, o as ColumnRenameRequest, on as unmatchedTableRename, ot as TableRenameRequest, p as DefaultResolverColumn, pt as backfillOfDefaultedField, q as SqlQuotingRules, qt as rowsWithoutValueFailure, r as CallWithCompanions, rn as unconvertedFieldOf, rt as TableNameCaseGuardTable, s as ContractColumn, st as TargetMigrationsCapability, t as COLUMN_RENAME_UNMATCHED_CODE, tn as storageNameOfOperation, tt as TABLE_NAME_CASE_CHANGED_CODE, u as ControlPolicySubject, ut as _default, v as MigrationOperationClass, vt as contractToSchemaIR, w as MigrationPlannerResult, wt as detectTableNameCaseChanges, x as MigrationPlanOperation, xt as createMigrationPlan, y as MigrationOperationPolicy, yt as convertedColumnMeta, z as SchemaTables, zt as plannerSuccess } from "./control-4J_KkH9m.mjs";
5
- export { COLUMN_RENAME_UNMATCHED_CODE, type CallSubjects, type CallWithCompanions, type CodecControlHooks, type ColumnOnOneSide, type ColumnRename, type ColumnRenameRequest, type ContractColumn, type ContractColumns, type ContractToSchemaIROptions, type ControlPolicySubject, type ConvertedColumn, type CreateSqlMigrationPlanOptions, type DefaultResolver, type DefaultResolverColumn, type FieldEvent, type FieldEventCall, type FieldEventContext, type FieldStatementColumns, type FieldStorageEffect, INIT_ADDITIVE_POLICY, type MigrationOperationClass, type MigrationOperationPolicy, type MigrationPlan, type MigrationPlanOperation, type MigrationPlanner, type MigrationPlannerConflict, type MigrationPlannerResult, type ModelStorageEffect, type ModelTable, NO_RENAMED_ORIGINS, type NamespaceRename, type NamespaceStatementTarget, type NoTable, type PlanFieldEventOperationsOptions, type PlannedStatements, type ReadColumnDefault, type ReadReportedDefault, type ReportedBody, type ReportedLiteralDefault, type RequiredColumn, type RequiredColumnMark, type ResolveIdentityValueInput, type SchemaTables, type SingleOperationCall, type SqlControlAdapterDescriptor, type SqlControlExtensionDescriptor, type SqlControlFamilyInstance, type SqlControlTargetDescriptor, type SqlDefaultFunctionName, type SqlDescribedContractSpace, type SqlMigrationPlan, type SqlMigrationPlanContractInfo, type SqlMigrationPlanOperation, type SqlMigrationPlanOperationStep, type SqlMigrationPlanOperationTarget, type SqlMigrationPlanner, type SqlMigrationPlannerPlanOptions, type SqlMigrationRunner, type SqlMigrationRunnerErrorCode, type SqlMigrationRunnerExecuteCallbacks, type SqlMigrationRunnerExecuteOptions, type SqlMigrationRunnerFailure, type SqlMigrationRunnerResult, type SqlMigrationRunnerSuccessValue, type SqlPlanTargetDetails, type SqlPlannerConflict, type SqlPlannerConflictKind, type SqlPlannerConflictLocation, type SqlPlannerFailureResult, type SqlPlannerResult, type SqlPlannerSuccessResult, type SqlPslBuildContext, type SqlQuote, type SqlQuotingRules, type SqlSchemaDiffFn, type SqlSchemaDiffInput, type SqlSchemaDiffResult, type SqlSlot, type SqlTextSources, type StatementColumn, type StatementOwnership, type StatementPlanningTarget, type StorageTypePlanResult, type SubjectStorage, type SuppressionRecord, TABLE_NAME_CASE_CHANGED_CODE, type TableMove, type TableNameCaseGuardTable, type TableRename, type TableRenameByHand, type TableRenameRequest, type TargetMigrationsCapability, type TargetRefusal, type WorkingSchemaOrigins, appliedStatementsInOrder, assembleAuthoringContributions, backfillOfDefaultedField, checkSqlDefaultText, checkSqlExpressionText, columnTakesTemporaryValue, contractColumns, contractNamespaceToSchemaIR, contractToSchemaIR, convertedColumnMeta, convertedColumnOf, createMigrationPlan, createSqlTextSources, _default as default, detectDestructiveChanges, detectTableNameCaseChanges, extractCodecControlHooks, fieldEventStorage, fieldOfColumn, fieldRenameStorageEffect, fieldStatementColumns, isUnfilledSlot, modelRenameStorageEffect, otherSpaceDeclaring, partitionCallsByControlPolicy, partitionIssuesByControlPolicy, planFieldEventCalls, planFieldEventOperations, planStatements, plannerFailure, plannerSuccess, readColumnDefault, readReportedDefault, requiredColumnMeta, requiredColumnOf, requiredColumnsOfMigration, resolveColumnRenameAgainst, resolveTableRenameAgainst, rowsWithoutValueFailure, rowsWithoutValueSummary, runnerFailure, runnerSuccess, slotSource, sqlDefaultFunctions, sqlOfSlot, sqlTypeLookupsOf, storageNameOfOperation, subjectsOfCalls, unconvertedFieldOf, unknownCallNames, unmatchedColumnRename, unmatchedTableRename };
4
+ import { $ as StatementPlanningTarget, $t as resolveTableRenameAgainst, A as NoTable, At as encodeStoredValue, B as SchemaTables, Bt as partitionIssuesByControlPolicy, C as MigrationPlannerConflict, Ct as contractToSchemaIR, D as NO_RENAMED_ORIGINS, Dt as createSqlTextSources, E as ModelTable, Et as createMigrationPlan, F as ReportedBody, Ft as fieldStatementColumns, G as SqlDescribedContractSpace, Gt as plannerFailure, H as SqlControlFamilyInstance, Ht as planFieldEventCalls, I as ReportedLiteralDefault, It as isUnfilledSlot, J as SqlQuotingRules, Jt as readReportedDefault, K as SqlPslBuildContext, Kt as plannerSuccess, L as RequiredColumn, Lt as modelRenameStorageEffect, M as PlannedStatements, Mt as fieldEventStorage, N as ReadColumnDefault, Nt as fieldOfColumn, O as NamespaceRename, Ot as detectDestructiveChanges, P as ReadReportedDefault, Pt as fieldRenameStorageEffect, Q as StatementOwnership, Qt as resolveColumnRenameAgainst, R as RequiredColumnMark, Rt as otherSpaceDeclaring, S as MigrationPlanner, St as contractNamespaceToSchemaIR, T as ModelStorageEffect, Tt as convertedColumnOf, U as SqlControlTargetDescriptor, Ut as planFieldEventOperations, V as SingleOperationCall, Vt as planEnumValueRewrites, W as SqlDefaultFunctionName, Wt as planStatements, X as SqlTextSources, Xt as requiredColumnOf, Y as SqlSlot, Yt as requiredColumnMeta, Z as StatementColumn, Zt as requiredColumnsOfMigration, _ as INIT_ADDITIVE_POLICY, _n as withEnumValueOperations, _t as assembleAuthoringContributions, a as ColumnRename, an as runnerFailure, at as SuppressionRecord, b as MigrationPlan, bt as columnTakesTemporaryValue, c as ContractColumns, cn as sqlDefaultFunctions, ct as TableNameCaseGuardTable, d as ConvertedColumn, dn as storageNameOfOperation, dt as TableRenameRequest, en as rowsHoldingValueMeta, et as StoredEnumValue, f as DefaultResolver, fn as subjectsOfCalls, ft as TargetMigrationsCapability, g as FieldStorageEffect, gn as unmatchedTableRename, gt as appliedStatementsInOrder, h as FieldStatementColumns, hn as unmatchedColumnRename, ht as _default, i as ColumnOnOneSide, in as rowsWithoutValueSummary, it as SubjectStorage, j as PlanFieldEventOperationsOptions, jt as extractCodecControlHooks, k as NamespaceStatementTarget, kt as detectTableNameCaseChanges, l as ContractToSchemaIROptions, ln as sqlOfSlot, lt as TableRename, m as FieldEventCall, mn as unknownCallNames, mt as WorkingSchemaOrigins, n as CallSubjects, nn as rowsHoldingValueSummary, nt as StoredValueReplacement, o as ColumnRenameRequest, on as runnerSuccess, ot as TABLE_NAME_CASE_CHANGED_CODE, p as DefaultResolverColumn, pn as unconvertedFieldOf, pt as TargetRefusal, q as SqlQuote, qt as readColumnDefault, r as CallWithCompanions, rn as rowsWithoutValueFailure, rt as StoredValueRewrite, s as ContractColumn, sn as slotSource, st as TableMove, t as COLUMN_RENAME_UNMATCHED_CODE, tn as rowsHoldingValueOf, tt as StoredValueCodec, u as ControlPolicySubject, un as sqlTypeLookupsOf, ut as TableRenameByHand, v as MigrationOperationClass, vt as backfillOfDefaultedField, w as MigrationPlannerResult, wt as convertedColumnMeta, x as MigrationPlanOperation, xt as contractColumns, y as MigrationOperationPolicy, yt as checkSqlExpressionText, z as RowsHoldingValueMark, zt as partitionCallsByControlPolicy } from "./control-CffuMKgt.mjs";
5
+ export { COLUMN_RENAME_UNMATCHED_CODE, type CallSubjects, type CallWithCompanions, type CodecControlHooks, type ColumnOnOneSide, type ColumnRename, type ColumnRenameRequest, type ContractColumn, type ContractColumns, type ContractToSchemaIROptions, type ControlPolicySubject, type ConvertedColumn, type CreateSqlMigrationPlanOptions, type DefaultResolver, type DefaultResolverColumn, type FieldEvent, type FieldEventCall, type FieldEventContext, type FieldStatementColumns, type FieldStorageEffect, INIT_ADDITIVE_POLICY, type MigrationOperationClass, type MigrationOperationPolicy, type MigrationPlan, type MigrationPlanOperation, type MigrationPlanner, type MigrationPlannerConflict, type MigrationPlannerResult, type ModelStorageEffect, type ModelTable, NO_RENAMED_ORIGINS, type NamespaceRename, type NamespaceStatementTarget, type NoTable, type PlanFieldEventOperationsOptions, type PlannedStatements, type ReadColumnDefault, type ReadReportedDefault, type ReportedBody, type ReportedLiteralDefault, type RequiredColumn, type RequiredColumnMark, type ResolveIdentityValueInput, type RowsHoldingValueMark, type SchemaTables, type SingleOperationCall, type SqlControlAdapterDescriptor, type SqlControlExtensionDescriptor, type SqlControlFamilyInstance, type SqlControlTargetDescriptor, type SqlDefaultFunctionName, type SqlDescribedContractSpace, type SqlMigrationPlan, type SqlMigrationPlanContractInfo, type SqlMigrationPlanOperation, type SqlMigrationPlanOperationStep, type SqlMigrationPlanOperationTarget, type SqlMigrationPlanner, type SqlMigrationPlannerPlanOptions, type SqlMigrationRunner, type SqlMigrationRunnerErrorCode, type SqlMigrationRunnerExecuteCallbacks, type SqlMigrationRunnerExecuteOptions, type SqlMigrationRunnerFailure, type SqlMigrationRunnerResult, type SqlMigrationRunnerSuccessValue, type SqlPlanTargetDetails, type SqlPlannerConflict, type SqlPlannerConflictKind, type SqlPlannerConflictLocation, type SqlPlannerFailureResult, type SqlPlannerResult, type SqlPlannerSuccessResult, type SqlPslBuildContext, type SqlQuote, type SqlQuotingRules, type SqlSchemaDiffFn, type SqlSchemaDiffInput, type SqlSchemaDiffResult, type SqlSlot, type SqlTextSources, type StatementColumn, type StatementOwnership, type StatementPlanningTarget, type StorageTypePlanResult, type StoredEnumValue, type StoredValueCodec, type StoredValueReplacement, type StoredValueRewrite, type SubjectStorage, type SuppressionRecord, TABLE_NAME_CASE_CHANGED_CODE, type TableMove, type TableNameCaseGuardTable, type TableRename, type TableRenameByHand, type TableRenameRequest, type TargetMigrationsCapability, type TargetRefusal, type WorkingSchemaOrigins, appliedStatementsInOrder, assembleAuthoringContributions, backfillOfDefaultedField, checkSqlDefaultText, checkSqlExpressionText, columnTakesTemporaryValue, contractColumns, contractNamespaceToSchemaIR, contractToSchemaIR, convertedColumnMeta, convertedColumnOf, createMigrationPlan, createSqlTextSources, _default as default, detectDestructiveChanges, detectTableNameCaseChanges, encodeStoredValue, extractCodecControlHooks, fieldEventStorage, fieldOfColumn, fieldRenameStorageEffect, fieldStatementColumns, isUnfilledSlot, modelRenameStorageEffect, otherSpaceDeclaring, partitionCallsByControlPolicy, partitionIssuesByControlPolicy, planEnumValueRewrites, planFieldEventCalls, planFieldEventOperations, planStatements, plannerFailure, plannerSuccess, readColumnDefault, readReportedDefault, requiredColumnMeta, requiredColumnOf, requiredColumnsOfMigration, resolveColumnRenameAgainst, resolveTableRenameAgainst, rowsHoldingValueMeta, rowsHoldingValueOf, rowsHoldingValueSummary, rowsWithoutValueFailure, rowsWithoutValueSummary, runnerFailure, runnerSuccess, slotSource, sqlDefaultFunctions, sqlOfSlot, sqlTypeLookupsOf, storageNameOfOperation, subjectsOfCalls, unconvertedFieldOf, unknownCallNames, unmatchedColumnRename, unmatchedTableRename, withEnumValueOperations };
@@ -1,4 +1,4 @@
1
1
  import { n as checkSqlDefaultText } from "./validators-BwA7ttZM.mjs";
2
2
  import { s as extractCodecControlHooks } from "./schema-verify-C3wbdviw-DMjIubOr.mjs";
3
- import { $ as unmatchedColumnRename, A as planFieldEventOperations, B as resolveTableRenameAgainst, C as fieldStatementColumns, D as partitionCallsByControlPolicy, E as otherSpaceDeclaring, F as readReportedDefault, G as slotSource, H as rowsWithoutValueSummary, I as requiredColumnMeta, J as sqlTypeLookupsOf, K as sqlDefaultFunctions, L as requiredColumnOf, M as plannerFailure, N as plannerSuccess, O as partitionIssuesByControlPolicy, P as readColumnDefault, Q as unknownCallNames, R as requiredColumnsOfMigration, S as fieldRenameStorageEffect, T as modelRenameStorageEffect, U as runnerFailure, V as rowsWithoutValueFailure, W as runnerSuccess, X as subjectsOfCalls, Y as storageNameOfOperation, Z as unconvertedFieldOf, _ as createSqlTextSources, a as appliedStatementsInOrder, b as fieldEventStorage, c as checkSqlExpressionText, d as contractNamespaceToSchemaIR, et as unmatchedTableRename, f as contractToSchemaIR, g as createMigrationPlan, h as convertedColumnOf, i as TABLE_NAME_CASE_CHANGED_CODE, j as planStatements, k as planFieldEventCalls, l as columnTakesTemporaryValue, m as convertedColumnMeta, n as INIT_ADDITIVE_POLICY, o as assembleAuthoringContributions, p as control_default, q as sqlOfSlot, r as NO_RENAMED_ORIGINS, s as backfillOfDefaultedField, t as COLUMN_RENAME_UNMATCHED_CODE, u as contractColumns, v as detectDestructiveChanges, w as isUnfilledSlot, x as fieldOfColumn, y as detectTableNameCaseChanges, z as resolveColumnRenameAgainst } from "./control-D1Er9MJE.mjs";
4
- export { COLUMN_RENAME_UNMATCHED_CODE, INIT_ADDITIVE_POLICY, NO_RENAMED_ORIGINS, TABLE_NAME_CASE_CHANGED_CODE, appliedStatementsInOrder, assembleAuthoringContributions, backfillOfDefaultedField, checkSqlDefaultText, checkSqlExpressionText, columnTakesTemporaryValue, contractColumns, contractNamespaceToSchemaIR, contractToSchemaIR, convertedColumnMeta, convertedColumnOf, createMigrationPlan, createSqlTextSources, control_default as default, detectDestructiveChanges, detectTableNameCaseChanges, extractCodecControlHooks, fieldEventStorage, fieldOfColumn, fieldRenameStorageEffect, fieldStatementColumns, isUnfilledSlot, modelRenameStorageEffect, otherSpaceDeclaring, partitionCallsByControlPolicy, partitionIssuesByControlPolicy, planFieldEventCalls, planFieldEventOperations, planStatements, plannerFailure, plannerSuccess, readColumnDefault, readReportedDefault, requiredColumnMeta, requiredColumnOf, requiredColumnsOfMigration, resolveColumnRenameAgainst, resolveTableRenameAgainst, rowsWithoutValueFailure, rowsWithoutValueSummary, runnerFailure, runnerSuccess, slotSource, sqlDefaultFunctions, sqlOfSlot, sqlTypeLookupsOf, storageNameOfOperation, subjectsOfCalls, unconvertedFieldOf, unknownCallNames, unmatchedColumnRename, unmatchedTableRename };
3
+ import { $ as sqlTypeLookupsOf, A as planEnumValueRewrites, B as requiredColumnsOfMigration, C as fieldRenameStorageEffect, D as otherSpaceDeclaring, E as modelRenameStorageEffect, F as plannerSuccess, G as rowsHoldingValueSummary, H as resolveTableRenameAgainst, I as readColumnDefault, J as runnerFailure, K as rowsWithoutValueFailure, L as readReportedDefault, M as planFieldEventOperations, N as planStatements, O as partitionCallsByControlPolicy, P as plannerFailure, Q as sqlOfSlot, R as requiredColumnMeta, S as fieldOfColumn, T as isUnfilledSlot, U as rowsHoldingValueMeta, V as resolveColumnRenameAgainst, W as rowsHoldingValueOf, X as slotSource, Y as runnerSuccess, Z as sqlDefaultFunctions, _ as createSqlTextSources, a as appliedStatementsInOrder, at as unmatchedTableRename, b as encodeStoredValue, c as checkSqlExpressionText, d as contractNamespaceToSchemaIR, et as storageNameOfOperation, f as contractToSchemaIR, g as createMigrationPlan, h as convertedColumnOf, i as TABLE_NAME_CASE_CHANGED_CODE, it as unmatchedColumnRename, j as planFieldEventCalls, k as partitionIssuesByControlPolicy, l as columnTakesTemporaryValue, m as convertedColumnMeta, n as INIT_ADDITIVE_POLICY, nt as unconvertedFieldOf, o as assembleAuthoringContributions, ot as withEnumValueOperations, p as control_default, q as rowsWithoutValueSummary, r as NO_RENAMED_ORIGINS, rt as unknownCallNames, s as backfillOfDefaultedField, t as COLUMN_RENAME_UNMATCHED_CODE, tt as subjectsOfCalls, u as contractColumns, v as detectDestructiveChanges, w as fieldStatementColumns, x as fieldEventStorage, y as detectTableNameCaseChanges, z as requiredColumnOf } from "./control-D7N_L18S.mjs";
4
+ export { COLUMN_RENAME_UNMATCHED_CODE, INIT_ADDITIVE_POLICY, NO_RENAMED_ORIGINS, TABLE_NAME_CASE_CHANGED_CODE, appliedStatementsInOrder, assembleAuthoringContributions, backfillOfDefaultedField, checkSqlDefaultText, checkSqlExpressionText, columnTakesTemporaryValue, contractColumns, contractNamespaceToSchemaIR, contractToSchemaIR, convertedColumnMeta, convertedColumnOf, createMigrationPlan, createSqlTextSources, control_default as default, detectDestructiveChanges, detectTableNameCaseChanges, encodeStoredValue, extractCodecControlHooks, fieldEventStorage, fieldOfColumn, fieldRenameStorageEffect, fieldStatementColumns, isUnfilledSlot, modelRenameStorageEffect, otherSpaceDeclaring, partitionCallsByControlPolicy, partitionIssuesByControlPolicy, planEnumValueRewrites, planFieldEventCalls, planFieldEventOperations, planStatements, plannerFailure, plannerSuccess, readColumnDefault, readReportedDefault, requiredColumnMeta, requiredColumnOf, requiredColumnsOfMigration, resolveColumnRenameAgainst, resolveTableRenameAgainst, rowsHoldingValueMeta, rowsHoldingValueOf, rowsHoldingValueSummary, rowsWithoutValueFailure, rowsWithoutValueSummary, runnerFailure, runnerSuccess, slotSource, sqlDefaultFunctions, sqlOfSlot, sqlTypeLookupsOf, storageNameOfOperation, subjectsOfCalls, unconvertedFieldOf, unknownCallNames, unmatchedColumnRename, unmatchedTableRename, withEnumValueOperations };
@@ -1,2 +1,2 @@
1
- import { a as VerifySqlSchemaByDiffInput, c as classifySqlDiffIssue, d as verifySqlSchemaByDiff, i as StorageTypeVerdictInput, l as computeSqlDiffVerdict, n as SqlDiffVerdictInput, o as arraysEqual, r as StorageTypeVerdict, s as classifyDiffSubjectGranularity, t as SqlDiffVerdict, u as computeStorageTypeVerdict } from "./diff-Bh3cSTWM.mjs";
1
+ import { a as VerifySqlSchemaByDiffInput, c as classifySqlDiffIssue, d as verifySqlSchemaByDiff, i as StorageTypeVerdictInput, l as computeSqlDiffVerdict, n as SqlDiffVerdictInput, o as arraysEqual, r as StorageTypeVerdict, s as classifyDiffSubjectGranularity, t as SqlDiffVerdict, u as computeStorageTypeVerdict } from "./diff-FNTO8gbI.mjs";
2
2
  export { type SqlDiffVerdict, type SqlDiffVerdictInput, type StorageTypeVerdict, type StorageTypeVerdictInput, type VerifySqlSchemaByDiffInput, arraysEqual, classifyDiffSubjectGranularity, classifySqlDiffIssue, computeSqlDiffVerdict, computeStorageTypeVerdict, verifySqlSchemaByDiff };
@@ -1,2 +1,2 @@
1
- import { t as SqlMigration } from "./migration-D7inCpXQ.mjs";
1
+ import { t as SqlMigration } from "./migration-qalbcIUs.mjs";
2
2
  export { SqlMigration as Migration };
@@ -1,3 +1,3 @@
1
- import { c as sqlIntegerArgumentGeneratorFunctions, l as sqlTargetTypeConstructors, t as idGeneratorFunctionBindings } from "./generator-functions-Cg5QkM46-D6M4ayK9.mjs";
2
- import { n as temporalCodecPresetWithPrecision, r as temporalStringAuthoringPresets, t as sqlFamilyPack } from "./pack-CNrW7w8L.mjs";
1
+ import { c as sqlIntegerArgumentGeneratorFunctions, l as sqlTargetTypeConstructors, t as idGeneratorFunctionBindings } from "./generator-functions-Cg5QkM46-C1ByFzyT.mjs";
2
+ import { n as temporalCodecPresetWithPrecision, r as temporalStringAuthoringPresets, t as sqlFamilyPack } from "./pack-DOTaBfUC.mjs";
3
3
  export { sqlFamilyPack as default, idGeneratorFunctionBindings, sqlIntegerArgumentGeneratorFunctions, sqlTargetTypeConstructors, temporalCodecPresetWithPrecision, temporalStringAuthoringPresets };
@@ -1,8 +1,8 @@
1
1
  import { D as QueryOperationTypesBase } from "./types-DfKvtJwS-CrpWTGBJ.mjs";
2
2
  import "./types-CkAd8SWm.mjs";
3
3
  import { i as SqlOperationEntry } from "./index-Nqc3OHR_.mjs";
4
- import { Nt as SelectAst } from "./types-DriMIMNQ-BkbsW7w3.mjs";
5
- import { i as CodecTypesBase, l as RawCodecInferer, o as Expression, r as CodecExpression, x as ScopeField, y as RawSqlTag } from "./expression-6ld_ZQL6-fOuazzzm.mjs";
4
+ import { Nt as SelectAst } from "./types-ijhejJhK-EdACW3bY.mjs";
5
+ import { i as CodecTypesBase, l as RawCodecInferer, o as Expression, r as CodecExpression, x as ScopeField, y as RawSqlTag } from "./expression-C3F6gxZH-DrYNeDbh.mjs";
6
6
  //#region ../../../2-sql-family/4-lanes/relational-core/dist/exports/functions.d.mts
7
7
  //#region src/functions.d.ts
8
8
  type BooleanCodecType = {
@@ -70,4 +70,4 @@ type Functions<QC extends FunctionsContext> = BuiltinFunctions<QC['codecTypes']>
70
70
  declare function createFunctions<QC extends FunctionsContext>(operations: Readonly<Record<string, SqlOperationEntry>>, rawCodecInferer: RawCodecInferer): Functions<QC>;
71
71
  //#endregion
72
72
  export { Subquery as a, FunctionsContext as i, BuiltinFunctions as n, SubqueryMarker as o, Functions as r, createFunctions as s, BooleanCodecType as t };
73
- //# sourceMappingURL=functions-EW-RrRn3.d.mts.map
73
+ //# sourceMappingURL=functions-CQrsCHCj.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"functions-EW-RrRn3.d.mts","names":[],"sources":["../../../../2-sql-family/4-lanes/relational-core/dist/exports/functions.d.mts"],"mappings":";;;;;;;KAKK;EACH;EACA;;cAEY;KACT,SAAS,gBAAgB,eAAe;GAC1C,iBAAiB;EAClB,YAAY;EACZ,gBAAgB,eAAe;;;KAG5B;WACM,YAAY;WACZ,qBAAqB;;KAE3B,mBAAmB,WAAW,8BAA8B,WAAW,KAAK,GAAG;KAC/E,iBAAiB,WAAW;WACtB;;EAET,KAAK,wBAAwB,GAAG,gBAAgB,kBAAkB,YAAY,GAAG,gBAAgB,kBAAkB,eAAe,WAAW;EAC7I,KAAK,wBAAwB,mBAAmB,GAAG,gBAAgB,SAAS,GAAG,YAAY,GAAG,gBAAgB,SAAS,GAAG,eAAe,WAAW;EACpJ,KAAK,wBAAwB,mBAAmB,GAAG,gBAAgB,SAAS,GAAG,KAAK,GAAG,gBAAgB,SAAS,GAAG,QAAQ,WAAW;EACtI,MAAM,wBAAwB,mBAAmB,GAAG,gBAAgB,SAAS,GAAG,KAAK,GAAG,gBAAgB,SAAS,GAAG,QAAQ,WAAW;EACvI,KAAK,wBAAwB,mBAAmB,GAAG,gBAAgB,SAAS,GAAG,KAAK,GAAG,gBAAgB,SAAS,GAAG,QAAQ,WAAW;EACtI,MAAM,wBAAwB,mBAAmB,GAAG,gBAAgB,SAAS,GAAG,KAAK,GAAG,gBAAgB,SAAS,GAAG,QAAQ,WAAW;EACvI,SAAS,MAAM,sCAAsC,UAAU,WAAW;EAC1E,QAAQ,KAAK,sCAAsC,UAAU,WAAW;EACxE,SAAS,UAAU,SAAS,eAAe,iBAAiB,WAAW;EACvE,YAAY,UAAU,SAAS,eAAe,iBAAiB,WAAW;EAC1E;KACG,wBAAwB,MAAM;MAC7B,SAAS;MACT;QACE,UAAU,SAAS;MACrB,SAAS;MACT;UACI,WAAW;KAChB,wBAAwB,MAAM;MAC7B,SAAS;MACT;QACE,QAAQ,MAAM,gBAAgB,kBAAkB,OAAO,WAAW;;EAExE;KACG,wBAAwB,MAAM;MAC7B,SAAS;MACT;QACE,UAAU,SAAS;MACrB,SAAS;MACT;UACI,WAAW;KAChB,wBAAwB,MAAM;MAC7B,SAAS;MACT;QACE,QAAQ,MAAM,gBAAgB,kBAAkB,OAAO,WAAW;;WAE/D,KAAK;;;KAGX,UAAU,WAAW,oBAAoB,iBAAiB,oBAAoB,mBAAmB;;;;iBAIrF,gBAAgB,WAAW,kBAAkB,YAAY,SAAS,eAAe,qBAAqB,iBAAiB,kBAAkB,UAAU"}
1
+ {"version":3,"file":"functions-CQrsCHCj.d.mts","names":[],"sources":["../../../../2-sql-family/4-lanes/relational-core/dist/exports/functions.d.mts"],"mappings":";;;;;;;KAKK;EACH;EACA;;cAEY;KACT,SAAS,gBAAgB,eAAe;GAC1C,iBAAiB;EAClB,YAAY;EACZ,gBAAgB,eAAe;;;KAG5B;WACM,YAAY;WACZ,qBAAqB;;KAE3B,mBAAmB,WAAW,8BAA8B,WAAW,KAAK,GAAG;KAC/E,iBAAiB,WAAW;WACtB;;EAET,KAAK,wBAAwB,GAAG,gBAAgB,kBAAkB,YAAY,GAAG,gBAAgB,kBAAkB,eAAe,WAAW;EAC7I,KAAK,wBAAwB,mBAAmB,GAAG,gBAAgB,SAAS,GAAG,YAAY,GAAG,gBAAgB,SAAS,GAAG,eAAe,WAAW;EACpJ,KAAK,wBAAwB,mBAAmB,GAAG,gBAAgB,SAAS,GAAG,KAAK,GAAG,gBAAgB,SAAS,GAAG,QAAQ,WAAW;EACtI,MAAM,wBAAwB,mBAAmB,GAAG,gBAAgB,SAAS,GAAG,KAAK,GAAG,gBAAgB,SAAS,GAAG,QAAQ,WAAW;EACvI,KAAK,wBAAwB,mBAAmB,GAAG,gBAAgB,SAAS,GAAG,KAAK,GAAG,gBAAgB,SAAS,GAAG,QAAQ,WAAW;EACtI,MAAM,wBAAwB,mBAAmB,GAAG,gBAAgB,SAAS,GAAG,KAAK,GAAG,gBAAgB,SAAS,GAAG,QAAQ,WAAW;EACvI,SAAS,MAAM,sCAAsC,UAAU,WAAW;EAC1E,QAAQ,KAAK,sCAAsC,UAAU,WAAW;EACxE,SAAS,UAAU,SAAS,eAAe,iBAAiB,WAAW;EACvE,YAAY,UAAU,SAAS,eAAe,iBAAiB,WAAW;EAC1E;KACG,wBAAwB,MAAM;MAC7B,SAAS;MACT;QACE,UAAU,SAAS;MACrB,SAAS;MACT;UACI,WAAW;KAChB,wBAAwB,MAAM;MAC7B,SAAS;MACT;QACE,QAAQ,MAAM,gBAAgB,kBAAkB,OAAO,WAAW;;EAExE;KACG,wBAAwB,MAAM;MAC7B,SAAS;MACT;QACE,UAAU,SAAS;MACrB,SAAS;MACT;UACI,WAAW;KAChB,wBAAwB,MAAM;MAC7B,SAAS;MACT;QACE,QAAQ,MAAM,gBAAgB,kBAAkB,OAAO,WAAW;;WAE/D,KAAK;;;KAGX,UAAU,WAAW,oBAAoB,iBAAiB,oBAAoB,mBAAmB;;;;iBAIrF,gBAAgB,WAAW,kBAAkB,YAAY,SAAS,eAAe,qBAAqB,iBAAiB,kBAAkB,UAAU"}
@@ -1,5 +1,5 @@
1
- import { C as LiteralExpr, E as NullCheckExpr, I as SubqueryExpr, O as OrExpr, S as ListExpression, n as AndExpr, p as ExistsExpr, r as BinaryExpr } from "./types-NTQsD2MS-xcLtvKO9.mjs";
2
- import { a as isExpression, i as createRawSql, r as codecOf, s as toExpr, t as ExpressionImpl } from "./expression-impl-B-XNINxr-BhN2sysZ.mjs";
1
+ import { C as LiteralExpr, E as NullCheckExpr, I as SubqueryExpr, O as OrExpr, S as ListExpression, n as AndExpr, p as ExistsExpr, r as BinaryExpr } from "./types-BkTuhW3Z-BJfTjcxS.mjs";
2
+ import { a as isExpression, i as createRawSql, r as codecOf, s as toExpr, t as ExpressionImpl } from "./expression-impl-DtbmFnnz-CUKzBisY.mjs";
3
3
  import { blindCast } from "@prisma/orm-framework/utils/casts";
4
4
  //#region ../../../2-sql-family/4-lanes/relational-core/dist/exports/functions.mjs
5
5
  const BOOL_FIELD = {
@@ -85,4 +85,4 @@ function createFunctions(operations, rawCodecInferer) {
85
85
  //#endregion
86
86
  export { createFunctions as t };
87
87
 
88
- //# sourceMappingURL=functions-CsOoN7I3.mjs.map
88
+ //# sourceMappingURL=functions-D7lN5-JU.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"functions-CsOoN7I3.mjs","names":[],"sources":["../../../../2-sql-family/4-lanes/relational-core/dist/exports/functions.mjs"],"sourcesContent":["import { C as LiteralExpr, E as NullCheckExpr, I as SubqueryExpr, O as OrExpr, S as ListExpression, n as AndExpr, p as ExistsExpr, r as BinaryExpr } from \"../types-NTQsD2MS.mjs\";\nimport { a as isExpression, i as createRawSql, r as codecOf, s as toExpr, t as ExpressionImpl } from \"../expression-impl-B-XNINxr.mjs\";\nimport { blindCast } from \"@internal/utils/casts\";\n//#region src/functions.ts\nconst BOOL_FIELD = {\n\tcodecId: \"pg/bool@1\",\n\tnullable: false\n};\n/**\n* Resolve a binary-comparison operand into an AST expression, threading the column-bound side's {@link CodecRef} to the raw-value side.\n*\n* For `fns.eq(f.email, 'alice@example.com')`, `f.email` is the column-bound expression carrying a `ColumnRef` AST and a `CodecRef` derived from contract storage; the raw string operand has no codec context. By deriving the codec context from the column-bound side and forwarding it via `toExpr(value, codec)`, the resulting `ParamRef` carries the `CodecRef` that encode-side dispatch needs to materialise the per-instance codec for parameterized codec ids (`vector(1024)` vs. `vector(1536)`).\n*/\nfunction resolveOperand(operand, otherCodec) {\n\tif (isExpression(operand)) return operand.buildAst();\n\treturn toExpr(operand, otherCodec);\n}\n/**\n* Resolves an Expression via `buildAst()`, or wraps a raw value as a `LiteralExpr` — an SQL literal inlined into the query text, not a bound parameter.\n*\n* Used for `and` / `or` operands. The usual operand is an `Expression<bool>` (e.g. the result of `fns.eq`), which this function passes through by calling `buildAst()`. The only time the raw-value branch fires is when the caller writes `fns.and(true, x)` or similar — inlining `TRUE`/`FALSE` literals lets the SQL planner statically simplify `TRUE AND x` to `x`, which it cannot do for an opaque `ParamRef`.\n*/\nfunction toLiteralExpr(value) {\n\tif (isExpression(value)) return value.buildAst();\n\treturn new LiteralExpr(value);\n}\nfunction boolExpr(astNode) {\n\treturn new ExpressionImpl(astNode, BOOL_FIELD);\n}\nfunction binaryWithSharedCodec(a, b, build) {\n\tconst aCodec = codecOf(a);\n\treturn build(resolveOperand(a, codecOf(b)), resolveOperand(b, aCodec));\n}\nfunction eq(a, b) {\n\tif (b === null) return boolExpr(NullCheckExpr.isNull(toExpr(a)));\n\tif (a === null) return boolExpr(NullCheckExpr.isNull(toExpr(b)));\n\treturn boolExpr(binaryWithSharedCodec(a, b, (l, r) => new BinaryExpr(\"eq\", l, r)));\n}\nfunction ne(a, b) {\n\tif (b === null) return boolExpr(NullCheckExpr.isNotNull(toExpr(a)));\n\tif (a === null) return boolExpr(NullCheckExpr.isNotNull(toExpr(b)));\n\treturn boolExpr(binaryWithSharedCodec(a, b, (l, r) => new BinaryExpr(\"neq\", l, r)));\n}\nfunction comparison(a, b, op) {\n\treturn boolExpr(binaryWithSharedCodec(a, b, (l, r) => new BinaryExpr(op, l, r)));\n}\nfunction inOrNotIn(expr, valuesOrSubquery, op) {\n\tconst left = expr.buildAst();\n\tconst leftCodec = codecOf(expr);\n\tconst binaryFn = op === \"in\" ? BinaryExpr.in : BinaryExpr.notIn;\n\tif (Array.isArray(valuesOrSubquery)) {\n\t\tconst refs = valuesOrSubquery.map((v) => resolveOperand(v, leftCodec));\n\t\treturn boolExpr(binaryFn(left, ListExpression.of(refs)));\n\t}\n\treturn boolExpr(binaryFn(left, SubqueryExpr.of(valuesOrSubquery.buildAst())));\n}\nfunction createBuiltinFunctions(rawCodecInferer) {\n\treturn {\n\t\teq: (a, b) => eq(a, b),\n\t\tne: (a, b) => ne(a, b),\n\t\tgt: (a, b) => comparison(a, b, \"gt\"),\n\t\tgte: (a, b) => comparison(a, b, \"gte\"),\n\t\tlt: (a, b) => comparison(a, b, \"lt\"),\n\t\tlte: (a, b) => comparison(a, b, \"lte\"),\n\t\tand: (...exprs) => boolExpr(AndExpr.of(exprs.map(toLiteralExpr))),\n\t\tor: (...exprs) => boolExpr(OrExpr.of(exprs.map(toLiteralExpr))),\n\t\texists: (subquery) => boolExpr(ExistsExpr.exists(subquery.buildAst())),\n\t\tnotExists: (subquery) => boolExpr(ExistsExpr.notExists(subquery.buildAst())),\n\t\tin: (expr, valuesOrSubquery) => inOrNotIn(expr, valuesOrSubquery, \"in\"),\n\t\tnotIn: (expr, valuesOrSubquery) => inOrNotIn(expr, valuesOrSubquery, \"notIn\"),\n\t\traw: createRawSql(rawCodecInferer)\n\t};\n}\n/**\n* The function surface for a contract: the built-in functions, and each registered query operation's implementation under its name.\n*/\nfunction createFunctions(operations, rawCodecInferer) {\n\tconst builtins = createBuiltinFunctions(rawCodecInferer);\n\treturn new Proxy(blindCast({}), { get(_target, prop) {\n\t\tif (Object.hasOwn(builtins, prop)) return blindCast(builtins)[prop];\n\t\tconst op = operations[prop];\n\t\tif (op) return op.impl;\n\t} });\n}\n//#endregion\nexport { createFunctions };\n\n//# sourceMappingURL=functions.mjs.map"],"mappings":";;;;AAIA,MAAM,aAAa;CAClB,SAAS;CACT,UAAU;AACX;;;;;;AAMA,SAAS,eAAe,SAAS,YAAY;CAC5C,IAAI,aAAa,OAAO,GAAG,OAAO,QAAQ,SAAS;CACnD,OAAO,OAAO,SAAS,UAAU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3,"file":"functions-D7lN5-JU.mjs","names":[],"sources":["../../../../2-sql-family/4-lanes/relational-core/dist/exports/functions.mjs"],"sourcesContent":["import { C as LiteralExpr, E as NullCheckExpr, I as SubqueryExpr, O as OrExpr, S as ListExpression, n as AndExpr, p as ExistsExpr, r as BinaryExpr } from \"../types-BkTuhW3Z.mjs\";\nimport { a as isExpression, i as createRawSql, r as codecOf, s as toExpr, t as ExpressionImpl } from \"../expression-impl-DtbmFnnz.mjs\";\nimport { blindCast } from \"@internal/utils/casts\";\n//#region src/functions.ts\nconst BOOL_FIELD = {\n\tcodecId: \"pg/bool@1\",\n\tnullable: false\n};\n/**\n* Resolve a binary-comparison operand into an AST expression, threading the column-bound side's {@link CodecRef} to the raw-value side.\n*\n* For `fns.eq(f.email, 'alice@example.com')`, `f.email` is the column-bound expression carrying a `ColumnRef` AST and a `CodecRef` derived from contract storage; the raw string operand has no codec context. By deriving the codec context from the column-bound side and forwarding it via `toExpr(value, codec)`, the resulting `ParamRef` carries the `CodecRef` that encode-side dispatch needs to materialise the per-instance codec for parameterized codec ids (`vector(1024)` vs. `vector(1536)`).\n*/\nfunction resolveOperand(operand, otherCodec) {\n\tif (isExpression(operand)) return operand.buildAst();\n\treturn toExpr(operand, otherCodec);\n}\n/**\n* Resolves an Expression via `buildAst()`, or wraps a raw value as a `LiteralExpr` — an SQL literal inlined into the query text, not a bound parameter.\n*\n* Used for `and` / `or` operands. The usual operand is an `Expression<bool>` (e.g. the result of `fns.eq`), which this function passes through by calling `buildAst()`. The only time the raw-value branch fires is when the caller writes `fns.and(true, x)` or similar — inlining `TRUE`/`FALSE` literals lets the SQL planner statically simplify `TRUE AND x` to `x`, which it cannot do for an opaque `ParamRef`.\n*/\nfunction toLiteralExpr(value) {\n\tif (isExpression(value)) return value.buildAst();\n\treturn new LiteralExpr(value);\n}\nfunction boolExpr(astNode) {\n\treturn new ExpressionImpl(astNode, BOOL_FIELD);\n}\nfunction binaryWithSharedCodec(a, b, build) {\n\tconst aCodec = codecOf(a);\n\treturn build(resolveOperand(a, codecOf(b)), resolveOperand(b, aCodec));\n}\nfunction eq(a, b) {\n\tif (b === null) return boolExpr(NullCheckExpr.isNull(toExpr(a)));\n\tif (a === null) return boolExpr(NullCheckExpr.isNull(toExpr(b)));\n\treturn boolExpr(binaryWithSharedCodec(a, b, (l, r) => new BinaryExpr(\"eq\", l, r)));\n}\nfunction ne(a, b) {\n\tif (b === null) return boolExpr(NullCheckExpr.isNotNull(toExpr(a)));\n\tif (a === null) return boolExpr(NullCheckExpr.isNotNull(toExpr(b)));\n\treturn boolExpr(binaryWithSharedCodec(a, b, (l, r) => new BinaryExpr(\"neq\", l, r)));\n}\nfunction comparison(a, b, op) {\n\treturn boolExpr(binaryWithSharedCodec(a, b, (l, r) => new BinaryExpr(op, l, r)));\n}\nfunction inOrNotIn(expr, valuesOrSubquery, op) {\n\tconst left = expr.buildAst();\n\tconst leftCodec = codecOf(expr);\n\tconst binaryFn = op === \"in\" ? BinaryExpr.in : BinaryExpr.notIn;\n\tif (Array.isArray(valuesOrSubquery)) {\n\t\tconst refs = valuesOrSubquery.map((v) => resolveOperand(v, leftCodec));\n\t\treturn boolExpr(binaryFn(left, ListExpression.of(refs)));\n\t}\n\treturn boolExpr(binaryFn(left, SubqueryExpr.of(valuesOrSubquery.buildAst())));\n}\nfunction createBuiltinFunctions(rawCodecInferer) {\n\treturn {\n\t\teq: (a, b) => eq(a, b),\n\t\tne: (a, b) => ne(a, b),\n\t\tgt: (a, b) => comparison(a, b, \"gt\"),\n\t\tgte: (a, b) => comparison(a, b, \"gte\"),\n\t\tlt: (a, b) => comparison(a, b, \"lt\"),\n\t\tlte: (a, b) => comparison(a, b, \"lte\"),\n\t\tand: (...exprs) => boolExpr(AndExpr.of(exprs.map(toLiteralExpr))),\n\t\tor: (...exprs) => boolExpr(OrExpr.of(exprs.map(toLiteralExpr))),\n\t\texists: (subquery) => boolExpr(ExistsExpr.exists(subquery.buildAst())),\n\t\tnotExists: (subquery) => boolExpr(ExistsExpr.notExists(subquery.buildAst())),\n\t\tin: (expr, valuesOrSubquery) => inOrNotIn(expr, valuesOrSubquery, \"in\"),\n\t\tnotIn: (expr, valuesOrSubquery) => inOrNotIn(expr, valuesOrSubquery, \"notIn\"),\n\t\traw: createRawSql(rawCodecInferer)\n\t};\n}\n/**\n* The function surface for a contract: the built-in functions, and each registered query operation's implementation under its name.\n*/\nfunction createFunctions(operations, rawCodecInferer) {\n\tconst builtins = createBuiltinFunctions(rawCodecInferer);\n\treturn new Proxy(blindCast({}), { get(_target, prop) {\n\t\tif (Object.hasOwn(builtins, prop)) return blindCast(builtins)[prop];\n\t\tconst op = operations[prop];\n\t\tif (op) return op.impl;\n\t} });\n}\n//#endregion\nexport { createFunctions };\n\n//# sourceMappingURL=functions.mjs.map"],"mappings":";;;;AAIA,MAAM,aAAa;CAClB,SAAS;CACT,UAAU;AACX;;;;;;AAMA,SAAS,eAAe,SAAS,YAAY;CAC5C,IAAI,aAAa,OAAO,GAAG,OAAO,QAAQ,SAAS;CACnD,OAAO,OAAO,SAAS,UAAU;AAClC;;;;;;AAMA,SAAS,cAAc,OAAO;CAC7B,IAAI,aAAa,KAAK,GAAG,OAAO,MAAM,SAAS;CAC/C,OAAO,IAAI,YAAY,KAAK;AAC7B;AACA,SAAS,SAAS,SAAS;CAC1B,OAAO,IAAI,eAAe,SAAS,UAAU;AAC9C;AACA,SAAS,sBAAsB,GAAG,GAAG,OAAO;CAC3C,MAAM,SAAS,QAAQ,CAAC;CACxB,OAAO,MAAM,eAAe,GAAG,QAAQ,CAAC,CAAC,GAAG,eAAe,GAAG,MAAM,CAAC;AACtE;AACA,SAAS,GAAG,GAAG,GAAG;CACjB,IAAI,MAAM,MAAM,OAAO,SAAS,cAAc,OAAO,OAAO,CAAC,CAAC,CAAC;CAC/D,IAAI,MAAM,MAAM,OAAO,SAAS,cAAc,OAAO,OAAO,CAAC,CAAC,CAAC;CAC/D,OAAO,SAAS,sBAAsB,GAAG,IAAI,GAAG,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aAAa,CAAC,CAAC;EAChE,KAAK,GAAG,UAAU,SAAS,OAAO,GAAG,MAAM,IAAI,aAAa,CAAC,CAAC;EAC9D,SAAS,aAAa,SAAS,WAAW,OAAO,SAAS,SAAS,CAAC,CAAC;EACrE,YAAY,aAAa,SAAS,WAAW,UAAU,SAAS,SAAS,CAAC,CAAC;EAC3E,KAAK,MAAM,qBAAqB,UAAU,MAAM,kBAAkB,IAAI;EACtE,QAAQ,MAAM,qBAAqB,UAAU,MAAM,kBAAkB,OAAO;EAC5E,KAAK,aAAa,eAAe;CAClC;AACD;;;;AAIA,SAAS,gBAAgB,YAAY,iBAAiB;CACrD,MAAM,WAAW,uBAAuB,eAAe;CACvD,OAAO,IAAI,MAAM,UAAU,CAAC,CAAC,GAAG,EAAE,IAAI,SAAS,MAAM;EACpD,IAAI,OAAO,OAAO,UAAU,IAAI,GAAG,OAAO,UAAU,QAAQ,CAAC,CAAC;EAC9D,MAAM,KAAK,WAAW;EACtB,IAAI,IAAI,OAAO,GAAG;CACnB,EAAE,CAAC;AACJ"}
@@ -1,5 +1,5 @@
1
1
  import { c as enumType } from "./contract-builder-50lF0kz1.mjs";
2
- import { c as SQL_TEXT_CODEC_ID, i as SQL_CHAR_CODEC_ID, l as SQL_VARCHAR_CODEC_ID } from "./ast-D0miQ1B6.mjs";
2
+ import { c as SQL_TEXT_CODEC_ID, i as SQL_CHAR_CODEC_ID, l as SQL_VARCHAR_CODEC_ID } from "./ast-e_02t9Nt.mjs";
3
3
  import { readEnumBlockMembers, resolveEnumCodecId } from "@prisma/orm-framework/components/authoring";
4
4
  import { enumRefusalOf, requiredParamKeys } from "@prisma/orm-framework/components/codec";
5
5
  import { blindCast } from "@prisma/orm-framework/utils/casts";
@@ -540,4 +540,4 @@ function checkedInteger(integer, dataTypes, allowed, refusal) {
540
540
  //#endregion
541
541
  export { sqlFamilyGeneratorDescriptors as a, sqlIntegerArgumentGeneratorFunctions as c, sqlFamilyEntityTypes as i, sqlTargetTypeConstructors as l, sqlFamilyAuthoringFieldPresets as n, sqlFamilyGeneratorFunctions as o, sqlFamilyAuthoringTypes as r, sqlFamilyPslBlockDescriptors as s, idGeneratorFunctionBindings as t };
542
542
 
543
- //# sourceMappingURL=generator-functions-Cg5QkM46-D6M4ayK9.mjs.map
543
+ //# sourceMappingURL=generator-functions-Cg5QkM46-C1ByFzyT.mjs.map