@warlock.js/cascade 4.0.141 → 4.0.143

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 (87) hide show
  1. package/cjs/contracts/database-driver.contract.d.ts +14 -0
  2. package/cjs/contracts/database-driver.contract.d.ts.map +1 -1
  3. package/cjs/drivers/postgres/postgres-driver.d.ts +6 -0
  4. package/cjs/drivers/postgres/postgres-driver.d.ts.map +1 -1
  5. package/cjs/drivers/postgres/postgres-driver.js +8 -1
  6. package/cjs/drivers/postgres/postgres-driver.js.map +1 -1
  7. package/cjs/drivers/postgres/postgres-sql-serializer.d.ts +37 -0
  8. package/cjs/drivers/postgres/postgres-sql-serializer.d.ts.map +1 -0
  9. package/cjs/drivers/postgres/postgres-sql-serializer.js +394 -0
  10. package/cjs/drivers/postgres/postgres-sql-serializer.js.map +1 -0
  11. package/cjs/index.js +1 -1
  12. package/cjs/migration/column-builder.d.ts +14 -4
  13. package/cjs/migration/column-builder.d.ts.map +1 -1
  14. package/cjs/migration/column-builder.js +14 -5
  15. package/cjs/migration/column-builder.js.map +1 -1
  16. package/cjs/migration/column-helpers.d.ts +269 -0
  17. package/cjs/migration/column-helpers.d.ts.map +1 -0
  18. package/cjs/migration/column-helpers.js +384 -0
  19. package/cjs/migration/column-helpers.js.map +1 -0
  20. package/cjs/migration/index.d.ts +1 -0
  21. package/cjs/migration/index.d.ts.map +1 -1
  22. package/cjs/migration/migration-runner.d.ts +32 -1
  23. package/cjs/migration/migration-runner.d.ts.map +1 -1
  24. package/cjs/migration/migration-runner.js +216 -46
  25. package/cjs/migration/migration-runner.js.map +1 -1
  26. package/cjs/migration/migration.d.ts +337 -4
  27. package/cjs/migration/migration.d.ts.map +1 -1
  28. package/cjs/migration/migration.js +331 -4
  29. package/cjs/migration/migration.js.map +1 -1
  30. package/cjs/migration/sql-grammar.d.ts +18 -0
  31. package/cjs/migration/sql-grammar.d.ts.map +1 -0
  32. package/cjs/migration/sql-grammar.js +77 -0
  33. package/cjs/migration/sql-grammar.js.map +1 -0
  34. package/cjs/migration/sql-serializer.d.ts +22 -0
  35. package/cjs/migration/sql-serializer.d.ts.map +1 -0
  36. package/cjs/migration/sql-serializer.js +26 -0
  37. package/cjs/migration/sql-serializer.js.map +1 -0
  38. package/cjs/migration/types.d.ts +13 -0
  39. package/cjs/migration/types.d.ts.map +1 -1
  40. package/cjs/types.d.ts +23 -0
  41. package/cjs/types.d.ts.map +1 -1
  42. package/cjs/writer/database-writer.js +4 -4
  43. package/cjs/writer/database-writer.js.map +1 -1
  44. package/esm/contracts/database-driver.contract.d.ts +14 -0
  45. package/esm/contracts/database-driver.contract.d.ts.map +1 -1
  46. package/esm/drivers/postgres/postgres-driver.d.ts +6 -0
  47. package/esm/drivers/postgres/postgres-driver.d.ts.map +1 -1
  48. package/esm/drivers/postgres/postgres-driver.js +8 -1
  49. package/esm/drivers/postgres/postgres-driver.js.map +1 -1
  50. package/esm/drivers/postgres/postgres-sql-serializer.d.ts +37 -0
  51. package/esm/drivers/postgres/postgres-sql-serializer.d.ts.map +1 -0
  52. package/esm/drivers/postgres/postgres-sql-serializer.js +394 -0
  53. package/esm/drivers/postgres/postgres-sql-serializer.js.map +1 -0
  54. package/esm/index.js +1 -1
  55. package/esm/migration/column-builder.d.ts +14 -4
  56. package/esm/migration/column-builder.d.ts.map +1 -1
  57. package/esm/migration/column-builder.js +14 -5
  58. package/esm/migration/column-builder.js.map +1 -1
  59. package/esm/migration/column-helpers.d.ts +269 -0
  60. package/esm/migration/column-helpers.d.ts.map +1 -0
  61. package/esm/migration/column-helpers.js +384 -0
  62. package/esm/migration/column-helpers.js.map +1 -0
  63. package/esm/migration/index.d.ts +1 -0
  64. package/esm/migration/index.d.ts.map +1 -1
  65. package/esm/migration/migration-runner.d.ts +32 -1
  66. package/esm/migration/migration-runner.d.ts.map +1 -1
  67. package/esm/migration/migration-runner.js +216 -46
  68. package/esm/migration/migration-runner.js.map +1 -1
  69. package/esm/migration/migration.d.ts +337 -4
  70. package/esm/migration/migration.d.ts.map +1 -1
  71. package/esm/migration/migration.js +331 -4
  72. package/esm/migration/migration.js.map +1 -1
  73. package/esm/migration/sql-grammar.d.ts +18 -0
  74. package/esm/migration/sql-grammar.d.ts.map +1 -0
  75. package/esm/migration/sql-grammar.js +77 -0
  76. package/esm/migration/sql-grammar.js.map +1 -0
  77. package/esm/migration/sql-serializer.d.ts +22 -0
  78. package/esm/migration/sql-serializer.d.ts.map +1 -0
  79. package/esm/migration/sql-serializer.js +26 -0
  80. package/esm/migration/sql-serializer.js.map +1 -0
  81. package/esm/migration/types.d.ts +13 -0
  82. package/esm/migration/types.d.ts.map +1 -1
  83. package/esm/types.d.ts +23 -0
  84. package/esm/types.d.ts.map +1 -1
  85. package/esm/writer/database-writer.js +4 -4
  86. package/esm/writer/database-writer.js.map +1 -1
  87. package/package.json +4 -4
@@ -0,0 +1,269 @@
1
+ import { ColumnBuilder } from "./column-builder";
2
+ /**
3
+ * A no-op migration sink used by standalone column helpers.
4
+ *
5
+ * When column helpers are used in `Migration.create()` / `Migration.alter()`,
6
+ * the builder is constructed without a real migration context. The actual
7
+ * operations are dequeued from the ColumnBuilder's definition and replayed
8
+ * onto the real migration instance at execution time.
9
+ *
10
+ * Index and FK operations queued on this sink are collected and transferred
11
+ * to the real migration by the factory methods.
12
+ */
13
+ declare class DetachedMigrationSink {
14
+ /** Pending indexes registered via .unique() / .index() on a helper column. */
15
+ readonly pendingIndexes: {
16
+ columns: string[];
17
+ unique?: boolean;
18
+ }[];
19
+ /** Pending FK definitions registered via .references() on a helper column. */
20
+ readonly pendingForeignKeys: object[];
21
+ addPendingIndex(index: {
22
+ columns: string[];
23
+ unique?: boolean;
24
+ }): void;
25
+ addForeignKeyOperation(fk: object): void;
26
+ }
27
+ /**
28
+ * A `ColumnBuilder` that carries its own detached sink so it can be
29
+ * constructed outside of a migration class and later merged in.
30
+ */
31
+ export declare class DetachedColumnBuilder extends ColumnBuilder {
32
+ readonly sink: DetachedMigrationSink;
33
+ constructor(type: ConstructorParameters<typeof ColumnBuilder>[2], name: string, options?: ConstructorParameters<typeof ColumnBuilder>[3]);
34
+ }
35
+ /**
36
+ * Standalone column helper: string / varchar.
37
+ *
38
+ * @example
39
+ * ```typescript
40
+ * import { Migration, string } from "@warlock.js/cascade";
41
+ *
42
+ * export default Migration.create(User, {
43
+ * username: string(50).unique(),
44
+ * });
45
+ * ```
46
+ */
47
+ export declare function string(length?: number): DetachedColumnBuilder;
48
+ /**
49
+ * Standalone column helper: fixed-length CHAR.
50
+ *
51
+ * @example
52
+ * ```typescript
53
+ * code: char(3) // CHAR(3)
54
+ * ```
55
+ */
56
+ export declare function char(length: number): DetachedColumnBuilder;
57
+ /**
58
+ * Standalone column helper: TEXT (unlimited length).
59
+ *
60
+ * @example
61
+ * ```typescript
62
+ * import { Migration, text } from "@warlock.js/cascade";
63
+ *
64
+ * export default Migration.create(User, {
65
+ * bio: text().nullable(),
66
+ * });
67
+ * ```
68
+ */
69
+ export declare function text(): DetachedColumnBuilder;
70
+ /**
71
+ * Standalone column helper: MEDIUMTEXT.
72
+ */
73
+ export declare function mediumText(): DetachedColumnBuilder;
74
+ /**
75
+ * Standalone column helper: LONGTEXT.
76
+ */
77
+ export declare function longText(): DetachedColumnBuilder;
78
+ /**
79
+ * Standalone column helper: INTEGER.
80
+ *
81
+ * @example
82
+ * ```typescript
83
+ * age: integer().unsigned()
84
+ * ```
85
+ */
86
+ export declare function integer(): DetachedColumnBuilder;
87
+ /** Alias for `integer()`. */
88
+ export declare const int: typeof integer;
89
+ /**
90
+ * Standalone column helper: SMALLINT.
91
+ */
92
+ export declare function smallInteger(): DetachedColumnBuilder;
93
+ /** Alias for `smallInteger()`. */
94
+ export declare const smallInt: typeof smallInteger;
95
+ /**
96
+ * Standalone column helper: TINYINT.
97
+ */
98
+ export declare function tinyInteger(): DetachedColumnBuilder;
99
+ /** Alias for `tinyInteger()`. */
100
+ export declare const tinyInt: typeof tinyInteger;
101
+ /**
102
+ * Standalone column helper: BIGINT.
103
+ */
104
+ export declare function bigInteger(): DetachedColumnBuilder;
105
+ /** Alias for `bigInteger()`. */
106
+ export declare const bigInt: typeof bigInteger;
107
+ /**
108
+ * Standalone column helper: FLOAT.
109
+ */
110
+ export declare function float(): DetachedColumnBuilder;
111
+ /**
112
+ * Standalone column helper: DOUBLE.
113
+ */
114
+ export declare function double(): DetachedColumnBuilder;
115
+ /**
116
+ * Standalone column helper: DECIMAL.
117
+ *
118
+ * @example
119
+ * ```typescript
120
+ * price: decimal(10, 2) // DECIMAL(10,2)
121
+ * ```
122
+ */
123
+ export declare function decimal(precision?: number, scale?: number): DetachedColumnBuilder;
124
+ /**
125
+ * Standalone column helper: BOOLEAN.
126
+ *
127
+ * Named `boolCol` to avoid collision with the TypeScript / JS `boolean` primitive.
128
+ *
129
+ * @example
130
+ * ```typescript
131
+ * is_active: boolCol().default(true)
132
+ * ```
133
+ */
134
+ export declare function boolCol(): DetachedColumnBuilder;
135
+ /** Alias for `boolCol()`. */
136
+ export { boolCol as bool };
137
+ /**
138
+ * Standalone column helper: DATE.
139
+ */
140
+ export declare function date(): DetachedColumnBuilder;
141
+ /**
142
+ * Standalone column helper: DATETIME.
143
+ */
144
+ export declare function dateTime(): DetachedColumnBuilder;
145
+ /**
146
+ * Standalone column helper: TIMESTAMP.
147
+ *
148
+ * @example
149
+ * ```typescript
150
+ * started_at: timestamp().default("NOW()")
151
+ * ```
152
+ */
153
+ export declare function timestamp(): DetachedColumnBuilder;
154
+ /**
155
+ * Standalone column helper: TIME.
156
+ */
157
+ export declare function time(): DetachedColumnBuilder;
158
+ /**
159
+ * Standalone column helper: YEAR.
160
+ */
161
+ export declare function year(): DetachedColumnBuilder;
162
+ /**
163
+ * Standalone column helper: JSON.
164
+ *
165
+ * Named `jsonCol` to avoid collision with the TS/JSON built-in names.
166
+ * Use `json()` is fine for most cases though — this alias exists for clarity.
167
+ *
168
+ * @example
169
+ * ```typescript
170
+ * metadata: json().nullable()
171
+ * ```
172
+ */
173
+ export declare function json(): DetachedColumnBuilder;
174
+ /**
175
+ * Alias for `json()`. Named `objectCol` to avoid collision with TS `object` type.
176
+ */
177
+ export declare function objectCol(): DetachedColumnBuilder;
178
+ /**
179
+ * Standalone column helper: BINARY / BLOB.
180
+ */
181
+ export declare function binary(): DetachedColumnBuilder;
182
+ /**
183
+ * Alias for `binary()`. Named `blobCol` to avoid collision with the Web `Blob` API.
184
+ */
185
+ export declare function blobCol(): DetachedColumnBuilder;
186
+ /**
187
+ * Standalone column helper: UUID.
188
+ *
189
+ * @example
190
+ * ```typescript
191
+ * import { Migration, uuid } from "@warlock.js/cascade";
192
+ *
193
+ * export default Migration.create(Chat, {
194
+ * organization_id: uuid().references(Organization).onDelete("cascade"),
195
+ * });
196
+ * ```
197
+ */
198
+ export declare function uuid(): DetachedColumnBuilder;
199
+ /**
200
+ * Standalone column helper: ULID.
201
+ */
202
+ export declare function ulid(): DetachedColumnBuilder;
203
+ /**
204
+ * Standalone column helper: IP address.
205
+ */
206
+ export declare function ipAddress(): DetachedColumnBuilder;
207
+ /**
208
+ * Standalone column helper: MAC address.
209
+ */
210
+ export declare function macAddress(): DetachedColumnBuilder;
211
+ /**
212
+ * Standalone column helper: geo point.
213
+ */
214
+ export declare function point(): DetachedColumnBuilder;
215
+ /**
216
+ * Standalone column helper: polygon.
217
+ */
218
+ export declare function polygon(): DetachedColumnBuilder;
219
+ /**
220
+ * Standalone column helper: line string.
221
+ */
222
+ export declare function lineString(): DetachedColumnBuilder;
223
+ /**
224
+ * Standalone column helper: generic geometry.
225
+ */
226
+ export declare function geometry(): DetachedColumnBuilder;
227
+ /**
228
+ * Standalone column helper: vector (for AI embeddings).
229
+ *
230
+ * @param dimensions - Embedding size (e.g. 1536 for text-embedding-3-small)
231
+ *
232
+ * @example
233
+ * ```typescript
234
+ * embedding: vector(1536)
235
+ * ```
236
+ */
237
+ export declare function vector(dimensions: number): DetachedColumnBuilder;
238
+ /**
239
+ * Standalone column helper: ENUM.
240
+ *
241
+ * @example
242
+ * ```typescript
243
+ * status: enumCol(["active", "inactive", "pending"])
244
+ * ```
245
+ */
246
+ export declare function enumCol(values: string[]): DetachedColumnBuilder;
247
+ /**
248
+ * Standalone column helper: SET (multiple values).
249
+ */
250
+ export declare function setCol(values: string[]): DetachedColumnBuilder;
251
+ /** Standalone helper: INTEGER[] */
252
+ export declare function arrayInt(): DetachedColumnBuilder;
253
+ /** Standalone helper: BIGINT[] */
254
+ export declare function arrayBigInt(): DetachedColumnBuilder;
255
+ /** Standalone helper: REAL[] */
256
+ export declare function arrayFloat(): DetachedColumnBuilder;
257
+ /** Standalone helper: DECIMAL[] */
258
+ export declare function arrayDecimal(precision?: number, scale?: number): DetachedColumnBuilder;
259
+ /** Standalone helper: BOOLEAN[] */
260
+ export declare function arrayBoolean(): DetachedColumnBuilder;
261
+ /** Standalone helper: TEXT[] */
262
+ export declare function arrayText(): DetachedColumnBuilder;
263
+ /** Standalone helper: DATE[] */
264
+ export declare function arrayDate(): DetachedColumnBuilder;
265
+ /** Standalone helper: TIMESTAMPTZ[] */
266
+ export declare function arrayTimestamp(): DetachedColumnBuilder;
267
+ /** Standalone helper: UUID[] */
268
+ export declare function arrayUuid(): DetachedColumnBuilder;
269
+ //# sourceMappingURL=column-helpers.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"column-helpers.d.ts","sourceRoot":"","sources":["../../src/migration/column-helpers.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAEjD;;;;;;;;;;GAUG;AACH,cAAM,qBAAqB;IACzB,8EAA8E;IAC9E,SAAgB,cAAc,EAAE;QAAE,OAAO,EAAE,MAAM,EAAE,CAAC;QAAC,MAAM,CAAC,EAAE,OAAO,CAAA;KAAE,EAAE,CAAM;IAE/E,8EAA8E;IAC9E,SAAgB,kBAAkB,EAAE,MAAM,EAAE,CAAM;IAE3C,eAAe,CAAC,KAAK,EAAE;QAAE,OAAO,EA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AAU,EAAE,MAAM,GAAG,qBAAqB,CAEhE;AAMD;;;;;;;GAOG;AACH,wBAAgB,OAAO,CAAC,MAAM,EAAE,MAAM,EAAE,GAAG,qBAAqB,CAE/D;AAED;;GAEG;AACH,wBAAgB,MAAM,CAAC,MAAM,EAAE,MAAM,EAAE,GAAG,qBAAqB,CAE9D;AAMD,mCAAmC;AACnC,wBAAgB,QAAQ,IAAI,qBAAqB,CAEhD;AAED,kCAAkC;AAClC,wBAAgB,WAAW,IAAI,qBAAqB,CAEnD;AAED,gCAAgC;AAChC,wBAAgB,UAAU,IAAI,qBAAqB,CAElD;AAED,mCAAmC;AACnC,wBAAgB,YAAY,CAAC,SAAS,CAAC,EAAE,MAAM,EAAE,KAAK,CAAC,EAAE,MAAM,GAAG,qBAAqB,CAEtF;AAED,mCAAmC;AACnC,wBAAgB,YAAY,IAAI,qBAAqB,CAEpD;AAED,gCAAgC;AAChC,wBAAgB,SAAS,IAAI,qBAAqB,CAEjD;AAED,gCAAgC;AAChC,wBAAgB,SAAS,IAAI,qBAAqB,CAEjD;AAED,uCAAuC;AACvC,wBAAgB,cAAc,IAAI,qBAAqB,CAEtD;AAED,gCAAgC;AAChC,wBAAgB,SAAS,IAAI,qBAAqB,CAEjD"}
@@ -0,0 +1,384 @@
1
+ 'use strict';var columnBuilder=require('./column-builder.js');/**
2
+ * A no-op migration sink used by standalone column helpers.
3
+ *
4
+ * When column helpers are used in `Migration.create()` / `Migration.alter()`,
5
+ * the builder is constructed without a real migration context. The actual
6
+ * operations are dequeued from the ColumnBuilder's definition and replayed
7
+ * onto the real migration instance at execution time.
8
+ *
9
+ * Index and FK operations queued on this sink are collected and transferred
10
+ * to the real migration by the factory methods.
11
+ */
12
+ class DetachedMigrationSink {
13
+ /** Pending indexes registered via .unique() / .index() on a helper column. */
14
+ pendingIndexes = [];
15
+ /** Pending FK definitions registered via .references() on a helper column. */
16
+ pendingForeignKeys = [];
17
+ addPendingIndex(index) {
18
+ this.pendingIndexes.push(index);
19
+ }
20
+ addForeignKeyOperation(fk) {
21
+ this.pendingForeignKeys.push(fk);
22
+ }
23
+ }
24
+ /**
25
+ * A `ColumnBuilder` that carries its own detached sink so it can be
26
+ * constructed outside of a migration class and later merged in.
27
+ */
28
+ class DetachedColumnBuilder extends columnBuilder.ColumnBuilder {
29
+ sink;
30
+ constructor(type, name, options = {}) {
31
+ const sink = new DetachedMigrationSink();
32
+ super(sink, name, type, options);
33
+ this.sink = sink;
34
+ }
35
+ }
36
+ // ============================================================================
37
+ // STRING HELPERS
38
+ // ============================================================================
39
+ /**
40
+ * Standalone column helper: string / varchar.
41
+ *
42
+ * @example
43
+ * ```typescript
44
+ * import { Migration, string } from "@warlock.js/cascade";
45
+ *
46
+ * export default Migration.create(User, {
47
+ * username: string(50).unique(),
48
+ * });
49
+ * ```
50
+ */
51
+ function string(length = 255) {
52
+ return new DetachedColumnBuilder("string", "__placeholder__", { length });
53
+ }
54
+ /**
55
+ * Standalone column helper: fixed-length CHAR.
56
+ *
57
+ * @example
58
+ * ```typescript
59
+ * code: char(3) // CHAR(3)
60
+ * ```
61
+ */
62
+ function char(length) {
63
+ return new DetachedColumnBuilder("char", "__placeholder__", { length });
64
+ }
65
+ /**
66
+ * Standalone column helper: TEXT (unlimited length).
67
+ *
68
+ * @example
69
+ * ```typescript
70
+ * import { Migration, text } from "@warlock.js/cascade";
71
+ *
72
+ * export default Migration.create(User, {
73
+ * bio: text().nullable(),
74
+ * });
75
+ * ```
76
+ */
77
+ function text() {
78
+ return new DetachedColumnBuilder("text", "__placeholder__");
79
+ }
80
+ /**
81
+ * Standalone column helper: MEDIUMTEXT.
82
+ */
83
+ function mediumText() {
84
+ return new DetachedColumnBuilder("mediumText", "__placeholder__");
85
+ }
86
+ /**
87
+ * Standalone column helper: LONGTEXT.
88
+ */
89
+ function longText() {
90
+ return new DetachedColumnBuilder("longText", "__placeholder__");
91
+ }
92
+ // ============================================================================
93
+ // NUMERIC HELPERS
94
+ // ============================================================================
95
+ /**
96
+ * Standalone column helper: INTEGER.
97
+ *
98
+ * @example
99
+ * ```typescript
100
+ * age: integer().unsigned()
101
+ * ```
102
+ */
103
+ function integer() {
104
+ return new DetachedColumnBuilder("integer", "__placeholder__");
105
+ }
106
+ /** Alias for `integer()`. */
107
+ const int = integer;
108
+ /**
109
+ * Standalone column helper: SMALLINT.
110
+ */
111
+ function smallInteger() {
112
+ return new DetachedColumnBuilder("smallInteger", "__placeholder__");
113
+ }
114
+ /** Alias for `smallInteger()`. */
115
+ const smallInt = smallInteger;
116
+ /**
117
+ * Standalone column helper: TINYINT.
118
+ */
119
+ function tinyInteger() {
120
+ return new DetachedColumnBuilder("tinyInteger", "__placeholder__");
121
+ }
122
+ /** Alias for `tinyInteger()`. */
123
+ const tinyInt = tinyInteger;
124
+ /**
125
+ * Standalone column helper: BIGINT.
126
+ */
127
+ function bigInteger() {
128
+ return new DetachedColumnBuilder("bigInteger", "__placeholder__");
129
+ }
130
+ /** Alias for `bigInteger()`. */
131
+ const bigInt = bigInteger;
132
+ /**
133
+ * Standalone column helper: FLOAT.
134
+ */
135
+ function float() {
136
+ return new DetachedColumnBuilder("float", "__placeholder__");
137
+ }
138
+ /**
139
+ * Standalone column helper: DOUBLE.
140
+ */
141
+ function double() {
142
+ return new DetachedColumnBuilder("double", "__placeholder__");
143
+ }
144
+ /**
145
+ * Standalone column helper: DECIMAL.
146
+ *
147
+ * @example
148
+ * ```typescript
149
+ * price: decimal(10, 2) // DECIMAL(10,2)
150
+ * ```
151
+ */
152
+ function decimal(precision = 8, scale = 2) {
153
+ return new DetachedColumnBuilder("decimal", "__placeholder__", { precision, scale });
154
+ }
155
+ // ============================================================================
156
+ // BOOLEAN HELPERS
157
+ // ============================================================================
158
+ /**
159
+ * Standalone column helper: BOOLEAN.
160
+ *
161
+ * Named `boolCol` to avoid collision with the TypeScript / JS `boolean` primitive.
162
+ *
163
+ * @example
164
+ * ```typescript
165
+ * is_active: boolCol().default(true)
166
+ * ```
167
+ */
168
+ function boolCol() {
169
+ return new DetachedColumnBuilder("boolean", "__placeholder__");
170
+ }
171
+ // ============================================================================
172
+ // DATE / TIME HELPERS
173
+ // ============================================================================
174
+ /**
175
+ * Standalone column helper: DATE.
176
+ */
177
+ function date() {
178
+ return new DetachedColumnBuilder("date", "__placeholder__");
179
+ }
180
+ /**
181
+ * Standalone column helper: DATETIME.
182
+ */
183
+ function dateTime() {
184
+ return new DetachedColumnBuilder("dateTime", "__placeholder__");
185
+ }
186
+ /**
187
+ * Standalone column helper: TIMESTAMP.
188
+ *
189
+ * @example
190
+ * ```typescript
191
+ * started_at: timestamp().default("NOW()")
192
+ * ```
193
+ */
194
+ function timestamp() {
195
+ return new DetachedColumnBuilder("timestamp", "__placeholder__");
196
+ }
197
+ /**
198
+ * Standalone column helper: TIME.
199
+ */
200
+ function time() {
201
+ return new DetachedColumnBuilder("time", "__placeholder__");
202
+ }
203
+ /**
204
+ * Standalone column helper: YEAR.
205
+ */
206
+ function year() {
207
+ return new DetachedColumnBuilder("year", "__placeholder__");
208
+ }
209
+ // ============================================================================
210
+ // JSON & BINARY HELPERS
211
+ // ============================================================================
212
+ /**
213
+ * Standalone column helper: JSON.
214
+ *
215
+ * Named `jsonCol` to avoid collision with the TS/JSON built-in names.
216
+ * Use `json()` is fine for most cases though — this alias exists for clarity.
217
+ *
218
+ * @example
219
+ * ```typescript
220
+ * metadata: json().nullable()
221
+ * ```
222
+ */
223
+ function json() {
224
+ return new DetachedColumnBuilder("json", "__placeholder__");
225
+ }
226
+ /**
227
+ * Alias for `json()`. Named `objectCol` to avoid collision with TS `object` type.
228
+ */
229
+ function objectCol() {
230
+ return new DetachedColumnBuilder("json", "__placeholder__");
231
+ }
232
+ /**
233
+ * Standalone column helper: BINARY / BLOB.
234
+ */
235
+ function binary() {
236
+ return new DetachedColumnBuilder("binary", "__placeholder__");
237
+ }
238
+ /**
239
+ * Alias for `binary()`. Named `blobCol` to avoid collision with the Web `Blob` API.
240
+ */
241
+ function blobCol() {
242
+ return new DetachedColumnBuilder("binary", "__placeholder__");
243
+ }
244
+ // ============================================================================
245
+ // IDENTIFIER HELPERS
246
+ // ============================================================================
247
+ /**
248
+ * Standalone column helper: UUID.
249
+ *
250
+ * @example
251
+ * ```typescript
252
+ * import { Migration, uuid } from "@warlock.js/cascade";
253
+ *
254
+ * export default Migration.create(Chat, {
255
+ * organization_id: uuid().references(Organization).onDelete("cascade"),
256
+ * });
257
+ * ```
258
+ */
259
+ function uuid() {
260
+ return new DetachedColumnBuilder("uuid", "__placeholder__");
261
+ }
262
+ /**
263
+ * Standalone column helper: ULID.
264
+ */
265
+ function ulid() {
266
+ return new DetachedColumnBuilder("ulid", "__placeholder__");
267
+ }
268
+ // ============================================================================
269
+ // NETWORK HELPERS
270
+ // ============================================================================
271
+ /**
272
+ * Standalone column helper: IP address.
273
+ */
274
+ function ipAddress() {
275
+ return new DetachedColumnBuilder("ipAddress", "__placeholder__");
276
+ }
277
+ /**
278
+ * Standalone column helper: MAC address.
279
+ */
280
+ function macAddress() {
281
+ return new DetachedColumnBuilder("macAddress", "__placeholder__");
282
+ }
283
+ // ============================================================================
284
+ // SPATIAL HELPERS
285
+ // ============================================================================
286
+ /**
287
+ * Standalone column helper: geo point.
288
+ */
289
+ function point() {
290
+ return new DetachedColumnBuilder("point", "__placeholder__");
291
+ }
292
+ /**
293
+ * Standalone column helper: polygon.
294
+ */
295
+ function polygon() {
296
+ return new DetachedColumnBuilder("polygon", "__placeholder__");
297
+ }
298
+ /**
299
+ * Standalone column helper: line string.
300
+ */
301
+ function lineString() {
302
+ return new DetachedColumnBuilder("lineString", "__placeholder__");
303
+ }
304
+ /**
305
+ * Standalone column helper: generic geometry.
306
+ */
307
+ function geometry() {
308
+ return new DetachedColumnBuilder("geometry", "__placeholder__");
309
+ }
310
+ // ============================================================================
311
+ // AI / ML HELPERS
312
+ // ============================================================================
313
+ /**
314
+ * Standalone column helper: vector (for AI embeddings).
315
+ *
316
+ * @param dimensions - Embedding size (e.g. 1536 for text-embedding-3-small)
317
+ *
318
+ * @example
319
+ * ```typescript
320
+ * embedding: vector(1536)
321
+ * ```
322
+ */
323
+ function vector(dimensions) {
324
+ return new DetachedColumnBuilder("vector", "__placeholder__", { dimensions });
325
+ }
326
+ // ============================================================================
327
+ // ENUM & SET HELPERS
328
+ // ============================================================================
329
+ /**
330
+ * Standalone column helper: ENUM.
331
+ *
332
+ * @example
333
+ * ```typescript
334
+ * status: enumCol(["active", "inactive", "pending"])
335
+ * ```
336
+ */
337
+ function enumCol(values) {
338
+ return new DetachedColumnBuilder("enum", "__placeholder__", { values });
339
+ }
340
+ /**
341
+ * Standalone column helper: SET (multiple values).
342
+ */
343
+ function setCol(values) {
344
+ return new DetachedColumnBuilder("set", "__placeholder__", { values });
345
+ }
346
+ // ============================================================================
347
+ // POSTGRESQL ARRAY HELPERS
348
+ // ============================================================================
349
+ /** Standalone helper: INTEGER[] */
350
+ function arrayInt() {
351
+ return new DetachedColumnBuilder("arrayInt", "__placeholder__");
352
+ }
353
+ /** Standalone helper: BIGINT[] */
354
+ function arrayBigInt() {
355
+ return new DetachedColumnBuilder("arrayBigInt", "__placeholder__");
356
+ }
357
+ /** Standalone helper: REAL[] */
358
+ function arrayFloat() {
359
+ return new DetachedColumnBuilder("arrayFloat", "__placeholder__");
360
+ }
361
+ /** Standalone helper: DECIMAL[] */
362
+ function arrayDecimal(precision, scale) {
363
+ return new DetachedColumnBuilder("arrayDecimal", "__placeholder__", { precision, scale });
364
+ }
365
+ /** Standalone helper: BOOLEAN[] */
366
+ function arrayBoolean() {
367
+ return new DetachedColumnBuilder("arrayBoolean", "__placeholder__");
368
+ }
369
+ /** Standalone helper: TEXT[] */
370
+ function arrayText() {
371
+ return new DetachedColumnBuilder("arrayText", "__placeholder__");
372
+ }
373
+ /** Standalone helper: DATE[] */
374
+ function arrayDate() {
375
+ return new DetachedColumnBuilder("arrayDate", "__placeholder__");
376
+ }
377
+ /** Standalone helper: TIMESTAMPTZ[] */
378
+ function arrayTimestamp() {
379
+ return new DetachedColumnBuilder("arrayTimestamp", "__placeholder__");
380
+ }
381
+ /** Standalone helper: UUID[] */
382
+ function arrayUuid() {
383
+ return new DetachedColumnBuilder("arrayUuid", "__placeholder__");
384
+ }exports.DetachedColumnBuilder=DetachedColumnBuilder;exports.arrayBigInt=arrayBigInt;exports.arrayBoolean=arrayBoolean;exports.arrayDate=arrayDate;exports.arrayDecimal=arrayDecimal;exports.arrayFloat=arrayFloat;exports.arrayInt=arrayInt;exports.arrayText=arrayText;exports.arrayTimestamp=arrayTimestamp;exports.arrayUuid=arrayUuid;exports.bigInt=bigInt;exports.bigInteger=bigInteger;exports.binary=binary;exports.blobCol=blobCol;exports.bool=boolCol;exports.boolCol=boolCol;exports.char=char;exports.date=date;exports.dateTime=dateTime;exports.decimal=decimal;exports.double=double;exports.enumCol=enumCol;exports.float=float;exports.geometry=geometry;exports.int=int;exports.integer=integer;exports.ipAddress=ipAddress;exports.json=json;exports.lineString=lineString;exports.longText=longText;exports.macAddress=macAddress;exports.mediumText=mediumText;exports.objectCol=objectCol;exports.point=point;exports.polygon=polygon;exports.setCol=setCol;exports.smallInt=smallInt;exports.smallInteger=smallInteger;exports.string=string;exports.text=text;exports.time=time;exports.timestamp=timestamp;exports.tinyInt=tinyInt;exports.tinyInteger=tinyInteger;exports.ulid=ulid;exports.uuid=uuid;exports.vector=vector;exports.year=year;//# sourceMappingURL=column-helpers.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"column-helpers.js","sources":["../../src/migration/column-helpers.ts"],"sourcesContent":[null],"names":["ColumnBuilder"],"mappings":"8DAEA;;;;;;;;;;AAUG;AACH,MAAM,qBAAqB,CAAA;;IAET,cAAc,GAA8C,EAAE,CAAC;;IAG/D,kBAAkB,GAAa,EAAE,CAAC;AAE3C,IAAA,eAAe,CAAC,KAA8C,EAAA;AACnE,QAAA,IAAI,CAAC,cAAc,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;KACjC;AAEM,IAAA,sBAAsB,CAAC,EA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iB,CAAC,CAAC;AAClE,CAAC;AAED;SACgB,WAAW,GAAA;AACzB,IAAA,OAAO,IAAI,qBAAqB,CAAC,aAAa,EAAE,iBAAiB,CAAC,CAAC;AACrE,CAAC;AAED;SACgB,UAAU,GAAA;AACxB,IAAA,OAAO,IAAI,qBAAqB,CAAC,YAAY,EAAE,iBAAiB,CAAC,CAAC;AACpE,CAAC;AAED;AACgB,SAAA,YAAY,CAAC,SAAkB,EAAE,KAAc,EAAA;AAC7D,IAAA,OAAO,IAAI,qBAAqB,CAAC,cAAc,EAAE,iBAAiB,EAAE,EAAE,SAAS,EAAE,KAAK,EAAE,CAAC,CAAC;AAC5F,CAAC;AAED;SACgB,YAAY,GAAA;AAC1B,IAAA,OAAO,IAAI,qBAAqB,CAAC,cAAc,EAAE,iBAAiB,CAAC,CAAC;AACtE,CAAC;AAED;SACgB,SAAS,GAAA;AACvB,IAAA,OAAO,IAAI,qBAAqB,CAAC,WAAW,EAAE,iBAAiB,CAAC,CAAC;AACnE,CAAC;AAED;SACgB,SAAS,GAAA;AACvB,IAAA,OAAO,IAAI,qBAAqB,CAAC,WAAW,EAAE,iBAAiB,CAAC,CAAC;AACnE,CAAC;AAED;SACgB,cAAc,GAAA;AAC5B,IAAA,OAAO,IAAI,qBAAqB,CAAC,gBAAgB,EAAE,iBAAiB,CAAC,CAAC;AACxE,CAAC;AAED;SACgB,SAAS,GAAA;AACvB,IAAA,OAAO,IAAI,qBAAqB,CAAC,WAAW,EAAE,iBAAiB,CAAC,CAAC;AACnE"}
@@ -1,5 +1,6 @@
1
1
  export { ColumnBuilder } from "./column-builder";
2
2
  export { ForeignKeyBuilder } from "./foreign-key-builder";
3
+ export * from "./column-helpers";
3
4
  export * from "./migration";
4
5
  export * from "./migration-runner";
5
6
  export type { MigrationRecord, MigrationResult, MigrationRunnerOptions, MigrationStatus, PendingMigration, RollbackOptions, RunMigrationsOptions, } from "./types";
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/migration/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AACjD,OAAO,EAAE,iBAAiB,EAAE,MAAM,uBAAuB,CAAC;AAC1D,cAAc,aAAa,CAAC;AAC5B,cAAc,oBAAoB,CAAC;AAGnC,YAAY,EACV,eAAe,EACf,eAAe,EACf,sBAAsB,EACtB,eAAe,EACf,gBAAgB,EAChB,eAAe,EACf,oBAAoB,GACrB,MAAM,SAAS,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/migration/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AACjD,OAAO,EAAE,iBAAiB,EAAE,MAAM,uBAAuB,CAAC;AAC1D,cAAc,kBAAkB,CAAC;AACjC,cAAc,aAAa,CAAC;AAC5B,cAAc,oBAAoB,CAAC;AAGnC,YAAY,EACV,eAAe,EACf,eAAe,EACf,sBAAsB,EACtB,eAAe,EACf,gBAAgB,EAChB,eAAe,EACf,oBAAoB,GACrB,MAAM,SAAS,CAAC"}