@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,8 +1,8 @@
1
- import { A as ParamRef, B as aggregateFnNames, C as LiteralExpr, D as OperationExpr, E as NullCheckExpr, F as SelectAst, G as isOrderByNulls, H as frozenCodecRef, I as SubqueryExpr, J as queryAstKinds, K as isQueryAst, L as TableSource, M as ProjectionItem, N as RawExpr, O as OrExpr, P as RawQueryAst, R as UpdateAst, S as ListExpression, T as NotExpr, U as isAggregateFn, V as checkLimitOffset, W as isOrderByDirection, Y as whereExprKinds, _ as InsertAst, a as CastExpr, b as JsonArrayAggExpr, c as DeleteAst, d as DoUpdateSetConflictAction, f as EqColJoinOn, g as IdentifierRef, h as FunctionSource, i as CaseExpr, j as PreparedParamRef, k as OrderByItem, l as DerivedTableSource, m as FunctionCallExpr, n as AndExpr, o as ColumnRef, p as ExistsExpr, q as isWhereExpr, r as BinaryExpr, s as DefaultValueExpr, t as AggregateExpr, u as DoNothingConflictAction, v as InsertOnConflict, w as LockingClause, x as JsonObjectExpr, y as JoinAst, z as WindowFuncExpr } from "./types-NTQsD2MS-xcLtvKO9.mjs";
1
+ import { A as ParamRef, B as aggregateFnNames, C as LiteralExpr, D as OperationExpr, E as NullCheckExpr, F as SelectAst, G as isOrderByNulls, H as frozenCodecRef, I as SubqueryExpr, J as queryAstKinds, K as isQueryAst, L as TableSource, M as ProjectionItem, N as RawExpr, O as OrExpr, P as RawQueryAst, R as UpdateAst, S as ListExpression, T as NotExpr, U as isAggregateFn, V as checkLimitOffset, W as isOrderByDirection, Y as whereExprKinds, _ as InsertAst, a as CastExpr, b as JsonArrayAggExpr, c as DeleteAst, d as DoUpdateSetConflictAction, f as EqColJoinOn, g as IdentifierRef, h as FunctionSource, i as CaseExpr, j as PreparedParamRef, k as OrderByItem, l as DerivedTableSource, m as FunctionCallExpr, n as AndExpr, o as ColumnRef, p as ExistsExpr, q as isWhereExpr, r as BinaryExpr, s as DefaultValueExpr, t as AggregateExpr, u as DoNothingConflictAction, v as InsertOnConflict, w as LockingClause, x as JsonObjectExpr, y as JoinAst, z as WindowFuncExpr } from "./types-BkTuhW3Z-BJfTjcxS.mjs";
2
2
  import { a as ForeignKeyConstraint, c as OpaqueSql, d as isDdlNode, f as opaqueSql, i as DdlNode, l as PrimaryKeyConstraint, n as DdlColumn, o as FunctionColumnDefault, p as renderOpaqueSql, r as DdlColumnDefault, s as LiteralColumnDefault, t as CheckExpressionConstraint, u as UniqueConstraint } from "./opaque-sql-Dset3kln-CtsPDTXn.mjs";
3
- import { n as compact, r as isAggregateProjection, t as collectOrderedParamRefs } from "./util-BBgcP3gI-CpL-0VuC.mjs";
4
- import { A as sqlCharDecode, B as sqlIntEncode, C as encodeLiteralDefault, D as lockWaitPolicyOf, E as lockStrengthCapabilities, F as sqlFloatDescriptor, G as sqlTextDescriptor, H as sqlRawDescriptor, I as sqlFloatEncode, J as sqlVarcharDecode, K as sqlTextEncode, L as sqlIntColumn, M as sqlCharEncode, N as sqlFloatColumn, O as missingCapability, P as sqlFloatDecode, R as sqlIntDecode, S as encodeListLiteralDefault, T as lockOptionCapabilities, U as sqlTextColumn, V as sqlRawColumn, W as sqlTextDecode, X as sqlVarcharEncode, Y as sqlVarcharDescriptor, _ as SqlRawDescriptor, a as SQL_FLOAT_CODEC_ID, b as SqlVarcharCodec, c as SQL_TEXT_CODEC_ID, d as SqlCharDescriptor, f as SqlFloatCodec, g as SqlRawCodec, h as SqlIntDescriptor, i as SQL_CHAR_CODEC_ID, j as sqlCharDescriptor, k as sqlCharColumn, l as SQL_VARCHAR_CODEC_ID, m as SqlIntCodec, n as JsonDocumentProjection, o as SQL_INT_CODEC_ID, p as SqlFloatDescriptor, q as sqlVarcharColumn, r as NativeJsonValueProjection, s as SQL_RAW_CODEC_ID, t as CodecJsonValueProjection, u as SqlCharCodec, v as SqlTextCodec, w as lockIncompatible, x as SqlVarcharDescriptor, y as SqlTextDescriptor, z as sqlIntDescriptor } from "./ast-D0miQ1B6.mjs";
3
+ import { n as compact, r as isAggregateProjection, t as collectOrderedParamRefs } from "./util-DixeJBri-Cad7x5ec.mjs";
4
+ import { A as sqlCharDecode, B as sqlIntEncode, C as encodeLiteralDefault, D as lockWaitPolicyOf, E as lockStrengthCapabilities, F as sqlFloatDescriptor, G as sqlTextDescriptor, H as sqlRawDescriptor, I as sqlFloatEncode, J as sqlVarcharDecode, K as sqlTextEncode, L as sqlIntColumn, M as sqlCharEncode, N as sqlFloatColumn, O as missingCapability, P as sqlFloatDecode, R as sqlIntDecode, S as encodeListLiteralDefault, T as lockOptionCapabilities, U as sqlTextColumn, V as sqlRawColumn, W as sqlTextDecode, X as sqlVarcharEncode, Y as sqlVarcharDescriptor, _ as SqlRawDescriptor, a as SQL_FLOAT_CODEC_ID, b as SqlVarcharCodec, c as SQL_TEXT_CODEC_ID, d as SqlCharDescriptor, f as SqlFloatCodec, g as SqlRawCodec, h as SqlIntDescriptor, i as SQL_CHAR_CODEC_ID, j as sqlCharDescriptor, k as sqlCharColumn, l as SQL_VARCHAR_CODEC_ID, m as SqlIntCodec, n as JsonDocumentProjection, o as SQL_INT_CODEC_ID, p as SqlFloatDescriptor, q as sqlVarcharColumn, r as NativeJsonValueProjection, s as SQL_RAW_CODEC_ID, t as CodecJsonValueProjection, u as SqlCharCodec, v as SqlTextCodec, w as lockIncompatible, x as SqlVarcharDescriptor, y as SqlTextDescriptor, z as sqlIntDescriptor } from "./ast-e_02t9Nt.mjs";
5
5
  import { t as planFromAst } from "./plan-Dh0LbYIv-ubBSdUgl.mjs";
6
- import { a as isExpression, i as createRawSql, n as buildOperation, o as param, r as codecOf, s as toExpr, t as ExpressionImpl } from "./expression-impl-B-XNINxr-BhN2sysZ.mjs";
7
- import { t as createSqlParamRefMutator } from "./middleware-yBAfiVWn-DZO0vCRQ.mjs";
6
+ import { a as isExpression, i as createRawSql, n as buildOperation, o as param, r as codecOf, s as toExpr, t as ExpressionImpl } from "./expression-impl-DtbmFnnz-CUKzBisY.mjs";
7
+ import { t as createSqlParamRefMutator } from "./middleware-qY3R0WsS-8GWtk_Bf.mjs";
8
8
  export { AggregateExpr, AndExpr, BinaryExpr, CaseExpr, CastExpr, CheckExpressionConstraint, CodecJsonValueProjection, ColumnRef, DdlColumn, DdlColumnDefault, DdlNode, DefaultValueExpr, DeleteAst, DerivedTableSource, DoNothingConflictAction, DoUpdateSetConflictAction, EqColJoinOn, ExistsExpr, ExpressionImpl, ForeignKeyConstraint, FunctionCallExpr, FunctionColumnDefault, FunctionSource, IdentifierRef, InsertAst, InsertOnConflict, JoinAst, JsonArrayAggExpr, JsonDocumentProjection, JsonObjectExpr, ListExpression, LiteralColumnDefault, LiteralExpr, LockingClause, NativeJsonValueProjection, NotExpr, NullCheckExpr, OpaqueSql, OperationExpr, OrExpr, OrderByItem, ParamRef, PreparedParamRef, PrimaryKeyConstraint, ProjectionItem, RawExpr, RawQueryAst, SQL_CHAR_CODEC_ID, SQL_FLOAT_CODEC_ID, SQL_INT_CODEC_ID, SQL_RAW_CODEC_ID, SQL_TEXT_CODEC_ID, SQL_VARCHAR_CODEC_ID, SelectAst, SqlCharCodec, SqlCharDescriptor, SqlFloatCodec, SqlFloatDescriptor, SqlIntCodec, SqlIntDescriptor, SqlRawCodec, SqlRawDescriptor, SqlTextCodec, SqlTextDescriptor, SqlVarcharCodec, SqlVarcharDescriptor, SubqueryExpr, TableSource, UniqueConstraint, UpdateAst, WindowFuncExpr, aggregateFnNames, buildOperation, checkLimitOffset, codecOf, collectOrderedParamRefs, compact, createRawSql, createSqlParamRefMutator, encodeListLiteralDefault, encodeLiteralDefault, frozenCodecRef, isAggregateFn, isAggregateProjection, isDdlNode, isExpression, isOrderByDirection, isOrderByNulls, isQueryAst, isWhereExpr, lockIncompatible, lockOptionCapabilities, lockStrengthCapabilities, lockWaitPolicyOf, missingCapability, opaqueSql, param, planFromAst, queryAstKinds, renderOpaqueSql, sqlCharColumn, sqlCharDecode, sqlCharDescriptor, sqlCharEncode, sqlFloatColumn, sqlFloatDecode, sqlFloatDescriptor, sqlFloatEncode, sqlIntColumn, sqlIntDecode, sqlIntDescriptor, sqlIntEncode, sqlRawColumn, sqlRawDescriptor, sqlTextColumn, sqlTextDecode, sqlTextDescriptor, sqlTextEncode, sqlVarcharColumn, sqlVarcharDecode, sqlVarcharDescriptor, sqlVarcharEncode, toExpr, whereExprKinds };
@@ -1,4 +1,4 @@
1
- import { a as SqlAggregateDescriptorRegistry, c as isSqlAggregateDescriptor, i as SqlAggregateDescriptor, o as SqlAggregateLowering, s as SqlAggregateLoweringContext, t as CodecDescriptorRegistry } from "./query-lane-context-BCEoKy0_-CzmyavC9.mjs";
1
+ import { a as SqlAggregateDescriptorRegistry, c as isSqlAggregateDescriptor, i as SqlAggregateDescriptor, o as SqlAggregateLowering, s as SqlAggregateLoweringContext, t as CodecDescriptorRegistry } from "./query-lane-context-DLSXDsDK-pEiQmuYy.mjs";
2
2
  //#region ../../../2-sql-family/4-lanes/relational-core/dist/exports/aggregate-descriptor-registry.d.mts
3
3
  //#region src/aggregate-descriptor-registry.d.ts
4
4
  /**
@@ -1,2 +1,2 @@
1
- import { n as isSqlAggregateDescriptor, t as buildSqlAggregateDescriptorRegistry } from "./aggregate-descriptor-registry-ZrKjxwQe.mjs";
1
+ import { n as isSqlAggregateDescriptor, t as buildSqlAggregateDescriptorRegistry } from "./aggregate-descriptor-registry-CkybswmO.mjs";
2
2
  export { buildSqlAggregateDescriptorRegistry, isSqlAggregateDescriptor };
@@ -1,5 +1,5 @@
1
- import { $ as InsertOnConflict, $t as isWhereExpr, A as DefaultValueExpr, At as RawQueryColumn, B as DoUpdateSetConflictAction, Bt as TableSource, C as CodecCallContext$1, Ct as OrderByNulls, D as CodecTrait$1, Dt as ProjectionItem, E as CodecRef$1, Et as ProjectionExpr, F as DescriptorCodecJson, Ft as SqlCodecCallContext, G as ExpressionRewriter, Gt as WindowFuncExpr, H as ExistsExpr, Ht as UpdateAst, I as DescriptorCodecTraits, It as SqlCodecInstanceContext, J as FunctionCallExpr, Jt as frozenCodecRef, K as ExpressionSource, Kt as aggregateFnNames, L as DescriptorKeepsWrittenFormFlag, Lt as SqlColumnRef, M as DerivedTableSource, Mt as RawSqlLiteral, N as DescriptorCodecId, Nt as SelectAst, O as ColumnRef, Ot as RawExpr, P as DescriptorCodecInput, Pt as SelectAstOptions, Q as InsertAst, Qt as isQueryAst, R as Direction, Rt as SubqueryExpr, S as Codec$1, St as OrderByItem, T as CodecJsonValueProjection, Tt as PreparedParamRef, U as ExprVisitor, Ut as WhereArg, V as EqColJoinOn, Vt as ToWhereExpr, W as ExpressionFolder, Wt as WindowFn, X as FunctionSourceAlias, Xt as isOrderByDirection, Y as FunctionSource, Yt as isAggregateFn, Z as IdentifierRef, Zt as isOrderByNulls, _ as BinaryExpr, _t as NativeJsonValueProjection, a as AndExpr, at as JsonObjectEntry, b as CaseExpr, bt as OperationExpr, c as AnyExpression, ct as LimitOffsetValue, d as AnyInsertValue, dt as LockStrength, en as queryAstKinds, et as InsertValue, f as AnyJsonValueProjection, ft as LockWaitPolicy, g as AstRewriter, gt as LoweredStatement, h as AnyQueryAst, ht as LoweredParam, i as AggregateOpFn, it as JsonDocumentProjection, j as DeleteAst, jt as RawQueryResult, k as ContractCodecRegistry, kt as RawQueryAst, l as AnyFromSource, lt as ListExpression, m as AnyParamRef, mt as LockingClauseOptions, n as AggregateExpr, nt as JoinOnExpr, o as AnyCodecDescriptor, ot as JsonObjectExpr, p as AnyOperationArg, pt as LockingClause, q as ExtractCodecTypes, qt as checkLimitOffset, r as AggregateFn, rt as JsonArrayAggExpr, s as AnyCodecDescriptorTemplate, st as JsonValueProjectionVisitor, t as AggregateCountFn, tn as whereExprKinds, tt as JoinAst, u as AnyInsertOnConflictAction, ut as LiteralExpr, v as BinaryOp, vt as NotExpr, w as CodecDescriptor$1, wt as ParamRef, x as CastExpr, xt as OrExpr, y as CaseBranch, yt as NullCheckExpr, z as DoNothingConflictAction, zt as TableRef } from "./types-DriMIMNQ-BkbsW7w3.mjs";
1
+ import { $ as InsertOnConflict, $t as isWhereExpr, A as DefaultValueExpr, At as RawQueryColumn, B as DoUpdateSetConflictAction, Bt as TableSource, C as CodecCallContext$1, Ct as OrderByNulls, D as CodecTrait$1, Dt as ProjectionItem, E as CodecRef$1, Et as ProjectionExpr, F as DescriptorCodecJson, Ft as SqlCodecCallContext, G as ExpressionRewriter, Gt as WindowFuncExpr, H as ExistsExpr, Ht as UpdateAst, I as DescriptorCodecTraits, It as SqlCodecInstanceContext, J as FunctionCallExpr, Jt as frozenCodecRef, K as ExpressionSource, Kt as aggregateFnNames, L as DescriptorKeepsWrittenFormFlag, Lt as SqlColumnRef, M as DerivedTableSource, Mt as RawSqlLiteral, N as DescriptorCodecId, Nt as SelectAst, O as ColumnRef, Ot as RawExpr, P as DescriptorCodecInput, Pt as SelectAstOptions, Q as InsertAst, Qt as isQueryAst, R as Direction, Rt as SubqueryExpr, S as Codec$1, St as OrderByItem, T as CodecJsonValueProjection, Tt as PreparedParamRef, U as ExprVisitor, Ut as WhereArg, V as EqColJoinOn, Vt as ToWhereExpr, W as ExpressionFolder, Wt as WindowFn, X as FunctionSourceAlias, Xt as isOrderByDirection, Y as FunctionSource, Yt as isAggregateFn, Z as IdentifierRef, Zt as isOrderByNulls, _ as BinaryExpr, _t as NativeJsonValueProjection, a as AndExpr, at as JsonObjectEntry, b as CaseExpr, bt as OperationExpr, c as AnyExpression, ct as LimitOffsetValue, d as AnyInsertValue, dt as LockStrength, en as queryAstKinds, et as InsertValue, f as AnyJsonValueProjection, ft as LockWaitPolicy, g as AstRewriter, gt as LoweredStatement, h as AnyQueryAst, ht as LoweredParam, i as AggregateOpFn, it as JsonDocumentProjection, j as DeleteAst, jt as RawQueryResult, k as ContractCodecRegistry, kt as RawQueryAst, l as AnyFromSource, lt as ListExpression, m as AnyParamRef, mt as LockingClauseOptions, n as AggregateExpr, nt as JoinOnExpr, o as AnyCodecDescriptor, ot as JsonObjectExpr, p as AnyOperationArg, pt as LockingClause, q as ExtractCodecTypes, qt as checkLimitOffset, r as AggregateFn, rt as JsonArrayAggExpr, s as AnyCodecDescriptorTemplate, st as JsonValueProjectionVisitor, t as AggregateCountFn, tn as whereExprKinds, tt as JoinAst, u as AnyInsertOnConflictAction, ut as LiteralExpr, v as BinaryOp, vt as NotExpr, w as CodecDescriptor$1, wt as ParamRef, x as CastExpr, xt as OrExpr, y as CaseBranch, yt as NullCheckExpr, z as DoNothingConflictAction, zt as TableRef } from "./types-ijhejJhK-EdACW3bY.mjs";
2
2
  import { a as SqlDriverState, c as SqlQueryable, i as SqlDriver, l as SqlStatementStats, n as PreparedStatementHandle, o as SqlExecuteRequest, r as SqlConnection, s as SqlExplainResult, t as PreparedExecuteRequest, u as SqlTransaction } from "./driver-types-DRsYeq3j-BimeCnUk.mjs";
3
- import { a as DdlNode, c as FunctionColumnDefault, d as PrimaryKeyConstraint, f as UniqueConstraint, h as renderOpaqueSql, i as DdlColumnDefault, l as LiteralColumnDefault, m as opaqueSql, n as CheckExpressionConstraint, o as DdlTableConstraint, p as isDdlNode, r as DdlColumn, s as ForeignKeyConstraint, t as AnyDdlColumnDefault, u as OpaqueSql } from "./ddl-types-By5mT2_S-CdaaFvsX.mjs";
4
- import { $ as sqlIntDescriptor, A as SqlTextDescriptor, B as lockStrengthCapabilities, C as SqlFloatCodec, D as SqlRawCodec, E as SqlIntDescriptor, F as encodeListLiteralDefault, G as sqlCharDescriptor, H as missingCapability, I as encodeLiteralDefault, J as sqlFloatDecode, K as sqlCharEncode, L as isAggregateProjection, M as SqlVarcharDescriptor, N as collectOrderedParamRefs, O as SqlRawDescriptor, P as compact, Q as sqlIntDecode, R as lockIncompatible, S as SqlCharDescriptor, T as SqlIntCodec, U as sqlCharColumn, V as lockWaitPolicyOf, W as sqlCharDecode, X as sqlFloatEncode, Y as sqlFloatDescriptor, Z as sqlIntColumn, _ as SQL_INT_CODEC_ID, a as EncodedLiteralDefault, at as sqlTextDescriptor, b as SQL_VARCHAR_CODEC_ID, c as LockOptionCapabilities, ct as sqlVarcharDecode, d as LockWaitRequest, et as sqlIntEncode, f as Lowerer, g as SQL_FLOAT_CODEC_ID, h as SQL_CHAR_CODEC_ID, i as CapabilityRequirement, it as sqlTextDecode, j as SqlVarcharCodec, k as SqlTextCodec, l as LockStrengthCapabilities, lt as sqlVarcharDescriptor, m as MarkerReadResult, n as AdapterProfile, nt as sqlRawDescriptor, o as LiteralDefaultColumn, ot as sqlTextEncode, p as LowererContext, q as sqlFloatColumn, r as AdapterTarget, rt as sqlTextColumn, s as LockConflict, st as sqlVarcharColumn, t as Adapter, tt as sqlRawColumn, u as LockWaitOptions, ut as sqlVarcharEncode, v as SQL_RAW_CODEC_ID, w as SqlFloatDescriptor, x as SqlCharCodec, y as SQL_TEXT_CODEC_ID, z as lockOptionCapabilities } from "./ast-YEMe_B8z.mjs";
3
+ import { a as DdlNode, c as FunctionColumnDefault, d as PrimaryKeyConstraint, f as UniqueConstraint, h as renderOpaqueSql, i as DdlColumnDefault, l as LiteralColumnDefault, m as opaqueSql, n as CheckExpressionConstraint, o as DdlTableConstraint, p as isDdlNode, r as DdlColumn, s as ForeignKeyConstraint, t as AnyDdlColumnDefault, u as OpaqueSql } from "./ddl-types-BeA1kjV1-C4d5owxE.mjs";
4
+ import { $ as sqlIntDescriptor, A as SqlTextDescriptor, B as lockStrengthCapabilities, C as SqlFloatCodec, D as SqlRawCodec, E as SqlIntDescriptor, F as encodeListLiteralDefault, G as sqlCharDescriptor, H as missingCapability, I as encodeLiteralDefault, J as sqlFloatDecode, K as sqlCharEncode, L as isAggregateProjection, M as SqlVarcharDescriptor, N as collectOrderedParamRefs, O as SqlRawDescriptor, P as compact, Q as sqlIntDecode, R as lockIncompatible, S as SqlCharDescriptor, T as SqlIntCodec, U as sqlCharColumn, V as lockWaitPolicyOf, W as sqlCharDecode, X as sqlFloatEncode, Y as sqlFloatDescriptor, Z as sqlIntColumn, _ as SQL_INT_CODEC_ID, a as EncodedLiteralDefault, at as sqlTextDescriptor, b as SQL_VARCHAR_CODEC_ID, c as LockOptionCapabilities, ct as sqlVarcharDecode, d as LockWaitRequest, et as sqlIntEncode, f as Lowerer, g as SQL_FLOAT_CODEC_ID, h as SQL_CHAR_CODEC_ID, i as CapabilityRequirement, it as sqlTextDecode, j as SqlVarcharCodec, k as SqlTextCodec, l as LockStrengthCapabilities, lt as sqlVarcharDescriptor, m as MarkerReadResult, n as AdapterProfile, nt as sqlRawDescriptor, o as LiteralDefaultColumn, ot as sqlTextEncode, p as LowererContext, q as sqlFloatColumn, r as AdapterTarget, rt as sqlTextColumn, s as LockConflict, st as sqlVarcharColumn, t as Adapter, tt as sqlRawColumn, u as LockWaitOptions, ut as sqlVarcharEncode, v as SQL_RAW_CODEC_ID, w as SqlFloatDescriptor, x as SqlCharCodec, y as SQL_TEXT_CODEC_ID, z as lockOptionCapabilities } from "./ast-DcphKbq9.mjs";
5
5
  export { Adapter, AdapterProfile, AdapterTarget, AggregateCountFn, AggregateExpr, AggregateFn, AggregateOpFn, AndExpr, AnyCodecDescriptor, AnyCodecDescriptorTemplate, AnyDdlColumnDefault, AnyExpression, AnyFromSource, AnyInsertOnConflictAction, AnyInsertValue, AnyJsonValueProjection, AnyOperationArg, AnyParamRef, AnyQueryAst, AstRewriter, BinaryExpr, BinaryOp, CapabilityRequirement, CaseBranch, CaseExpr, CastExpr, CheckExpressionConstraint, Codec$1 as Codec, type CodecCallContext$1 as CodecCallContext, type CodecDescriptor$1 as CodecDescriptor, CodecJsonValueProjection, type CodecRef$1 as CodecRef, type CodecTrait$1 as CodecTrait, ColumnRef, ContractCodecRegistry, DdlColumn, DdlColumnDefault, DdlNode, DdlTableConstraint, DefaultValueExpr, DeleteAst, DerivedTableSource, DescriptorCodecId, DescriptorCodecInput, DescriptorCodecJson, DescriptorCodecTraits, DescriptorKeepsWrittenFormFlag, Direction, DoNothingConflictAction, DoUpdateSetConflictAction, EncodedLiteralDefault, EqColJoinOn, ExistsExpr, ExprVisitor, ExpressionFolder, ExpressionRewriter, ExpressionSource, ExtractCodecTypes, ForeignKeyConstraint, FunctionCallExpr, FunctionColumnDefault, FunctionSource, FunctionSourceAlias, IdentifierRef, InsertAst, InsertOnConflict, InsertValue, JoinAst, JoinOnExpr, JsonArrayAggExpr, JsonDocumentProjection, JsonObjectEntry, JsonObjectExpr, JsonValueProjectionVisitor, LimitOffsetValue, ListExpression, LiteralColumnDefault, LiteralDefaultColumn, LiteralExpr, LockConflict, LockOptionCapabilities, LockStrength, LockStrengthCapabilities, LockWaitOptions, LockWaitPolicy, LockWaitRequest, LockingClause, LockingClauseOptions, LoweredParam, LoweredStatement, Lowerer, LowererContext, MarkerReadResult, NativeJsonValueProjection, NotExpr, NullCheckExpr, OpaqueSql, OperationExpr, OrExpr, OrderByItem, OrderByNulls, ParamRef, PreparedExecuteRequest, PreparedParamRef, PreparedStatementHandle, PrimaryKeyConstraint, ProjectionExpr, ProjectionItem, RawExpr, RawQueryAst, RawQueryColumn, RawQueryResult, RawSqlLiteral, SQL_CHAR_CODEC_ID, SQL_FLOAT_CODEC_ID, SQL_INT_CODEC_ID, SQL_RAW_CODEC_ID, SQL_TEXT_CODEC_ID, SQL_VARCHAR_CODEC_ID, SelectAst, SelectAstOptions, SqlCharCodec, SqlCharDescriptor, SqlCodecCallContext, SqlCodecInstanceContext, SqlColumnRef, SqlConnection, SqlDriver, SqlDriverState, SqlExecuteRequest, SqlExplainResult, SqlFloatCodec, SqlFloatDescriptor, SqlIntCodec, SqlIntDescriptor, SqlQueryable, SqlRawCodec, SqlRawDescriptor, SqlStatementStats, SqlTextCodec, SqlTextDescriptor, SqlTransaction, SqlVarcharCodec, SqlVarcharDescriptor, SubqueryExpr, TableRef, TableSource, ToWhereExpr, UniqueConstraint, UpdateAst, WhereArg, WindowFn, WindowFuncExpr, aggregateFnNames, checkLimitOffset, collectOrderedParamRefs, compact, encodeListLiteralDefault, encodeLiteralDefault, frozenCodecRef, isAggregateFn, isAggregateProjection, isDdlNode, isOrderByDirection, isOrderByNulls, isQueryAst, isWhereExpr, lockIncompatible, lockOptionCapabilities, lockStrengthCapabilities, lockWaitPolicyOf, missingCapability, opaqueSql, queryAstKinds, renderOpaqueSql, sqlCharColumn, sqlCharDecode, sqlCharDescriptor, sqlCharEncode, sqlFloatColumn, sqlFloatDecode, sqlFloatDescriptor, sqlFloatEncode, sqlIntColumn, sqlIntDecode, sqlIntDescriptor, sqlIntEncode, sqlRawColumn, sqlRawDescriptor, sqlTextColumn, sqlTextDecode, sqlTextDescriptor, sqlTextEncode, sqlVarcharColumn, sqlVarcharDecode, sqlVarcharDescriptor, sqlVarcharEncode, whereExprKinds };
@@ -1,5 +1,5 @@
1
- import { A as ParamRef, B as aggregateFnNames, C as LiteralExpr, D as OperationExpr, E as NullCheckExpr, F as SelectAst, G as isOrderByNulls, H as frozenCodecRef, I as SubqueryExpr, J as queryAstKinds, K as isQueryAst, L as TableSource, M as ProjectionItem, N as RawExpr, O as OrExpr, P as RawQueryAst, R as UpdateAst, S as ListExpression, T as NotExpr, U as isAggregateFn, V as checkLimitOffset, W as isOrderByDirection, Y as whereExprKinds, _ as InsertAst, a as CastExpr, b as JsonArrayAggExpr, c as DeleteAst, d as DoUpdateSetConflictAction, f as EqColJoinOn, g as IdentifierRef, h as FunctionSource, i as CaseExpr, j as PreparedParamRef, k as OrderByItem, l as DerivedTableSource, m as FunctionCallExpr, n as AndExpr, o as ColumnRef, p as ExistsExpr, q as isWhereExpr, r as BinaryExpr, s as DefaultValueExpr, t as AggregateExpr, u as DoNothingConflictAction, v as InsertOnConflict, w as LockingClause, x as JsonObjectExpr, y as JoinAst, z as WindowFuncExpr } from "./types-NTQsD2MS-xcLtvKO9.mjs";
1
+ import { A as ParamRef, B as aggregateFnNames, C as LiteralExpr, D as OperationExpr, E as NullCheckExpr, F as SelectAst, G as isOrderByNulls, H as frozenCodecRef, I as SubqueryExpr, J as queryAstKinds, K as isQueryAst, L as TableSource, M as ProjectionItem, N as RawExpr, O as OrExpr, P as RawQueryAst, R as UpdateAst, S as ListExpression, T as NotExpr, U as isAggregateFn, V as checkLimitOffset, W as isOrderByDirection, Y as whereExprKinds, _ as InsertAst, a as CastExpr, b as JsonArrayAggExpr, c as DeleteAst, d as DoUpdateSetConflictAction, f as EqColJoinOn, g as IdentifierRef, h as FunctionSource, i as CaseExpr, j as PreparedParamRef, k as OrderByItem, l as DerivedTableSource, m as FunctionCallExpr, n as AndExpr, o as ColumnRef, p as ExistsExpr, q as isWhereExpr, r as BinaryExpr, s as DefaultValueExpr, t as AggregateExpr, u as DoNothingConflictAction, v as InsertOnConflict, w as LockingClause, x as JsonObjectExpr, y as JoinAst, z as WindowFuncExpr } from "./types-BkTuhW3Z-BJfTjcxS.mjs";
2
2
  import { a as ForeignKeyConstraint, c as OpaqueSql, d as isDdlNode, f as opaqueSql, i as DdlNode, l as PrimaryKeyConstraint, n as DdlColumn, o as FunctionColumnDefault, p as renderOpaqueSql, r as DdlColumnDefault, s as LiteralColumnDefault, t as CheckExpressionConstraint, u as UniqueConstraint } from "./opaque-sql-Dset3kln-CtsPDTXn.mjs";
3
- import { n as compact, r as isAggregateProjection, t as collectOrderedParamRefs } from "./util-BBgcP3gI-CpL-0VuC.mjs";
4
- import { A as sqlCharDecode, B as sqlIntEncode, C as encodeLiteralDefault, D as lockWaitPolicyOf, E as lockStrengthCapabilities, F as sqlFloatDescriptor, G as sqlTextDescriptor, H as sqlRawDescriptor, I as sqlFloatEncode, J as sqlVarcharDecode, K as sqlTextEncode, L as sqlIntColumn, M as sqlCharEncode, N as sqlFloatColumn, O as missingCapability, P as sqlFloatDecode, R as sqlIntDecode, S as encodeListLiteralDefault, T as lockOptionCapabilities, U as sqlTextColumn, V as sqlRawColumn, W as sqlTextDecode, X as sqlVarcharEncode, Y as sqlVarcharDescriptor, _ as SqlRawDescriptor, a as SQL_FLOAT_CODEC_ID, b as SqlVarcharCodec, c as SQL_TEXT_CODEC_ID, d as SqlCharDescriptor, f as SqlFloatCodec, g as SqlRawCodec, h as SqlIntDescriptor, i as SQL_CHAR_CODEC_ID, j as sqlCharDescriptor, k as sqlCharColumn, l as SQL_VARCHAR_CODEC_ID, m as SqlIntCodec, n as JsonDocumentProjection, o as SQL_INT_CODEC_ID, p as SqlFloatDescriptor, q as sqlVarcharColumn, r as NativeJsonValueProjection, s as SQL_RAW_CODEC_ID, t as CodecJsonValueProjection, u as SqlCharCodec, v as SqlTextCodec, w as lockIncompatible, x as SqlVarcharDescriptor, y as SqlTextDescriptor, z as sqlIntDescriptor } from "./ast-D0miQ1B6.mjs";
3
+ import { n as compact, r as isAggregateProjection, t as collectOrderedParamRefs } from "./util-DixeJBri-Cad7x5ec.mjs";
4
+ import { A as sqlCharDecode, B as sqlIntEncode, C as encodeLiteralDefault, D as lockWaitPolicyOf, E as lockStrengthCapabilities, F as sqlFloatDescriptor, G as sqlTextDescriptor, H as sqlRawDescriptor, I as sqlFloatEncode, J as sqlVarcharDecode, K as sqlTextEncode, L as sqlIntColumn, M as sqlCharEncode, N as sqlFloatColumn, O as missingCapability, P as sqlFloatDecode, R as sqlIntDecode, S as encodeListLiteralDefault, T as lockOptionCapabilities, U as sqlTextColumn, V as sqlRawColumn, W as sqlTextDecode, X as sqlVarcharEncode, Y as sqlVarcharDescriptor, _ as SqlRawDescriptor, a as SQL_FLOAT_CODEC_ID, b as SqlVarcharCodec, c as SQL_TEXT_CODEC_ID, d as SqlCharDescriptor, f as SqlFloatCodec, g as SqlRawCodec, h as SqlIntDescriptor, i as SQL_CHAR_CODEC_ID, j as sqlCharDescriptor, k as sqlCharColumn, l as SQL_VARCHAR_CODEC_ID, m as SqlIntCodec, n as JsonDocumentProjection, o as SQL_INT_CODEC_ID, p as SqlFloatDescriptor, q as sqlVarcharColumn, r as NativeJsonValueProjection, s as SQL_RAW_CODEC_ID, t as CodecJsonValueProjection, u as SqlCharCodec, v as SqlTextCodec, w as lockIncompatible, x as SqlVarcharDescriptor, y as SqlTextDescriptor, z as sqlIntDescriptor } from "./ast-e_02t9Nt.mjs";
5
5
  export { AggregateExpr, AndExpr, BinaryExpr, CaseExpr, CastExpr, CheckExpressionConstraint, CodecJsonValueProjection, ColumnRef, DdlColumn, DdlColumnDefault, DdlNode, DefaultValueExpr, DeleteAst, DerivedTableSource, DoNothingConflictAction, DoUpdateSetConflictAction, EqColJoinOn, ExistsExpr, ForeignKeyConstraint, FunctionCallExpr, FunctionColumnDefault, FunctionSource, IdentifierRef, InsertAst, InsertOnConflict, JoinAst, JsonArrayAggExpr, JsonDocumentProjection, JsonObjectExpr, ListExpression, LiteralColumnDefault, LiteralExpr, LockingClause, NativeJsonValueProjection, NotExpr, NullCheckExpr, OpaqueSql, OperationExpr, OrExpr, OrderByItem, ParamRef, PreparedParamRef, PrimaryKeyConstraint, ProjectionItem, RawExpr, RawQueryAst, SQL_CHAR_CODEC_ID, SQL_FLOAT_CODEC_ID, SQL_INT_CODEC_ID, SQL_RAW_CODEC_ID, SQL_TEXT_CODEC_ID, SQL_VARCHAR_CODEC_ID, SelectAst, SqlCharCodec, SqlCharDescriptor, SqlFloatCodec, SqlFloatDescriptor, SqlIntCodec, SqlIntDescriptor, SqlRawCodec, SqlRawDescriptor, SqlTextCodec, SqlTextDescriptor, SqlVarcharCodec, SqlVarcharDescriptor, SubqueryExpr, TableSource, UniqueConstraint, UpdateAst, WindowFuncExpr, aggregateFnNames, checkLimitOffset, collectOrderedParamRefs, compact, encodeListLiteralDefault, encodeLiteralDefault, frozenCodecRef, isAggregateFn, isAggregateProjection, isDdlNode, isOrderByDirection, isOrderByNulls, isQueryAst, isWhereExpr, lockIncompatible, lockOptionCapabilities, lockStrengthCapabilities, lockWaitPolicyOf, missingCapability, opaqueSql, queryAstKinds, renderOpaqueSql, sqlCharColumn, sqlCharDecode, sqlCharDescriptor, sqlCharEncode, sqlFloatColumn, sqlFloatDecode, sqlFloatDescriptor, sqlFloatEncode, sqlIntColumn, sqlIntDecode, sqlIntDescriptor, sqlIntEncode, sqlRawColumn, sqlRawDescriptor, sqlTextColumn, sqlTextDecode, sqlTextDescriptor, sqlTextEncode, sqlVarcharColumn, sqlVarcharDecode, sqlVarcharDescriptor, sqlVarcharEncode, whereExprKinds };
@@ -1,7 +1,7 @@
1
1
  import { l as SqlStorage } from "./sql-storage-DeCAh5Hi-CEM-m8cs.mjs";
2
2
  import "./types-CkAd8SWm.mjs";
3
- import { o as AnyCodecDescriptor$1 } from "./types-DriMIMNQ-BkbsW7w3.mjs";
4
- import { t as CodecDescriptorRegistry } from "./query-lane-context-BCEoKy0_-CzmyavC9.mjs";
3
+ import { o as AnyCodecDescriptor$1 } from "./types-ijhejJhK-EdACW3bY.mjs";
4
+ import { t as CodecDescriptorRegistry } from "./query-lane-context-DLSXDsDK-pEiQmuYy.mjs";
5
5
  import { CodecRef } from "@prisma/orm-framework/components/codec";
6
6
  //#region ../../../2-sql-family/4-lanes/relational-core/dist/exports/codec-descriptor-registry.d.mts
7
7
  //#region src/codec-descriptor-registry.d.ts
@@ -1,3 +1,3 @@
1
- import { a as CollectionMethodModel, c as CollectionMethodRegistry, i as CollectionMethodContributionType, l as CollectionMethodTools, n as CollectionMethodContribution, o as CollectionMethodModelType, r as CollectionMethodContributionId, s as CollectionMethodReceiver, t as CollectionMethodBody, u as ContributedMethodSignature } from "./collection-methods-D2UnCS0S-DOy2qHYS.mjs";
2
- import "./collection-methods-BB8YH69u.mjs";
1
+ import { a as CollectionMethodModel, c as CollectionMethodRegistry, i as CollectionMethodContributionType, l as CollectionMethodTools, n as CollectionMethodContribution, o as CollectionMethodModelType, r as CollectionMethodContributionId, s as CollectionMethodReceiver, t as CollectionMethodBody, u as ContributedMethodSignature } from "./collection-methods-D9CYfePl-DsDjYS6t.mjs";
2
+ import "./collection-methods-FWiYjZ5j.mjs";
3
3
  export { CollectionMethodBody, CollectionMethodContribution, CollectionMethodContributionId, CollectionMethodContributionType, CollectionMethodModel, CollectionMethodModelType, CollectionMethodReceiver, CollectionMethodRegistry, CollectionMethodTools, ContributedMethodSignature };
@@ -1,7 +1,7 @@
1
1
  import { o as ReferentialAction } from "./foreign-key-qkDFfG8t-TaK_GYWR.mjs";
2
2
  import "./types-CkAd8SWm.mjs";
3
- import { Bt as TableSource, Dt as ProjectionItem, E as CodecRef$1, Ht as UpdateAst, Nt as SelectAst, O as ColumnRef, Q as InsertAst, St as OrderByItem, c as AnyExpression, l as AnyFromSource, tt as JoinAst } from "./types-DriMIMNQ-BkbsW7w3.mjs";
4
- import { c as FunctionColumnDefault, d as PrimaryKeyConstraint, f as UniqueConstraint, l as LiteralColumnDefault, n as CheckExpressionConstraint, r as DdlColumn, s as ForeignKeyConstraint, t as AnyDdlColumnDefault } from "./ddl-types-By5mT2_S-CdaaFvsX.mjs";
3
+ import { Bt as TableSource, Dt as ProjectionItem, E as CodecRef$1, Ht as UpdateAst, Nt as SelectAst, O as ColumnRef, Q as InsertAst, St as OrderByItem, c as AnyExpression, l as AnyFromSource, tt as JoinAst } from "./types-ijhejJhK-EdACW3bY.mjs";
4
+ import { c as FunctionColumnDefault, d as PrimaryKeyConstraint, f as UniqueConstraint, l as LiteralColumnDefault, n as CheckExpressionConstraint, r as DdlColumn, s as ForeignKeyConstraint, t as AnyDdlColumnDefault } from "./ddl-types-BeA1kjV1-C4d5owxE.mjs";
5
5
  import { r as SqlExpression } from "./sql-expression-B4BrhGPi.mjs";
6
6
  import { ColumnDefaultLiteralInputValue } from "@prisma/orm-framework/contract/types";
7
7
  import { ParamSpec } from "@prisma/orm-framework/operations";
@@ -1,5 +1,5 @@
1
1
  import { s as readSqlExpression } from "./sql-expression-CKgKznXS.mjs";
2
- import { A as ParamRef, C as LiteralExpr, D as OperationExpr, E as NullCheckExpr, F as SelectAst, L as TableSource, M as ProjectionItem, N as RawExpr, O as OrExpr, R as UpdateAst, _ as InsertAst, g as IdentifierRef, k as OrderByItem, n as AndExpr, o as ColumnRef, p as ExistsExpr, r as BinaryExpr, t as AggregateExpr, v as InsertOnConflict, y as JoinAst } from "./types-NTQsD2MS-xcLtvKO9.mjs";
2
+ import { A as ParamRef, C as LiteralExpr, D as OperationExpr, E as NullCheckExpr, F as SelectAst, L as TableSource, M as ProjectionItem, N as RawExpr, O as OrExpr, R as UpdateAst, _ as InsertAst, g as IdentifierRef, k as OrderByItem, n as AndExpr, o as ColumnRef, p as ExistsExpr, r as BinaryExpr, t as AggregateExpr, v as InsertOnConflict, y as JoinAst } from "./types-BkTuhW3Z-BJfTjcxS.mjs";
3
3
  import { a as ForeignKeyConstraint, f as opaqueSql, l as PrimaryKeyConstraint, n as DdlColumn, o as FunctionColumnDefault, s as LiteralColumnDefault, t as CheckExpressionConstraint, u as UniqueConstraint } from "./opaque-sql-Dset3kln-CtsPDTXn.mjs";
4
4
  import { structuredError } from "@prisma/orm-framework/utils/structured-error";
5
5
  import { blindCast } from "@prisma/orm-framework/utils/casts";
@@ -1 +1 @@
1
- {"version":3,"file":"relational-core__contract-free.mjs","names":[],"sources":["../../../../2-sql-family/4-lanes/relational-core/dist/exports/contract-free.mjs"],"sourcesContent":["import { A as ParamRef, C as LiteralExpr, D as OperationExpr, E as NullCheckExpr, F as SelectAst, L as TableSource, M as ProjectionItem, N as RawExpr, O as OrExpr, R as UpdateAst, _ as InsertAst, g as IdentifierRef, k as OrderByItem, n as AndExpr, o as ColumnRef, p as ExistsExpr, r as BinaryExpr, t as AggregateExpr, v as InsertOnConflict, y as JoinAst } from \"../types-NTQsD2MS.mjs\";\nimport { a as DdlColumn, c as ForeignKeyConstraint, d as PrimaryKeyConstraint, f as UniqueConstraint, i as CheckExpressionConstraint, l as FunctionColumnDefault, n as opaqueSql, u as LiteralColumnDefault } from \"../opaque-sql-Dset3kln.mjs\";\nimport { structuredError } from \"@internal/utils/structured-error\";\nimport { blindCast } from \"@internal/utils/casts\";\nimport { readSqlExpression } from \"@internal/sql-contract/sql-expression\";\n//#region src/contract-free/column.ts\n/**\n* The SQL text of `value`. A `sql` value from another installed copy is canonicalized. Anything that is neither a\n* string nor a `sql` value throws CONTRACT.ARGUMENT_INVALID naming the argument `what`.\n*/\nfunction sqlTextOf(value, what) {\n\tif (typeof value === \"string\") return value;\n\tconst expression = readSqlExpression(value);\n\tif (expression !== void 0) return expression.text;\n\tthrow structuredError(\"CONTRACT.ARGUMENT_INVALID\", `${what} must be a string or a sql\\`...\\` value.`, { meta: { what } });\n}\nfunction lit(value) {\n\treturn new LiteralColumnDefault(value);\n}\nfunction fn(expression) {\n\treturn new FunctionColumnDefault(opaqueSql(sqlTextOf(expression, \"fn expression\")));\n}\nfunction col(name, type, options) {\n\treturn new DdlColumn({\n\t\tname,\n\t\ttype,\n\t\t...options\n\t});\n}\nfunction primaryKey(columns, options) {\n\treturn new PrimaryKeyConstraint({\n\t\tcolumns,\n\t\t...options\n\t});\n}\nfunction foreignKey(columns, refTable, refColumns, options) {\n\treturn new ForeignKeyConstraint({\n\t\tcolumns,\n\t\trefTable,\n\t\trefColumns,\n\t\t...options\n\t});\n}\nfunction unique(columns, options) {\n\treturn new UniqueConstraint({\n\t\tcolumns,\n\t\t...options\n\t});\n}\nfunction checkExpression(name, expression) {\n\treturn new CheckExpressionConstraint({\n\t\tname,\n\t\texpression: opaqueSql(sqlTextOf(expression, `checkExpression ${JSON.stringify(name)} expression`))\n\t});\n}\n//#endregion\n//#region src/contract-free/table.ts\nfunction codecRefOf(desc) {\n\treturn desc.many === true ? {\n\t\tcodecId: desc.codecId,\n\t\tmany: true\n\t} : { codecId: desc.codecId };\n}\n/**\n* A composable WHERE / ON expression. Wraps an `AnyExpression` and exposes\n* fluent boolean combinators, mirroring the spirit of `sql-builder`'s\n* `Expression` interface without the contract-bound type machinery.\n*/\nvar CfExpr = class CfExpr {\n\tast;\n\tconstructor(ast) {\n\t\tthis.ast = ast;\n\t}\n\tand(other) {\n\t\treturn new CfExpr(AndExpr.of([this.ast, other.ast]));\n\t}\n\tor(other) {\n\t\treturn new CfExpr(OrExpr.of([this.ast, other.ast]));\n\t}\n\tnot() {\n\t\treturn new CfExpr(this.ast.not());\n\t}\n\tisNull() {\n\t\treturn new CfExpr(NullCheckExpr.isNull(this.ast));\n\t}\n\tisNotNull() {\n\t\treturn new CfExpr(NullCheckExpr.isNotNull(this.ast));\n\t}\n\teqLit(value) {\n\t\treturn new CfExpr(BinaryExpr.eq(this.ast, LiteralExpr.of(value)));\n\t}\n\tgtLit(value) {\n\t\treturn new CfExpr(BinaryExpr.gt(this.ast, LiteralExpr.of(value)));\n\t}\n\teqParam(value, codecId) {\n\t\treturn new CfExpr(BinaryExpr.eq(this.ast, ParamRef.of(value, { codec: { codecId } })));\n\t}\n\teqExpr(other) {\n\t\treturn new CfExpr(BinaryExpr.eq(this.ast, other.ast));\n\t}\n};\nconst cfExpr = {\n\tcountStar() {\n\t\treturn new CfExpr(AggregateExpr.count());\n\t},\n\tlit(value) {\n\t\treturn new CfExpr(LiteralExpr.of(value));\n\t},\n\tidentifierRef(name) {\n\t\treturn new CfExpr(IdentifierRef.of(name));\n\t},\n\tparam(value, codecId) {\n\t\treturn new CfExpr(ParamRef.of(value, { codec: { codecId } }));\n\t},\n\t/**\n\t* Catalog function call lowered via a `'function'`-strategy template\n\t* (e.g. `to_regclass({{self}})`). Owns the `OperationExpr` assembly so\n\t* target packages only supply vocabulary: template, codec'd operands,\n\t* and return spec.\n\t*/\n\tfn(options) {\n\t\treturn new CfExpr(new OperationExpr({\n\t\t\tmethod: options.method,\n\t\t\tself: options.self.ast,\n\t\t\targs: options.args?.map((arg) => arg.ast),\n\t\t\treturns: options.returns,\n\t\t\tlowering: {\n\t\t\t\ttargetFamily: \"sql\",\n\t\t\t\ttemplate: options.template\n\t\t\t}\n\t\t}));\n\t},\n\tcolumnRef(qualifier, name) {\n\t\treturn new CfExpr(ColumnRef.of(qualifier, name));\n\t},\n\tallOf(exprs) {\n\t\treturn new CfExpr(AndExpr.of(exprs.map((expr) => expr.ast)));\n\t},\n\t/**\n\t* Opaque DB-side SQL expression (e.g. `current_schema()`) carried as a\n\t* `RawExpr`. For zero-operand catalog functions where a `'function'`\n\t* lowering template has nothing to substitute.\n\t*/\n\traw(sql, returns) {\n\t\treturn new CfExpr(new RawExpr({\n\t\t\tparts: [sql],\n\t\t\treturns\n\t\t}));\n\t},\n\texists(query) {\n\t\treturn new CfExpr(ExistsExpr.exists(query.build()));\n\t},\n\tnotExists(query) {\n\t\treturn new CfExpr(ExistsExpr.notExists(query.build()));\n\t}\n};\n/** Aliased table source for catalog queries (no namespace coordinate). */\nfunction cfTable(name, alias) {\n\treturn TableSource.named(name, alias);\n}\nvar CfExprSelectQuery = class CfExprSelectQuery {\n\tsrc;\n\tprojectionItems;\n\twhereExpr;\n\tjoinItems;\n\tlimitValue;\n\tconstructor(src, projectionItems, whereExpr, joinItems = [], limitValue = void 0) {\n\t\tthis.src = src;\n\t\tthis.projectionItems = projectionItems;\n\t\tthis.whereExpr = whereExpr;\n\t\tthis.joinItems = joinItems;\n\t\tthis.limitValue = limitValue;\n\t}\n\tfrom(source) {\n\t\treturn new CfExprSelectQuery(source, this.projectionItems, this.whereExpr, this.joinItems, this.limitValue);\n\t}\n\tjoin(source, on) {\n\t\treturn new CfExprSelectQuery(this.src, this.projectionItems, this.whereExpr, [...this.joinItems, JoinAst.inner(source, on.ast)], this.limitValue);\n\t}\n\tleftJoin(source, on) {\n\t\treturn new CfExprSelectQuery(this.src, this.projectionItems, this.whereExpr, [...this.joinItems, JoinAst.left(source, on.ast)], this.limitValue);\n\t}\n\tproject(alias, expr) {\n\t\treturn new CfExprSelectQuery(this.src, [...this.projectionItems, ProjectionItem.of(alias, expr.ast)], this.whereExpr, this.joinItems, this.limitValue);\n\t}\n\twhere(expr) {\n\t\treturn new CfExprSelectQuery(this.src, this.projectionItems, expr, this.joinItems, this.limitValue);\n\t}\n\tlimit(value) {\n\t\treturn new CfExprSelectQuery(this.src, this.projectionItems, this.whereExpr, this.joinItems, value);\n\t}\n\tbuild() {\n\t\tif (this.joinItems.length > 0 && this.src === void 0) throw structuredError(\"ORM.ARGUMENT_INVALID\", \"CfExprSelectQuery: cannot add a JOIN without a FROM clause\");\n\t\tconst base = this.src !== void 0 ? SelectAst.from(this.src).withProjection(this.projectionItems) : SelectAst.noFrom().withProjection(this.projectionItems);\n\t\tconst withJoins = this.joinItems.length > 0 ? base.withJoins(this.joinItems) : base;\n\t\tconst withWhere = this.whereExpr !== void 0 ? withJoins.withWhere(this.whereExpr.ast) : withJoins;\n\t\treturn this.limitValue !== void 0 ? withWhere.withLimit(this.limitValue) : withWhere;\n\t}\n};\nfunction exprSelect() {\n\treturn new CfExprSelectQuery(void 0, [], void 0);\n}\nvar CfInsertQuery = class CfInsertQuery {\n\tsrc;\n\tschema;\n\trowValues;\n\treturningItems;\n\tconstructor(src, schema, rowValues, returningItems = void 0) {\n\t\tthis.src = src;\n\t\tthis.schema = schema;\n\t\tthis.rowValues = rowValues;\n\t\tthis.returningItems = returningItems;\n\t}\n\treturning(...columns) {\n\t\treturn new CfInsertQuery(this.src, this.schema, this.rowValues, columns.map((col) => col.toProjectionItem()));\n\t}\n\tbuild() {\n\t\tconst row = buildInsertRow(this.schema, this.rowValues);\n\t\tconst ast = InsertAst.into(this.src).withRows([row]);\n\t\treturn this.returningItems ? ast.withReturning(this.returningItems) : ast;\n\t}\n};\nvar CfUpsertBuilder = class {\n\tsrc;\n\tschema;\n\trowValues;\n\tconstructor(src, schema, rowValues) {\n\t\tthis.src = src;\n\t\tthis.schema = schema;\n\t\tthis.rowValues = rowValues;\n\t}\n\tonConflict(...columns) {\n\t\treturn new CfConflictClause(this.src, this.schema, this.rowValues, [...columns]);\n\t}\n};\nvar CfConflictClause = class {\n\tsrc;\n\tschema;\n\trowValues;\n\tconflictCols;\n\tconstructor(src, schema, rowValues, conflictCols) {\n\t\tthis.src = src;\n\t\tthis.schema = schema;\n\t\tthis.rowValues = rowValues;\n\t\tthis.conflictCols = conflictCols;\n\t}\n\tdoUpdate(setOrCallback) {\n\t\tconst set = typeof setOrCallback === \"function\" ? setOrCallback(buildExcludedProxy(this.schema)) : setOrCallback;\n\t\treturn new CfUpsertQuery(this.src, this.schema, this.rowValues, this.conflictCols, set);\n\t}\n\tdoNothing() {\n\t\treturn new CfUpsertQuery(this.src, this.schema, this.rowValues, this.conflictCols, void 0);\n\t}\n};\nvar CfUpsertQuery = class {\n\tsrc;\n\tschema;\n\trowValues;\n\tconflictCols;\n\tupdateSet;\n\tconstructor(src, schema, rowValues, conflictCols, updateSet) {\n\t\tthis.src = src;\n\t\tthis.schema = schema;\n\t\tthis.rowValues = rowValues;\n\t\tthis.conflictCols = conflictCols;\n\t\tthis.updateSet = updateSet;\n\t}\n\tbuild() {\n\t\tconst row = buildInsertRow(this.schema, this.rowValues);\n\t\tconst conflictRefs = this.conflictCols.map((col) => col.toRef());\n\t\tconst onConflict = this.updateSet === void 0 ? InsertOnConflict.on(conflictRefs).doNothing() : InsertOnConflict.on(conflictRefs).doUpdateSet(buildSetMap(this.schema, this.updateSet));\n\t\treturn InsertAst.into(this.src).withRows([row]).withOnConflict(onConflict);\n\t}\n};\nvar CfUpdateQuery = class CfUpdateQuery {\n\tsrc;\n\tschema;\n\tsetValues;\n\twhereExpr;\n\treturningItems;\n\tconstructor(src, schema, setValues = void 0, whereExpr = void 0, returningItems = void 0) {\n\t\tthis.src = src;\n\t\tthis.schema = schema;\n\t\tthis.setValues = setValues;\n\t\tthis.whereExpr = whereExpr;\n\t\tthis.returningItems = returningItems;\n\t}\n\tset(values) {\n\t\treturn new CfUpdateQuery(this.src, this.schema, values, this.whereExpr, this.returningItems);\n\t}\n\twhere(expr) {\n\t\treturn new CfUpdateQuery(this.src, this.schema, this.setValues, expr, this.returningItems);\n\t}\n\treturning(...columns) {\n\t\treturn new CfUpdateQuery(this.src, this.schema, this.setValues, this.whereExpr, columns.map((col) => col.toProjectionItem()));\n\t}\n\tbuild() {\n\t\tconst set = buildSetMap(this.schema, this.setValues);\n\t\tconst base = UpdateAst.table(this.src).withSet(set);\n\t\tconst withWhere = this.whereExpr ? base.withWhere(this.whereExpr.ast) : base;\n\t\treturn this.returningItems ? withWhere.withReturning(this.returningItems) : withWhere;\n\t}\n};\nvar CfSelectQuery = class CfSelectQuery {\n\tsrc;\n\tprojectionItems;\n\twhereExpr;\n\torderByItems;\n\tconstructor(src, projectionItems, whereExpr = void 0, orderByItems = []) {\n\t\tthis.src = src;\n\t\tthis.projectionItems = projectionItems;\n\t\tthis.whereExpr = whereExpr;\n\t\tthis.orderByItems = orderByItems;\n\t}\n\twhere(expr) {\n\t\treturn new CfSelectQuery(this.src, this.projectionItems, expr, this.orderByItems);\n\t}\n\torderBy(column, dir = \"asc\") {\n\t\tconst item = dir === \"asc\" ? OrderByItem.asc(column.toRef()) : OrderByItem.desc(column.toRef());\n\t\treturn new CfSelectQuery(this.src, this.projectionItems, this.whereExpr, [...this.orderByItems, item]);\n\t}\n\tbuild() {\n\t\tconst base = SelectAst.from(this.src).withProjection(this.projectionItems);\n\t\tconst withWhere = this.whereExpr ? base.withWhere(this.whereExpr.ast) : base;\n\t\treturn this.orderByItems.length > 0 ? withWhere.withOrderBy(this.orderByItems) : withWhere;\n\t}\n};\n/**\n* Declare a control-plane table once, binding column codecs at declaration time.\n* Returns a `TableHandle` whose column properties compose expressions directly\n* without per-call-site codec or column-name threading.\n*\n* ```ts\n* const marker = pgTable({ name: 'marker', schema: 'prisma_contract' }, {\n* space: text(),\n* core_hash: text(),\n* updated_at: timestamptz(),\n* });\n*\n* const query = marker.update()\n* .set({ core_hash: newHash, updated_at: NOW })\n* .where(marker.space.eq(space).and(marker.core_hash.eq(expectedFrom)))\n* .returning(marker.space)\n* .build();\n* ```\n*/\nfunction table(source, schema) {\n\tconst proxies = {};\n\tfor (const [col, desc] of Object.entries(schema)) proxies[col] = makeColumnProxy(source.alias ?? source.name, col, desc);\n\treturn blindCast({\n\t\t...proxies,\n\t\tsource,\n\t\tinsert: (row) => new CfInsertQuery(source, schema, row),\n\t\tupsert: (row) => new CfUpsertBuilder(source, schema, row),\n\t\tupdate: () => new CfUpdateQuery(source, schema),\n\t\tselect: (...cols) => new CfSelectQuery(source, cols.map((col) => col.toProjectionItem()))\n\t});\n}\nfunction makeColumnProxy(tableName, columnName, desc) {\n\tconst ref = ColumnRef.of(tableName, columnName);\n\treturn {\n\t\tcodecId: desc.codecId,\n\t\tnullable: desc.nullable,\n\t\tcolumnName,\n\t\ttableName,\n\t\teq: (value) => value === null ? new CfExpr(NullCheckExpr.isNull(ref)) : new CfExpr(BinaryExpr.eq(ref, toSetExpression(value, desc))),\n\t\tneq: (value) => value === null ? new CfExpr(NullCheckExpr.isNotNull(ref)) : new CfExpr(BinaryExpr.neq(ref, toSetExpression(value, desc))),\n\t\tisNull: () => new CfExpr(NullCheckExpr.isNull(ref)),\n\t\tisNotNull: () => new CfExpr(NullCheckExpr.isNotNull(ref)),\n\t\ttoRef: () => ref,\n\t\ttoProjectionItem: (alias = columnName) => ProjectionItem.of(alias, ref, codecRefOf(desc))\n\t};\n}\nfunction buildExcludedProxy(schema) {\n\treturn blindCast(Object.fromEntries(Object.keys(schema).map((col) => [col, ColumnRef.of(\"excluded\", col)])));\n}\nfunction isExpressionSource(value) {\n\treturn typeof value === \"object\" && value !== null && \"toExpr\" in value && typeof value.toExpr === \"function\";\n}\nfunction toInsertValue(value, desc) {\n\tif (isExpressionSource(value)) {\n\t\tconst expr = value.toExpr();\n\t\tif (expr.kind === \"column-ref\" || expr.kind === \"param-ref\" || expr.kind === \"prepared-param-ref\" || expr.kind === \"raw-expr\") return expr;\n\t}\n\treturn ParamRef.of(value, { codec: codecRefOf(desc) });\n}\nfunction toSetExpression(value, desc) {\n\tif (isExpressionSource(value)) return value.toExpr();\n\treturn ParamRef.of(value, { codec: codecRefOf(desc) });\n}\nfunction buildInsertRow(schema, values) {\n\tconst row = {};\n\tconst rawValues = blindCast(values);\n\tfor (const [col, desc] of Object.entries(schema)) row[col] = toInsertValue(rawValues[col], desc);\n\treturn row;\n}\nfunction buildSetMap(schema, values) {\n\tif (values === void 0) return {};\n\tconst set = {};\n\tconst rawSchema = blindCast(schema);\n\tconst rawValues = blindCast(values);\n\tfor (const [col, value] of Object.entries(rawValues)) {\n\t\tconst desc = rawSchema[col];\n\t\tif (desc !== void 0) set[col] = toSetExpression(value, desc);\n\t}\n\treturn set;\n}\n//#endregion\nexport { CfConflictClause, CfExpr, CfExprSelectQuery, CfInsertQuery, CfSelectQuery, CfUpdateQuery, CfUpsertBuilder, CfUpsertQuery, cfExpr, cfTable, checkExpression, col, exprSelect, fn, foreignKey, lit, primaryKey, sqlTextOf, table, unique };\n\n//# sourceMappingURL=contract-free.mjs.map"],"mappings":";;;;;;;;;;AAUA,SAAS,UAAU,OAAO,MAAM;CAC/B,IAAI,OAAO,UAAU,UAAU,OAAO;CACtC,MAAM,aAAa,kBAAkB,KAAK;CAC1C,IAAI,eAAe,KAAK,GAAG,OAAO,WAAW;CAC7C,MAAM,gBAAgB,6BAA6B,GAAG,KAAK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AK,SAAS,OAAO,QAAQ,MAAM,GAAG,IAAI,OAAO,cAAc,UAAU,MAAM,IAAI;CAC/F,OAAO;AACR;AACA,SAAS,YAAY,QAAQ,QAAQ;CACpC,IAAI,WAAW,KAAK,GAAG,OAAO,CAAC;CAC/B,MAAM,MAAM,CAAC;CACb,MAAM,YAAY,UAAU,MAAM;CAClC,MAAM,YAAY,UAAU,MAAM;CAClC,KAAK,MAAM,CAAC,KAAK,UAAU,OAAO,QAAQ,SAAS,GAAG;EACrD,MAAM,OAAO,UAAU;EACvB,IAAI,SAAS,KAAK,GAAG,IAAI,OAAO,gBAAgB,OAAO,IAAI;CAC5D;CACA,OAAO;AACR"}
1
+ {"version":3,"file":"relational-core__contract-free.mjs","names":[],"sources":["../../../../2-sql-family/4-lanes/relational-core/dist/exports/contract-free.mjs"],"sourcesContent":["import { A as ParamRef, C as LiteralExpr, D as OperationExpr, E as NullCheckExpr, F as SelectAst, L as TableSource, M as ProjectionItem, N as RawExpr, O as OrExpr, R as UpdateAst, _ as InsertAst, g as IdentifierRef, k as OrderByItem, n as AndExpr, o as ColumnRef, p as ExistsExpr, r as BinaryExpr, t as AggregateExpr, v as InsertOnConflict, y as JoinAst } from \"../types-BkTuhW3Z.mjs\";\nimport { a as DdlColumn, c as ForeignKeyConstraint, d as PrimaryKeyConstraint, f as UniqueConstraint, i as CheckExpressionConstraint, l as FunctionColumnDefault, n as opaqueSql, u as LiteralColumnDefault } from \"../opaque-sql-Dset3kln.mjs\";\nimport { structuredError } from \"@internal/utils/structured-error\";\nimport { blindCast } from \"@internal/utils/casts\";\nimport { readSqlExpression } from \"@internal/sql-contract/sql-expression\";\n//#region src/contract-free/column.ts\n/**\n* The SQL text of `value`. A `sql` value from another installed copy is canonicalized. Anything that is neither a\n* string nor a `sql` value throws CONTRACT.ARGUMENT_INVALID naming the argument `what`.\n*/\nfunction sqlTextOf(value, what) {\n\tif (typeof value === \"string\") return value;\n\tconst expression = readSqlExpression(value);\n\tif (expression !== void 0) return expression.text;\n\tthrow structuredError(\"CONTRACT.ARGUMENT_INVALID\", `${what} must be a string or a sql\\`...\\` value.`, { meta: { what } });\n}\nfunction lit(value) {\n\treturn new LiteralColumnDefault(value);\n}\nfunction fn(expression) {\n\treturn new FunctionColumnDefault(opaqueSql(sqlTextOf(expression, \"fn expression\")));\n}\nfunction col(name, type, options) {\n\treturn new DdlColumn({\n\t\tname,\n\t\ttype,\n\t\t...options\n\t});\n}\nfunction primaryKey(columns, options) {\n\treturn new PrimaryKeyConstraint({\n\t\tcolumns,\n\t\t...options\n\t});\n}\nfunction foreignKey(columns, refTable, refColumns, options) {\n\treturn new ForeignKeyConstraint({\n\t\tcolumns,\n\t\trefTable,\n\t\trefColumns,\n\t\t...options\n\t});\n}\nfunction unique(columns, options) {\n\treturn new UniqueConstraint({\n\t\tcolumns,\n\t\t...options\n\t});\n}\nfunction checkExpression(name, expression) {\n\treturn new CheckExpressionConstraint({\n\t\tname,\n\t\texpression: opaqueSql(sqlTextOf(expression, `checkExpression ${JSON.stringify(name)} expression`))\n\t});\n}\n//#endregion\n//#region src/contract-free/table.ts\nfunction codecRefOf(desc) {\n\treturn desc.many === true ? {\n\t\tcodecId: desc.codecId,\n\t\tmany: true\n\t} : { codecId: desc.codecId };\n}\n/**\n* A composable WHERE / ON expression. Wraps an `AnyExpression` and exposes\n* fluent boolean combinators, mirroring the spirit of `sql-builder`'s\n* `Expression` interface without the contract-bound type machinery.\n*/\nvar CfExpr = class CfExpr {\n\tast;\n\tconstructor(ast) {\n\t\tthis.ast = ast;\n\t}\n\tand(other) {\n\t\treturn new CfExpr(AndExpr.of([this.ast, other.ast]));\n\t}\n\tor(other) {\n\t\treturn new CfExpr(OrExpr.of([this.ast, other.ast]));\n\t}\n\tnot() {\n\t\treturn new CfExpr(this.ast.not());\n\t}\n\tisNull() {\n\t\treturn new CfExpr(NullCheckExpr.isNull(this.ast));\n\t}\n\tisNotNull() {\n\t\treturn new CfExpr(NullCheckExpr.isNotNull(this.ast));\n\t}\n\teqLit(value) {\n\t\treturn new CfExpr(BinaryExpr.eq(this.ast, LiteralExpr.of(value)));\n\t}\n\tgtLit(value) {\n\t\treturn new CfExpr(BinaryExpr.gt(this.ast, LiteralExpr.of(value)));\n\t}\n\teqParam(value, codecId) {\n\t\treturn new CfExpr(BinaryExpr.eq(this.ast, ParamRef.of(value, { codec: { codecId } })));\n\t}\n\teqExpr(other) {\n\t\treturn new CfExpr(BinaryExpr.eq(this.ast, other.ast));\n\t}\n};\nconst cfExpr = {\n\tcountStar() {\n\t\treturn new CfExpr(AggregateExpr.count());\n\t},\n\tlit(value) {\n\t\treturn new CfExpr(LiteralExpr.of(value));\n\t},\n\tidentifierRef(name) {\n\t\treturn new CfExpr(IdentifierRef.of(name));\n\t},\n\tparam(value, codecId) {\n\t\treturn new CfExpr(ParamRef.of(value, { codec: { codecId } }));\n\t},\n\t/**\n\t* Catalog function call lowered via a `'function'`-strategy template\n\t* (e.g. `to_regclass({{self}})`). Owns the `OperationExpr` assembly so\n\t* target packages only supply vocabulary: template, codec'd operands,\n\t* and return spec.\n\t*/\n\tfn(options) {\n\t\treturn new CfExpr(new OperationExpr({\n\t\t\tmethod: options.method,\n\t\t\tself: options.self.ast,\n\t\t\targs: options.args?.map((arg) => arg.ast),\n\t\t\treturns: options.returns,\n\t\t\tlowering: {\n\t\t\t\ttargetFamily: \"sql\",\n\t\t\t\ttemplate: options.template\n\t\t\t}\n\t\t}));\n\t},\n\tcolumnRef(qualifier, name) {\n\t\treturn new CfExpr(ColumnRef.of(qualifier, name));\n\t},\n\tallOf(exprs) {\n\t\treturn new CfExpr(AndExpr.of(exprs.map((expr) => expr.ast)));\n\t},\n\t/**\n\t* Opaque DB-side SQL expression (e.g. `current_schema()`) carried as a\n\t* `RawExpr`. For zero-operand catalog functions where a `'function'`\n\t* lowering template has nothing to substitute.\n\t*/\n\traw(sql, returns) {\n\t\treturn new CfExpr(new RawExpr({\n\t\t\tparts: [sql],\n\t\t\treturns\n\t\t}));\n\t},\n\texists(query) {\n\t\treturn new CfExpr(ExistsExpr.exists(query.build()));\n\t},\n\tnotExists(query) {\n\t\treturn new CfExpr(ExistsExpr.notExists(query.build()));\n\t}\n};\n/** Aliased table source for catalog queries (no namespace coordinate). */\nfunction cfTable(name, alias) {\n\treturn TableSource.named(name, alias);\n}\nvar CfExprSelectQuery = class CfExprSelectQuery {\n\tsrc;\n\tprojectionItems;\n\twhereExpr;\n\tjoinItems;\n\tlimitValue;\n\tconstructor(src, projectionItems, whereExpr, joinItems = [], limitValue = void 0) {\n\t\tthis.src = src;\n\t\tthis.projectionItems = projectionItems;\n\t\tthis.whereExpr = whereExpr;\n\t\tthis.joinItems = joinItems;\n\t\tthis.limitValue = limitValue;\n\t}\n\tfrom(source) {\n\t\treturn new CfExprSelectQuery(source, this.projectionItems, this.whereExpr, this.joinItems, this.limitValue);\n\t}\n\tjoin(source, on) {\n\t\treturn new CfExprSelectQuery(this.src, this.projectionItems, this.whereExpr, [...this.joinItems, JoinAst.inner(source, on.ast)], this.limitValue);\n\t}\n\tleftJoin(source, on) {\n\t\treturn new CfExprSelectQuery(this.src, this.projectionItems, this.whereExpr, [...this.joinItems, JoinAst.left(source, on.ast)], this.limitValue);\n\t}\n\tproject(alias, expr) {\n\t\treturn new CfExprSelectQuery(this.src, [...this.projectionItems, ProjectionItem.of(alias, expr.ast)], this.whereExpr, this.joinItems, this.limitValue);\n\t}\n\twhere(expr) {\n\t\treturn new CfExprSelectQuery(this.src, this.projectionItems, expr, this.joinItems, this.limitValue);\n\t}\n\tlimit(value) {\n\t\treturn new CfExprSelectQuery(this.src, this.projectionItems, this.whereExpr, this.joinItems, value);\n\t}\n\tbuild() {\n\t\tif (this.joinItems.length > 0 && this.src === void 0) throw structuredError(\"ORM.ARGUMENT_INVALID\", \"CfExprSelectQuery: cannot add a JOIN without a FROM clause\");\n\t\tconst base = this.src !== void 0 ? SelectAst.from(this.src).withProjection(this.projectionItems) : SelectAst.noFrom().withProjection(this.projectionItems);\n\t\tconst withJoins = this.joinItems.length > 0 ? base.withJoins(this.joinItems) : base;\n\t\tconst withWhere = this.whereExpr !== void 0 ? withJoins.withWhere(this.whereExpr.ast) : withJoins;\n\t\treturn this.limitValue !== void 0 ? withWhere.withLimit(this.limitValue) : withWhere;\n\t}\n};\nfunction exprSelect() {\n\treturn new CfExprSelectQuery(void 0, [], void 0);\n}\nvar CfInsertQuery = class CfInsertQuery {\n\tsrc;\n\tschema;\n\trowValues;\n\treturningItems;\n\tconstructor(src, schema, rowValues, returningItems = void 0) {\n\t\tthis.src = src;\n\t\tthis.schema = schema;\n\t\tthis.rowValues = rowValues;\n\t\tthis.returningItems = returningItems;\n\t}\n\treturning(...columns) {\n\t\treturn new CfInsertQuery(this.src, this.schema, this.rowValues, columns.map((col) => col.toProjectionItem()));\n\t}\n\tbuild() {\n\t\tconst row = buildInsertRow(this.schema, this.rowValues);\n\t\tconst ast = InsertAst.into(this.src).withRows([row]);\n\t\treturn this.returningItems ? ast.withReturning(this.returningItems) : ast;\n\t}\n};\nvar CfUpsertBuilder = class {\n\tsrc;\n\tschema;\n\trowValues;\n\tconstructor(src, schema, rowValues) {\n\t\tthis.src = src;\n\t\tthis.schema = schema;\n\t\tthis.rowValues = rowValues;\n\t}\n\tonConflict(...columns) {\n\t\treturn new CfConflictClause(this.src, this.schema, this.rowValues, [...columns]);\n\t}\n};\nvar CfConflictClause = class {\n\tsrc;\n\tschema;\n\trowValues;\n\tconflictCols;\n\tconstructor(src, schema, rowValues, conflictCols) {\n\t\tthis.src = src;\n\t\tthis.schema = schema;\n\t\tthis.rowValues = rowValues;\n\t\tthis.conflictCols = conflictCols;\n\t}\n\tdoUpdate(setOrCallback) {\n\t\tconst set = typeof setOrCallback === \"function\" ? setOrCallback(buildExcludedProxy(this.schema)) : setOrCallback;\n\t\treturn new CfUpsertQuery(this.src, this.schema, this.rowValues, this.conflictCols, set);\n\t}\n\tdoNothing() {\n\t\treturn new CfUpsertQuery(this.src, this.schema, this.rowValues, this.conflictCols, void 0);\n\t}\n};\nvar CfUpsertQuery = class {\n\tsrc;\n\tschema;\n\trowValues;\n\tconflictCols;\n\tupdateSet;\n\tconstructor(src, schema, rowValues, conflictCols, updateSet) {\n\t\tthis.src = src;\n\t\tthis.schema = schema;\n\t\tthis.rowValues = rowValues;\n\t\tthis.conflictCols = conflictCols;\n\t\tthis.updateSet = updateSet;\n\t}\n\tbuild() {\n\t\tconst row = buildInsertRow(this.schema, this.rowValues);\n\t\tconst conflictRefs = this.conflictCols.map((col) => col.toRef());\n\t\tconst onConflict = this.updateSet === void 0 ? InsertOnConflict.on(conflictRefs).doNothing() : InsertOnConflict.on(conflictRefs).doUpdateSet(buildSetMap(this.schema, this.updateSet));\n\t\treturn InsertAst.into(this.src).withRows([row]).withOnConflict(onConflict);\n\t}\n};\nvar CfUpdateQuery = class CfUpdateQuery {\n\tsrc;\n\tschema;\n\tsetValues;\n\twhereExpr;\n\treturningItems;\n\tconstructor(src, schema, setValues = void 0, whereExpr = void 0, returningItems = void 0) {\n\t\tthis.src = src;\n\t\tthis.schema = schema;\n\t\tthis.setValues = setValues;\n\t\tthis.whereExpr = whereExpr;\n\t\tthis.returningItems = returningItems;\n\t}\n\tset(values) {\n\t\treturn new CfUpdateQuery(this.src, this.schema, values, this.whereExpr, this.returningItems);\n\t}\n\twhere(expr) {\n\t\treturn new CfUpdateQuery(this.src, this.schema, this.setValues, expr, this.returningItems);\n\t}\n\treturning(...columns) {\n\t\treturn new CfUpdateQuery(this.src, this.schema, this.setValues, this.whereExpr, columns.map((col) => col.toProjectionItem()));\n\t}\n\tbuild() {\n\t\tconst set = buildSetMap(this.schema, this.setValues);\n\t\tconst base = UpdateAst.table(this.src).withSet(set);\n\t\tconst withWhere = this.whereExpr ? base.withWhere(this.whereExpr.ast) : base;\n\t\treturn this.returningItems ? withWhere.withReturning(this.returningItems) : withWhere;\n\t}\n};\nvar CfSelectQuery = class CfSelectQuery {\n\tsrc;\n\tprojectionItems;\n\twhereExpr;\n\torderByItems;\n\tconstructor(src, projectionItems, whereExpr = void 0, orderByItems = []) {\n\t\tthis.src = src;\n\t\tthis.projectionItems = projectionItems;\n\t\tthis.whereExpr = whereExpr;\n\t\tthis.orderByItems = orderByItems;\n\t}\n\twhere(expr) {\n\t\treturn new CfSelectQuery(this.src, this.projectionItems, expr, this.orderByItems);\n\t}\n\torderBy(column, dir = \"asc\") {\n\t\tconst item = dir === \"asc\" ? OrderByItem.asc(column.toRef()) : OrderByItem.desc(column.toRef());\n\t\treturn new CfSelectQuery(this.src, this.projectionItems, this.whereExpr, [...this.orderByItems, item]);\n\t}\n\tbuild() {\n\t\tconst base = SelectAst.from(this.src).withProjection(this.projectionItems);\n\t\tconst withWhere = this.whereExpr ? base.withWhere(this.whereExpr.ast) : base;\n\t\treturn this.orderByItems.length > 0 ? withWhere.withOrderBy(this.orderByItems) : withWhere;\n\t}\n};\n/**\n* Declare a control-plane table once, binding column codecs at declaration time.\n* Returns a `TableHandle` whose column properties compose expressions directly\n* without per-call-site codec or column-name threading.\n*\n* ```ts\n* const marker = pgTable({ name: 'marker', schema: 'prisma_contract' }, {\n* space: text(),\n* core_hash: text(),\n* updated_at: timestamptz(),\n* });\n*\n* const query = marker.update()\n* .set({ core_hash: newHash, updated_at: NOW })\n* .where(marker.space.eq(space).and(marker.core_hash.eq(expectedFrom)))\n* .returning(marker.space)\n* .build();\n* ```\n*/\nfunction table(source, schema) {\n\tconst proxies = {};\n\tfor (const [col, desc] of Object.entries(schema)) proxies[col] = makeColumnProxy(source.alias ?? source.name, col, desc);\n\treturn blindCast({\n\t\t...proxies,\n\t\tsource,\n\t\tinsert: (row) => new CfInsertQuery(source, schema, row),\n\t\tupsert: (row) => new CfUpsertBuilder(source, schema, row),\n\t\tupdate: () => new CfUpdateQuery(source, schema),\n\t\tselect: (...cols) => new CfSelectQuery(source, cols.map((col) => col.toProjectionItem()))\n\t});\n}\nfunction makeColumnProxy(tableName, columnName, desc) {\n\tconst ref = ColumnRef.of(tableName, columnName);\n\treturn {\n\t\tcodecId: desc.codecId,\n\t\tnullable: desc.nullable,\n\t\tcolumnName,\n\t\ttableName,\n\t\teq: (value) => value === null ? new CfExpr(NullCheckExpr.isNull(ref)) : new CfExpr(BinaryExpr.eq(ref, toSetExpression(value, desc))),\n\t\tneq: (value) => value === null ? new CfExpr(NullCheckExpr.isNotNull(ref)) : new CfExpr(BinaryExpr.neq(ref, toSetExpression(value, desc))),\n\t\tisNull: () => new CfExpr(NullCheckExpr.isNull(ref)),\n\t\tisNotNull: () => new CfExpr(NullCheckExpr.isNotNull(ref)),\n\t\ttoRef: () => ref,\n\t\ttoProjectionItem: (alias = columnName) => ProjectionItem.of(alias, ref, codecRefOf(desc))\n\t};\n}\nfunction buildExcludedProxy(schema) {\n\treturn blindCast(Object.fromEntries(Object.keys(schema).map((col) => [col, ColumnRef.of(\"excluded\", col)])));\n}\nfunction isExpressionSource(value) {\n\treturn typeof value === \"object\" && value !== null && \"toExpr\" in value && typeof value.toExpr === \"function\";\n}\nfunction toInsertValue(value, desc) {\n\tif (isExpressionSource(value)) {\n\t\tconst expr = value.toExpr();\n\t\tif (expr.kind === \"column-ref\" || expr.kind === \"param-ref\" || expr.kind === \"prepared-param-ref\" || expr.kind === \"raw-expr\") return expr;\n\t}\n\treturn ParamRef.of(value, { codec: codecRefOf(desc) });\n}\nfunction toSetExpression(value, desc) {\n\tif (isExpressionSource(value)) return value.toExpr();\n\treturn ParamRef.of(value, { codec: codecRefOf(desc) });\n}\nfunction buildInsertRow(schema, values) {\n\tconst row = {};\n\tconst rawValues = blindCast(values);\n\tfor (const [col, desc] of Object.entries(schema)) row[col] = toInsertValue(rawValues[col], desc);\n\treturn row;\n}\nfunction buildSetMap(schema, values) {\n\tif (values === void 0) return {};\n\tconst set = {};\n\tconst rawSchema = blindCast(schema);\n\tconst rawValues = blindCast(values);\n\tfor (const [col, value] of Object.entries(rawValues)) {\n\t\tconst desc = rawSchema[col];\n\t\tif (desc !== void 0) set[col] = toSetExpression(value, desc);\n\t}\n\treturn set;\n}\n//#endregion\nexport { CfConflictClause, CfExpr, CfExprSelectQuery, CfInsertQuery, CfSelectQuery, CfUpdateQuery, CfUpsertBuilder, CfUpsertQuery, cfExpr, cfTable, checkExpression, col, exprSelect, fn, foreignKey, lit, primaryKey, sqlTextOf, table, unique };\n\n//# sourceMappingURL=contract-free.mjs.map"],"mappings":";;;;;;;;;;AAUA,SAAS,UAAU,OAAO,MAAM;CAC/B,IAAI,OAAO,UAAU,UAAU,OAAO;CACtC,MAAM,aAAa,kBAAkB,KAAK;CAC1C,IAAI,eAAe,KAAK,GAAG,OAAO,WAAW;CAC7C,MAAM,gBAAgB,6BAA6B,GAAG,KAAK,2CAA2C,EAAE,MAAM,EAAE,KAAK,EAAE,CAAC;AACzH;AACA,SAAS,IAAI,OAAO;CACnB,OAAO,IAAI,qBAAqB,KAAK;AACtC;AACA,SAAS,GAAG,YAAY;CACvB,OAAO,IAAI,sBAAsB,UAAU,UAAU,YAAY,eAAe,CAAC,CAAC;AACnF;AACA,SAAS,IAAI,MAAM,MAAM,SAAS;CACjC,OAAO,IAAI,UAAU;EACpB;EACA;EACA,GAAG;CACJ,CAAC;AACF;AACA,SAAS,WAAW,SAAS,SAAS;CACrC,OAAO,IAAI,qBAAqB;EAC/B;EACA,GAAG;CACJ,CAAC;AACF;AACA,SAAS,WAAW,SAAS,UAAU,YAAY,SAAS;CAC3D,OAAO,IAAI,qBAAqB;EAC/B;EACA;EACA;EACA,GAAG;CACJ,CAAC;AACF;AACA,SAAS,OAAO,SAAS,SAAS;CACjC,OAAO,IAAI,iBAAiB;EAC3B;EACA,GAAG;CACJ,CAAC;AACF;AACA,SAAS,gBAAgB,MAAM,YAAY;CAC1C,OAAO,IAAI,0BAA0B;EACpC;EACA,YAAY,UAAU,UAAU,YAAY,mBAAmB,KAAK,UAAU,IAAI,EAAE,YAAY,CAAC;CAClG,CAAC;AACF;AAGA,SAAS,WAAW,MAAM;CACzB,OAAO,KAAK,SAAS,OAAO;E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,KAAK,SAAS,gBAAgB,KAAK,SAAS,eAAe,KAAK,SAAS,wBAAwB,KAAK,SAAS,YAAY,OAAO;CACvI;CACA,OAAO,SAAS,GAAG,OAAO,EAAE,OAAO,WAAW,IAAI,EAAE,CAAC;AACtD;AACA,SAAS,gBAAgB,OAAO,MAAM;CACrC,IAAI,mBAAmB,KAAK,GAAG,OAAO,MAAM,OAAO;CACnD,OAAO,SAAS,GAAG,OAAO,EAAE,OAAO,WAAW,IAAI,EAAE,CAAC;AACtD;AACA,SAAS,eAAe,QAAQ,QAAQ;CACvC,MAAM,MAAM,CAAC;CACb,MAAM,YAAY,UAAU,MAAM;CAClC,KAAK,MAAM,CAAC,KAAK,SAAS,OAAO,QAAQ,MAAM,GAAG,IAAI,OAAO,cAAc,UAAU,MAAM,IAAI;CAC/F,OAAO;AACR;AACA,SAAS,YAAY,QAAQ,QAAQ;CACpC,IAAI,WAAW,KAAK,GAAG,OAAO,CAAC;CAC/B,MAAM,MAAM,CAAC;CACb,MAAM,YAAY,UAAU,MAAM;CAClC,MAAM,YAAY,UAAU,MAAM;CAClC,KAAK,MAAM,CAAC,KAAK,UAAU,OAAO,QAAQ,SAAS,GAAG;EACrD,MAAM,OAAO,UAAU;EACvB,IAAI,SAAS,KAAK,GAAG,IAAI,OAAO,gBAAgB,OAAO,IAAI;CAC5D;CACA,OAAO;AACR"}
@@ -1,4 +1,4 @@
1
- import { C as TraitExpression, D as isExpression, E as createRawSql, O as param, S as StorageColumnScopeField, T as codecOf, _ as RawSqlStatementBuilder, a as CodecValue, b as ScalarListExpression, c as RawAffectedCountQuery, d as RawRow, f as RawRowQuery, g as RawSqlInterpolation, h as RawSqlBuilder, i as CodecTypesBase, k as toExpr, l as RawCodecInferer, m as RawRowSpecEntry, n as BuildOperationSpec, o as Expression, p as RawRowSpec, r as CodecExpression, s as NoReservedRowColumn, t as AffectedCount, u as RawPlanContext, v as RawSqlStatementTag, w as buildOperation, x as ScopeField, y as RawSqlTag } from "./expression-6ld_ZQL6-fOuazzzm.mjs";
2
- import { t as ExpressionImpl } from "./expression-CieaNuRM-B1uVqxwd.mjs";
3
- import "./expression-D8HstQiB.mjs";
1
+ import { C as TraitExpression, D as isExpression, E as createRawSql, O as param, S as StorageColumnScopeField, T as codecOf, _ as RawSqlStatementBuilder, a as CodecValue, b as ScalarListExpression, c as RawAffectedCountQuery, d as RawRow, f as RawRowQuery, g as RawSqlInterpolation, h as RawSqlBuilder, i as CodecTypesBase, k as toExpr, l as RawCodecInferer, m as RawRowSpecEntry, n as BuildOperationSpec, o as Expression, p as RawRowSpec, r as CodecExpression, s as NoReservedRowColumn, t as AffectedCount, u as RawPlanContext, v as RawSqlStatementTag, w as buildOperation, x as ScopeField, y as RawSqlTag } from "./expression-C3F6gxZH-DrYNeDbh.mjs";
2
+ import { t as ExpressionImpl } from "./expression-BWRsWR6O-BrUVz0V2.mjs";
3
+ import "./expression-CQHy0GY7.mjs";
4
4
  export { AffectedCount, BuildOperationSpec, CodecExpression, CodecTypesBase, CodecValue, Expression, ExpressionImpl, NoReservedRowColumn, RawAffectedCountQuery, RawCodecInferer, RawPlanContext, RawRow, RawRowQuery, RawRowSpec, RawRowSpecEntry, RawSqlBuilder, RawSqlInterpolation, RawSqlStatementBuilder, RawSqlStatementTag, RawSqlTag, ScalarListExpression, ScopeField, StorageColumnScopeField, TraitExpression, buildOperation, codecOf, createRawSql, isExpression, param, toExpr };
@@ -1,2 +1,2 @@
1
- import { a as isExpression, i as createRawSql, n as buildOperation, o as param, r as codecOf, s as toExpr, t as ExpressionImpl } from "./expression-impl-B-XNINxr-BhN2sysZ.mjs";
1
+ import { a as isExpression, i as createRawSql, n as buildOperation, o as param, r as codecOf, s as toExpr, t as ExpressionImpl } from "./expression-impl-DtbmFnnz-CUKzBisY.mjs";
2
2
  export { ExpressionImpl, buildOperation, codecOf, createRawSql, isExpression, param, toExpr };
@@ -1,2 +1,2 @@
1
- import { a as Subquery, i as FunctionsContext, n as BuiltinFunctions, o as SubqueryMarker, r as Functions, s as createFunctions, t as BooleanCodecType } from "./functions-EW-RrRn3.mjs";
1
+ import { a as Subquery, i as FunctionsContext, n as BuiltinFunctions, o as SubqueryMarker, r as Functions, s as createFunctions, t as BooleanCodecType } from "./functions-CQrsCHCj.mjs";
2
2
  export { type BooleanCodecType, type BuiltinFunctions, type Functions, type FunctionsContext, type Subquery, type SubqueryMarker, createFunctions };
@@ -1,2 +1,2 @@
1
- import { t as createFunctions } from "./functions-CsOoN7I3.mjs";
1
+ import { t as createFunctions } from "./functions-D7lN5-JU.mjs";
2
2
  export { createFunctions };
@@ -1,3 +1,3 @@
1
- import { a as createIndexReferences, i as UniqueIndexNamesOfType, n as IndexReferencesInput, o as uniqueIndexNamesOfType, r as TableIndexReferences, t as IndexReference } from "./index-reference-4wsdeB7v-DCwswK-q.mjs";
2
- import "./index-reference-D8ewQRJr.mjs";
1
+ import { a as createIndexReferences, i as UniqueIndexNamesOfType, n as IndexReferencesInput, o as uniqueIndexNamesOfType, r as TableIndexReferences, t as IndexReference } from "./index-reference-YHvh6wAL-BAhOS7RC.mjs";
2
+ import "./index-reference-BVkoanQn.mjs";
3
3
  export { type IndexReference, type IndexReferencesInput, type TableIndexReferences, type UniqueIndexNamesOfType, createIndexReferences, uniqueIndexNamesOfType };
@@ -1,3 +1,3 @@
1
- import { a as SqlParamRefMutatorInternal, i as SqlParamRefMutator, n as ParamRefEntryUnion, o as createSqlParamRefMutator, r as ParamRefHandle, t as ParamRefEntry } from "./middleware-DHkW6pRr-DM6hd9iZ.mjs";
2
- import "./middleware-gqy3l13N.mjs";
1
+ import { a as SqlParamRefMutatorInternal, i as SqlParamRefMutator, n as ParamRefEntryUnion, o as createSqlParamRefMutator, r as ParamRefHandle, t as ParamRefEntry } from "./middleware-JfHt_Ax8-DKXbos9y.mjs";
2
+ import "./middleware-DYiOUIpn.mjs";
3
3
  export { type ParamRefEntry, type ParamRefEntryUnion, type ParamRefHandle, type SqlParamRefMutator, type SqlParamRefMutatorInternal, createSqlParamRefMutator };
@@ -1,2 +1,2 @@
1
- import { t as createSqlParamRefMutator } from "./middleware-yBAfiVWn-DZO0vCRQ.mjs";
1
+ import { t as createSqlParamRefMutator } from "./middleware-qY3R0WsS-8GWtk_Bf.mjs";
2
2
  export { createSqlParamRefMutator };
@@ -1,4 +1,4 @@
1
- import { n as SqlQueryPlan, r as planFromAst, t as Preparable } from "./plan-Cr4azjnG-CuL8FqXC.mjs";
2
- import { t as SqlExecutionPlan } from "./sql-execution-plan-3uxYjHyu-DLknM-Pj.mjs";
3
- import "./plan-Di6Gs2JD.mjs";
1
+ import { n as SqlQueryPlan, r as planFromAst, t as Preparable } from "./plan-CMqVpPq6-Bllx5Zpk.mjs";
2
+ import { t as SqlExecutionPlan } from "./sql-execution-plan-CN-FEwrR-CzRFoxKR.mjs";
3
+ import "./plan-Cg0h96GD.mjs";
4
4
  export { Preparable, type SqlExecutionPlan, SqlQueryPlan, planFromAst };
@@ -1,3 +1,3 @@
1
- import { a as SqlAggregateDescriptorRegistry, n as ExecutionContext, r as ResolvedSqlAggregate, t as CodecDescriptorRegistry } from "./query-lane-context-BCEoKy0_-CzmyavC9.mjs";
2
- import "./query-lane-context-VqH0mS9B.mjs";
1
+ import { a as SqlAggregateDescriptorRegistry, n as ExecutionContext, r as ResolvedSqlAggregate, t as CodecDescriptorRegistry } from "./query-lane-context-DLSXDsDK-pEiQmuYy.mjs";
2
+ import "./query-lane-context-Dqs5qCXx.mjs";
3
3
  export { CodecDescriptorRegistry, ExecutionContext, ResolvedSqlAggregate, SqlAggregateDescriptorRegistry };
@@ -1,3 +1,3 @@
1
- import { S as TablesOf, _ as SqlOrmPlan, a as ColumnsOf, b as TableKey, c as META, d as ModelMetadata, f as OperationTypeSignature, g as SqlBuilderOptions, h as RuntimeScope, i as ColumnResolutionContract, l as Meta, m as OperationsForTypeId, n as BuildParamsMap, o as ComputeColumnJsType, p as OperationTypes, r as CodecTypes, s as Expr, t as BuildOptions, u as ModelDef, v as SqlPlan, x as TableMetadata, y as TableDef } from "./types-TXO7x1BA-CYYIY8NI.mjs";
2
- import "./types-B9wSEUsV.mjs";
1
+ import { S as TablesOf, _ as SqlOrmPlan, a as ColumnsOf, b as TableKey, c as META, d as ModelMetadata, f as OperationTypeSignature, g as SqlBuilderOptions, h as RuntimeScope, i as ColumnResolutionContract, l as Meta, m as OperationsForTypeId, n as BuildParamsMap, o as ComputeColumnJsType, p as OperationTypes, r as CodecTypes, s as Expr, t as BuildOptions, u as ModelDef, v as SqlPlan, x as TableMetadata, y as TableDef } from "./types-NgqqVAo5-Be_uYGQx.mjs";
2
+ import "./types-CvmPNREJ.mjs";
3
3
  export { BuildOptions, BuildParamsMap, CodecTypes, ColumnResolutionContract, ColumnsOf, ComputeColumnJsType, Expr, META, Meta, ModelDef, ModelMetadata, OperationTypeSignature, OperationTypes, OperationsForTypeId, type RuntimeScope, SqlBuilderOptions, type SqlOrmPlan, SqlPlan, TableDef, TableKey, TableMetadata, TablesOf };
@@ -1,5 +1,5 @@
1
- import { m as MarkerReadResult } from "./ast-YEMe_B8z.mjs";
2
- import { n as ExecutionContext } from "./query-lane-context-BCEoKy0_-CzmyavC9.mjs";
3
- import { a as ParamSpec, c as PreparedExecution, i as DeclaredNullable, l as PreparedFor, n as Declaration, o as ParamsFromDeclaration, r as DeclaredCodecId, s as PrepareCallback, t as BindSiteParams, u as PreparedStatement } from "./transaction-state-DR3nKTmH-D29jmVE-.mjs";
4
- import { $ as RuntimeTelemetryEvent, A as lowerSqlPlan, B as ConnectionProvider, C as TransactionEnded, Ct as lazyActivitySource, D as delegatingRuntime, Dt as withTransactionMembers, E as createToSql, Et as withTransaction, F as ActivityRoute, G as PreparedStatementInternals, H as MarkerReader, I as ActivitySource, J as RuntimeFamilyAdapter, K as Runtime, L as ActivitySourceTarget, M as validateContractCodecMappings, N as ActivityExecuteOptions, O as extractCodecIds, P as ActivityHandle, Q as RuntimeQueryable, R as BoundPreparedStatement, S as TransactionActivity, St as findActivitySource, T as createAstCodecRegistry, Tt as startActivityOn, U as PreparedExecutionImpl, V as HashablePlan, W as PreparedStatementImpl, X as RuntimeOptions, Y as RuntimeMode, Z as RuntimeParameterizedCodecDescriptor, _ as RenderedSql, _t as createExecutionContext, a as ActivityParent, at as SqlRuntimeAdapterDescriptor, b as StatementEnded, bt as deriveParamMetadata, c as ClientActivityEnd, ct as SqlRuntimeDriverInstance, d as ClientActivityResult, dt as SqlRuntimeTargetDescriptor, et as RuntimeTransaction, f as DelegatingRuntime, ft as SqlStaticContributions, g as QueryInterceptResult, gt as activitySource, h as Log, ht as VerifyMarkerOption, i as ActivityInterceptResult, it as SqlMiddlewareContext, j as validateCodecRegistryCompleteness, k as lints, l as ClientActivityEnded, lt as SqlRuntimeExtensionDescriptor, m as LintsOptions, mt as TransactionContext, n as ActivityEndedResult, nt as SqlExecutionStackWithDriver, o as BudgetsOptions, ot as SqlRuntimeAdapterInstance, p as ExecuteInterceptResult, pt as TelemetryOutcome, q as RuntimeConnection, r as ActivityFinalizedResult, rt as SqlMiddleware, s as ClientActivity, st as SqlRuntimeBase, t as Activity, tt as SqlExecutionStack, u as ClientActivityKind, ut as SqlRuntimeExtensionInstance, v as StartActivity, vt as createSqlExecutionStack, w as budgets, wt as planContentHashOn, x as ToSqlMember, xt as encodeParamsWithMetadata, y as StatementActivity, yt as delegatingActivitySource, z as CloseRefusal } from "./index-BvH9bNl_.mjs";
1
+ import { m as MarkerReadResult } from "./ast-DcphKbq9.mjs";
2
+ import { n as ExecutionContext } from "./query-lane-context-DLSXDsDK-pEiQmuYy.mjs";
3
+ import { a as ParamSpec, c as PreparedExecution, i as DeclaredNullable, l as PreparedFor, n as Declaration, o as ParamsFromDeclaration, r as DeclaredCodecId, s as PrepareCallback, t as BindSiteParams, u as PreparedStatement } from "./transaction-state-DR3nKTmH-BIKF_fP6.mjs";
4
+ import { $ as RuntimeTelemetryEvent, A as lowerSqlPlan, B as ConnectionProvider, C as TransactionEnded, Ct as lazyActivitySource, D as delegatingRuntime, Dt as withTransactionMembers, E as createToSql, Et as withTransaction, F as ActivityRoute, G as PreparedStatementInternals, H as MarkerReader, I as ActivitySource, J as RuntimeFamilyAdapter, K as Runtime, L as ActivitySourceTarget, M as validateContractCodecMappings, N as ActivityExecuteOptions, O as extractCodecIds, P as ActivityHandle, Q as RuntimeQueryable, R as BoundPreparedStatement, S as TransactionActivity, St as findActivitySource, T as createAstCodecRegistry, Tt as startActivityOn, U as PreparedExecutionImpl, V as HashablePlan, W as PreparedStatementImpl, X as RuntimeOptions, Y as RuntimeMode, Z as RuntimeParameterizedCodecDescriptor, _ as RenderedSql, _t as createExecutionContext, a as ActivityParent, at as SqlRuntimeAdapterDescriptor, b as StatementEnded, bt as deriveParamMetadata, c as ClientActivityEnd, ct as SqlRuntimeDriverInstance, d as ClientActivityResult, dt as SqlRuntimeTargetDescriptor, et as RuntimeTransaction, f as DelegatingRuntime, ft as SqlStaticContributions, g as QueryInterceptResult, gt as activitySource, h as Log, ht as VerifyMarkerOption, i as ActivityInterceptResult, it as SqlMiddlewareContext, j as validateCodecRegistryCompleteness, k as lints, l as ClientActivityEnded, lt as SqlRuntimeExtensionDescriptor, m as LintsOptions, mt as TransactionContext, n as ActivityEndedResult, nt as SqlExecutionStackWithDriver, o as BudgetsOptions, ot as SqlRuntimeAdapterInstance, p as ExecuteInterceptResult, pt as TelemetryOutcome, q as RuntimeConnection, r as ActivityFinalizedResult, rt as SqlMiddleware, s as ClientActivity, st as SqlRuntimeBase, t as Activity, tt as SqlExecutionStack, u as ClientActivityKind, ut as SqlRuntimeExtensionInstance, v as StartActivity, vt as createSqlExecutionStack, w as budgets, wt as planContentHashOn, x as ToSqlMember, xt as encodeParamsWithMetadata, y as StatementActivity, yt as delegatingActivitySource, z as CloseRefusal } from "./index-0qfR8_db.mjs";
5
5
  export { type Activity, type ActivityEndedResult, type ActivityExecuteOptions, type ActivityFinalizedResult, type ActivityHandle, type ActivityInterceptResult, type ActivityParent, type ActivityRoute, type ActivitySource, type ActivitySourceTarget, type BindSiteParams, type BoundPreparedStatement, type BudgetsOptions, type ClientActivity, type ClientActivityEnd, type ClientActivityEnded, type ClientActivityKind, type ClientActivityResult, type CloseRefusal, type ConnectionProvider, type Declaration, type DeclaredCodecId, type DeclaredNullable, type DelegatingRuntime, type ExecuteInterceptResult, type ExecutionContext, type HashablePlan, type LintsOptions, type Log, type MarkerReadResult, type MarkerReader, type ParamSpec, type ParamsFromDeclaration, type PrepareCallback, type PreparedExecution, PreparedExecutionImpl, type PreparedFor, type PreparedStatement, PreparedStatementImpl, type PreparedStatementInternals, type QueryInterceptResult, type RenderedSql, type Runtime, type RuntimeConnection, type RuntimeFamilyAdapter, type RuntimeMode, type RuntimeOptions, type RuntimeParameterizedCodecDescriptor, type RuntimeQueryable, type RuntimeTelemetryEvent, type RuntimeTransaction, type SqlExecutionStack, type SqlExecutionStackWithDriver, type SqlMiddleware, type SqlMiddlewareContext, type SqlRuntimeAdapterDescriptor, type SqlRuntimeAdapterInstance, SqlRuntimeBase, type SqlRuntimeDriverInstance, type SqlRuntimeExtensionDescriptor, type SqlRuntimeExtensionInstance, type SqlRuntimeTargetDescriptor, type SqlStaticContributions, type StartActivity, type StatementActivity, type StatementEnded, type TelemetryOutcome, type ToSqlMember, type TransactionActivity, type TransactionContext, type TransactionEnded, type VerifyMarkerOption, activitySource, budgets, createAstCodecRegistry, createExecutionContext, createSqlExecutionStack, createToSql, delegatingActivitySource, delegatingRuntime, deriveParamMetadata, encodeParamsWithMetadata, extractCodecIds, findActivitySource, lazyActivitySource, lints, lowerSqlPlan, planContentHashOn, startActivityOn, validateCodecRegistryCompleteness, validateContractCodecMappings, withTransaction, withTransactionMembers };
package/dist/runtime.mjs CHANGED
@@ -1,2 +1,2 @@
1
- import { C as withTransaction, S as validateContractCodecMappings, _ as lints, a as budgets, b as startActivityOn, c as createSqlExecutionStack, d as delegatingRuntime, f as deriveParamMetadata, g as lazyActivitySource, h as findActivitySource, i as activitySource, l as createToSql, m as extractCodecIds, n as PreparedStatementImpl, o as createAstCodecRegistry, p as encodeParamsWithMetadata, r as SqlRuntimeBase, s as createExecutionContext, t as PreparedExecutionImpl, u as delegatingActivitySource, v as lowerSqlPlan, w as withTransactionMembers, x as validateCodecRegistryCompleteness, y as planContentHashOn } from "./exports-CGzFaakG-DWGJbXKM.mjs";
1
+ import { C as withTransaction, S as validateContractCodecMappings, _ as lints, a as budgets, b as startActivityOn, c as createSqlExecutionStack, d as delegatingRuntime, f as deriveParamMetadata, g as lazyActivitySource, h as findActivitySource, i as activitySource, l as createToSql, m as extractCodecIds, n as PreparedStatementImpl, o as createAstCodecRegistry, p as encodeParamsWithMetadata, r as SqlRuntimeBase, s as createExecutionContext, t as PreparedExecutionImpl, u as delegatingActivitySource, v as lowerSqlPlan, w as withTransactionMembers, x as validateCodecRegistryCompleteness, y as planContentHashOn } from "./exports-CGzFaakG-Dddm8emA.mjs";
2
2
  export { PreparedExecutionImpl, PreparedStatementImpl, SqlRuntimeBase, activitySource, budgets, createAstCodecRegistry, createExecutionContext, createSqlExecutionStack, createToSql, delegatingActivitySource, delegatingRuntime, deriveParamMetadata, encodeParamsWithMetadata, extractCodecIds, findActivitySource, lazyActivitySource, lints, lowerSqlPlan, planContentHashOn, startActivityOn, validateCodecRegistryCompleteness, validateContractCodecMappings, withTransaction, withTransactionMembers };
@@ -1,2 +1,2 @@
1
- import { S as transactionStart, _ as createTransactionStart, b as settlementOf, d as PreparedStatementExecuteTarget, f as PreparedStatementQueryTarget, g as TransactionStartTarget, h as TransactionStart, m as TransactionSettlementState, p as SettledTransactionTarget, v as preparedStatementExecute, x as transactionSettlement, y as preparedStatementQuery } from "./transaction-state-DR3nKTmH-D29jmVE-.mjs";
1
+ import { S as transactionStart, _ as createTransactionStart, b as settlementOf, d as PreparedStatementExecuteTarget, f as PreparedStatementQueryTarget, g as TransactionStartTarget, h as TransactionStart, m as TransactionSettlementState, p as SettledTransactionTarget, v as preparedStatementExecute, x as transactionSettlement, y as preparedStatementQuery } from "./transaction-state-DR3nKTmH-BIKF_fP6.mjs";
2
2
  export { type PreparedStatementExecuteTarget, type PreparedStatementQueryTarget, type SettledTransactionTarget, type TransactionSettlementState, type TransactionStart, type TransactionStartTarget, createTransactionStart, preparedStatementExecute, preparedStatementQuery, settlementOf, transactionSettlement, transactionStart };
@@ -1,6 +1,6 @@
1
- import { h as AnyQueryAst } from "./types-DriMIMNQ-BkbsW7w3.mjs";
1
+ import { h as AnyQueryAst } from "./types-ijhejJhK-EdACW3bY.mjs";
2
2
  import { ExecutionPlan } from "@prisma/orm-framework/components/runtime";
3
- //#region ../../../2-sql-family/4-lanes/relational-core/dist/sql-execution-plan-3uxYjHyu.d.mts
3
+ //#region ../../../2-sql-family/4-lanes/relational-core/dist/sql-execution-plan-CN-FEwrR.d.mts
4
4
  //#region src/sql-execution-plan.d.ts
5
5
  /**
6
6
  * SQL-domain execution plan: a query lowered to the wire-level shape that a
@@ -28,4 +28,4 @@ interface SqlExecutionPlan<Row = unknown> extends ExecutionPlan<Row> {
28
28
  }
29
29
  //#endregion
30
30
  export { SqlExecutionPlan as t };
31
- //# sourceMappingURL=sql-execution-plan-3uxYjHyu-DLknM-Pj.d.mts.map
31
+ //# sourceMappingURL=sql-execution-plan-CN-FEwrR-CzRFoxKR.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sql-execution-plan-CN-FEwrR-CzRFoxKR.d.mts","names":[],"sources":["../../../../2-sql-family/4-lanes/relational-core/dist/sql-execution-plan-CN-FEwrR.d.mts"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;UAsBU,iBAAiB,uBAAuB,cAAc;WACrD;WACA;WACA,KAAK"}
@@ -1,12 +1,12 @@
1
- import { h as AnyQueryAst, ht as LoweredParam } from "./types-DriMIMNQ-BkbsW7w3.mjs";
1
+ import { h as AnyQueryAst, ht as LoweredParam } from "./types-ijhejJhK-EdACW3bY.mjs";
2
2
  import { l as SqlStatementStats } from "./driver-types-DRsYeq3j-BimeCnUk.mjs";
3
- import { n as SqlQueryPlan } from "./plan-Cr4azjnG-CuL8FqXC.mjs";
4
- import { a as CodecValue, i as CodecTypesBase, o as Expression, t as AffectedCount } from "./expression-6ld_ZQL6-fOuazzzm.mjs";
5
- import "./expression-D8HstQiB.mjs";
6
- import "./ast-YEMe_B8z.mjs";
7
- import "./plan-Di6Gs2JD.mjs";
8
- import { h as RuntimeScope } from "./types-TXO7x1BA-CYYIY8NI.mjs";
9
- import "./types-B9wSEUsV.mjs";
3
+ import { n as SqlQueryPlan } from "./plan-CMqVpPq6-Bllx5Zpk.mjs";
4
+ import { a as CodecValue, i as CodecTypesBase, o as Expression, t as AffectedCount } from "./expression-C3F6gxZH-DrYNeDbh.mjs";
5
+ import "./expression-CQHy0GY7.mjs";
6
+ import "./ast-DcphKbq9.mjs";
7
+ import "./plan-Cg0h96GD.mjs";
8
+ import { h as RuntimeScope } from "./types-NgqqVAo5-Be_uYGQx.mjs";
9
+ import "./types-CvmPNREJ.mjs";
10
10
  import { JsonValue, PlanMeta } from "@prisma/orm-framework/contract/types";
11
11
  import { AsyncIterableResult, RuntimeExecuteOptions } from "@prisma/orm-framework/components/runtime";
12
12
  //#region ../../../2-sql-family/5-runtime/dist/transaction-state-DR3nKTmH.d.mts
@@ -112,4 +112,4 @@ interface TransactionStartTarget {
112
112
  declare function createTransactionStart(): TransactionStart;
113
113
  //#endregion
114
114
  export { transactionStart as S, createTransactionStart as _, ParamSpec as a, settlementOf as b, PreparedExecution as c, PreparedStatementExecuteTarget as d, PreparedStatementQueryTarget as f, TransactionStartTarget as g, TransactionStart as h, DeclaredNullable as i, PreparedFor as l, TransactionSettlementState as m, Declaration as n, ParamsFromDeclaration as o, SettledTransactionTarget as p, DeclaredCodecId as r, PrepareCallback as s, BindSiteParams as t, PreparedStatement as u, preparedStatementExecute as v, transactionSettlement as x, preparedStatementQuery as y };
115
- //# sourceMappingURL=transaction-state-DR3nKTmH-D29jmVE-.d.mts.map
115
+ //# sourceMappingURL=transaction-state-DR3nKTmH-BIKF_f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Q;;;;cAIvH;UACJ,qCAAqC;GAC5C,wBAAwB,QAAQ,KAAK,WAAW,kBAAkB,QAAQ,MAAM,QAAQ,QAAQ,UAAU,wBAAwB,oBAAoB;;;;;;;cAO3I;UACJ;;WAEC;;WAEA;;EAET,gBAAgB;;UAER;YACE,wBAAwB;;iBAEnB,aAAa,sBAAsB;;;;cAItC;UACJ;EACR;;UAEQ;YACE,mBAAmB;;iBAEd,0BAA0B"}
@@ -1,7 +1,7 @@
1
1
  import { structuredError } from "@prisma/orm-framework/utils/structured-error";
2
2
  import { ifDefined } from "@prisma/orm-framework/utils/defined";
3
3
  import { InternalError } from "@prisma/orm-framework/utils/internal-error";
4
- //#region ../../../2-sql-family/4-lanes/relational-core/dist/types-NTQsD2MS.mjs
4
+ //#region ../../../2-sql-family/4-lanes/relational-core/dist/types-BkTuhW3Z.mjs
5
5
  function isJsonArray(value) {
6
6
  return Array.isArray(value);
7
7
  }
@@ -1374,9 +1374,7 @@ var InsertAst = class InsertAst extends QueryAst {
1374
1374
  const refs = [];
1375
1375
  for (const row of this.rows) for (const value of Object.values(row)) if (value.kind === "param-ref" || value.kind === "prepared-param-ref") refs.push(value);
1376
1376
  else if (value.kind === "raw-expr") refs.push(...value.collectParamRefs());
1377
- if (this.onConflict?.action.kind === "do-update-set") {
1378
- for (const value of Object.values(this.onConflict.action.set)) if (value.kind === "param-ref" || value.kind === "prepared-param-ref") refs.push(value);
1379
- }
1377
+ if (this.onConflict?.action.kind === "do-update-set") for (const value of Object.values(this.onConflict.action.set)) refs.push(...value.collectParamRefs());
1380
1378
  for (const item of this.returning ?? []) if (item.expr.kind !== "literal") refs.push(...item.expr.collectParamRefs());
1381
1379
  return refs;
1382
1380
  }
@@ -1561,4 +1559,4 @@ function isWhereExpr(value) {
1561
1559
  //#endregion
1562
1560
  export { ParamRef as A, aggregateFnNames as B, LiteralExpr as C, OperationExpr as D, NullCheckExpr as E, SelectAst as F, isOrderByNulls as G, frozenCodecRef as H, SubqueryExpr as I, queryAstKinds as J, isQueryAst as K, TableSource as L, ProjectionItem as M, RawExpr as N, OrExpr as O, RawQueryAst as P, UpdateAst as R, ListExpression as S, NotExpr as T, isAggregateFn as U, checkLimitOffset as V, isOrderByDirection as W, whereExprKinds as Y, InsertAst as _, CastExpr as a, JsonArrayAggExpr as b, DeleteAst as c, DoUpdateSetConflictAction as d, EqColJoinOn as f, IdentifierRef as g, FunctionSource as h, CaseExpr as i, PreparedParamRef as j, OrderByItem as k, DerivedTableSource as l, FunctionCallExpr as m, AndExpr as n, ColumnRef as o, ExistsExpr as p, isWhereExpr as q, BinaryExpr as r, DefaultValueExpr as s, AggregateExpr as t, DoNothingConflictAction as u, InsertOnConflict as v, LockingClause as w, JsonObjectExpr as x, JoinAst as y, WindowFuncExpr as z };
1563
1561
 
1564
- //# sourceMappingURL=types-NTQsD2MS-xcLtvKO9.mjs.map
1562
+ //# sourceMappingURL=types-BkTuhW3Z-BJfTjcxS.mjs.map