@warlock.js/cascade 5.31.0 → 5.32.0

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 (230) hide show
  1. package/CHANGELOG.md +11 -0
  2. package/cjs/index.cjs +104 -85
  3. package/cjs/index.cjs.map +1 -1
  4. package/esm/context/database-data-source-context.d.mts +2 -3
  5. package/esm/context/database-data-source-context.d.mts.map +1 -1
  6. package/esm/context/database-transaction-context.d.mts +2 -3
  7. package/esm/context/database-transaction-context.d.mts.map +1 -1
  8. package/esm/contracts/database-driver.contract.d.mts +56 -36
  9. package/esm/contracts/database-driver.contract.d.mts.map +1 -1
  10. package/esm/contracts/database-id-generator.contract.d.mts +7 -5
  11. package/esm/contracts/database-id-generator.contract.d.mts.map +1 -1
  12. package/esm/contracts/database-remover.contract.d.mts +3 -5
  13. package/esm/contracts/database-remover.contract.d.mts.map +1 -1
  14. package/esm/contracts/database-restorer.contract.d.mts +6 -6
  15. package/esm/contracts/database-restorer.contract.d.mts.map +1 -1
  16. package/esm/contracts/database-writer.contract.d.mts +4 -6
  17. package/esm/contracts/database-writer.contract.d.mts.map +1 -1
  18. package/esm/contracts/driver-blueprint.contract.d.mts +2 -3
  19. package/esm/contracts/driver-blueprint.contract.d.mts.map +1 -1
  20. package/esm/contracts/index.d.mts +2 -1
  21. package/esm/contracts/migration-driver.contract.d.mts +101 -53
  22. package/esm/contracts/migration-driver.contract.d.mts.map +1 -1
  23. package/esm/contracts/query-builder.contract.d.mts +51 -33
  24. package/esm/contracts/query-builder.contract.d.mts.map +1 -1
  25. package/esm/contracts/sync-adapter.contract.d.mts +25 -14
  26. package/esm/contracts/sync-adapter.contract.d.mts.map +1 -1
  27. package/esm/data-source/data-source-registry.d.mts +4 -5
  28. package/esm/data-source/data-source-registry.d.mts.map +1 -1
  29. package/esm/data-source/data-source.d.mts +8 -5
  30. package/esm/data-source/data-source.d.mts.map +1 -1
  31. package/esm/database-dirty-tracker.d.mts +2 -2
  32. package/esm/database-dirty-tracker.d.mts.map +1 -1
  33. package/esm/database-dirty-tracker.mjs +3 -2
  34. package/esm/database-dirty-tracker.mjs.map +1 -1
  35. package/esm/drivers/mongodb/mongodb-driver.d.mts +3 -4
  36. package/esm/drivers/mongodb/mongodb-driver.d.mts.map +1 -1
  37. package/esm/drivers/mongodb/mongodb-id-generator.d.mts +2 -3
  38. package/esm/drivers/mongodb/mongodb-id-generator.d.mts.map +1 -1
  39. package/esm/drivers/mongodb/mongodb-migration-driver.d.mts +1 -3
  40. package/esm/drivers/mongodb/mongodb-migration-driver.d.mts.map +1 -1
  41. package/esm/drivers/mongodb/mongodb-query-builder.d.mts +2 -3
  42. package/esm/drivers/mongodb/mongodb-query-builder.d.mts.map +1 -1
  43. package/esm/drivers/mongodb/mongodb-query-builder.mjs +8 -5
  44. package/esm/drivers/mongodb/mongodb-query-builder.mjs.map +1 -1
  45. package/esm/drivers/mongodb/mongodb-query-operations.d.mts +1 -3
  46. package/esm/drivers/mongodb/mongodb-query-operations.d.mts.map +1 -1
  47. package/esm/drivers/mongodb/mongodb-query-parser.d.mts +7 -6
  48. package/esm/drivers/mongodb/mongodb-query-parser.d.mts.map +1 -1
  49. package/esm/drivers/mongodb/mongodb-query-parser.mjs +2 -6
  50. package/esm/drivers/mongodb/mongodb-query-parser.mjs.map +1 -1
  51. package/esm/drivers/mongodb/mongodb-sync-adapter.d.mts +1 -3
  52. package/esm/drivers/mongodb/mongodb-sync-adapter.d.mts.map +1 -1
  53. package/esm/drivers/mongodb/types.d.mts +11 -9
  54. package/esm/drivers/mongodb/types.d.mts.map +1 -1
  55. package/esm/drivers/postgres/index.d.mts +2 -1
  56. package/esm/drivers/postgres/index.mjs +1 -1
  57. package/esm/drivers/postgres/naming.mjs +1 -1
  58. package/esm/drivers/postgres/postgres-blueprint.d.mts +1 -3
  59. package/esm/drivers/postgres/postgres-blueprint.d.mts.map +1 -1
  60. package/esm/drivers/postgres/postgres-dialect.d.mts +4 -6
  61. package/esm/drivers/postgres/postgres-dialect.d.mts.map +1 -1
  62. package/esm/drivers/postgres/postgres-driver.d.mts +4 -5
  63. package/esm/drivers/postgres/postgres-driver.d.mts.map +1 -1
  64. package/esm/drivers/postgres/postgres-migration-driver.d.mts +1 -3
  65. package/esm/drivers/postgres/postgres-migration-driver.d.mts.map +1 -1
  66. package/esm/drivers/postgres/postgres-migration-driver.mjs +13 -10
  67. package/esm/drivers/postgres/postgres-migration-driver.mjs.map +1 -1
  68. package/esm/drivers/postgres/postgres-query-builder.d.mts +4 -4
  69. package/esm/drivers/postgres/postgres-query-builder.d.mts.map +1 -1
  70. package/esm/drivers/postgres/postgres-query-builder.mjs +14 -10
  71. package/esm/drivers/postgres/postgres-query-builder.mjs.map +1 -1
  72. package/esm/drivers/postgres/postgres-query-parser.d.mts +16 -11
  73. package/esm/drivers/postgres/postgres-query-parser.d.mts.map +1 -1
  74. package/esm/drivers/postgres/postgres-query-parser.mjs +1 -1
  75. package/esm/drivers/postgres/postgres-query-parser.mjs.map +1 -1
  76. package/esm/drivers/postgres/postgres-sql-serializer.mjs +13 -10
  77. package/esm/drivers/postgres/postgres-sql-serializer.mjs.map +1 -1
  78. package/esm/drivers/postgres/postgres-ttl-purge.mjs +1 -1
  79. package/esm/drivers/postgres/postgres-type-converters.mjs +2 -2
  80. package/esm/drivers/postgres/postgres-type-converters.mjs.map +1 -1
  81. package/esm/drivers/postgres/postgres-update-validator.mjs +1 -1
  82. package/esm/drivers/postgres/postgres-update-validator.mjs.map +1 -1
  83. package/esm/drivers/postgres/types.d.mts +87 -45
  84. package/esm/drivers/postgres/types.d.mts.map +1 -1
  85. package/esm/drivers/sql/sql-dialect.contract.d.mts +1 -3
  86. package/esm/drivers/sql/sql-dialect.contract.d.mts.map +1 -1
  87. package/esm/drivers/sql/sql-types.d.mts +113 -59
  88. package/esm/drivers/sql/sql-types.d.mts.map +1 -1
  89. package/esm/errors/missing-data-source.error.d.mts +1 -2
  90. package/esm/errors/missing-data-source.error.d.mts.map +1 -1
  91. package/esm/errors/transaction-rollback.error.d.mts +1 -2
  92. package/esm/errors/transaction-rollback.error.d.mts.map +1 -1
  93. package/esm/errors/undefined-where-value.error.d.mts +1 -2
  94. package/esm/errors/undefined-where-value.error.d.mts.map +1 -1
  95. package/esm/errors/unsafe-filter.error.d.mts +1 -2
  96. package/esm/errors/unsafe-filter.error.d.mts.map +1 -1
  97. package/esm/errors/unsafe-raw-expression.error.d.mts +1 -2
  98. package/esm/errors/unsafe-raw-expression.error.d.mts.map +1 -1
  99. package/esm/errors/unsupported-lean-operation.error.d.mts +1 -2
  100. package/esm/errors/unsupported-lean-operation.error.d.mts.map +1 -1
  101. package/esm/errors/unsupported-lock-for-update.error.d.mts +1 -2
  102. package/esm/errors/unsupported-lock-for-update.error.d.mts.map +1 -1
  103. package/esm/errors/unsupported-query-operation.error.d.mts +1 -2
  104. package/esm/errors/unsupported-query-operation.error.d.mts.map +1 -1
  105. package/esm/errors/unsupported-update-operation.error.d.mts +1 -2
  106. package/esm/errors/unsupported-update-operation.error.d.mts.map +1 -1
  107. package/esm/events/model-events.d.mts +8 -6
  108. package/esm/events/model-events.d.mts.map +1 -1
  109. package/esm/expressions/aggregate-expressions.d.mts +7 -7
  110. package/esm/expressions/aggregate-expressions.d.mts.map +1 -1
  111. package/esm/expressions/column-expressions.d.mts +11 -11
  112. package/esm/expressions/column-expressions.d.mts.map +1 -1
  113. package/esm/index.d.mts +7 -2
  114. package/esm/index.mjs +1 -1
  115. package/esm/migration/column-builder.d.mts +2 -3
  116. package/esm/migration/column-builder.d.mts.map +1 -1
  117. package/esm/migration/column-helpers.d.mts +49 -50
  118. package/esm/migration/column-helpers.d.mts.map +1 -1
  119. package/esm/migration/column-helpers.mjs +1 -1
  120. package/esm/migration/foreign-key-builder.d.mts +2 -3
  121. package/esm/migration/foreign-key-builder.d.mts.map +1 -1
  122. package/esm/migration/index.d.mts +3 -2
  123. package/esm/migration/index.mjs +2 -2
  124. package/esm/migration/migration-runner.d.mts +7 -6
  125. package/esm/migration/migration-runner.d.mts.map +1 -1
  126. package/esm/migration/migration-runner.mjs +15 -11
  127. package/esm/migration/migration-runner.mjs.map +1 -1
  128. package/esm/migration/migration.d.mts +50 -32
  129. package/esm/migration/migration.d.mts.map +1 -1
  130. package/esm/migration/migration.mjs +1 -3
  131. package/esm/migration/migration.mjs.map +1 -1
  132. package/esm/migration/sql-serializer.d.mts +1 -3
  133. package/esm/migration/sql-serializer.d.mts.map +1 -1
  134. package/esm/migration/types.d.mts +7 -7
  135. package/esm/migration/types.d.mts.map +1 -1
  136. package/esm/model/methods/accessor-methods.mjs +1 -1
  137. package/esm/model/methods/accessor-methods.mjs.map +1 -1
  138. package/esm/model/methods/meta-methods.mjs +4 -2
  139. package/esm/model/methods/meta-methods.mjs.map +1 -1
  140. package/esm/model/methods/query-methods.mjs +1 -1
  141. package/esm/model/methods/write-methods.d.mts +3 -2
  142. package/esm/model/methods/write-methods.d.mts.map +1 -1
  143. package/esm/model/methods/write-methods.mjs +5 -2
  144. package/esm/model/methods/write-methods.mjs.map +1 -1
  145. package/esm/model/model.d.mts +9 -9
  146. package/esm/model/model.d.mts.map +1 -1
  147. package/esm/model/model.types.d.mts +7 -7
  148. package/esm/model/model.types.d.mts.map +1 -1
  149. package/esm/model/register-model.d.mts +13 -15
  150. package/esm/model/register-model.d.mts.map +1 -1
  151. package/esm/model/relation-decorators.d.mts +6 -8
  152. package/esm/model/relation-decorators.d.mts.map +1 -1
  153. package/esm/operations/database.d.mts +13 -8
  154. package/esm/operations/database.d.mts.map +1 -1
  155. package/esm/operations/index.d.mts +2 -1
  156. package/esm/operations/index.mjs +1 -1
  157. package/esm/operations/migrations.d.mts +18 -14
  158. package/esm/operations/migrations.d.mts.map +1 -1
  159. package/esm/query-builder/query-builder.d.mts +2 -4
  160. package/esm/query-builder/query-builder.d.mts.map +1 -1
  161. package/esm/query-builder/query-builder.mjs +12 -11
  162. package/esm/query-builder/query-builder.mjs.map +1 -1
  163. package/esm/relations/index.d.mts +2 -1
  164. package/esm/relations/index.mjs +1 -1
  165. package/esm/relations/key-conventions.mjs +2 -1
  166. package/esm/relations/key-conventions.mjs.map +1 -1
  167. package/esm/relations/pivot-operations.d.mts +3 -5
  168. package/esm/relations/pivot-operations.d.mts.map +1 -1
  169. package/esm/relations/relation-hydrator.d.mts +3 -5
  170. package/esm/relations/relation-hydrator.d.mts.map +1 -1
  171. package/esm/relations/relation-loader.d.mts +2 -4
  172. package/esm/relations/relation-loader.d.mts.map +1 -1
  173. package/esm/relations/relation-loader.mjs +4 -5
  174. package/esm/relations/relation-loader.mjs.map +1 -1
  175. package/esm/relations/types.d.mts +14 -15
  176. package/esm/relations/types.d.mts.map +1 -1
  177. package/esm/remover/database-remover.d.mts +1 -3
  178. package/esm/remover/database-remover.d.mts.map +1 -1
  179. package/esm/restorer/database-restorer.d.mts +1 -3
  180. package/esm/restorer/database-restorer.d.mts.map +1 -1
  181. package/esm/restorer/database-restorer.mjs +2 -1
  182. package/esm/restorer/database-restorer.mjs.map +1 -1
  183. package/esm/sql-database-dirty-tracker.d.mts +1 -3
  184. package/esm/sql-database-dirty-tracker.d.mts.map +1 -1
  185. package/esm/sync/model-events.mjs +1 -1
  186. package/esm/sync/model-sync-operation.d.mts +2 -4
  187. package/esm/sync/model-sync-operation.d.mts.map +1 -1
  188. package/esm/sync/model-sync.d.mts +3 -4
  189. package/esm/sync/model-sync.d.mts.map +1 -1
  190. package/esm/sync/sync-context.d.mts +2 -4
  191. package/esm/sync/sync-context.d.mts.map +1 -1
  192. package/esm/sync/sync-fanout.mjs +1 -1
  193. package/esm/sync/sync-manager.d.mts +2 -4
  194. package/esm/sync/sync-manager.d.mts.map +1 -1
  195. package/esm/sync/types.d.mts +121 -64
  196. package/esm/sync/types.d.mts.map +1 -1
  197. package/esm/transactions/after-commit.d.mts +2 -2
  198. package/esm/transactions/after-commit.d.mts.map +1 -1
  199. package/esm/types.d.mts +7 -8
  200. package/esm/types.d.mts.map +1 -1
  201. package/esm/utils/connect-to-database.d.mts +7 -8
  202. package/esm/utils/connect-to-database.d.mts.map +1 -1
  203. package/esm/utils/database-writer.utils.d.mts +3 -4
  204. package/esm/utils/database-writer.utils.d.mts.map +1 -1
  205. package/esm/utils/define-model.d.mts +3 -5
  206. package/esm/utils/define-model.d.mts.map +1 -1
  207. package/esm/utils/escape-regex.d.mts +3 -4
  208. package/esm/utils/escape-regex.d.mts.map +1 -1
  209. package/esm/utils/once-connected.d.mts +2 -4
  210. package/esm/utils/once-connected.d.mts.map +1 -1
  211. package/esm/utils/sanitize-filter.d.mts +3 -4
  212. package/esm/utils/sanitize-filter.d.mts.map +1 -1
  213. package/esm/validation/database-seal-plugins.d.mts +2 -1
  214. package/esm/validation/database-writer-validation-error.d.mts +1 -3
  215. package/esm/validation/database-writer-validation-error.d.mts.map +1 -1
  216. package/esm/validation/index.d.mts +3 -1
  217. package/esm/validation/index.mjs +1 -1
  218. package/esm/validation/plugins/database-rules-plugin.d.mts +2 -3
  219. package/esm/validation/plugins/database-rules-plugin.d.mts.map +1 -1
  220. package/esm/validation/plugins/embed-validator-plugin.d.mts +4 -3
  221. package/esm/validation/plugins/embed-validator-plugin.d.mts.map +1 -1
  222. package/esm/validation/types.d.mts +14 -10
  223. package/esm/validation/types.d.mts.map +1 -1
  224. package/esm/validation/validators/embed-validator.d.mts +2 -3
  225. package/esm/validation/validators/embed-validator.d.mts.map +1 -1
  226. package/esm/writer/database-writer.d.mts +1 -3
  227. package/esm/writer/database-writer.d.mts.map +1 -1
  228. package/esm/writer/database-writer.mjs +1 -1
  229. package/esm/writer/database-writer.mjs.map +1 -1
  230. package/package.json +5 -5
@@ -39,17 +39,17 @@
39
39
  * ```
40
40
  */
41
41
  /** Discriminator tag identifying a node in the column-expression tree. */
42
- type ColumnExpressionType = "column" | "literal" | "add" | "subtract" | "multiply" | "divide" | "raw";
42
+ export type ColumnExpressionType = "column" | "literal" | "add" | "subtract" | "multiply" | "divide" | "raw";
43
43
  /**
44
44
  * A reference to a column/field. The driver is responsible for quoting the
45
45
  * name (SQL) or prefixing it with `$` (Mongo) — it is never interpolated raw.
46
46
  */
47
- type ColumnRefExpression = {
47
+ export type ColumnRefExpression = {
48
48
  readonly __expr: "column";
49
49
  readonly column: string;
50
50
  };
51
51
  /** A scalar literal value embedded directly in the expression. */
52
- type LiteralExpression = {
52
+ export type LiteralExpression = {
53
53
  readonly __expr: "literal";
54
54
  readonly value: number | boolean;
55
55
  };
@@ -59,7 +59,7 @@ type LiteralExpression = {
59
59
  * `add` / `multiply` are variadic; `subtract` / `divide` take exactly two
60
60
  * operands (left, right) since they are not associative.
61
61
  */
62
- type ArithmeticExpression = {
62
+ export type ArithmeticExpression = {
63
63
  readonly __expr: "add" | "subtract" | "multiply" | "divide";
64
64
  readonly operands: ColumnExpression[];
65
65
  };
@@ -68,7 +68,7 @@ type ArithmeticExpression = {
68
68
  * generated SQL — callers MUST NOT build it from untrusted input. This is the
69
69
  * documented boundary for anything the typed nodes above don't cover.
70
70
  */
71
- type RawColumnExpression = {
71
+ export type RawColumnExpression = {
72
72
  readonly __expr: "raw";
73
73
  readonly expression: string;
74
74
  };
@@ -77,16 +77,16 @@ type RawColumnExpression = {
77
77
  * valid expression input wherever this type is accepted — it is interpreted as
78
78
  * a column reference.
79
79
  */
80
- type ColumnExpression = ColumnRefExpression | LiteralExpression | ArithmeticExpression | RawColumnExpression;
80
+ export type ColumnExpression = ColumnRefExpression | LiteralExpression | ArithmeticExpression | RawColumnExpression;
81
81
  /** Input accepted by expression-aware helpers: a typed node or a column-name string. */
82
- type ColumnExpressionInput = ColumnExpression | string;
82
+ export type ColumnExpressionInput = ColumnExpression | string;
83
83
  /**
84
84
  * Type guard: is `value` one of the typed column-expression nodes?
85
85
  *
86
86
  * @param value - The value to test
87
87
  * @returns `true` when `value` is a `ColumnExpression` node
88
88
  */
89
- declare function isColumnExpression(value: unknown): value is ColumnExpression;
89
+ export declare function isColumnExpression(value: unknown): value is ColumnExpression;
90
90
  /**
91
91
  * Reference a column/field by name.
92
92
  *
@@ -151,7 +151,7 @@ declare function raw(expression: string): RawColumnExpression;
151
151
  * @param input - A typed expression node or a bare column-name string
152
152
  * @returns The corresponding `ColumnExpression` node
153
153
  */
154
- declare function toColumnExpression(input: ColumnExpressionInput): ColumnExpression;
154
+ export declare function toColumnExpression(input: ColumnExpressionInput): ColumnExpression;
155
155
  /**
156
156
  * Typed, database-agnostic column-expression builders.
157
157
  *
@@ -179,7 +179,7 @@ declare function toColumnExpression(input: ColumnExpressionInput): ColumnExpress
179
179
  * $agg.sum($expr.raw("price * quantity * (1 - discount)"));
180
180
  * ```
181
181
  */
182
- declare const $expr: {
182
+ export declare const $expr: {
183
183
  col: typeof col;
184
184
  lit: typeof lit;
185
185
  mul: typeof mul;
@@ -189,5 +189,5 @@ declare const $expr: {
189
189
  raw: typeof raw;
190
190
  };
191
191
  //#endregion
192
- export { $expr, ArithmeticExpression, ColumnExpression, ColumnExpressionInput, ColumnExpressionType, ColumnRefExpression, LiteralExpression, RawColumnExpression, isColumnExpression, toColumnExpression };
192
+ export {};
193
193
  //# sourceMappingURL=column-expressions.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"column-expressions.d.mts","names":[],"sources":["../../../../../../../../packages/cascade/src/expressions/column-expressions.ts"],"mappings":";;AAyCA;;;;AAAgC;AAahC;;;;AAEiB;AAIjB;;;;AAEgB;AAShB;;;;;;;;AAEqC;AAQrC;;;;AAEqB;AAQrB;;;;;;;;;;KAlDY,oBAAA;;;;AAsDW;KAzCX,mBAAA;EAAA,SACD,MAAA;EAAA,SACA,MAAM;AAAA;AA0CmC;AAAA,KAtCxC,iBAAA;EAAA,SACD,MAAA;EAAA,SACA,KAAK;AAAA;;;;;AA4C6D;AAM5E;KAzCW,oBAAA;EAAA,SACD,MAAA;EAAA,SACA,QAAA,EAAU,gBAAgB;AAAA;AA+CY;;;;AAUO;AAVP,KAvCrC,mBAAA;EAAA,SACD,MAAA;EAAA,SACA,UAAU;AAAA;;;;;AAyDmD;KAjD5D,gBAAA,GACR,mBAAA,GACA,iBAAA,GACA,oBAAA,GACA,mBAAA;;KAGQ,qBAAA,GAAwB,gBAAgB;;;;;;AAoDoB;iBA5CxD,kBAAA,CAAmB,KAAA,YAAiB,KAAA,IAAS,gBAAgB;;;;;;;iBAcpE,GAAA,CAAI,MAAA,WAAiB,mBAAmB;;;;;;;iBAUxC,GAAA,CAAI,KAAA,qBAA0B,iBAAiB;AA+BqC;;;;;;AAAA,iBArBpF,GAAA,IAAO,QAAA,EAAU,qBAAA,KAA0B,oBAAoB;;;;;;;iBAU/D,GAAA,IAAO,QAAA,EAAU,qBAAA,KAA0B,oBAAoB;AAyBqB;AAAA;;;;AAkBxC;AAYrD;AA9B6F,iBAdpF,GAAA,CAAI,IAAA,EAAM,qBAAA,EAAuB,KAAA,EAAO,qBAAA,GAAwB,oBAAA;;;;;;;AA4CS;iBA9BzE,GAAA,CAAI,IAAA,EAAM,qBAAA,EAAuB,KAAA,EAAO,qBAAA,GAAwB,oBAAA;;;;;;;;;;;;iBAkBhE,GAAA,CAAI,UAAA,WAAqB,mBAAmB;;;;;;;;;iBAYrC,kBAAA,CAAmB,KAAA,EAAO,qBAAA,GAAwB,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;cA+BrE,KAAA"}
1
+ {"version":3,"file":"column-expressions.d.mts","names":[],"sources":["../../../../../../../../packages/cascade/src/expressions/column-expressions.ts"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;YAyCY;;;;;YAaA;WACD;WACA;;;YAIC;WACD;WACA;;;;;;;;YASC;WACD;WACA,UAAU;;;;;;;YAQT;WACD;WACA;;;;;;;YAQC,mBACR,sBACA,oBACA,uBACA;;YAGQ,wBAAwB;;;;;;;wBAQpB,mBAAmB,iBAAiB,SAAS;;;;;;;iBAcpD,IAAI,iBAAiB;;;;;;;iBAUrB,IAAI,0BAA0B;;;;;;;iBAU9B,OAAO,UAAU,0BAA0B;;;;;;;iBAU3C,OAAO,UAAU,0BAA0B;;;;;;;;iBAW3C,IAAI,MAAM,uBAAuB,OAAO,wBAAwB;;;;;;;;iBAchE,IAAI,MAAM,uBAAuB,OAAO,wBAAwB;;;;;;;;;;;;iBAkBhE,IAAI,qBAAqB;;;;;;;;;wBAYlB,mBAAmB,OAAO,wBAAwB;;;;;;;;;;;;;;;;;;;;;;;;;;;;qBA+BrD"}
package/esm/index.d.mts CHANGED
@@ -2,14 +2,14 @@ import { DeleteStrategy, MigrationDefaults, ModelDefaults, NamingConvention, Rel
2
2
  import { TableIndexInformation } from "./contracts/driver-blueprint.contract.mjs";
3
3
  import { ColumnDefinition, ColumnType, ForeignKeyDefinition, FullTextIndexOptions, GeoIndexOptions, IndexDefinition, MigrationDriverContract, MigrationDriverFactory, VectorIndexOptions } from "./contracts/migration-driver.contract.mjs";
4
4
  import { ColumnBuilder } from "./migration/column-builder.mjs";
5
- import { DetachedColumnBuilder, arrayBigInt, arrayBoolean, arrayDate, arrayDecimal, arrayFloat, arrayInt, arrayJson, arrayText, arrayTimestamp, arrayUuid, bigInt, bigInteger, binary, blobCol, boolCol, char, date, dateTime, decimal, double, enumCol, float, geometry, int, integer, ipAddress, json, lineString, longText, macAddress, mediumText, objectCol, point, polygon, setCol, smallInt, smallInteger, string, text, time, timestamp, tinyInt, tinyInteger, ulid, uuid, vector, year } from "./migration/column-helpers.mjs";
5
+ import { DetachedColumnBuilder, arrayBigInt, arrayBoolean, arrayDate, arrayDecimal, arrayFloat, arrayInt, arrayJson, arrayText, arrayTimestamp, arrayUuid, bigInt, bigInteger, binary, blobCol, bool as boolCol, char, date, dateTime, decimal, double, enumCol, float, geometry, int, integer, ipAddress, json, lineString, longText, macAddress, mediumText, objectCol, point, polygon, setCol, smallInt, smallInteger, string, text, time, timestamp, tinyInt, tinyInteger, ulid, uuid, vector, year } from "./migration/column-helpers.mjs";
6
6
  import { DatabaseDirtyTracker } from "./database-dirty-tracker.mjs";
7
- import { ChildModel, GlobalScopeDefinition, GlobalScopeOptions, LocalScopeCallback, ModelSchema, ScopeTiming } from "./model/model.types.mjs";
8
7
  import { ModelEventListener, ModelEventName, ModelEvents, OnDeletedEventContext, globalModelEvents } from "./events/model-events.mjs";
9
8
  import { BelongsToManyOptions, BelongsToOptions, HasManyOptions, HasOneOptions, LoadedRelationResult, LoadedRelationsMap, PivotData, PivotIds, RelationConstraintCallback, RelationConstraints, RelationDefinition, RelationDefinitions, RelationType } from "./relations/types.mjs";
10
9
  import { PivotOperations, createPivotOperations } from "./relations/pivot-operations.mjs";
11
10
  import { ModelSnapshot, RelationHydrator, SerializedRelation } from "./relations/relation-hydrator.mjs";
12
11
  import { EmbedKey, ModelSyncConfig, ModelSyncContract, ModelSyncOperationContract, SyncConfig, SyncContext, SyncEventPayload, SyncInstruction, SyncInstructionOptions, SyncResult } from "./sync/types.mjs";
12
+ import { ChildModel, GlobalScopeDefinition, GlobalScopeOptions, LocalScopeCallback, ModelSchema, ScopeTiming } from "./model/model.types.mjs";
13
13
  import { Model } from "./model/model.mjs";
14
14
  import { ConnectionOptions, DatabaseDriver, ModelDefaultConfig, connectToDatabase, getDatabaseDriver, transaction } from "./utils/connect-to-database.mjs";
15
15
  import { ForeignKeyBuilder } from "./migration/foreign-key-builder.mjs";
@@ -41,8 +41,10 @@ import { DatabaseRemover } from "./remover/database-remover.mjs";
41
41
  import { DatabaseRestorer } from "./restorer/database-restorer.mjs";
42
42
  import { DatabaseWriterValidationError } from "./validation/database-writer-validation-error.mjs";
43
43
  import { BaseQueryRuleOptions, BaseUniqueRuleOptions, ExistsRuleOptions, UniqueRuleOptions } from "./validation/types.mjs";
44
+ import "./validation/index.mjs";
44
45
  import { DatabaseWriter } from "./writer/database-writer.mjs";
45
46
  import { RelationLoader } from "./relations/relation-loader.mjs";
47
+ import "./relations/index.mjs";
46
48
  import { $expr, ArithmeticExpression, ColumnExpression, ColumnExpressionInput, ColumnExpressionType, ColumnRefExpression, LiteralExpression, RawColumnExpression, isColumnExpression, toColumnExpression } from "./expressions/column-expressions.mjs";
47
49
  import { $agg, AggregateExpression, AggregateFunction, isAggregateExpression } from "./expressions/aggregate-expressions.mjs";
48
50
  import { MongoDriverOptions, Operation, PipelineStage } from "./drivers/mongodb/types.mjs";
@@ -61,8 +63,10 @@ import { DefineModelOptions, ModelType, defineModel } from "./utils/define-model
61
63
  import { onceConnected, onceDisconnected } from "./utils/once-connected.mjs";
62
64
  import { MigrationRecord, MigrationResult, MigrationRunnerOptions, MigrationStatus, RollbackOptions, RunMigrationsOptions } from "./migration/types.mjs";
63
65
  import { MigrationRunner, inferMigrationName, migrationRunner } from "./migration/migration-runner.mjs";
66
+ import "./migration/index.mjs";
64
67
  import { CreateDatabaseResult, DropAllTablesResult, createDatabase, dropAllTables } from "./operations/database.mjs";
65
68
  import { ExportMigrationsSQLOptions, PendingMigration, RollbackMigrationsOptions, exportMigrationsSQL, freshMigrate, listExecutedMigrations, listPendingMigrations, rollbackMigrations, runMigrations } from "./operations/migrations.mjs";
69
+ import "./operations/index.mjs";
66
70
  import { MongoMigrationDriver } from "./drivers/mongodb/mongodb-migration-driver.mjs";
67
71
  import { SqlDialectContract } from "./drivers/sql/sql-dialect.contract.mjs";
68
72
  import { SqlAggregateFunction, SqlDeleteOperation, SqlGroupClause, SqlHavingClause, SqlInsertOperation, SqlJoinClause, SqlJoinType, SqlOrderClause, SqlQueryConfig, SqlQueryResult, SqlSelectClause, SqlUpdateOperation, SqlWhereOperation, SqlWhereType } from "./drivers/sql/sql-types.mjs";
@@ -73,6 +77,7 @@ import { PostgresBlueprint } from "./drivers/postgres/postgres-blueprint.mjs";
73
77
  import { PostgresMigrationDriver } from "./drivers/postgres/postgres-migration-driver.mjs";
74
78
  import { PostgresQueryBuilder } from "./drivers/postgres/postgres-query-builder.mjs";
75
79
  import { PostgresOperationType, PostgresParserOperation, PostgresParserOptions, PostgresQueryParser } from "./drivers/postgres/postgres-query-parser.mjs";
80
+ import "./drivers/postgres/index.mjs";
76
81
  import { MongoClientOptions, TransactionOptions } from "mongodb";
77
82
  export { $agg, $expr, AggregateExpression, AggregateFunction, AlterSchema, ArithmeticExpression, AtomicUpdate, AtomicUpdateOptions, type BaseQueryRuleOptions, type BaseUniqueRuleOptions, BelongsTo, BelongsToMany, type BelongsToManyOptions, type BelongsToOptions, BuildUpdateOperationsResult, type ChildModel, ChunkCallback, ColumnBuilder, ColumnDefinition, ColumnExpression, ColumnExpressionInput, ColumnExpressionType, ColumnMap, ColumnRefExpression, ColumnType, ConnectionOptions, CreateDatabaseOptions, CreateDatabaseResult, CursorPaginationOptions, CursorPaginationResult, DEFAULT_MAX_SYNC_DEPTH, DataSource, DataSourceOptions, DataSourceRegistryEvent, DataSourceRegistryListener, DatabaseDirtyTracker, DatabaseDriver, DatabaseRemover, DatabaseRestorer, DatabaseWriter, DatabaseWriterValidationError, DefineModelOptions, DeleteStrategy, DetachedColumnBuilder, DriverAtomicUpdateOptions, DriverContract, DriverEvent, DriverEventListener, DriverQuery, DriverTransactionContract, DropAllTablesResult, DropDatabaseOptions, type EmbedKey, type ExistsRuleOptions, ExportMigrationsSQLOptions, FindOneAndUpdateOptions, ForeignKeyBuilder, ForeignKeyDefinition, FullTextIndexOptions, GenerateIdOptions, GeoIndexOptions, type GlobalScopeDefinition, type GlobalScopeOptions, GroupByInput, HasMany, type HasManyOptions, HasOne, type HasOneOptions, HavingInput, IdGeneratorContract, IndexDefinition, IndexEntry, InsertResult, JoinOptions, LeanDocument, LiteralExpression, type LoadedRelationResult, type LoadedRelationsMap, type LocalScopeCallback, LockForUpdateOptions, Migration, MigrationAlterOptions, MigrationConstructor, MigrationContract, MigrationCreateOptions, MigrationDefaults, MigrationDriverContract, MigrationDriverFactory, MigrationOrigin, type MigrationRecord, type MigrationResult, MigrationRunner, type MigrationRunnerOptions, type MigrationStatus, MigrationStep, MissingDataSourceError, Model, ModelDefaultConfig, ModelDefaults, ModelEventListener, ModelEventName, ModelEvents, ModelRef, type ModelSchema, type ModelSnapshot, type ModelSyncConfig, type ModelSyncContract, ModelSyncOperation, type ModelSyncOperationContract, ModelTransformCallback, ModelType, type MongoClientOptions, MongoDbDriver, MongoDriverOptions, MongoIdGenerator, MongoMigrationDriver, MongoQueryBuilder, MongoSyncAdapter, NamingConvention, OnDeletedEventContext, Operation, OperationType, OrderDirection, PaginationOptions, PaginationResult, PendingMigration, PendingOperation, PipelineStage, type PivotData, type PivotIds, PivotOperations, PostgresBlueprint, PostgresConnectionConfig, PostgresCopyOptions, PostgresDialect, PostgresDialectOptions, PostgresDriver, PostgresIsolationLevel, PostgresMigrationDriver, PostgresNaming, PostgresNotification, PostgresOperation, PostgresOperationType, PostgresParserOperation, PostgresParserOptions, PostgresPoolConfig, PostgresQueryBuilder, PostgresQueryParser, PostgresQueryResult, PostgresTransactionOptions, PostgresWhereClause, QueryBuilderContract, QueryEvent, RELATION_METADATA_KEY, RawColumnExpression, RawExpression, RawQueryResult, RegisterModel, RegisterModelOptions, type RelationConstraintCallback, type RelationConstraints, RelationDefaults, type RelationDefinition, type RelationDefinitions, RelationHydrator, RelationLoader, type RelationType, RemoverContract, RemoverOptions, RemoverResult, RestorerContract, RestorerOptions, RestorerResult, RollbackMigrationsOptions, type RollbackOptions, type RunMigrationsOptions, type ScopeTiming, type SerializedRelation, SqlAggregateFunction, SqlDeleteOperation, SqlDialectContract, SqlGroupClause, SqlHavingClause, SqlInsertOperation, SqlJoinClause, SqlJoinType, SqlOrderClause, SqlQueryConfig, SqlQueryResult, SqlSelectClause, SqlUpdateOperation, SqlWhereOperation, SqlWhereType, StrictMode, SyncAdapterContract, type SyncConfig, type SyncContext, SyncContextManager, type SyncEventPayload, SyncInstruction, type SyncInstructionOptions, SyncManager, type SyncResult, type TableIndexInformation, TransactionContext, type TransactionOptions, TransactionRollbackError, UndefinedWhereValueError, UniqueEntry, type UniqueRuleOptions, UnsafeFilterError, UnsafeRawExpressionError, UnsupportedLeanOperationError, UnsupportedLockForUpdateError, UnsupportedQueryOperationError, UnsupportedUpdateOperationError, UnwindOptions, UpdateOperations, UpdatePipeline, UpdateResult, UuidStrategy, VectorIndexOptions, WhereCallback, WhereObject, WhereOperator, WriterContract, WriterOptions, WriterResult, afterCommit, arrayBigInt, arrayBoolean, arrayDate, arrayDecimal, arrayFloat, arrayInt, arrayJson, arrayText, arrayTimestamp, arrayUuid, assertDefined, bigInt, bigInteger, binary, blobCol, boolCol as bool, boolCol, buildPostgresPoolConfig, char, cleanupModelsRegistery, connectToDatabase, createDatabase, createPivotOperations, dataSourceRegistry, databaseDataSourceContext, databaseTransactionContext, date, dateTime, decimal, defineModel, double, dropAllTables, enumCol, escapeRegex, escapeSqlLiteral, exportMigrationsSQL, float, freshMigrate, geometry, getAllModelsFromRegistry, getDatabaseDriver, getModelFromRegistry, globalModelEvents, inferMigrationName, int, integer, ipAddress, isAggregateExpression, isColumnExpression, isMongoDBDriverLoaded, json, likePatternToRegexSource, lineString, listExecutedMigrations, listPendingMigrations, longText, macAddress, mediumText, migrate, migrationRunner, modelSync, objectCol, onceConnected, onceDisconnected, parsePostgresInt8, point, polygon, registerModelInRegistry, removeModelFromRegistery, requireModelClass, resolveLikePattern, resolveModelClass, resolveModelName, rollbackMigrations, runMigrations, sanitizeFilter, sanitizeFilterValue, setCol, smallInt, smallInteger, string, text, time, timestamp, tinyInt, tinyInteger, toColumnExpression, transaction, tryResolveModelClass, ulid, useModelTransformer, uuid, vector, verifyRegisteredRelations, year };
78
83
  import "./validation/plugins/database-rules-plugin.mjs";
package/esm/index.mjs CHANGED
@@ -52,7 +52,7 @@ import { defineModel } from "./utils/define-model.mjs";
52
52
  import { onceConnected, onceDisconnected } from "./utils/once-connected.mjs";
53
53
  import { ColumnBuilder } from "./migration/column-builder.mjs";
54
54
  import { ForeignKeyBuilder } from "./migration/foreign-key-builder.mjs";
55
- import { DetachedColumnBuilder, arrayBigInt, arrayBoolean, arrayDate, arrayDecimal, arrayFloat, arrayInt, arrayJson, arrayText, arrayTimestamp, arrayUuid, bigInt, bigInteger, binary, blobCol, boolCol, char, date, dateTime, decimal, double, enumCol, float, geometry, int, integer, ipAddress, json, lineString, longText, macAddress, mediumText, objectCol, point, polygon, setCol, smallInt, smallInteger, string, text, time, timestamp, tinyInt, tinyInteger, ulid, uuid, vector, year } from "./migration/column-helpers.mjs";
55
+ import { DetachedColumnBuilder, arrayBigInt, arrayBoolean, arrayDate, arrayDecimal, arrayFloat, arrayInt, arrayJson, arrayText, arrayTimestamp, arrayUuid, bigInt, bigInteger, binary, blobCol, bool as boolCol, char, date, dateTime, decimal, double, enumCol, float, geometry, int, integer, ipAddress, json, lineString, longText, macAddress, mediumText, objectCol, point, polygon, setCol, smallInt, smallInteger, string, text, time, timestamp, tinyInt, tinyInteger, ulid, uuid, vector, year } from "./migration/column-helpers.mjs";
56
56
  import { Migration, migrate } from "./migration/migration.mjs";
57
57
  import { MigrationRunner, inferMigrationName, migrationRunner } from "./migration/migration-runner.mjs";
58
58
  import "./migration/index.mjs";
@@ -1,5 +1,4 @@
1
1
  import { ColumnDefinition, ColumnType, ForeignKeyDefinition, VectorIndexOptions } from "../contracts/migration-driver.contract.mjs";
2
-
3
2
  //#region ../../packages/cascade/src/migration/column-builder.d.ts
4
3
  /**
5
4
  * Reference to the Migration type to avoid circular imports.
@@ -35,7 +34,7 @@ type MigrationLike = {
35
34
  * .comment("User's age in years");
36
35
  * ```
37
36
  */
38
- declare class ColumnBuilder {
37
+ export declare class ColumnBuilder {
39
38
  private readonly migration;
40
39
  /** Mutable column definition being accumulated */
41
40
  private readonly definition;
@@ -416,5 +415,5 @@ declare class ColumnBuilder {
416
415
  getDefinition(): ColumnDefinition;
417
416
  }
418
417
  //#endregion
419
- export { ColumnBuilder };
418
+ export {};
420
419
  //# sourceMappingURL=column-builder.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"column-builder.d.mts","names":[],"sources":["../../../../../../../../packages/cascade/src/migration/column-builder.ts"],"mappings":";;;;;AAKgD;;KAM3C,aAAA;EACH,eAAA,CAAgB,KAAA;IAAS,OA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iBA;;;;;;;;EAqBA,iBAAiB"}
@@ -1,6 +1,5 @@
1
1
  import { VectorIndexOptions } from "../contracts/migration-driver.contract.mjs";
2
2
  import { ColumnBuilder } from "./column-builder.mjs";
3
-
4
3
  //#region ../../packages/cascade/src/migration/column-helpers.d.ts
5
4
  /**
6
5
  * A no-op migration sink used by standalone column helpers.
@@ -37,7 +36,7 @@ declare class DetachedMigrationSink {
37
36
  * A `ColumnBuilder` that carries its own detached sink so it can be
38
37
  * constructed outside of a migration class and later merged in.
39
38
  */
40
- declare class DetachedColumnBuilder extends ColumnBuilder {
39
+ export declare class DetachedColumnBuilder extends ColumnBuilder {
41
40
  readonly sink: DetachedMigrationSink;
42
41
  constructor(type: ConstructorParameters<typeof ColumnBuilder>[2], name: string, options?: ConstructorParameters<typeof ColumnBuilder>[3]);
43
42
  }
@@ -53,7 +52,7 @@ declare class DetachedColumnBuilder extends ColumnBuilder {
53
52
  * });
54
53
  * ```
55
54
  */
56
- declare function string(length?: number): DetachedColumnBuilder;
55
+ export declare function string(length?: number): DetachedColumnBuilder;
57
56
  /**
58
57
  * Standalone column helper: fixed-length CHAR.
59
58
  *
@@ -62,7 +61,7 @@ declare function string(length?: number): DetachedColumnBuilder;
62
61
  * code: char(3) // CHAR(3)
63
62
  * ```
64
63
  */
65
- declare function char(length: number): DetachedColumnBuilder;
64
+ export declare function char(length: number): DetachedColumnBuilder;
66
65
  /**
67
66
  * Standalone column helper: TEXT (unlimited length).
68
67
  *
@@ -75,15 +74,15 @@ declare function char(length: number): DetachedColumnBuilder;
75
74
  * });
76
75
  * ```
77
76
  */
78
- declare function text(): DetachedColumnBuilder;
77
+ export declare function text(): DetachedColumnBuilder;
79
78
  /**
80
79
  * Standalone column helper: MEDIUMTEXT.
81
80
  */
82
- declare function mediumText(): DetachedColumnBuilder;
81
+ export declare function mediumText(): DetachedColumnBuilder;
83
82
  /**
84
83
  * Standalone column helper: LONGTEXT.
85
84
  */
86
- declare function longText(): DetachedColumnBuilder;
85
+ export declare function longText(): DetachedColumnBuilder;
87
86
  /**
88
87
  * Standalone column helper: INTEGER.
89
88
  *
@@ -92,35 +91,35 @@ declare function longText(): DetachedColumnBuilder;
92
91
  * age: integer().unsigned()
93
92
  * ```
94
93
  */
95
- declare function integer(): DetachedColumnBuilder;
94
+ export declare function integer(): DetachedColumnBuilder;
96
95
  /** Alias for `integer()`. */
97
- declare const int: typeof integer;
96
+ export declare const int: typeof integer;
98
97
  /**
99
98
  * Standalone column helper: SMALLINT.
100
99
  */
101
- declare function smallInteger(): DetachedColumnBuilder;
100
+ export declare function smallInteger(): DetachedColumnBuilder;
102
101
  /** Alias for `smallInteger()`. */
103
- declare const smallInt: typeof smallInteger;
102
+ export declare const smallInt: typeof smallInteger;
104
103
  /**
105
104
  * Standalone column helper: TINYINT.
106
105
  */
107
- declare function tinyInteger(): DetachedColumnBuilder;
106
+ export declare function tinyInteger(): DetachedColumnBuilder;
108
107
  /** Alias for `tinyInteger()`. */
109
- declare const tinyInt: typeof tinyInteger;
108
+ export declare const tinyInt: typeof tinyInteger;
110
109
  /**
111
110
  * Standalone column helper: BIGINT.
112
111
  */
113
- declare function bigInteger(): DetachedColumnBuilder;
112
+ export declare function bigInteger(): DetachedColumnBuilder;
114
113
  /** Alias for `bigInteger()`. */
115
- declare const bigInt: typeof bigInteger;
114
+ export declare const bigInt: typeof bigInteger;
116
115
  /**
117
116
  * Standalone column helper: FLOAT.
118
117
  */
119
- declare function float(): DetachedColumnBuilder;
118
+ export declare function float(): DetachedColumnBuilder;
120
119
  /**
121
120
  * Standalone column helper: DOUBLE.
122
121
  */
123
- declare function double(): DetachedColumnBuilder;
122
+ export declare function double(): DetachedColumnBuilder;
124
123
  /**
125
124
  * Standalone column helper: DECIMAL.
126
125
  *
@@ -129,7 +128,7 @@ declare function double(): DetachedColumnBuilder;
129
128
  * price: decimal(10, 2) // DECIMAL(10,2)
130
129
  * ```
131
130
  */
132
- declare function decimal(precision?: number, scale?: number): DetachedColumnBuilder;
131
+ export declare function decimal(precision?: number, scale?: number): DetachedColumnBuilder;
133
132
  /**
134
133
  * Standalone column helper: BOOLEAN.
135
134
  *
@@ -140,15 +139,15 @@ declare function decimal(precision?: number, scale?: number): DetachedColumnBuil
140
139
  * is_active: boolCol().default(true)
141
140
  * ```
142
141
  */
143
- declare function boolCol(): DetachedColumnBuilder;
142
+ export declare function boolCol(): DetachedColumnBuilder;
144
143
  /**
145
144
  * Standalone column helper: DATE.
146
145
  */
147
- declare function date(): DetachedColumnBuilder;
146
+ export declare function date(): DetachedColumnBuilder;
148
147
  /**
149
148
  * Standalone column helper: DATETIME.
150
149
  */
151
- declare function dateTime(): DetachedColumnBuilder;
150
+ export declare function dateTime(): DetachedColumnBuilder;
152
151
  /**
153
152
  * Standalone column helper: TIMESTAMP.
154
153
  *
@@ -157,15 +156,15 @@ declare function dateTime(): DetachedColumnBuilder;
157
156
  * started_at: timestamp().default("NOW()")
158
157
  * ```
159
158
  */
160
- declare function timestamp(): DetachedColumnBuilder;
159
+ export declare function timestamp(): DetachedColumnBuilder;
161
160
  /**
162
161
  * Standalone column helper: TIME.
163
162
  */
164
- declare function time(): DetachedColumnBuilder;
163
+ export declare function time(): DetachedColumnBuilder;
165
164
  /**
166
165
  * Standalone column helper: YEAR.
167
166
  */
168
- declare function year(): DetachedColumnBuilder;
167
+ export declare function year(): DetachedColumnBuilder;
169
168
  /**
170
169
  * Standalone column helper: JSON.
171
170
  *
@@ -177,19 +176,19 @@ declare function year(): DetachedColumnBuilder;
177
176
  * metadata: json().nullable()
178
177
  * ```
179
178
  */
180
- declare function json(): DetachedColumnBuilder;
179
+ export declare function json(): DetachedColumnBuilder;
181
180
  /**
182
181
  * Alias for `json()`. Named `objectCol` to avoid collision with TS `object` type.
183
182
  */
184
- declare function objectCol(): DetachedColumnBuilder;
183
+ export declare function objectCol(): DetachedColumnBuilder;
185
184
  /**
186
185
  * Standalone column helper: BINARY / BLOB.
187
186
  */
188
- declare function binary(): DetachedColumnBuilder;
187
+ export declare function binary(): DetachedColumnBuilder;
189
188
  /**
190
189
  * Alias for `binary()`. Named `blobCol` to avoid collision with the Web `Blob` API.
191
190
  */
192
- declare function blobCol(): DetachedColumnBuilder;
191
+ export declare function blobCol(): DetachedColumnBuilder;
193
192
  /**
194
193
  * Standalone column helper: UUID.
195
194
  *
@@ -202,35 +201,35 @@ declare function blobCol(): DetachedColumnBuilder;
202
201
  * });
203
202
  * ```
204
203
  */
205
- declare function uuid(): DetachedColumnBuilder;
204
+ export declare function uuid(): DetachedColumnBuilder;
206
205
  /**
207
206
  * Standalone column helper: ULID.
208
207
  */
209
- declare function ulid(): DetachedColumnBuilder;
208
+ export declare function ulid(): DetachedColumnBuilder;
210
209
  /**
211
210
  * Standalone column helper: IP address.
212
211
  */
213
- declare function ipAddress(): DetachedColumnBuilder;
212
+ export declare function ipAddress(): DetachedColumnBuilder;
214
213
  /**
215
214
  * Standalone column helper: MAC address.
216
215
  */
217
- declare function macAddress(): DetachedColumnBuilder;
216
+ export declare function macAddress(): DetachedColumnBuilder;
218
217
  /**
219
218
  * Standalone column helper: geo point.
220
219
  */
221
- declare function point(): DetachedColumnBuilder;
220
+ export declare function point(): DetachedColumnBuilder;
222
221
  /**
223
222
  * Standalone column helper: polygon.
224
223
  */
225
- declare function polygon(): DetachedColumnBuilder;
224
+ export declare function polygon(): DetachedColumnBuilder;
226
225
  /**
227
226
  * Standalone column helper: line string.
228
227
  */
229
- declare function lineString(): DetachedColumnBuilder;
228
+ export declare function lineString(): DetachedColumnBuilder;
230
229
  /**
231
230
  * Standalone column helper: generic geometry.
232
231
  */
233
- declare function geometry(): DetachedColumnBuilder;
232
+ export declare function geometry(): DetachedColumnBuilder;
234
233
  /**
235
234
  * Standalone column helper: vector (for AI embeddings).
236
235
  *
@@ -241,7 +240,7 @@ declare function geometry(): DetachedColumnBuilder;
241
240
  * embedding: vector(1536)
242
241
  * ```
243
242
  */
244
- declare function vector(dimensions: number): DetachedColumnBuilder;
243
+ export declare function vector(dimensions: number): DetachedColumnBuilder;
245
244
  /**
246
245
  * Standalone column helper: ENUM.
247
246
  *
@@ -250,31 +249,31 @@ declare function vector(dimensions: number): DetachedColumnBuilder;
250
249
  * status: enumCol(["active", "inactive", "pending"])
251
250
  * ```
252
251
  */
253
- declare function enumCol(values: string[]): DetachedColumnBuilder;
252
+ export declare function enumCol(values: string[]): DetachedColumnBuilder;
254
253
  /**
255
254
  * Standalone column helper: SET (multiple values).
256
255
  */
257
- declare function setCol(values: string[]): DetachedColumnBuilder;
256
+ export declare function setCol(values: string[]): DetachedColumnBuilder;
258
257
  /** Standalone helper: INTEGER[] */
259
- declare function arrayInt(): DetachedColumnBuilder;
258
+ export declare function arrayInt(): DetachedColumnBuilder;
260
259
  /** Standalone helper: BIGINT[] */
261
- declare function arrayBigInt(): DetachedColumnBuilder;
260
+ export declare function arrayBigInt(): DetachedColumnBuilder;
262
261
  /** Standalone helper: REAL[] */
263
- declare function arrayFloat(): DetachedColumnBuilder;
262
+ export declare function arrayFloat(): DetachedColumnBuilder;
264
263
  /** Standalone helper: DECIMAL[] */
265
- declare function arrayDecimal(precision?: number, scale?: number): DetachedColumnBuilder;
264
+ export declare function arrayDecimal(precision?: number, scale?: number): DetachedColumnBuilder;
266
265
  /** Standalone helper: BOOLEAN[] */
267
- declare function arrayBoolean(): DetachedColumnBuilder;
266
+ export declare function arrayBoolean(): DetachedColumnBuilder;
268
267
  /** Standalone helper: TEXT[] */
269
- declare function arrayText(): DetachedColumnBuilder;
268
+ export declare function arrayText(): DetachedColumnBuilder;
270
269
  /** Standalone helper: DATE[] */
271
- declare function arrayDate(): DetachedColumnBuilder;
270
+ export declare function arrayDate(): DetachedColumnBuilder;
272
271
  /** Standalone helper: TIMESTAMPTZ[] */
273
- declare function arrayTimestamp(): DetachedColumnBuilder;
272
+ export declare function arrayTimestamp(): DetachedColumnBuilder;
274
273
  /** Standalone helper: UUID[] */
275
- declare function arrayUuid(): DetachedColumnBuilder;
274
+ export declare function arrayUuid(): DetachedColumnBuilder;
276
275
  /** Standalone helper: JSONB[] */
277
- declare function arrayJson(): DetachedColumnBuilder;
276
+ export declare function arrayJson(): DetachedColumnBuilder;
278
277
  //#endregion
279
- export { DetachedColumnBuilder, arrayBigInt, arrayBoolean, arrayDate, arrayDecimal, arrayFloat, arrayInt, arrayJson, arrayText, arrayTimestamp, arrayUuid, bigInt, bigInteger, binary, blobCol, boolCol, char, date, dateTime, decimal, double, enumCol, float, geometry, int, integer, ipAddress, json, lineString, longText, macAddress, mediumText, objectCol, point, polygon, setCol, smallInt, smallInteger, string, text, time, timestamp, tinyInt, tinyInteger, ulid, uuid, vector, year };
278
+ export { boolCol as bool };
280
279
  //# sourceMappingURL=column-helpers.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"column-helpers.d.mts","names":[],"sources":["../../../../../../../../packages/cascade/src/migration/column-helpers.ts"],"mappings":";;;;;;;AAAiD;;;;;;;;cAa3C,qBAAA;EAE8B;EAAA,SAAlB,cAAA;IAAkB,OAAA;IAAmB,MAAA;EAAA;EAQnD;EAAA,SALc,kBAAA;EAQT;EAAA,SALS,oBAAA;IACd,MAAA;IACA,OAAA,EAVuB,kBAAA;EAAA;EAalB,eAAA,CAAgB,KAAA;IAAS,OAAA;IAAmB,MAAA;EAAA;EAI5C,sBAAA,CAAuB,EAAA;EAIvB,qBAAA,CACL,MAAA,UACA,OAAA,EAAS,IAAA,CAbmE,kBAAA;AAAA;AAagB;AAUhG;;;AAVgG,cAUnF,qBAAA,SAA8B,aAAA;EAAA,SACzB,IAAA,EAAM,qBAAA;cAGpB,IAAA,EAAM,qBAAA,QAA6B,aAAA,MACnC,IAAA,UACA,OAAA,GAAS,qBAAA,QAA6B,aAAA;AAAA;;;;;;;;;;;;;iBAwB1B,MAAA,CAAO,MAAA,YAAe,qBAAqB;;;;AAxBK;AAwBhE;;;;iBAYgB,IAAA,CAAK,MAAA,WAAiB,qBAAqB;AAA3D;;;;AAA2D;AAgB3D;;;;AAA6C;AAO7C;;AAvBA,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OlC,UAAA,IAAc,qBAAqB;AAkBnD;;;AAAA,iBAPgB,KAAA,IAAS,qBAAqB;AAOE;AAOhD;;AAPgD,iBAAhC,OAAA,IAAW,qBAAqB;;AAOG;AAOnD;iBAPgB,UAAA,IAAc,qBAAqB;;;AAOF;iBAAjC,QAAA,IAAY,qBAAqB;;;;AAkBgB;AAgBjE;;;;AAAgE;AAOhE;iBAvBgB,MAAA,CAAO,UAAA,WAAqB,qBAAqB;;;AAuBF;AAS/D;;;;AAAiD;iBAhBjC,OAAA,CAAQ,MAAA,aAAmB,qBAAqB;;;;iBAOhD,MAAA,CAAO,MAAA,aAAmB,qBAAqB;AAmB/D;AAAA,iBAVgB,QAAA,IAAY,qBAAqB;;iBAKjC,WAAA,IAAe,qBAAqB;AAKD;AAAA,iBAAnC,UAAA,IAAc,qBAAqB;;iBAKnC,YAAA,CAAa,SAAA,WAAoB,KAAA,YAAiB,qBAAqB;;iBAKvE,YAAA,IAAgB,qBAAqB;;iBAKrC,SAAA,IAAa,qBAAqB;;iBAKlC,SAAA,IAAa,qBAAqB;AAVlD;AAAA,iBAegB,cAAA,IAAkB,qBAAqB;;iBAKvC,SAAA,IAAa,qBAAqB;AApBG;AAAA,iBAyBrC,SAAA,IAAa,qBAAqB"}
1
+ {"version":3,"file":"column-helpers.d.mts","names":["_$___contracts_migration_driver_contract0.VectorIndexOptions"],"sources":["../../../../../../../../packages/cascade/src/migration/column-helpers.ts"],"mappings":";;;;;;;;;;;;;;cAaM;;WAEY;IAAkB;IAAmB;;;WAGrC;;WAGA;IACd;IACA,SAVEA;;EAaG,gBAAgB;IAAS;IAAmB;;EAI5C,uBAAuB;EAIvB,sBACL,gBACA,SAAS,KAbiDA;;;;;;qBAuBjD,8BAA8B;WACzB,MAAM;EAEtB,YACE,MAAM,6BAA6B,mBACnC,cACA,UAAS,6BAA6B;;;;;;;;;;;;;;wBAwB1B,OAAO,kBAAe;;;;;;;;;wBAYtB,KAAK,iBAAiB;;;;;;;;;;;;;wBAgBtB,QAAQ;;;;wBAOR,cAAc;;;;wBAOd,YAAY;;;;;;;;;wBAgBZ,WAAW;;qBAKd,YAAG;;;;wBAKA,gBAAgB;;qBAKnB,iBAAQ;;;;wBAKL,eAAe;;qBAKlB,gBAAO;;;;wBAKJ,cAAc;;qBAKjB,eAAM;;;;wBAKH,SAAS;;;;wBAOT,UAAU;;;;;;;;;wBAYV,QAAQ,oBAAe,iBAAY;;;;;;;;;;;wBAkBnC,WAAW;;;;wBAcX,QAAQ;;;;wBAOR,YAAY;;;;;;;;;wBAYZ,aAAa;;;;wBAOb,QAAQ;;;;wBAOR,QAAQ;;;;;;;;;;;;wBAmBR,QAAQ;;;;wBAOR,aAAa;;;;wBAOb,UAAU;;;;wBAOV,WAAW;;;;;;;;;;;;;wBAoBX,QAAQ;;;;wBAOR,QAAQ;;;;wBAWR,aAAa;;;;wBAOb,cAAc;;;;wBAWd,SAAS;;;;wBAOT,WAAW;;;;wBAOX,cAAc;;;;wBAOd,YAAY;;;;;;;;;;;wBAkBZ,OAAO,qBAAqB;;;;;;;;;wBAgB5B,QAAQ,mBAAmB;;;;wBAO3B,OAAO,mBAAmB;;wBAS1B,YAAY;;wBAKZ,eAAe;;wBAKf,cAAc;;wBAKd,aAAa,oBAAoB,iBAAiB;;wBAKlD,gBAAgB;;wBAKhB,aAAa;;wBAKb,aAAa;;wBAKb,kBAAkB;;wBAKlB,aAAa;;wBAKb,aAAa"}
@@ -372,5 +372,5 @@ function arrayJson() {
372
372
  }
373
373
 
374
374
  //#endregion
375
- export { DetachedColumnBuilder, arrayBigInt, arrayBoolean, arrayDate, arrayDecimal, arrayFloat, arrayInt, arrayJson, arrayText, arrayTimestamp, arrayUuid, bigInt, bigInteger, binary, blobCol, boolCol, char, date, dateTime, decimal, double, enumCol, float, geometry, int, integer, ipAddress, json, lineString, longText, macAddress, mediumText, objectCol, point, polygon, setCol, smallInt, smallInteger, string, text, time, timestamp, tinyInt, tinyInteger, ulid, uuid, vector, year };
375
+ export { DetachedColumnBuilder, arrayBigInt, arrayBoolean, arrayDate, arrayDecimal, arrayFloat, arrayInt, arrayJson, arrayText, arrayTimestamp, arrayUuid, bigInt, bigInteger, binary, blobCol, boolCol as bool, boolCol, char, date, dateTime, decimal, double, enumCol, float, geometry, int, integer, ipAddress, json, lineString, longText, macAddress, mediumText, objectCol, point, polygon, setCol, smallInt, smallInteger, string, text, time, timestamp, tinyInt, tinyInteger, ulid, uuid, vector, year };
376
376
  //# sourceMappingURL=column-helpers.mjs.map
@@ -1,5 +1,4 @@
1
1
  import { ForeignKeyDefinition } from "../contracts/migration-driver.contract.mjs";
2
-
3
2
  //#region ../../packages/cascade/src/migration/foreign-key-builder.d.ts
4
3
  /**
5
4
  * Reference to the Migration type to avoid circular imports.
@@ -25,7 +24,7 @@ type MigrationLike = {
25
24
  * .onUpdate("cascade");
26
25
  * ```
27
26
  */
28
- declare class ForeignKeyBuilder {
27
+ export declare class ForeignKeyBuilder {
29
28
  private readonly migration;
30
29
  /** Mutable foreign key definition being accumulated */
31
30
  private readonly definition;
@@ -102,5 +101,5 @@ declare class ForeignKeyBuilder {
102
101
  cascadeAll(): this;
103
102
  }
104
103
  //#endregion
105
- export { ForeignKeyBuilder };
104
+ export {};
106
105
  //# sourceMappingURL=foreign-key-builder.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"foreign-key-builder.d.mts","names":[],"sources":["../../../../../../../../packages/cascade/src/migration/foreign-key-builder.ts"],"mappings":";;;;;AAAmF;KAK9E,aAAA;EACH,sBAAA,CAAuB,EAAA,EAAI,oBAAoB;AAAA;;;;;AAAA;AAiCjD;;;;;;;;;;;;;cAAa,iBAAA;EAAA,iBAWQ,SAAA;EAkBP;EAAA,iBA3BK,UAAA;EAiDC;;;;;;cAxCC,SAAA,EAAW,aAAA,EAC5B,MAAA;EA6Ec;;;AAeC;;;EA3EV,IAAA,CAAK,IAAA;;;;;;;;;;;;;;;;;;EAsBL,UAAA,CAAW,KAAA,UAAe,MAAA;;;;;;;;;;;;;;EAoB1B,QAAA,CAAS,MAAA,EAAQ,oBAAA;;;;;;;;;;;;;;EAkBjB,QAAA,CAAS,MAAA,EAAQ,oBAAA;;;;;;;;;;;EAejB,UAAA;AAAA"}
1
+ {"version":3,"file":"foreign-key-builder.d.mts","names":[],"sources":["../../../../../../../../packages/cascade/src/migration/foreign-key-builder.ts"],"mappings":";;;;;KAKK;EACH,uBAAuB,IAAI;;;;;;;;;;;;;;;;;;;;qBAiChB;mBAWQ;;mBATF;;;;;;;EAQjB,YACmB,WAAW,eAC5B;;;;;;;EAiBK,KAAK;;;;;;;;;;;;;;;;;;EAsBL,WAAW,eAAe;;;;;;;;;;;;;;EAoB1B,SAAS,QAAQ;;;;;;;;;;;;;;EAkBjB,SAAS,QAAQ;;;;;;;;;;;EAejB"}
@@ -1,6 +1,7 @@
1
1
  import { ColumnBuilder } from "./column-builder.mjs";
2
- import { DetachedColumnBuilder, arrayBigInt, arrayBoolean, arrayDate, arrayDecimal, arrayFloat, arrayInt, arrayJson, arrayText, arrayTimestamp, arrayUuid, bigInt, bigInteger, binary, blobCol, boolCol, char, date, dateTime, decimal, double, enumCol, float, geometry, int, integer, ipAddress, json, lineString, longText, macAddress, mediumText, objectCol, point, polygon, setCol, smallInt, smallInteger, string, text, time, timestamp, tinyInt, tinyInteger, ulid, uuid, vector, year } from "./column-helpers.mjs";
2
+ import { DetachedColumnBuilder, arrayBigInt, arrayBoolean, arrayDate, arrayDecimal, arrayFloat, arrayInt, arrayJson, arrayText, arrayTimestamp, arrayUuid, bigInt, bigInteger, binary, blobCol, bool as boolCol, char, date, dateTime, decimal, double, enumCol, float, geometry, int, integer, ipAddress, json, lineString, longText, macAddress, mediumText, objectCol, point, polygon, setCol, smallInt, smallInteger, string, text, time, timestamp, tinyInt, tinyInteger, ulid, uuid, vector, year } from "./column-helpers.mjs";
3
3
  import { ForeignKeyBuilder } from "./foreign-key-builder.mjs";
4
4
  import { AlterSchema, ColumnMap, IndexEntry, Migration, MigrationAlterOptions, MigrationConstructor, MigrationContract, MigrationCreateOptions, MigrationOrigin, MigrationStep, OperationType, PendingOperation, UniqueEntry, migrate } from "./migration.mjs";
5
5
  import { MigrationRecord, MigrationResult, MigrationRunnerOptions, MigrationStatus, RollbackOptions, RunMigrationsOptions } from "./types.mjs";
6
- import { MigrationRunner, inferMigrationName, migrationRunner } from "./migration-runner.mjs";
6
+ import { MigrationRunner, inferMigrationName, migrationRunner } from "./migration-runner.mjs";
7
+ export { AlterSchema, ColumnBuilder, ColumnMap, DetachedColumnBuilder, ForeignKeyBuilder, IndexEntry, Migration, MigrationAlterOptions, MigrationConstructor, MigrationContract, MigrationCreateOptions, MigrationOrigin, type MigrationRecord, type MigrationResult, MigrationRunner, type MigrationRunnerOptions, type MigrationStatus, MigrationStep, OperationType, PendingOperation, type RollbackOptions, type RunMigrationsOptions, UniqueEntry, arrayBigInt, arrayBoolean, arrayDate, arrayDecimal, arrayFloat, arrayInt, arrayJson, arrayText, arrayTimestamp, arrayUuid, bigInt, bigInteger, binary, blobCol, boolCol as bool, boolCol, char, date, dateTime, decimal, double, enumCol, float, geometry, inferMigrationName, int, integer, ipAddress, json, lineString, longText, macAddress, mediumText, migrate, migrationRunner, objectCol, point, polygon, setCol, smallInt, smallInteger, string, text, time, timestamp, tinyInt, tinyInteger, ulid, uuid, vector, year };
@@ -1,7 +1,7 @@
1
1
  import { ColumnBuilder } from "./column-builder.mjs";
2
2
  import { ForeignKeyBuilder } from "./foreign-key-builder.mjs";
3
- import { DetachedColumnBuilder, arrayBigInt, arrayBoolean, arrayDate, arrayDecimal, arrayFloat, arrayInt, arrayJson, arrayText, arrayTimestamp, arrayUuid, bigInt, bigInteger, binary, blobCol, boolCol, char, date, dateTime, decimal, double, enumCol, float, geometry, int, integer, ipAddress, json, lineString, longText, macAddress, mediumText, objectCol, point, polygon, setCol, smallInt, smallInteger, string, text, time, timestamp, tinyInt, tinyInteger, ulid, uuid, vector, year } from "./column-helpers.mjs";
3
+ import { DetachedColumnBuilder, arrayBigInt, arrayBoolean, arrayDate, arrayDecimal, arrayFloat, arrayInt, arrayJson, arrayText, arrayTimestamp, arrayUuid, bigInt, bigInteger, binary, blobCol, bool as boolCol, char, date, dateTime, decimal, double, enumCol, float, geometry, int, integer, ipAddress, json, lineString, longText, macAddress, mediumText, objectCol, point, polygon, setCol, smallInt, smallInteger, string, text, time, timestamp, tinyInt, tinyInteger, ulid, uuid, vector, year } from "./column-helpers.mjs";
4
4
  import { Migration, migrate } from "./migration.mjs";
5
5
  import { MigrationRunner, inferMigrationName, migrationRunner } from "./migration-runner.mjs";
6
6
 
7
- export { };
7
+ export { ColumnBuilder, DetachedColumnBuilder, ForeignKeyBuilder, Migration, MigrationRunner, arrayBigInt, arrayBoolean, arrayDate, arrayDecimal, arrayFloat, arrayInt, arrayJson, arrayText, arrayTimestamp, arrayUuid, bigInt, bigInteger, binary, blobCol, boolCol as bool, boolCol, char, date, dateTime, decimal, double, enumCol, float, geometry, inferMigrationName, int, integer, ipAddress, json, lineString, longText, macAddress, mediumText, migrate, migrationRunner, objectCol, point, polygon, setCol, smallInt, smallInteger, string, text, time, timestamp, tinyInt, tinyInteger, ulid, uuid, vector, year };
@@ -1,7 +1,6 @@
1
1
  import { Migration, MigrationContract, MigrationOrigin } from "./migration.mjs";
2
2
  import { DataSource } from "../data-source/data-source.mjs";
3
3
  import { MigrationRecord, MigrationResult } from "./types.mjs";
4
-
5
4
  //#region ../../packages/cascade/src/migration/migration-runner.d.ts
6
5
  /**
7
6
  * Migration class type with static name property.
@@ -36,7 +35,9 @@ type RegisterableMigration = (new () => MigrationContract) & {
36
35
  * Options for migration execution.
37
36
  */
38
37
  type ExecuteOptions = {
39
- /** Run in dry-run mode (no actual changes) */readonly dryRun?: boolean; /** Record to migrations table (default: true for batch, false for single) */
38
+ /** Run in dry-run mode (no actual changes) */
39
+ readonly dryRun?: boolean;
40
+ /** Record to migrations table (default: true for batch, false for single) */
40
41
  readonly record?: boolean;
41
42
  /**
42
43
  * Rollback only: delete the `_migrations` rows whose migration file is no
@@ -49,7 +50,7 @@ type ExecuteOptions = {
49
50
  * and strip a trailing `-migration` / `_migration` suffix. Shared by every CLI
50
51
  * so the same file is recorded under the same name.
51
52
  */
52
- declare function inferMigrationName(file: string): string;
53
+ export declare function inferMigrationName(file: string): string;
53
54
  /**
54
55
  * Migration runner that executes migrations.
55
56
  *
@@ -84,7 +85,7 @@ declare function inferMigrationName(file: string): string;
84
85
  * await runner.rollbackAll();
85
86
  * ```
86
87
  */
87
- declare class MigrationRunner {
88
+ export declare class MigrationRunner {
88
89
  /** Registered migrations */
89
90
  readonly migrations: MigrationClass[];
90
91
  /** Data source to use */
@@ -360,7 +361,7 @@ declare class MigrationRunner {
360
361
  */
361
362
  private getNextBatchNumber;
362
363
  }
363
- declare const migrationRunner: MigrationRunner;
364
+ export declare const migrationRunner: MigrationRunner;
364
365
  //#endregion
365
- export { MigrationRunner, inferMigrationName, migrationRunner };
366
+ export {};
366
367
  //# sourceMappingURL=migration-runner.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"migration-runner.d.mts","names":[],"sources":["../../../../../../../../packages/cascade/src/migration/migration-runner.ts"],"mappings":";;;;;;;AAgB2E;KAKtE,cAAA,cAA4B,SAAA;EAC/B,aAAA;EACA,SAAA;EACA,MAAA,GAAS,eAAe;AAAA;;;;;AAAA;AAAA;;;;;;;;;;AAsBA;KAHrB,qBAAA,cAAmC,iBAAA;EACtC,aAAA;EACA,SAAA;EACA,MAAA,GAAS,eAAe;AAAA;;;;KA0BrB,cAAA;EA8CW,uDA5CL,MAAA;WAEA,MAAA;EA0CoC;AAwC/C;;;EAxC+C,SArCpC,YAAA;AAAA;;;;;;iBAqCK,kBAAA,CAAmB,IAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAwClC,eAAA;EAWM;EAAA,SATD,UAAA,EAAY,cAAA;;UAGpB,UAAA;EAkBS;EAAA,iBAfA,gBAAA;EAiBb;EAAA,iBAda,eAAA;EA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;;;EAkDD,WAAA,CAAY,OAAA,GAAS,cAAA,GAAsB,OAAA,CAAQ,eAAA;;;;;;;EAWnD,KAAA,CAAM,OAAA,GAAS,cAAA,GAAsB,OAAA,CAAQ,eAAA;;;;EAa7C,MAAA,IAAU,OAAA,CACrB,KAAA;IACE,IAAA;IACA,KAAA;IACA,QAAA;IACA,KAAA;EAAA;;;;;;;;;;;;UAsCU,wBAAA;;;;UA2CA,YAAA;;;;;;;;;UA6JN,uBAAA;;;;;;;;;;;;;;;;;;;UA0BA,kBAAA;;;;;;;;;;;;;EA8CK,oBAAA,CACX,OAAA;IAAW,QAAA;EAAA,IACV,OAAA,CAAQ,cAAA;;;;;;;;;;;;;;;UA6BG,uBAAA;;;;EA6DD,qBAAA,CACX,UAAA,GAAY,UAAA,EACZ,OAAA;IAAW,QAAA;EAAA,IACV,OAAA,CAAQ,eAAA;;;;UAuBG,eAAA;;;;UAuBA,qBAAA;;;;UAWA,kBAAA;AAAA;AAAA,cAUH,eAAA,EAAe,eAAwB"}
1
+ {"version":3,"file":"migration-runner.d.mts","names":[],"sources":["../../../../../../../../packages/cascade/src/migration/migration-runner.ts"],"mappings":";;;;;;;KAqBK,4BAA4B;EAC/B;EACA;EACA,SAAS;;;;;;;;;;;;;;;;;;KAmBN,mCAAmC;EACtC;EACA;EACA,SAAS;;;;;KA0BN;;WAEM;;WAEA;;;;;WAKA;;;;;;;wBAqCK,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;qBAwCtB;;WAEK,YAAY;;UAGpB;;mBAGS;;mBAGA;;mBAGA;;;;;;EAOjB,YACE;IACE,aAAa;IACb;IACA;;;;;EAeG,cAAc,YAAY;;;;UASzB;;;;UAUA;;;;;UAeA;;UAOA;;UAKA;;;;;;;;UAeA;;UAwBA;;UAGM;;;;;UAUA;;UA8BA;;;;;;;;;;;;;;;;EA2GP,SAAS,gBAAgB,uBAAuB,SAAQ;;;;;;;EAqCxD,aAAa,YAAY;;;;EAUzB;;;;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