@prisma/orm-family-sql 8.0.0-rc.14-dev.39 → 8.0.0-rc.14-dev.41

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 (95) hide show
  1. package/dist/{aggregate-descriptor-registry-B3RG0Zom.mjs → aggregate-descriptor-registry-B88lvGQB.mjs} +2 -2
  2. package/dist/{aggregate-descriptor-registry-B3RG0Zom.mjs.map → aggregate-descriptor-registry-B88lvGQB.mjs.map} +1 -1
  3. package/dist/{ast-B2W9tHy1.mjs → ast-DOubq2En.mjs} +2 -2
  4. package/dist/ast-DOubq2En.mjs.map +1 -0
  5. package/dist/{ast-DgUdnFtz.d.mts → ast-DWgP3Fnu.d.mts} +6 -4
  6. package/dist/{ast-DgUdnFtz.d.mts.map → ast-DWgP3Fnu.d.mts.map} +1 -1
  7. package/dist/builder.d.mts +2 -2
  8. package/dist/builder__runtime.d.mts +6 -6
  9. package/dist/builder__runtime.mjs +48 -3
  10. package/dist/builder__runtime.mjs.map +1 -1
  11. package/dist/builder__types.d.mts +2 -2
  12. package/dist/{control-qkDZstn6.d.mts → control-BThycYAG.d.mts} +6 -6
  13. package/dist/{control-qkDZstn6.d.mts.map → control-BThycYAG.d.mts.map} +1 -1
  14. package/dist/control-adapter-BUyIei4U.d.mts +1 -0
  15. package/dist/{control-adapter-CkFfBVei-N-jSb9WR.d.mts → control-adapter-CkFfBVei-D8yZvwK7.d.mts} +4 -4
  16. package/dist/{control-adapter-CkFfBVei-N-jSb9WR.d.mts.map → control-adapter-CkFfBVei-D8yZvwK7.d.mts.map} +1 -1
  17. package/dist/{db-DLjWu9-f-ldboYM8A.d.mts → db-CJxU3aL_-CMuiIKs5.d.mts} +60 -7
  18. package/dist/{db-DLjWu9-f-ldboYM8A.d.mts.map → db-CJxU3aL_-CMuiIKs5.d.mts.map} +1 -1
  19. package/dist/{ddl-types-CWIiJxsH-BixiHVIr.d.mts → ddl-types-BT_bz9ck-BjAW4tq0.d.mts} +3 -3
  20. package/dist/{ddl-types-CWIiJxsH-BixiHVIr.d.mts.map → ddl-types-BT_bz9ck-BjAW4tq0.d.mts.map} +1 -1
  21. package/dist/{diff-B1ThXQkW.d.mts → diff-CN8CxYDc.d.mts} +3 -3
  22. package/dist/{diff-B1ThXQkW.d.mts.map → diff-CN8CxYDc.d.mts.map} +1 -1
  23. package/dist/{expression-o74FOqh6.d.mts → expression-B-9RZQN9.d.mts} +3 -3
  24. package/dist/{expression-o74FOqh6.d.mts.map → expression-B-9RZQN9.d.mts.map} +1 -1
  25. package/dist/{expression-Bv8X6-Qg.mjs → expression-gmLQa4Ie.mjs} +2 -2
  26. package/dist/{expression-Bv8X6-Qg.mjs.map → expression-gmLQa4Ie.mjs.map} +1 -1
  27. package/dist/family.d.mts +6 -6
  28. package/dist/family__control-adapter.d.mts +2 -2
  29. package/dist/family__control.d.mts +2 -2
  30. package/dist/family__diff.d.mts +2 -2
  31. package/dist/family__migration.d.mts +1 -1
  32. package/dist/{index-DCKjTi7L.d.mts → index-NVxwovsn.d.mts} +9 -9
  33. package/dist/{index-DCKjTi7L.d.mts.map → index-NVxwovsn.d.mts.map} +1 -1
  34. package/dist/middleware-BAA8rimP.d.mts +1 -0
  35. package/dist/{middleware-BtMX6nSF-DM55ZeCo.d.mts → middleware-DAmCZlPN-B8QEPIUy.d.mts} +3 -3
  36. package/dist/{middleware-BtMX6nSF-DM55ZeCo.d.mts.map → middleware-DAmCZlPN-B8QEPIUy.d.mts.map} +1 -1
  37. package/dist/{middleware-CMr4CHNz-DHIUdxlm.mjs → middleware-yBAfiVWn-CzNCthJT.mjs} +3 -3
  38. package/dist/{middleware-CMr4CHNz-DHIUdxlm.mjs.map → middleware-yBAfiVWn-CzNCthJT.mjs.map} +1 -1
  39. package/dist/{migration-DV5extx2.d.mts → migration-K_EPNCmR.d.mts} +2 -2
  40. package/dist/{migration-DV5extx2.d.mts.map → migration-K_EPNCmR.d.mts.map} +1 -1
  41. package/dist/orm-client.d.mts +11 -11
  42. package/dist/orm-client.mjs +5 -4
  43. package/dist/orm-client.mjs.map +1 -1
  44. package/dist/{plan-BlQITcbP-B2q80evU.d.mts → plan-1wnpBALU-CkFF8oIz.d.mts} +3 -3
  45. package/dist/plan-1wnpBALU-CkFF8oIz.d.mts.map +1 -0
  46. package/dist/plan-BCQYGXrJ.d.mts +2 -0
  47. package/dist/{prepared-statement-YtgdlN7e-BryEFERH.d.mts → prepared-statement-YtgdlN7e-BJzjum7z.d.mts} +13 -13
  48. package/dist/{prepared-statement-YtgdlN7e-BryEFERH.d.mts.map → prepared-statement-YtgdlN7e-BJzjum7z.d.mts.map} +1 -1
  49. package/dist/query-lane-context-CEYIBLlG.d.mts +1 -0
  50. package/dist/{query-lane-context-OSV9X636-DFRkNeXq.d.mts → query-lane-context-Ft8I-pge-nABTUotc.d.mts} +3 -3
  51. package/dist/{query-lane-context-OSV9X636-DFRkNeXq.d.mts.map → query-lane-context-Ft8I-pge-nABTUotc.d.mts.map} +1 -1
  52. package/dist/relational-core.d.mts +12 -12
  53. package/dist/relational-core.mjs +6 -6
  54. package/dist/relational-core__aggregate-descriptor-registry.d.mts +1 -1
  55. package/dist/relational-core__aggregate-descriptor-registry.mjs +1 -1
  56. package/dist/relational-core__ast.d.mts +4 -4
  57. package/dist/relational-core__ast.mjs +4 -4
  58. package/dist/relational-core__codec-descriptor-registry.d.mts +2 -2
  59. package/dist/relational-core__contract-free.d.mts +2 -2
  60. package/dist/relational-core__contract-free.mjs +1 -1
  61. package/dist/relational-core__contract-free.mjs.map +1 -1
  62. package/dist/relational-core__expression.d.mts +1 -1
  63. package/dist/relational-core__expression.mjs +1 -1
  64. package/dist/relational-core__middleware.d.mts +2 -2
  65. package/dist/relational-core__middleware.mjs +1 -1
  66. package/dist/relational-core__plan.d.mts +3 -3
  67. package/dist/relational-core__query-lane-context.d.mts +2 -2
  68. package/dist/relational-core__types.d.mts +2 -2
  69. package/dist/runtime.d.mts +4 -4
  70. package/dist/runtime.mjs +4 -4
  71. package/dist/runtime__internal__prepared-query.d.mts +1 -1
  72. package/dist/{sql-execution-plan-CV6K4o9N-B3EzlMwJ.d.mts → sql-execution-plan-CdlkkwtB-NuamyL5f.d.mts} +3 -3
  73. package/dist/sql-execution-plan-CdlkkwtB-NuamyL5f.d.mts.map +1 -0
  74. package/dist/{types-flbim7l7-BbzcJZpz.d.mts → types-0xZ8asKQ-tfwe3lxh.d.mts} +6 -6
  75. package/dist/{types-flbim7l7-BbzcJZpz.d.mts.map → types-0xZ8asKQ-tfwe3lxh.d.mts.map} +1 -1
  76. package/dist/{types-BLnsGaJf-m-qTW3ox.mjs → types-C9UR53Lv-BF-_alNk.mjs} +36 -3
  77. package/dist/types-C9UR53Lv-BF-_alNk.mjs.map +1 -0
  78. package/dist/{types-Dskga3R1-DeSwpS4A.d.mts → types-CqwI8eGx-AYan1yI4.d.mts} +25 -3
  79. package/dist/{types-Dskga3R1-DeSwpS4A.d.mts.map → types-CqwI8eGx-AYan1yI4.d.mts.map} +1 -1
  80. package/dist/{types-CvuS68sy-CIYfMFuu.d.mts → types-CvuS68sy-Cj3SvUKo.d.mts} +2 -2
  81. package/dist/{types-CvuS68sy-CIYfMFuu.d.mts.map → types-CvuS68sy-Cj3SvUKo.d.mts.map} +1 -1
  82. package/dist/types-DkRYdSXK.d.mts +1 -0
  83. package/dist/{util-DQQgv2j1-D6INZaRG.mjs → util-BBgcP3gI-XJBkxo1K.mjs} +12 -3
  84. package/dist/util-BBgcP3gI-XJBkxo1K.mjs.map +1 -0
  85. package/package.json +18 -18
  86. package/dist/ast-B2W9tHy1.mjs.map +0 -1
  87. package/dist/control-adapter-BoQobwpe.d.mts +0 -1
  88. package/dist/middleware-Bn2R6ocx.d.mts +0 -1
  89. package/dist/plan-BlQITcbP-B2q80evU.d.mts.map +0 -1
  90. package/dist/plan-D11FmUVM.d.mts +0 -2
  91. package/dist/query-lane-context-SRmvD9-J.d.mts +0 -1
  92. package/dist/sql-execution-plan-CV6K4o9N-B3EzlMwJ.d.mts.map +0 -1
  93. package/dist/types-BLnsGaJf-m-qTW3ox.mjs.map +0 -1
  94. package/dist/types-Bb6De1yt.d.mts +0 -1
  95. package/dist/util-DQQgv2j1-D6INZaRG.mjs.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"file":"db-DLjWu9-f-ldboYM8A.d.mts","names":[],"sources":["../../../../2-sql/4-lanes/sql-builder/dist/db-DLjWu9-f.d.mts"],"mappings":";;;;;;;;;;;KAMK,YAAY,cAAc,UAAU,UAAU,qBAAqB,WAAW;cACrE;cACA;KACT,OAAO,QAAQ,WAAW,IAAI,EAAE;KAChC,WAAW,cAAc;KACzB,aAAa,eAAe;KAC5B;EACH,UAAU;EACV,YAAY,eAAe;;KAExB,WAAW,YAAY,YAAY;YAC5B;IACR,UAAU;IACV,YAAY,OAAO,OAAO;;EAE5B,qBAAqB;EACrB,YAAY;;KAET,aAAa,qBAAqB,cAAc;EACnD,UAAU,yBAAyB;EACnC,eAAe,KAAK,OAAO,yBAAyB;;KAEjD,yBAAyB,UAAU,mBAAqB,WAAW;EACtE,SAAS,aAAa;EACtB,UAAU,aAAa;KACpB,aAAa;EAChB;;EAEA;IACE;KACC,YAAY,UAAU,OAAO,UAAU;EAC1C,UAAU,OAAO,KAAK,qBAAqB,iBAAiB,KAAK,qBAAqB;EACtF,YAAY,OAAO,kBAAkB;;KAElC,YAAY,UAAU,OAAO,uBAAuB;EACvD,UAAU;EACV,YAAY,OAAO,KAAK,iBAAiB,UAAU,OAAO,QAAQ,gBAAgB;;KAE/E,mBAAmB,UAAU,iBAAiB,WAAW;EAC5D,SAAS,EAAE;EACX;;KAEG,cAAc,UAAU;EAC3B,UAAU,mBAAmB;EAC7B,eAAe,mBAAmB,kBAAkB,mBAAmB,gBAAgB;;KAEpF,SAAS,gBAAgB,eAAe;GAC1C,iBAAiB;EAClB,YAAY;EACZ,gBAAgB,eAAe;;KAE5B;WACM,YAAY;WACZ,cAAc,eAAe;WAC7B,qBAAqB;WACrB,2B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AAU,yBAAyB,cAAc,mCAAmC,kBAAkB,2BAA2B,yBAAyB;KACrL,oBAAoB,UAAU,oBAAoB,0BAA0B,cAAc,6BAA6B,mBAAmB,kBAAkB,2BAA2B,SAAS,kBAAkB,2BAA2B,OAAO,uBAAuB;KAC3Q,eAAe,UAAU,oBAAoB,qBAAqB,uBAAuB,kBAAkB,2BAA2B,OAAO;KAC7I,UAAU,UAAU,oBAAoB,4BAA4B,0CAA0C,cAAc,kBAAkB,2BAA2B,kBAAkB,WAAW,GAAG,MAAM;;;;;;;;;KAS/M,GAAG,UAAU,kCAAkC,YAAY,sCAAsC,UAAU,GAAG"}
@@ -1,8 +1,8 @@
1
1
  import { a as ReferentialAction } from "./foreign-key-C-iTPuRT-C9ip8zFx.mjs";
2
2
  import "./types-DkOYK86-.mjs";
3
- import { E as CodecRef$1, m as AnyParamRef } from "./types-Dskga3R1-DeSwpS4A.mjs";
3
+ import { E as CodecRef$1, m as AnyParamRef } from "./types-CqwI8eGx-AYan1yI4.mjs";
4
4
  import { ColumnDefaultLiteralInputValue } from "@prisma/orm-framework/contract/types";
5
- //#region ../../../2-sql/4-lanes/relational-core/dist/ddl-types-CWIiJxsH.d.mts
5
+ //#region ../../../2-sql/4-lanes/relational-core/dist/ddl-types-BT_bz9ck.d.mts
6
6
  //#region src/ast/opaque-sql.d.ts
7
7
  /**
8
8
  * SQL text that Prisma does not parse, placed inside a larger statement: a CHECK or policy predicate, an index element list or predicate, a column default, or an ALTER COLUMN TYPE conversion. ADR 244 calls such text opaque.
@@ -140,4 +140,4 @@ declare class CheckExpressionConstraint {
140
140
  type DdlTableConstraint = PrimaryKeyConstraint | ForeignKeyConstraint | UniqueConstraint | CheckExpressionConstraint;
141
141
  //#endregion
142
142
  export { DdlNode as a, FunctionColumnDefault as c, PrimaryKeyConstraint as d, UniqueConstraint as f, renderOpaqueSql as h, DdlColumnDefault as i, LiteralColumnDefault as l, opaqueSql as m, CheckExpressionConstraint as n, DdlTableConstraint as o, isDdlNode as p, DdlColumn as r, ForeignKeyConstraint as s, AnyDdlColumnDefault as t, OpaqueSql as u };
143
- //# sourceMappingURL=ddl-types-CWIiJxsH-BixiHVIr.d.mts.map
143
+ //# sourceMappingURL=ddl-types-BT_bz9ck-BjAW4tq0.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"ddl-types-CWIiJxsH-BixiHVIr.d.mts","names":[],"sources":["../../../../2-sql/4-lanes/relational-core/dist/ddl-types-CWIiJxsH.d.mts"],"mappings":";;;;;;;;;cAOc;WACH;EACT,YAAY;;iBAEG,UAAU,eAAe;;;;iBAIzB,gBAAgB,KAAK;;;uBAGf;oBACH;YACR;;cAEE,6BAA6B;WAChC;WACA,OAAO;EAChB,YAAY,OAAO;;cAEP,8BAA8B;WACjC;WACA,YAAY;EACrB,YAAY,YAAY;;KAErB,sBAAsB,uBAAuB;cACpC;WACH;WACA;WACA;WACA;WACA,UAAU;;WAEV,WAAW;EACpB,YAAY;aACD;aACA;aACA;aACA;aACA,UAAU;aACV,WAAW;;;uBAGD;oBACH;;;;;;;EAOlB;YACU;EACV,oBAAoB;;iBAEL,UAAU,iBAAiB,SAAS;;;;;;;;cAQvC;WACH;WACA,SAAS;WACT;EACT,YAAY;aACD;aACA;;;;;;;;;;cAUC;WACH;WACA,SAAS;WACT;WACA,YAAY;WACZ,UAAU;WACV,UAAU;WACV;EACT,YAAY;aACD;aACA;aACA;aACA,WAAW;aACX,WAAW;aACX;;;;;;;;;;cAUC;WACH;WACA,SAAS;WACT;EACT,YAAY;aACD;aACA;;;;;;;;;;;;cAYC;WACH;WACA;WACA,YAAY;EACrB,YAAY;aACD;aACA,YAAY;;;KAGpB,qBAAqB,uBAAuB,uBAAuB,mBAAmB"}
1
+ {"version":3,"file":"ddl-types-BT_bz9ck-BjAW4tq0.d.mts","names":[],"sources":["../../../../2-sql/4-lanes/relational-core/dist/ddl-types-BT_bz9ck.d.mts"],"mappings":";;;;;;;;;cAOc;WACH;EACT,YAAY;;iBAEG,UAAU,eAAe;;;;iBAIzB,gBAAgB,KAAK;;;uBAGf;oBACH;YACR;;cAEE,6BAA6B;WAChC;WACA,OAAO;EAChB,YAAY,OAAO;;cAEP,8BAA8B;WACjC;WACA,YAAY;EACrB,YAAY,YAAY;;KAErB,sBAAsB,uBAAuB;cACpC;WACH;WACA;WACA;WACA;WACA,UAAU;;WAEV,WAAW;EACpB,YAAY;aACD;aACA;aACA;aACA;aACA,UAAU;aACV,WAAW;;;uBAGD;oBACH;;;;;;;EAOlB;YACU;EACV,oBAAoB;;iBAEL,UAAU,iBAAiB,SAAS;;;;;;;;cAQvC;WACH;WACA,SAAS;WACT;EACT,YAAY;aACD;aACA;;;;;;;;;;cAUC;WACH;WACA,SAAS;WACT;WACA,YAAY;WACZ,UAAU;WACV,UAAU;WACV;EACT,YAAY;aACD;aACA;aACA;aACA,WAAW;aACX,WAAW;aACX;;;;;;;;;;cAUC;WACH;WACA,SAAS;WACT;EACT,YAAY;aACD;aACA;;;;;;;;;;;;cAYC;WACH;WACA;WACA,YAAY;EACrB,YAAY;aACD;aACA,YAAY;;;KAGpB,qBAAqB,uBAAuB,uBAAuB,mBAAmB"}
@@ -2,8 +2,8 @@ import { l as SqlStorage } from "./sql-storage-DSnnRQAf-DaHPnley.mjs";
2
2
  import "./types-DkOYK86-.mjs";
3
3
  import { y as SqlSchemaIRNode } from "./types-CLsPsUiw-Db1BsN9R.mjs";
4
4
  import "./types-D6XuABFQ.mjs";
5
- import "./control-adapter-CkFfBVei-N-jSb9WR.mjs";
6
- import { n as CodecControlHooks } from "./types-CvuS68sy-CIYfMFuu.mjs";
5
+ import "./control-adapter-CkFfBVei-D8yZvwK7.mjs";
6
+ import { n as CodecControlHooks } from "./types-CvuS68sy-Cj3SvUKo.mjs";
7
7
  import { t as SqlSchemaDiffFn } from "./schema-differ-CqWOkoW9--uxNOini.mjs";
8
8
  import { Contract, ControlPolicy } from "@prisma/orm-framework/contract/types";
9
9
  import { TargetBoundComponentDescriptor } from "@prisma/orm-framework/components/components";
@@ -101,4 +101,4 @@ interface VerifySqlSchemaByDiffInput {
101
101
  declare function verifySqlSchemaByDiff(input: VerifySqlSchemaByDiffInput): VerifyDatabaseSchemaResult;
102
102
  //#endregion
103
103
  export { VerifySqlSchemaByDiffInput as a, computeSqlDiffVerdict as c, StorageTypeVerdictInput as i, computeStorageTypeVerdict as l, SqlDiffVerdictInput as n, classifyDiffSubjectGranularity as o, StorageTypeVerdict as r, classifySqlDiffIssue as s, SqlDiffVerdict as t, verifySqlSchemaByDiff as u };
104
- //# sourceMappingURL=diff-B1ThXQkW.d.mts.map
104
+ //# sourceMappingURL=diff-CN8CxYDc.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"diff-B1ThXQkW.d.mts","names":[],"sources":["../../../../2-sql/9-family/dist/diff.d.mts"],"mappings":";;;;;;;;;;;;;;;;;;;;;;iBAmBiB,+BAA+B,OAAO,iBAAiB,gBAAgB,qBAAqB,yBAAyB;;;;;;;;;;;;;iBAarH,qBAAqB,OAAO,iBAAiB,gBAAgB,qBAAqB,yBAAyB;UAClH;;WAEC,iBAAiB;;WAEjB,uBAAuB,OAAO,oBAAoB;WAClD;WACA,sBAAsB;;WAEtB,gBAAgB,qBAAqB;;UAEtC;WACC,mBAAmB;WACnB,mBAAmB;;;;;;;;;iBASb,sBAAsB,OAAO,sBAAsB;UAC1D;WACC,UAAU,SAAS;;;;;;;WAOnB,gBAAgB;aACd,QAAQ;;WAEV,YAAY,oBAAoB;;;;;;;;;UASjC;WACC,mBAAmB;WACnB,mBAAmB;;iBAEb,0BAA0B,OAAO,0BAA0B;UAClE;WACC,UAAU,SAAS;WACnB,QAAQ;WACR;WACA,qBAAqB,cAAc;;WAEnC,YAAY;;WAEZ,gBAAgB,qBAAqB;;;;;;;;;iBAS/B,sBAAsB,OAAO,6BAA6B"}
1
+ {"version":3,"file":"diff-CN8CxYDc.d.mts","names":[],"sources":["../../../../2-sql/9-family/dist/diff.d.mts"],"mappings":";;;;;;;;;;;;;;;;;;;;;;iBAmBiB,+BAA+B,OAAO,iBAAiB,gBAAgB,qBAAqB,yBAAyB;;;;;;;;;;;;;iBAarH,qBAAqB,OAAO,iBAAiB,gBAAgB,qBAAqB,yBAAyB;UAClH;;WAEC,iBAAiB;;WAEjB,uBAAuB,OAAO,oBAAoB;WAClD;WACA,sBAAsB;;WAEtB,gBAAgB,qBAAqB;;UAEtC;WACC,mBAAmB;WACnB,mBAAmB;;;;;;;;;iBASb,sBAAsB,OAAO,sBAAsB;UAC1D;WACC,UAAU,SAAS;;;;;;;WAOnB,gBAAgB;aACd,QAAQ;;WAEV,YAAY,oBAAoB;;;;;;;;;UASjC;WACC,mBAAmB;WACnB,mBAAmB;;iBAEb,0BAA0B,OAAO,0BAA0B;UAClE;WACC,UAAU,SAAS;WACnB,QAAQ;WACR;WACA,qBAAqB,cAAc;;WAEnC,YAAY;;WAEZ,gBAAgB,qBAAqB;;;;;;;;;iBAS/B,sBAAsB,OAAO,6BAA6B"}
@@ -2,9 +2,9 @@ import { l as SqlStorage } from "./sql-storage-DSnnRQAf-DaHPnley.mjs";
2
2
  import { S as QueryOperationReturn } from "./types-DV040Uuq-Bu8CnbMa.mjs";
3
3
  import "./types-DkOYK86-.mjs";
4
4
  import { t as SqlLoweringSpec } from "./index-qOLTnfYz.mjs";
5
- import { Dt as RawSqlLiteral, E as CodecRef$1, Tt as RawQueryColumn, c as AnyExpression, wt as RawQueryAst, yt as ParamRef } from "./types-Dskga3R1-DeSwpS4A.mjs";
5
+ import { Ct as ParamRef, E as CodecRef$1, Ot as RawQueryAst, c as AnyExpression, jt as RawSqlLiteral, kt as RawQueryColumn } from "./types-CqwI8eGx-AYan1yI4.mjs";
6
6
  import { l as SqlStatementStats } from "./driver-types-DRsYeq3j-X_D6hNMZ.mjs";
7
- import { n as SqlQueryPlan } from "./plan-BlQITcbP-B2q80evU.mjs";
7
+ import { n as SqlQueryPlan } from "./plan-1wnpBALU-CkFF8oIz.mjs";
8
8
  import { Contract } from "@prisma/orm-framework/contract/types";
9
9
  import { ParamSpec } from "@prisma/orm-framework/operations";
10
10
  //#region ../../../2-sql/4-lanes/relational-core/dist/exports/expression.d.mts
@@ -263,4 +263,4 @@ declare function createRawSql(adapter: RawCodecInferer, planContext: RawPlanCont
263
263
  declare function createRawSql(adapter: RawCodecInferer): RawSqlTag;
264
264
  //#endregion
265
265
  export { buildOperation as C, param as D, isExpression as E, toExpr as O, TraitExpression as S, createRawSql 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, 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, codecOf as w, ScopeField as x, RawSqlTag as y };
266
- //# sourceMappingURL=expression-o74FOqh6.d.mts.map
266
+ //# sourceMappingURL=expression-B-9RZQN9.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"expression-o74FOqh6.d.mts","names":[],"sources":["../../../../2-sql/4-lanes/relational-core/dist/exports/expression.d.mts"],"mappings":";;;;;;;;;;;KAQK;EACH;EACA;;;;;;;;EAQA;;;;EAIA,QAAQ;;KAEL,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,wB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Aa,iBAAiB;iBACrE,aAAa,SAAS,kBAAkB"}
1
+ {"version":3,"file":"expression-B-9RZQN9.d.mts","names":[],"sources":["../../../../2-sql/4-lanes/relational-core/dist/exports/expression.d.mts"],"mappings":";;;;;;;;;;;KAQK;EACH;EACA;;;;;;;;EAQA;;;;EAIA,QAAQ;;KAEL,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"}
@@ -1,4 +1,4 @@
1
- import { E as OperationExpr, M as RawExpr, N as RawQueryAst, k as ParamRef } from "./types-BLnsGaJf-m-qTW3ox.mjs";
1
+ import { A as ParamRef, D as OperationExpr, N as RawExpr, P as RawQueryAst } from "./types-C9UR53Lv-BF-_alNk.mjs";
2
2
  import { t as planFromAst } from "./plan-Dh0LbYIv-Crx5-ThG.mjs";
3
3
  import { runtimeError } from "@prisma/orm-framework/components/runtime";
4
4
  import { invariant } from "@prisma/orm-framework/utils/assertions";
@@ -145,4 +145,4 @@ var RawSqlStatementBuilderImpl = class extends RawSqlBuilderImpl {
145
145
  //#endregion
146
146
  export { param as a, isExpression as i, codecOf as n, toExpr as o, createRawSql as r, buildOperation as t };
147
147
 
148
- //# sourceMappingURL=expression-Bv8X6-Qg.mjs.map
148
+ //# sourceMappingURL=expression-gmLQa4Ie.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"expression-Bv8X6-Qg.mjs","names":[],"sources":["../../../../2-sql/4-lanes/relational-core/dist/exports/expression.mjs"],"sourcesContent":["import { E as OperationExpr, M as RawExpr, N as RawQueryAst, k as ParamRef } from \"../types-BLnsGaJf.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\nexport { buildOperation, codecOf, createRawSql, isExpression, param, toExpr };\n\n//# sourceMappingURL=expression.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,OAAO;CACtC,IAAI,OAAO,UAAU,YAAY,OAAO,UAAU,YAA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S,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"}
1
+ {"version":3,"file":"expression-gmLQa4Ie.mjs","names":[],"sources":["../../../../2-sql/4-lanes/relational-core/dist/exports/expression.mjs"],"sourcesContent":["import { A as ParamRef, D as OperationExpr, N as RawExpr, P as RawQueryAst } from \"../types-C9UR53Lv.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\nexport { buildOperation, codecOf, createRawSql, isExpression, param, toExpr };\n\n//# sourceMappingURL=expression.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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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"}
package/dist/family.d.mts CHANGED
@@ -1,13 +1,13 @@
1
1
  import { n as resolveStorageTable, t as ResolvedStorageTable } from "./resolve-storage-table-Ba33K41A.mjs";
2
2
  import { h as checkSqlDefaultBody } from "./validators-BLkHaNpd.mjs";
3
- import { a as arraysEqual, n as Lowerer, r as SqlControlAdapter, t as ExecuteRequestLowerer } from "./control-adapter-CkFfBVei-N-jSb9WR.mjs";
4
- import { A as StorageTypePlanResult, C as SqlPlanTargetDetails, D as SqlPlannerFailureResult, E as SqlPlannerConflictLocation, O as SqlPlannerResult, S as SqlMigrationRunnerSuccessValue, T as SqlPlannerConflictKind, _ as SqlMigrationRunnerErrorCode, a as FieldEventContext, b as SqlMigrationRunnerFailure, c as SqlControlExtensionDescriptor, d as SqlMigrationPlanOperation, f as SqlMigrationPlanOperationStep, g as SqlMigrationRunner, h as SqlMigrationPlannerPlanOptions, i as FieldEvent, k as SqlPlannerSuccessResult, l as SqlMigrationPlan, m as SqlMigrationPlanner, n as CodecControlHooks, o as ResolveIdentityValueInput, p as SqlMigrationPlanOperationTarget, r as CreateSqlMigrationPlanOptions, s as SqlControlAdapterDescriptor, u as SqlMigrationPlanContractInfo, v as SqlMigrationRunnerExecuteCallbacks, w as SqlPlannerConflict, x as SqlMigrationRunnerResult, y as SqlMigrationRunnerExecuteOptions } from "./types-CvuS68sy-CIYfMFuu.mjs";
3
+ import { a as arraysEqual, n as Lowerer, r as SqlControlAdapter, t as ExecuteRequestLowerer } from "./control-adapter-CkFfBVei-D8yZvwK7.mjs";
4
+ import { A as StorageTypePlanResult, C as SqlPlanTargetDetails, D as SqlPlannerFailureResult, E as SqlPlannerConflictLocation, O as SqlPlannerResult, S as SqlMigrationRunnerSuccessValue, T as SqlPlannerConflictKind, _ as SqlMigrationRunnerErrorCode, a as FieldEventContext, b as SqlMigrationRunnerFailure, c as SqlControlExtensionDescriptor, d as SqlMigrationPlanOperation, f as SqlMigrationPlanOperationStep, g as SqlMigrationRunner, h as SqlMigrationPlannerPlanOptions, i as FieldEvent, k as SqlPlannerSuccessResult, l as SqlMigrationPlan, m as SqlMigrationPlanner, n as CodecControlHooks, o as ResolveIdentityValueInput, p as SqlMigrationPlanOperationTarget, r as CreateSqlMigrationPlanOptions, s as SqlControlAdapterDescriptor, u as SqlMigrationPlanContractInfo, v as SqlMigrationRunnerExecuteCallbacks, w as SqlPlannerConflict, x as SqlMigrationRunnerResult, y as SqlMigrationRunnerExecuteOptions } from "./types-CvuS68sy-Cj3SvUKo.mjs";
5
5
  import { n as SqlSchemaDiffInput, r as SqlSchemaDiffResult, t as SqlSchemaDiffFn } from "./schema-differ-CqWOkoW9--uxNOini.mjs";
6
- import { A as applyTableRename, B as partitionIssuesByControlPolicy, C as TABLE_NAME_CASE_CHANGED_CODE, D as TableRenameInMigration, E as TableRenameByHand, F as createMigrationPlan, G as runnerSuccess, H as plannerFailure, I as detectDestructiveChanges, J as temporalStringAuthoringPresets, K as sqlTypeLookupsOf, L as detectTableNameCaseChanges, M as contractNamespaceToSchemaIR, N as contractToSchemaIR, O as TargetMigrationsCapability, P as controlPolicyForCall, R as extractCodecControlHooks, S as SuppressionRecord, T as TableRename, U as plannerSuccess, V as planFieldEventOperations, W as runnerFailure, _ as ResolvedTableRename, a as DefaultRenderer, b as SqlDescribedContractSpace, c as MigrationOperationClass, d as MigrationPlanOperation, f as MigrationPlanner, g as RenameTableReferences, h as PlanFieldEventOperationsOptions, i as ControlPolicySubject, j as assembleAuthoringContributions, l as MigrationOperationPolicy, m as MigrationPlannerResult, n as ApplyTableRenameInput, o as DefaultResolver, p as MigrationPlannerConflict, q as temporalCodecPresetWithPrecision, r as ContractToSchemaIROptions, s as INIT_ADDITIVE_POLICY, t as AppliedTableRename, u as MigrationPlan, v as SqlControlFamilyInstance, w as TableNameCaseGuardTable, x as SqlPslBuildContext, y as SqlControlTargetDescriptor, z as partitionCallsByControlPolicy } from "./control-qkDZstn6.mjs";
7
- import "./control-adapter-BoQobwpe.mjs";
8
- import { a as VerifySqlSchemaByDiffInput, c as computeSqlDiffVerdict, i as StorageTypeVerdictInput, l as computeStorageTypeVerdict, n as SqlDiffVerdictInput, o as classifyDiffSubjectGranularity, r as StorageTypeVerdict, s as classifySqlDiffIssue, t as SqlDiffVerdict, u as verifySqlSchemaByDiff } from "./diff-B1ThXQkW.mjs";
6
+ import { A as applyTableRename, B as partitionIssuesByControlPolicy, C as TABLE_NAME_CASE_CHANGED_CODE, D as TableRenameInMigration, E as TableRenameByHand, F as createMigrationPlan, G as runnerSuccess, H as plannerFailure, I as detectDestructiveChanges, J as temporalStringAuthoringPresets, K as sqlTypeLookupsOf, L as detectTableNameCaseChanges, M as contractNamespaceToSchemaIR, N as contractToSchemaIR, O as TargetMigrationsCapability, P as controlPolicyForCall, R as extractCodecControlHooks, S as SuppressionRecord, T as TableRename, U as plannerSuccess, V as planFieldEventOperations, W as runnerFailure, _ as ResolvedTableRename, a as DefaultRenderer, b as SqlDescribedContractSpace, c as MigrationOperationClass, d as MigrationPlanOperation, f as MigrationPlanner, g as RenameTableReferences, h as PlanFieldEventOperationsOptions, i as ControlPolicySubject, j as assembleAuthoringContributions, l as MigrationOperationPolicy, m as MigrationPlannerResult, n as ApplyTableRenameInput, o as DefaultResolver, p as MigrationPlannerConflict, q as temporalCodecPresetWithPrecision, r as ContractToSchemaIROptions, s as INIT_ADDITIVE_POLICY, t as AppliedTableRename, u as MigrationPlan, v as SqlControlFamilyInstance, w as TableNameCaseGuardTable, x as SqlPslBuildContext, y as SqlControlTargetDescriptor, z as partitionCallsByControlPolicy } from "./control-BThycYAG.mjs";
7
+ import "./control-adapter-BUyIei4U.mjs";
8
+ import { a as VerifySqlSchemaByDiffInput, c as computeSqlDiffVerdict, i as StorageTypeVerdictInput, l as computeStorageTypeVerdict, n as SqlDiffVerdictInput, o as classifyDiffSubjectGranularity, r as StorageTypeVerdict, s as classifySqlDiffIssue, t as SqlDiffVerdict, u as verifySqlSchemaByDiff } from "./diff-CN8CxYDc.mjs";
9
9
  import { i as SqlSchemaVerifierBase, n as SqlContractSerializerBase, r as SqlEntityHydrationFactory, t as SqlContractSerializer } from "./ir-BYHqe2mj.mjs";
10
- import { t as SqlMigration } from "./migration-DV5extx2.mjs";
10
+ import { t as SqlMigration } from "./migration-K_EPNCmR.mjs";
11
11
  import "./pack-B-_m58dV.mjs";
12
12
  import { a as PslTypeResolution, i as PslTypeReference, n as DefaultMappingResult, o as mapDefault, r as PslTypeMap, t as DefaultMappingOptions } from "./type-map-dnvRKl9o-avUb9OLv.mjs";
13
13
  import { t as toEnumMemberName } from "./psl-build-ClK2AyY1.mjs";
@@ -1,3 +1,3 @@
1
- import { i as SqlControlAdapterDescriptor, n as Lowerer, r as SqlControlAdapter, t as ExecuteRequestLowerer } from "./control-adapter-CkFfBVei-N-jSb9WR.mjs";
2
- import "./control-adapter-BoQobwpe.mjs";
1
+ import { i as SqlControlAdapterDescriptor, n as Lowerer, r as SqlControlAdapter, t as ExecuteRequestLowerer } from "./control-adapter-CkFfBVei-D8yZvwK7.mjs";
2
+ import "./control-adapter-BUyIei4U.mjs";
3
3
  export type { ExecuteRequestLowerer, Lowerer, SqlControlAdapter, SqlControlAdapterDescriptor };
@@ -1,5 +1,5 @@
1
1
  import { h as checkSqlDefaultBody } from "./validators-BLkHaNpd.mjs";
2
- import { A as StorageTypePlanResult, C as SqlPlanTargetDetails, D as SqlPlannerFailureResult, E as SqlPlannerConflictLocation, O as SqlPlannerResult, S as SqlMigrationRunnerSuccessValue, T as SqlPlannerConflictKind, _ as SqlMigrationRunnerErrorCode, a as FieldEventContext, b as SqlMigrationRunnerFailure, c as SqlControlExtensionDescriptor, d as SqlMigrationPlanOperation, f as SqlMigrationPlanOperationStep, g as SqlMigrationRunner, h as SqlMigrationPlannerPlanOptions, i as FieldEvent, k as SqlPlannerSuccessResult, l as SqlMigrationPlan, m as SqlMigrationPlanner, n as CodecControlHooks, o as ResolveIdentityValueInput, p as SqlMigrationPlanOperationTarget, r as CreateSqlMigrationPlanOptions, s as SqlControlAdapterDescriptor, u as SqlMigrationPlanContractInfo, v as SqlMigrationRunnerExecuteCallbacks, w as SqlPlannerConflict, x as SqlMigrationRunnerResult, y as SqlMigrationRunnerExecuteOptions } from "./types-CvuS68sy-CIYfMFuu.mjs";
2
+ import { A as StorageTypePlanResult, C as SqlPlanTargetDetails, D as SqlPlannerFailureResult, E as SqlPlannerConflictLocation, O as SqlPlannerResult, S as SqlMigrationRunnerSuccessValue, T as SqlPlannerConflictKind, _ as SqlMigrationRunnerErrorCode, a as FieldEventContext, b as SqlMigrationRunnerFailure, c as SqlControlExtensionDescriptor, d as SqlMigrationPlanOperation, f as SqlMigrationPlanOperationStep, g as SqlMigrationRunner, h as SqlMigrationPlannerPlanOptions, i as FieldEvent, k as SqlPlannerSuccessResult, l as SqlMigrationPlan, m as SqlMigrationPlanner, n as CodecControlHooks, o as ResolveIdentityValueInput, p as SqlMigrationPlanOperationTarget, r as CreateSqlMigrationPlanOptions, s as SqlControlAdapterDescriptor, u as SqlMigrationPlanContractInfo, v as SqlMigrationRunnerExecuteCallbacks, w as SqlPlannerConflict, x as SqlMigrationRunnerResult, y as SqlMigrationRunnerExecuteOptions } from "./types-CvuS68sy-Cj3SvUKo.mjs";
3
3
  import { n as SqlSchemaDiffInput, r as SqlSchemaDiffResult, t as SqlSchemaDiffFn } from "./schema-differ-CqWOkoW9--uxNOini.mjs";
4
- import { A as applyTableRename, B as partitionIssuesByControlPolicy, C as TABLE_NAME_CASE_CHANGED_CODE, D as TableRenameInMigration, E as TableRenameByHand, F as createMigrationPlan, G as runnerSuccess, H as plannerFailure, I as detectDestructiveChanges, J as temporalStringAuthoringPresets, K as sqlTypeLookupsOf, L as detectTableNameCaseChanges, M as contractNamespaceToSchemaIR, N as contractToSchemaIR, O as TargetMigrationsCapability, P as controlPolicyForCall, R as extractCodecControlHooks, S as SuppressionRecord, T as TableRename, U as plannerSuccess, V as planFieldEventOperations, W as runnerFailure, _ as ResolvedTableRename, a as DefaultRenderer, b as SqlDescribedContractSpace, c as MigrationOperationClass, d as MigrationPlanOperation, f as MigrationPlanner, g as RenameTableReferences, h as PlanFieldEventOperationsOptions, i as ControlPolicySubject, j as assembleAuthoringContributions, k as _default, l as MigrationOperationPolicy, m as MigrationPlannerResult, n as ApplyTableRenameInput, o as DefaultResolver, p as MigrationPlannerConflict, q as temporalCodecPresetWithPrecision, r as ContractToSchemaIROptions, s as INIT_ADDITIVE_POLICY, t as AppliedTableRename, u as MigrationPlan, v as SqlControlFamilyInstance, w as TableNameCaseGuardTable, x as SqlPslBuildContext, y as SqlControlTargetDescriptor, z as partitionCallsByControlPolicy } from "./control-qkDZstn6.mjs";
4
+ import { A as applyTableRename, B as partitionIssuesByControlPolicy, C as TABLE_NAME_CASE_CHANGED_CODE, D as TableRenameInMigration, E as TableRenameByHand, F as createMigrationPlan, G as runnerSuccess, H as plannerFailure, I as detectDestructiveChanges, J as temporalStringAuthoringPresets, K as sqlTypeLookupsOf, L as detectTableNameCaseChanges, M as contractNamespaceToSchemaIR, N as contractToSchemaIR, O as TargetMigrationsCapability, P as controlPolicyForCall, R as extractCodecControlHooks, S as SuppressionRecord, T as TableRename, U as plannerSuccess, V as planFieldEventOperations, W as runnerFailure, _ as ResolvedTableRename, a as DefaultRenderer, b as SqlDescribedContractSpace, c as MigrationOperationClass, d as MigrationPlanOperation, f as MigrationPlanner, g as RenameTableReferences, h as PlanFieldEventOperationsOptions, i as ControlPolicySubject, j as assembleAuthoringContributions, k as _default, l as MigrationOperationPolicy, m as MigrationPlannerResult, n as ApplyTableRenameInput, o as DefaultResolver, p as MigrationPlannerConflict, q as temporalCodecPresetWithPrecision, r as ContractToSchemaIROptions, s as INIT_ADDITIVE_POLICY, t as AppliedTableRename, u as MigrationPlan, v as SqlControlFamilyInstance, w as TableNameCaseGuardTable, x as SqlPslBuildContext, y as SqlControlTargetDescriptor, z as partitionCallsByControlPolicy } from "./control-BThycYAG.mjs";
5
5
  export { type AppliedTableRename, type ApplyTableRenameInput, type CodecControlHooks, type ContractToSchemaIROptions, type ControlPolicySubject, type CreateSqlMigrationPlanOptions, type DefaultRenderer, type DefaultResolver, type FieldEvent, type FieldEventContext, INIT_ADDITIVE_POLICY, type MigrationOperationClass, type MigrationOperationPolicy, type MigrationPlan, type MigrationPlanOperation, type MigrationPlanner, type MigrationPlannerConflict, type MigrationPlannerResult, type PlanFieldEventOperationsOptions, type RenameTableReferences, type ResolveIdentityValueInput, type ResolvedTableRename, type SqlControlAdapterDescriptor, type SqlControlExtensionDescriptor, type SqlControlFamilyInstance, type SqlControlTargetDescriptor, 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 SqlSchemaDiffFn, type SqlSchemaDiffInput, type SqlSchemaDiffResult, type StorageTypePlanResult, type SuppressionRecord, TABLE_NAME_CASE_CHANGED_CODE, type TableNameCaseGuardTable, type TableRename, type TableRenameByHand, type TableRenameInMigration, type TargetMigrationsCapability, applyTableRename, assembleAuthoringContributions, checkSqlDefaultBody, contractNamespaceToSchemaIR, contractToSchemaIR, controlPolicyForCall, createMigrationPlan, _default as default, detectDestructiveChanges, detectTableNameCaseChanges, extractCodecControlHooks, partitionCallsByControlPolicy, partitionIssuesByControlPolicy, planFieldEventOperations, plannerFailure, plannerSuccess, runnerFailure, runnerSuccess, sqlTypeLookupsOf, temporalCodecPresetWithPrecision, temporalStringAuthoringPresets };
@@ -1,3 +1,3 @@
1
- import { a as arraysEqual } from "./control-adapter-CkFfBVei-N-jSb9WR.mjs";
2
- import { a as VerifySqlSchemaByDiffInput, c as computeSqlDiffVerdict, i as StorageTypeVerdictInput, l as computeStorageTypeVerdict, n as SqlDiffVerdictInput, o as classifyDiffSubjectGranularity, r as StorageTypeVerdict, s as classifySqlDiffIssue, t as SqlDiffVerdict, u as verifySqlSchemaByDiff } from "./diff-B1ThXQkW.mjs";
1
+ import { a as arraysEqual } from "./control-adapter-CkFfBVei-D8yZvwK7.mjs";
2
+ import { a as VerifySqlSchemaByDiffInput, c as computeSqlDiffVerdict, i as StorageTypeVerdictInput, l as computeStorageTypeVerdict, n as SqlDiffVerdictInput, o as classifyDiffSubjectGranularity, r as StorageTypeVerdict, s as classifySqlDiffIssue, t as SqlDiffVerdict, u as verifySqlSchemaByDiff } from "./diff-CN8CxYDc.mjs";
3
3
  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-DV5extx2.mjs";
1
+ import { t as SqlMigration } from "./migration-K_EPNCmR.mjs";
2
2
  export { SqlMigration as Migration };
@@ -1,13 +1,13 @@
1
1
  import { l as SqlStorage } from "./sql-storage-DSnnRQAf-DaHPnley.mjs";
2
2
  import "./types-DkOYK86-.mjs";
3
- import { dt as LoweredStatement, h as AnyQueryAst, k as ContractCodecRegistry } from "./types-Dskga3R1-DeSwpS4A.mjs";
4
- import { t as Adapter } from "./ast-DgUdnFtz.mjs";
5
- import { n as SqlQueryPlan } from "./plan-BlQITcbP-B2q80evU.mjs";
6
- import { t as SqlExecutionPlan } from "./sql-execution-plan-CV6K4o9N-B3EzlMwJ.mjs";
7
- import "./plan-D11FmUVM.mjs";
8
- import { t as CodecDescriptorRegistry } from "./query-lane-context-OSV9X636-DFRkNeXq.mjs";
9
- import "./query-lane-context-SRmvD9-J.mjs";
10
- import { k as SqlMiddleware } from "./prepared-statement-YtgdlN7e-BryEFERH.mjs";
3
+ import { h as AnyQueryAst, ht as LoweredStatement, k as ContractCodecRegistry } from "./types-CqwI8eGx-AYan1yI4.mjs";
4
+ import { t as Adapter } from "./ast-DWgP3Fnu.mjs";
5
+ import { n as SqlQueryPlan } from "./plan-1wnpBALU-CkFF8oIz.mjs";
6
+ import { t as SqlExecutionPlan } from "./sql-execution-plan-CdlkkwtB-NuamyL5f.mjs";
7
+ import "./plan-BCQYGXrJ.mjs";
8
+ import { t as CodecDescriptorRegistry } from "./query-lane-context-Ft8I-pge-nABTUotc.mjs";
9
+ import "./query-lane-context-CEYIBLlG.mjs";
10
+ import { k as SqlMiddleware } from "./prepared-statement-YtgdlN7e-BJzjum7z.mjs";
11
11
  import { Contract } from "@prisma/orm-framework/contract/types";
12
12
  import { AfterExecuteResult as AfterExecuteResult$1, AfterQueryResult as AfterQueryResult$1, ExecuteInterceptResult as ExecuteInterceptResult$1, QueryInterceptResult as QueryInterceptResult$1, RuntimeLog as Log } from "@prisma/orm-framework/components/runtime";
13
13
  //#region ../../../2-sql/5-runtime/dist/index.d.mts
@@ -81,4 +81,4 @@ interface LintsOptions {
81
81
  declare function lints(options?: LintsOptions): SqlMiddleware;
82
82
  //#endregion
83
83
  export { LintsOptions as a, budgets as c, lints as d, lowerSqlPlan as f, ExecuteInterceptResult$1 as i, createAstCodecRegistry as l, validateContractCodecMappings as m, AfterQueryResult$1 as n, Log as o, validateCodecRegistryCompleteness as p, BudgetsOptions as r, QueryInterceptResult$1 as s, AfterExecuteResult$1 as t, extractCodecIds as u };
84
- //# sourceMappingURL=index-DCKjTi7L.d.mts.map
84
+ //# sourceMappingURL=index-NVxwovsn.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index-DCKjTi7L.d.mts","names":[],"sources":["../../../../2-sql/5-runtime/dist/index.d.mts"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;iBAiBiB,uBAAuB,aAAa,0BAA0B;;;iBAG9D,gBAAgB,UAAU,SAAS,cAAc;iBACjD,8BAA8B,UAAU,yBAAyB,UAAU,SAAS;iBACpF,kCAAkC,UAAU,yBAAyB,UAAU,SAAS;;;;;;;;;;;;iBAYxF,aAAa,KAAK,SAAS,QAAQ,aAAa,SAAS,aAAa,mBAAmB,UAAU,SAAS,aAAa,WAAW,aAAa,OAAO,iBAAiB;;;UAGhL;WACC;WACA;WACA,YAAY;WACZ;WACA;aACE;aACA;;;iBAGI,QAAQ,UAAU,iBAAiB;;;UAG1C;WACC;aACE;aACA;aACA;aACA;aACA;;WAEF;;;;;;;;;;;;;;;;iBAgBM,MAAM,UAAU,eAAe"}
1
+ {"version":3,"file":"index-NVxwovsn.d.mts","names":[],"sources":["../../../../2-sql/5-runtime/dist/index.d.mts"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;iBAiBiB,uBAAuB,aAAa,0BAA0B;;;iBAG9D,gBAAgB,UAAU,SAAS,cAAc;iBACjD,8BAA8B,UAAU,yBAAyB,UAAU,SAAS;iBACpF,kCAAkC,UAAU,yBAAyB,UAAU,SAAS;;;;;;;;;;;;iBAYxF,aAAa,KAAK,SAAS,QAAQ,aAAa,SAAS,aAAa,mBAAmB,UAAU,SAAS,aAAa,WAAW,aAAa,OAAO,iBAAiB;;;UAGhL;WACC;WACA;WACA,YAAY;WACZ;WACA;aACE;aACA;;;iBAGI,QAAQ,UAAU,iBAAiB;;;UAG1C;WACC;aACE;aACA;aACA;aACA;aACA;;WAEF;;;;;;;;;;;;;;;;iBAgBM,MAAM,UAAU,eAAe"}
@@ -0,0 +1 @@
1
+ import "./middleware-DAmCZlPN-B8QEPIUy.mjs";
@@ -1,6 +1,6 @@
1
- import { t as SqlExecutionPlan } from "./sql-execution-plan-CV6K4o9N-B3EzlMwJ.mjs";
1
+ import { t as SqlExecutionPlan } from "./sql-execution-plan-CdlkkwtB-NuamyL5f.mjs";
2
2
  import { ParamRefMutator } from "@prisma/orm-framework/components/runtime";
3
- //#region ../../../2-sql/4-lanes/relational-core/dist/middleware-BtMX6nSF.d.mts
3
+ //#region ../../../2-sql/4-lanes/relational-core/dist/middleware-DAmCZlPN.d.mts
4
4
  //#region src/middleware/param-ref-mutator.d.ts
5
5
  /**
6
6
  * Brand applied to {@link ParamRefHandle} so user-constructed handles
@@ -116,4 +116,4 @@ interface SqlParamRefMutatorInternal<TCodecMap extends Record<string, unknown> =
116
116
  declare function createSqlParamRefMutator<TCodecMap extends Record<string, unknown> = Record<string, unknown>>(plan: SqlExecutionPlan): SqlParamRefMutatorInternal<TCodecMap>;
117
117
  //#endregion
118
118
  export { SqlParamRefMutatorInternal as a, SqlParamRefMutator as i, ParamRefEntryUnion as n, createSqlParamRefMutator as o, ParamRefHandle as r, ParamRefEntry as t };
119
- //# sourceMappingURL=middleware-BtMX6nSF-DM55ZeCo.d.mts.map
119
+ //# sourceMappingURL=middleware-DAmCZlPN-B8QEPIUy.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"middleware-BtMX6nSF-DM55ZeCo.d.mts","names":[],"sources":["../../../../2-sql/4-lanes/relational-core/dist/middleware-BtMX6nSF.d.mts"],"mappings":";;;;;;;;;;;;;;cAac;;;;;;;;;;UAUJ,eAAe;YACb,sBAAsB;;;;;;;UAOxB,cAAc;WACb,KAAK,eAAe;WACpB;WACA,SAAS;;;;;;;;;;KAUf,mBAAmB,kBAAkB,8BAA8B,WAAW,qBAAqB,cAAc,YAAY,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;UAyB9I,mBAAmB,kBAAkB,0BAA0B,iCAAiC;;EAExG,WAAW,iBAAiB,mBAAmB;;;;;;;EAO/C,aAAa,uBAAuB,oBAAoB,KAAK,eAAe,WAAW,UAAU,UAAU;EAC3G,aAAa,KAAK,2BAA2B;;EAE7C,cAAc,SAAS;aACZ,KAAK,sBAAsB;aAC3B;;;;;;;;;;;;;UAaH,2BAA2B,kBAAkB,0BAA0B,iCAAiC,mBAAmB;EACnI;;;;;;;;;;;;;;;;;iBAiBe,yBAAyB,kBAAkB,0BAA0B,yBAAyB,MAAM,mBAAmB,2BAA2B"}
1
+ {"version":3,"file":"middleware-DAmCZlPN-B8QEPIUy.d.mts","names":[],"sources":["../../../../2-sql/4-lanes/relational-core/dist/middleware-DAmCZlPN.d.mts"],"mappings":";;;;;;;;;;;;;;cAac;;;;;;;;;;UAUJ,eAAe;YACb,sBAAsB;;;;;;;UAOxB,cAAc;WACb,KAAK,eAAe;WACpB;WACA,SAAS;;;;;;;;;;KAUf,mBAAmB,kBAAkB,8BAA8B,WAAW,qBAAqB,cAAc,YAAY,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;UAyB9I,mBAAmB,kBAAkB,0BAA0B,iCAAiC;;EAExG,WAAW,iBAAiB,mBAAmB;;;;;;;EAO/C,aAAa,uBAAuB,oBAAoB,KAAK,eAAe,WAAW,UAAU,UAAU;EAC3G,aAAa,KAAK,2BAA2B;;EAE7C,cAAc,SAAS;aACZ,KAAK,sBAAsB;aAC3B;;;;;;;;;;;;;UAaH,2BAA2B,kBAAkB,0BAA0B,iCAAiC,mBAAmB;EACnI;;;;;;;;;;;;;;;;;iBAiBe,yBAAyB,kBAAkB,0BAA0B,yBAAyB,MAAM,mBAAmB,2BAA2B"}
@@ -1,5 +1,5 @@
1
- import { t as collectOrderedParamRefs } from "./util-DQQgv2j1-D6INZaRG.mjs";
2
- //#region ../../../2-sql/4-lanes/relational-core/dist/middleware-CMr4CHNz.mjs
1
+ import { t as collectOrderedParamRefs } from "./util-BBgcP3gI-XJBkxo1K.mjs";
2
+ //#region ../../../2-sql/4-lanes/relational-core/dist/middleware-yBAfiVWn.mjs
3
3
  /**
4
4
  * Build a {@link SqlParamRefMutatorInternal} for the given lowered plan.
5
5
  *
@@ -77,4 +77,4 @@ function createSqlParamRefMutator(plan) {
77
77
  //#endregion
78
78
  export { createSqlParamRefMutator as t };
79
79
 
80
- //# sourceMappingURL=middleware-CMr4CHNz-DHIUdxlm.mjs.map
80
+ //# sourceMappingURL=middleware-yBAfiVWn-CzNCthJT.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"middleware-CMr4CHNz-DHIUdxlm.mjs","names":[],"sources":["../../../../2-sql/4-lanes/relational-core/dist/middleware-CMr4CHNz.mjs"],"sourcesContent":["import { t as collectOrderedParamRefs } from \"./util-DQQgv2j1.mjs\";\n//#region src/middleware/param-ref-mutator.ts\n/**\n* Build a {@link SqlParamRefMutatorInternal} for the given lowered plan.\n*\n* The mutator captures `plan.params` by reference and walks\n* `plan.ast` (via `collectOrderedParamRefs`) on demand to build\n* entries. Mutations write to a lazily-allocated working copy so the\n* fast path (no mutation) preserves bit-for-bit reference identity to\n* the original `plan.params`.\n*\n* Threading: `plan.ast` carries the canonical `ParamRef` ordering used\n* by every consumer (renderer's `$N` index map, encode-side metadata\n* walk, etc.). The mutator's `entries()` yields the same order so\n* middleware that filters by codec id sees ParamRefs in the order the\n* runtime will encode them.\n*/\nfunction createSqlParamRefMutator(plan) {\n\tconst originalParams = plan.params;\n\tconst refs = plan.ast ? collectOrderedParamRefs(plan.ast) : [];\n\tlet workingParams;\n\tconst indexOfRef = (handle) => {\n\t\treturn refs.indexOf(handle);\n\t};\n\tconst ensureWorkingParams = () => {\n\t\tif (!workingParams) workingParams = [...originalParams];\n\t\treturn workingParams;\n\t};\n\tconst writeAt = (index, value) => {\n\t\tconst buffer = ensureWorkingParams();\n\t\tbuffer[index] = value;\n\t};\n\tfunction* entries() {\n\t\tconst view = workingParams ?? originalParams;\n\t\tfor (let i = 0; i < refs.length; i++) {\n\t\t\tconst ref = refs[i];\n\t\t\tif (!ref) continue;\n\t\t\tconst handle = ref;\n\t\t\tlet value;\n\t\t\tlet codecId;\n\t\t\tif (ref.kind === \"param-ref\") {\n\t\t\t\tvalue = i < view.length ? view[i] : ref.value;\n\t\t\t\tcodecId = ref.codec?.codecId;\n\t\t\t} else {\n\t\t\t\tvalue = i < view.length ? view[i] : void 0;\n\t\t\t\tcodecId = ref.codec.codecId;\n\t\t\t}\n\t\t\tyield {\n\t\t\t\tref: handle,\n\t\t\t\tvalue,\n\t\t\t\tcodecId\n\t\t\t};\n\t\t}\n\t}\n\tfunction replaceValue(handle, newValue) {\n\t\tconst index = indexOfRef(handle);\n\t\tif (index < 0) return;\n\t\twriteAt(index, newValue);\n\t}\n\tfunction replaceValues(updates) {\n\t\tfor (const { ref, newValue } of updates) {\n\t\t\tconst index = indexOfRef(ref);\n\t\t\tif (index < 0) continue;\n\t\t\twriteAt(index, newValue);\n\t\t}\n\t}\n\treturn {\n\t\tentries,\n\t\treplaceValue,\n\t\treplaceValues,\n\t\tcurrentParams() {\n\t\t\tif (!workingParams) return originalParams;\n\t\t\treturn Object.freeze([...workingParams]);\n\t\t}\n\t};\n}\n//#endregion\nexport { createSqlParamRefMutator as t };\n\n//# sourceMappingURL=middleware-CMr4CHNz.mjs.map"],"mappings":";;;;;;;;;;;;;;;;;AAiBA,SAAS,yBAAyB,MAAM;CACvC,MAAM,iBAAiB,KAAK;CAC5B,MAAM,OAAO,KAAK,MAAM,wBAAwB,KAAK,GAAG,IAAI,CAAC;CAC7D,IAAI;CACJ,MAAM,cAAc,WAAW;EAC9B,OAAO,KAAK,QAAQ,MAAM;CAC3B;CACA,MAAM,4BAA4B;EACjC,IAAI,CAAC,eAAe,gBAAgB,CAAC,GAAG,cAAc;EACtD,OAAO;CACR;CACA,MAAM,WAAW,OAAO,UAAU;EACjC,MAAM,SAAS,oBAAoB;EACnC,OAAO,SAAS;CACjB;CACA,UAAU,UAAU;EACnB,MAAM,OAAO,iBAAiB;EAC9B,KAAK,IAAI,IAAI,GAAG,IAAI,KAAK,QAAQ,KAAK;GACrC,MAAM,MAAM,KAAK;GACjB,IAAI,CAAC,KAAK;GACV,MAAM,SAAS;GACf,IAAI;GACJ,IAAI;GACJ,IAAI,IAAI,SAAS,aAAa;IAC7B,QAAQ,IAAI,KAAK,SAAS,KAAK,KAAK,IAAI;IACxC,UAAU,IAAI,OAAO;GACtB,OAAO;IACN,QAAQ,IAAI,KAAK,SAAS,KAAK,KAAK,KAAK;IACzC,UAAU,IAAI,MAAM;GACrB;GACA,MAAM;IACL,KAAK;IACL;IACA;GACD;EACD;CACD;CACA,SAAS,aAAa,QAAQ,UAAU;EACvC,MAAM,QAAQ,WAAW,MAAM;EAC/B,IAAI,QAAQ,GAAG;EACf,QAAQ,OAAO,QAAQ;CACxB;CACA,SAAS,cAAc,SAAS;EAC/B,KAAK,MAAM,EAAE,KAAK,cAAc,SAAS;GACxC,MAAM,QAAQ,WAAW,GAAG;GAC5B,IAAI,QAAQ,GAAG;GACf,QAAQ,OAAO,QAAQ;EACxB;CACD;CACA,OAAO;EACN;EACA;EACA;EACA,gBAAgB;GACf,IAAI,CAAC,eAAe,OAAO;GAC3B,OAAO,OAAO,OAAO,CAAC,GAAG,aAAa,CAAC;EACxC;CACD;AACD"}
1
+ {"version":3,"file":"middleware-yBAfiVWn-CzNCthJT.mjs","names":[],"sources":["../../../../2-sql/4-lanes/relational-core/dist/middleware-yBAfiVWn.mjs"],"sourcesContent":["import { t as collectOrderedParamRefs } from \"./util-BBgcP3gI.mjs\";\n//#region src/middleware/param-ref-mutator.ts\n/**\n* Build a {@link SqlParamRefMutatorInternal} for the given lowered plan.\n*\n* The mutator captures `plan.params` by reference and walks\n* `plan.ast` (via `collectOrderedParamRefs`) on demand to build\n* entries. Mutations write to a lazily-allocated working copy so the\n* fast path (no mutation) preserves bit-for-bit reference identity to\n* the original `plan.params`.\n*\n* Threading: `plan.ast` carries the canonical `ParamRef` ordering used\n* by every consumer (renderer's `$N` index map, encode-side metadata\n* walk, etc.). The mutator's `entries()` yields the same order so\n* middleware that filters by codec id sees ParamRefs in the order the\n* runtime will encode them.\n*/\nfunction createSqlParamRefMutator(plan) {\n\tconst originalParams = plan.params;\n\tconst refs = plan.ast ? collectOrderedParamRefs(plan.ast) : [];\n\tlet workingParams;\n\tconst indexOfRef = (handle) => {\n\t\treturn refs.indexOf(handle);\n\t};\n\tconst ensureWorkingParams = () => {\n\t\tif (!workingParams) workingParams = [...originalParams];\n\t\treturn workingParams;\n\t};\n\tconst writeAt = (index, value) => {\n\t\tconst buffer = ensureWorkingParams();\n\t\tbuffer[index] = value;\n\t};\n\tfunction* entries() {\n\t\tconst view = workingParams ?? originalParams;\n\t\tfor (let i = 0; i < refs.length; i++) {\n\t\t\tconst ref = refs[i];\n\t\t\tif (!ref) continue;\n\t\t\tconst handle = ref;\n\t\t\tlet value;\n\t\t\tlet codecId;\n\t\t\tif (ref.kind === \"param-ref\") {\n\t\t\t\tvalue = i < view.length ? view[i] : ref.value;\n\t\t\t\tcodecId = ref.codec?.codecId;\n\t\t\t} else {\n\t\t\t\tvalue = i < view.length ? view[i] : void 0;\n\t\t\t\tcodecId = ref.codec.codecId;\n\t\t\t}\n\t\t\tyield {\n\t\t\t\tref: handle,\n\t\t\t\tvalue,\n\t\t\t\tcodecId\n\t\t\t};\n\t\t}\n\t}\n\tfunction replaceValue(handle, newValue) {\n\t\tconst index = indexOfRef(handle);\n\t\tif (index < 0) return;\n\t\twriteAt(index, newValue);\n\t}\n\tfunction replaceValues(updates) {\n\t\tfor (const { ref, newValue } of updates) {\n\t\t\tconst index = indexOfRef(ref);\n\t\t\tif (index < 0) continue;\n\t\t\twriteAt(index, newValue);\n\t\t}\n\t}\n\treturn {\n\t\tentries,\n\t\treplaceValue,\n\t\treplaceValues,\n\t\tcurrentParams() {\n\t\t\tif (!workingParams) return originalParams;\n\t\t\treturn Object.freeze([...workingParams]);\n\t\t}\n\t};\n}\n//#endregion\nexport { createSqlParamRefMutator as t };\n\n//# sourceMappingURL=middleware-yBAfiVWn.mjs.map"],"mappings":";;;;;;;;;;;;;;;;;AAiBA,SAAS,yBAAyB,MAAM;CACvC,MAAM,iBAAiB,KAAK;CAC5B,MAAM,OAAO,KAAK,MAAM,wBAAwB,KAAK,GAAG,IAAI,CAAC;CAC7D,IAAI;CACJ,MAAM,cAAc,WAAW;EAC9B,OAAO,KAAK,QAAQ,MAAM;CAC3B;CACA,MAAM,4BAA4B;EACjC,IAAI,CAAC,eAAe,gBAAgB,CAAC,GAAG,cAAc;EACtD,OAAO;CACR;CACA,MAAM,WAAW,OAAO,UAAU;EACjC,MAAM,SAAS,oBAAoB;EACnC,OAAO,SAAS;CACjB;CACA,UAAU,UAAU;EACnB,MAAM,OAAO,iBAAiB;EAC9B,KAAK,IAAI,IAAI,GAAG,IAAI,KAAK,QAAQ,KAAK;GACrC,MAAM,MAAM,KAAK;GACjB,IAAI,CAAC,KAAK;GACV,MAAM,SAAS;GACf,IAAI;GACJ,IAAI;GACJ,IAAI,IAAI,SAAS,aAAa;IAC7B,QAAQ,IAAI,KAAK,SAAS,KAAK,KAAK,IAAI;IACxC,UAAU,IAAI,OAAO;GACtB,OAAO;IACN,QAAQ,IAAI,KAAK,SAAS,KAAK,KAAK,KAAK;IACzC,UAAU,IAAI,MAAM;GACrB;GACA,MAAM;IACL,KAAK;IACL;IACA;GACD;EACD;CACD;CACA,SAAS,aAAa,QAAQ,UAAU;EACvC,MAAM,QAAQ,WAAW,MAAM;EAC/B,IAAI,QAAQ,GAAG;EACf,QAAQ,OAAO,QAAQ;CACxB;CACA,SAAS,cAAc,SAAS;EAC/B,KAAK,MAAM,EAAE,KAAK,cAAc,SAAS;GACxC,MAAM,QAAQ,WAAW,GAAG;GAC5B,IAAI,QAAQ,GAAG;GACf,QAAQ,OAAO,QAAQ;EACxB;CACD;CACA,OAAO;EACN;EACA;EACA;EACA,gBAAgB;GACf,IAAI,CAAC,eAAe,OAAO;GAC3B,OAAO,OAAO,OAAO,CAAC,GAAG,aAAa,CAAC;EACxC;CACD;AACD"}
@@ -1,6 +1,6 @@
1
1
  import { l as SqlStorage } from "./sql-storage-DSnnRQAf-DaHPnley.mjs";
2
2
  import "./types-DkOYK86-.mjs";
3
- import { C as SqlPlanTargetDetails, d as SqlMigrationPlanOperation } from "./types-CvuS68sy-CIYfMFuu.mjs";
3
+ import { C as SqlPlanTargetDetails, d as SqlMigrationPlanOperation } from "./types-CvuS68sy-Cj3SvUKo.mjs";
4
4
  import { Contract } from "@prisma/orm-framework/contract/types";
5
5
  import { Migration } from "@prisma/orm-toolchain/migration-tools/migration";
6
6
  //#region ../../../2-sql/9-family/dist/migration.d.mts
@@ -41,4 +41,4 @@ declare abstract class SqlMigration<TDetails extends SqlPlanTargetDetails, TTarg
41
41
  }
42
42
  //#endregion
43
43
  export { SqlMigration as t };
44
- //# sourceMappingURL=migration-DV5extx2.d.mts.map
44
+ //# sourceMappingURL=migration-K_EPNCmR.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"migration-DV5extx2.d.mts","names":[],"sources":["../../../../2-sql/9-family/dist/migration.d.mts"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;uBA0BuB,aAAa,iBAAiB,sBAAsB,mCAAmC,cAAc,SAAS,cAAc,SAAS,aAAa,YAAY,SAAS,cAAc,SAAS,qBAAqB,UAAU,0BAA0B,kBAAkB,WAAW,OAAO;;;;;;;;;;;MAW5S"}
1
+ {"version":3,"file":"migration-K_EPNCmR.d.mts","names":[],"sources":["../../../../2-sql/9-family/dist/migration.d.mts"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;uBA0BuB,aAAa,iBAAiB,sBAAsB,mCAAmC,cAAc,SAAS,cAAc,SAAS,aAAa,YAAY,SAAS,cAAc,SAAS,qBAAqB,UAAU,0BAA0B,kBAAkB,WAAW,OAAO;;;;;;;;;;;MAW5S"}
@@ -2,17 +2,17 @@ import { t as StorageColumn } from "./storage-table-BBcKoAuF-CssyCQhM.mjs";
2
2
  import { l as SqlStorage } from "./sql-storage-DSnnRQAf-DaHPnley.mjs";
3
3
  import { f as ExtractFieldOutputTypes, l as ExtractAggregateTypes, p as ExtractQueryOperationTypes, u as ExtractCodecTypes } from "./types-DV040Uuq-Bu8CnbMa.mjs";
4
4
  import "./types-DkOYK86-.mjs";
5
- import { E as CodecRef$1, Rt as WhereArg, _ as BinaryExpr, _t as OrderByItem, a as AndExpr, c as AnyExpression, gt as OrExpr, mt as NullCheckExpr, r as AggregateFn, st as LimitOffsetValue, vt as OrderByNulls } from "./types-Dskga3R1-DeSwpS4A.mjs";
6
- import "./ast-DgUdnFtz.mjs";
7
- import { n as SqlQueryPlan, t as Preparable } from "./plan-BlQITcbP-B2q80evU.mjs";
8
- import { S as TraitExpression, i as CodecTypesBase, o as Expression } from "./expression-o74FOqh6.mjs";
9
- import "./plan-D11FmUVM.mjs";
10
- import { n as ExecutionContext } from "./query-lane-context-OSV9X636-DFRkNeXq.mjs";
11
- import "./query-lane-context-SRmvD9-J.mjs";
12
- import { h as RuntimeScope, o as ComputeColumnJsType } from "./types-flbim7l7-BbzcJZpz.mjs";
13
- import "./types-Bb6De1yt.mjs";
14
- import { i as Declaration, l as ParamsFromDeclaration, m as PreparedStatement, p as PreparedFor, t as BindSiteParams, w as RuntimeQueryable$1, y as Runtime } from "./prepared-statement-YtgdlN7e-BryEFERH.mjs";
15
- import "./index-DCKjTi7L.mjs";
5
+ import { E as CodecRef$1, Ht as WhereArg, St as OrderByNulls, _ as BinaryExpr, a as AndExpr, bt as OrExpr, c as AnyExpression, r as AggregateFn, st as LimitOffsetValue, vt as NullCheckExpr, xt as OrderByItem } from "./types-CqwI8eGx-AYan1yI4.mjs";
6
+ import "./ast-DWgP3Fnu.mjs";
7
+ import { n as SqlQueryPlan, t as Preparable } from "./plan-1wnpBALU-CkFF8oIz.mjs";
8
+ import { S as TraitExpression, i as CodecTypesBase, o as Expression } from "./expression-B-9RZQN9.mjs";
9
+ import "./plan-BCQYGXrJ.mjs";
10
+ import { n as ExecutionContext } from "./query-lane-context-Ft8I-pge-nABTUotc.mjs";
11
+ import "./query-lane-context-CEYIBLlG.mjs";
12
+ import { h as RuntimeScope, o as ComputeColumnJsType } from "./types-0xZ8asKQ-tfwe3lxh.mjs";
13
+ import "./types-DkRYdSXK.mjs";
14
+ import { i as Declaration, l as ParamsFromDeclaration, m as PreparedStatement, p as PreparedFor, t as BindSiteParams, w as RuntimeQueryable$1, y as Runtime } from "./prepared-statement-YtgdlN7e-BJzjum7z.mjs";
15
+ import "./index-NVxwovsn.mjs";
16
16
  import { Contract } from "@prisma/orm-framework/contract/types";
17
17
  import { AnnotationValue, AsyncIterableResult, MetaBuilder, OperationKind, ResultType, RuntimeExecuteOptions } from "@prisma/orm-framework/components/runtime";
18
18
  import { SimplifyDeep } from "@prisma/orm-framework/utils/simplify-deep";
@@ -1,9 +1,9 @@
1
1
  import { t as resolveStorageTable } from "./resolve-storage-table-DZsfnzeW.mjs";
2
2
  import { i as isUniqueConstraintViolation } from "./dist-x6jvtkKM.mjs";
3
- import { C as LiteralExpr, D as OrExpr, F as SubqueryExpr, G as isWhereExpr, I as TableSource, L as UpdateAst, O as OrderByItem, P as SelectAst, R as WindowFuncExpr, S as ListExpression, T as NullCheckExpr, U as isOrderByNulls, V as isAggregateFn, _ as InsertAst, b as JsonArrayAggExpr, c as DeleteAst, f as EqColJoinOn, j as ProjectionItem, k as ParamRef, l as DerivedTableSource, n as AndExpr, o as ColumnRef, p as ExistsExpr, r as BinaryExpr, s as DefaultValueExpr, t as AggregateExpr, v as InsertOnConflict, w as NotExpr, x as JsonObjectExpr, y as JoinAst } from "./types-BLnsGaJf-m-qTW3ox.mjs";
4
- import { t as collectOrderedParamRefs } from "./util-DQQgv2j1-D6INZaRG.mjs";
5
- import { n as JsonDocumentProjection, r as NativeJsonValueProjection, t as CodecJsonValueProjection } from "./ast-B2W9tHy1.mjs";
6
- import { i as isExpression, o as toExpr } from "./expression-Bv8X6-Qg.mjs";
3
+ import { A as ParamRef, C as LiteralExpr, E as NullCheckExpr, F as SelectAst, H as isAggregateFn, I as SubqueryExpr, K as isWhereExpr, L as TableSource, M as ProjectionItem, O as OrExpr, R as UpdateAst, S as ListExpression, T as NotExpr, W as isOrderByNulls, _ as InsertAst, b as JsonArrayAggExpr, c as DeleteAst, f as EqColJoinOn, k as OrderByItem, l as DerivedTableSource, n as AndExpr, o as ColumnRef, p as ExistsExpr, r as BinaryExpr, s as DefaultValueExpr, t as AggregateExpr, v as InsertOnConflict, x as JsonObjectExpr, y as JoinAst, z as WindowFuncExpr } from "./types-C9UR53Lv-BF-_alNk.mjs";
4
+ import { t as collectOrderedParamRefs } from "./util-BBgcP3gI-XJBkxo1K.mjs";
5
+ import { n as JsonDocumentProjection, r as NativeJsonValueProjection, t as CodecJsonValueProjection } from "./ast-DOubq2En.mjs";
6
+ import { i as isExpression, o as toExpr } from "./expression-gmLQa4Ie.mjs";
7
7
  import { n as codecRefForStorageColumn } from "./codec-descriptor-registry-DoGFktu5.mjs";
8
8
  import { structuredError } from "@prisma/orm-framework/utils/structured-error";
9
9
  import { blindCast, castAs } from "@prisma/orm-framework/utils/casts";
@@ -816,6 +816,7 @@ function bindSelectAst(contract, ast) {
816
816
  having: ast.having ? bindWhereExpr(contract, ast.having, namespaceId) : void 0,
817
817
  limit: ast.limit,
818
818
  offset: ast.offset,
819
+ locking: ast.locking,
819
820
  selectAllIntent: ast.selectAllIntent
820
821
  });
821
822
  }