drizzle-kit 0.23.2-eddab2e → 0.24.0-6205f01
Sign up to get free protection for your applications and to get access to all the features.
- package/api.d.mts +20 -4
- package/api.d.ts +20 -4
- package/api.js +477 -397
- package/api.mjs +477 -397
- package/bin.cjs +37 -4
- package/package.json +2 -2
- package/utils.js +5 -0
- package/utils.mjs +4 -0
package/api.mjs
CHANGED
@@ -8343,6 +8343,9 @@ var init_sqliteSchema = __esm({
|
|
8343
8343
|
});
|
8344
8344
|
|
8345
8345
|
// src/utils.ts
|
8346
|
+
function isPgArrayType(sqlType) {
|
8347
|
+
return sqlType.match(/.*\[\d*\].*|.*\[\].*/g) !== null;
|
8348
|
+
}
|
8346
8349
|
var copy, prepareMigrationMeta, schemaRenameKey, tableRenameKey, columnRenameKey;
|
8347
8350
|
var init_utils = __esm({
|
8348
8351
|
"src/utils.ts"() {
|
@@ -8716,14 +8719,14 @@ var require_heap = __commonJS({
|
|
8716
8719
|
return item;
|
8717
8720
|
};
|
8718
8721
|
heapify = function(array, cmp) {
|
8719
|
-
var i, _i2,
|
8722
|
+
var i, _i2, _j2, _len, _ref, _ref1, _results, _results1;
|
8720
8723
|
if (cmp == null) {
|
8721
8724
|
cmp = defaultCmp;
|
8722
8725
|
}
|
8723
8726
|
_ref1 = function() {
|
8724
8727
|
_results1 = [];
|
8725
|
-
for (var
|
8726
|
-
_results1.push(
|
8728
|
+
for (var _j3 = 0, _ref2 = floor(array.length / 2); 0 <= _ref2 ? _j3 < _ref2 : _j3 > _ref2; 0 <= _ref2 ? _j3++ : _j3--) {
|
8729
|
+
_results1.push(_j3);
|
8727
8730
|
}
|
8728
8731
|
return _results1;
|
8729
8732
|
}.apply(this).reverse();
|
@@ -8764,7 +8767,7 @@ var require_heap = __commonJS({
|
|
8764
8767
|
return result.sort(cmp).reverse();
|
8765
8768
|
};
|
8766
8769
|
nsmallest = function(array, n, cmp) {
|
8767
|
-
var elem, i, los, result, _i2,
|
8770
|
+
var elem, i, los, result, _i2, _j2, _len, _ref, _ref1, _results;
|
8768
8771
|
if (cmp == null) {
|
8769
8772
|
cmp = defaultCmp;
|
8770
8773
|
}
|
@@ -8787,7 +8790,7 @@ var require_heap = __commonJS({
|
|
8787
8790
|
}
|
8788
8791
|
heapify(array, cmp);
|
8789
8792
|
_results = [];
|
8790
|
-
for (i =
|
8793
|
+
for (i = _j2 = 0, _ref1 = min2(n, array.length); 0 <= _ref1 ? _j2 < _ref1 : _j2 > _ref1; i = 0 <= _ref1 ? ++_j2 : --_j2) {
|
8791
8794
|
_results.push(heappop(array, cmp));
|
8792
8795
|
}
|
8793
8796
|
return _results;
|
@@ -17277,7 +17280,7 @@ var init_mjs = __esm({
|
|
17277
17280
|
}
|
17278
17281
|
});
|
17279
17282
|
|
17280
|
-
// ../
|
17283
|
+
// ../drizzle-orm/dist/entity.js
|
17281
17284
|
function is(value, type) {
|
17282
17285
|
if (!value || typeof value !== "object") {
|
17283
17286
|
return false;
|
@@ -17303,17 +17306,17 @@ function is(value, type) {
|
|
17303
17306
|
}
|
17304
17307
|
var entityKind, hasOwnEntityKind;
|
17305
17308
|
var init_entity = __esm({
|
17306
|
-
"../
|
17309
|
+
"../drizzle-orm/dist/entity.js"() {
|
17307
17310
|
"use strict";
|
17308
17311
|
entityKind = Symbol.for("drizzle:entityKind");
|
17309
17312
|
hasOwnEntityKind = Symbol.for("drizzle:hasOwnEntityKind");
|
17310
17313
|
}
|
17311
17314
|
});
|
17312
17315
|
|
17313
|
-
// ../
|
17316
|
+
// ../drizzle-orm/dist/column.js
|
17314
17317
|
var _a, Column2;
|
17315
17318
|
var init_column = __esm({
|
17316
|
-
"../
|
17319
|
+
"../drizzle-orm/dist/column.js"() {
|
17317
17320
|
"use strict";
|
17318
17321
|
init_entity();
|
17319
17322
|
_a = entityKind;
|
@@ -17367,10 +17370,10 @@ var init_column = __esm({
|
|
17367
17370
|
}
|
17368
17371
|
});
|
17369
17372
|
|
17370
|
-
// ../
|
17373
|
+
// ../drizzle-orm/dist/column-builder.js
|
17371
17374
|
var _a2, ColumnBuilder;
|
17372
17375
|
var init_column_builder = __esm({
|
17373
|
-
"../
|
17376
|
+
"../drizzle-orm/dist/column-builder.js"() {
|
17374
17377
|
"use strict";
|
17375
17378
|
init_entity();
|
17376
17379
|
_a2 = entityKind;
|
@@ -17472,7 +17475,7 @@ var init_column_builder = __esm({
|
|
17472
17475
|
}
|
17473
17476
|
});
|
17474
17477
|
|
17475
|
-
// ../
|
17478
|
+
// ../drizzle-orm/dist/table.js
|
17476
17479
|
function isTable(table4) {
|
17477
17480
|
return typeof table4 === "object" && table4 !== null && IsDrizzleTable in table4;
|
17478
17481
|
}
|
@@ -17482,9 +17485,9 @@ function getTableName(table4) {
|
|
17482
17485
|
function getTableUniqueName(table4) {
|
17483
17486
|
return `${table4[Schema] ?? "public"}.${table4[TableName]}`;
|
17484
17487
|
}
|
17485
|
-
var TableName, Schema, Columns, ExtraConfigColumns, OriginalName, BaseName, IsAlias, ExtraConfigBuilder, IsDrizzleTable, _a3, _b, _c, _d, _e, _f, _g, _h, _i, Table2;
|
17488
|
+
var TableName, Schema, Columns, ExtraConfigColumns, OriginalName, BaseName, IsAlias, ExtraConfigBuilder, IsDrizzleTable, _a3, _b, _c, _d, _e, _f, _g, _h, _i, _j, Table2;
|
17486
17489
|
var init_table = __esm({
|
17487
|
-
"../
|
17490
|
+
"../drizzle-orm/dist/table.js"() {
|
17488
17491
|
"use strict";
|
17489
17492
|
init_entity();
|
17490
17493
|
TableName = Symbol.for("drizzle:Name");
|
@@ -17496,32 +17499,34 @@ var init_table = __esm({
|
|
17496
17499
|
IsAlias = Symbol.for("drizzle:IsAlias");
|
17497
17500
|
ExtraConfigBuilder = Symbol.for("drizzle:ExtraConfigBuilder");
|
17498
17501
|
IsDrizzleTable = Symbol.for("drizzle:IsDrizzleTable");
|
17499
|
-
|
17502
|
+
_j = entityKind, _i = TableName, _h = OriginalName, _g = Schema, _f = Columns, _e = ExtraConfigColumns, _d = BaseName, _c = IsAlias, _b = IsDrizzleTable, _a3 = ExtraConfigBuilder;
|
17500
17503
|
Table2 = class {
|
17501
17504
|
constructor(name2, schema4, baseName) {
|
17502
17505
|
/**
|
17503
17506
|
* @internal
|
17504
17507
|
* Can be changed if the table is aliased.
|
17505
17508
|
*/
|
17506
|
-
__publicField(this,
|
17509
|
+
__publicField(this, _i);
|
17507
17510
|
/**
|
17508
17511
|
* @internal
|
17509
17512
|
* Used to store the original name of the table, before any aliasing.
|
17510
17513
|
*/
|
17514
|
+
__publicField(this, _h);
|
17515
|
+
/** @internal */
|
17511
17516
|
__publicField(this, _g);
|
17512
17517
|
/** @internal */
|
17513
17518
|
__publicField(this, _f);
|
17514
17519
|
/** @internal */
|
17515
17520
|
__publicField(this, _e);
|
17516
|
-
/** @internal */
|
17517
|
-
__publicField(this, _d);
|
17518
17521
|
/**
|
17519
17522
|
* @internal
|
17520
17523
|
* Used to store the table name before the transformation via the `tableCreator` functions.
|
17521
17524
|
*/
|
17522
|
-
__publicField(this,
|
17525
|
+
__publicField(this, _d);
|
17523
17526
|
/** @internal */
|
17524
|
-
__publicField(this,
|
17527
|
+
__publicField(this, _c, false);
|
17528
|
+
/** @internal */
|
17529
|
+
__publicField(this, _b, true);
|
17525
17530
|
/** @internal */
|
17526
17531
|
__publicField(this, _a3);
|
17527
17532
|
this[TableName] = this[OriginalName] = name2;
|
@@ -17529,7 +17534,7 @@ var init_table = __esm({
|
|
17529
17534
|
this[BaseName] = baseName;
|
17530
17535
|
}
|
17531
17536
|
};
|
17532
|
-
__publicField(Table2,
|
17537
|
+
__publicField(Table2, _j, "Table");
|
17533
17538
|
/** @internal */
|
17534
17539
|
__publicField(Table2, "Symbol", {
|
17535
17540
|
Name: TableName,
|
@@ -17544,7 +17549,7 @@ var init_table = __esm({
|
|
17544
17549
|
}
|
17545
17550
|
});
|
17546
17551
|
|
17547
|
-
// ../
|
17552
|
+
// ../drizzle-orm/dist/pg-core/table.js
|
17548
17553
|
function pgTableWithSchema(name2, columns, extraConfig, schema4, baseName = name2) {
|
17549
17554
|
const rawTable = new PgTable(name2, schema4, baseName);
|
17550
17555
|
const builtColumns = Object.fromEntries(
|
@@ -17572,7 +17577,7 @@ function pgTableWithSchema(name2, columns, extraConfig, schema4, baseName = name
|
|
17572
17577
|
}
|
17573
17578
|
var InlineForeignKeys, _a4, _b2, _c2, _d2, PgTable, pgTable;
|
17574
17579
|
var init_table2 = __esm({
|
17575
|
-
"../
|
17580
|
+
"../drizzle-orm/dist/pg-core/table.js"() {
|
17576
17581
|
"use strict";
|
17577
17582
|
init_entity();
|
17578
17583
|
init_table();
|
@@ -17597,10 +17602,10 @@ var init_table2 = __esm({
|
|
17597
17602
|
}
|
17598
17603
|
});
|
17599
17604
|
|
17600
|
-
// ../
|
17605
|
+
// ../drizzle-orm/dist/pg-core/foreign-keys.js
|
17601
17606
|
var _a5, ForeignKeyBuilder, _a6, ForeignKey;
|
17602
17607
|
var init_foreign_keys = __esm({
|
17603
|
-
"../
|
17608
|
+
"../drizzle-orm/dist/pg-core/foreign-keys.js"() {
|
17604
17609
|
"use strict";
|
17605
17610
|
init_entity();
|
17606
17611
|
init_table2();
|
@@ -17664,23 +17669,23 @@ var init_foreign_keys = __esm({
|
|
17664
17669
|
}
|
17665
17670
|
});
|
17666
17671
|
|
17667
|
-
// ../
|
17672
|
+
// ../drizzle-orm/dist/tracing-utils.js
|
17668
17673
|
function iife(fn, ...args) {
|
17669
17674
|
return fn(...args);
|
17670
17675
|
}
|
17671
17676
|
var init_tracing_utils = __esm({
|
17672
|
-
"../
|
17677
|
+
"../drizzle-orm/dist/tracing-utils.js"() {
|
17673
17678
|
"use strict";
|
17674
17679
|
}
|
17675
17680
|
});
|
17676
17681
|
|
17677
|
-
// ../
|
17682
|
+
// ../drizzle-orm/dist/pg-core/unique-constraint.js
|
17678
17683
|
function uniqueKeyName(table4, columns) {
|
17679
17684
|
return `${table4[PgTable.Symbol.Name]}_${columns.join("_")}_unique`;
|
17680
17685
|
}
|
17681
17686
|
var _a7, UniqueConstraintBuilder, _a8, UniqueOnConstraintBuilder, _a9, UniqueConstraint;
|
17682
17687
|
var init_unique_constraint = __esm({
|
17683
|
-
"../
|
17688
|
+
"../drizzle-orm/dist/pg-core/unique-constraint.js"() {
|
17684
17689
|
"use strict";
|
17685
17690
|
init_entity();
|
17686
17691
|
init_table2();
|
@@ -17735,7 +17740,7 @@ var init_unique_constraint = __esm({
|
|
17735
17740
|
}
|
17736
17741
|
});
|
17737
17742
|
|
17738
|
-
// ../
|
17743
|
+
// ../drizzle-orm/dist/pg-core/utils/array.js
|
17739
17744
|
function parsePgArrayValue(arrayString, startFrom, inQuotes) {
|
17740
17745
|
for (let i = startFrom; i < arrayString.length; i++) {
|
17741
17746
|
const char = arrayString[i];
|
@@ -17811,15 +17816,15 @@ function makePgArray(array) {
|
|
17811
17816
|
}).join(",")}}`;
|
17812
17817
|
}
|
17813
17818
|
var init_array = __esm({
|
17814
|
-
"../
|
17819
|
+
"../drizzle-orm/dist/pg-core/utils/array.js"() {
|
17815
17820
|
"use strict";
|
17816
17821
|
}
|
17817
17822
|
});
|
17818
17823
|
|
17819
|
-
// ../
|
17824
|
+
// ../drizzle-orm/dist/pg-core/columns/common.js
|
17820
17825
|
var _a10, _b3, PgColumnBuilder, _a11, _b4, PgColumn, _a12, _b5, ExtraConfigColumn, _a13, IndexedColumn, _a14, _b6, PgArrayBuilder, _a15, _b7, _PgArray, PgArray;
|
17821
17826
|
var init_common2 = __esm({
|
17822
|
-
"../
|
17827
|
+
"../drizzle-orm/dist/pg-core/columns/common.js"() {
|
17823
17828
|
"use strict";
|
17824
17829
|
init_column_builder();
|
17825
17830
|
init_column();
|
@@ -18020,7 +18025,7 @@ var init_common2 = __esm({
|
|
18020
18025
|
}
|
18021
18026
|
});
|
18022
18027
|
|
18023
|
-
// ../
|
18028
|
+
// ../drizzle-orm/dist/pg-core/columns/enum.js
|
18024
18029
|
function isPgEnum(obj) {
|
18025
18030
|
return !!obj && typeof obj === "function" && isPgEnumSym in obj && obj[isPgEnumSym] === true;
|
18026
18031
|
}
|
@@ -18038,7 +18043,7 @@ function pgEnumWithSchema(enumName, values, schema4) {
|
|
18038
18043
|
}
|
18039
18044
|
var isPgEnumSym, _a16, _b8, PgEnumColumnBuilder, _a17, _b9, PgEnumColumn;
|
18040
18045
|
var init_enum = __esm({
|
18041
|
-
"../
|
18046
|
+
"../drizzle-orm/dist/pg-core/columns/enum.js"() {
|
18042
18047
|
"use strict";
|
18043
18048
|
init_entity();
|
18044
18049
|
init_common2();
|
@@ -18072,10 +18077,10 @@ var init_enum = __esm({
|
|
18072
18077
|
}
|
18073
18078
|
});
|
18074
18079
|
|
18075
|
-
// ../
|
18080
|
+
// ../drizzle-orm/dist/subquery.js
|
18076
18081
|
var _a18, Subquery, _a19, _b10, WithSubquery;
|
18077
18082
|
var init_subquery = __esm({
|
18078
|
-
"../
|
18083
|
+
"../drizzle-orm/dist/subquery.js"() {
|
18079
18084
|
"use strict";
|
18080
18085
|
init_entity();
|
18081
18086
|
_a18 = entityKind;
|
@@ -18100,19 +18105,19 @@ var init_subquery = __esm({
|
|
18100
18105
|
}
|
18101
18106
|
});
|
18102
18107
|
|
18103
|
-
// ../
|
18108
|
+
// ../drizzle-orm/dist/version.js
|
18104
18109
|
var version;
|
18105
18110
|
var init_version = __esm({
|
18106
|
-
"../
|
18111
|
+
"../drizzle-orm/dist/version.js"() {
|
18107
18112
|
"use strict";
|
18108
|
-
version = "0.
|
18113
|
+
version = "0.33.0";
|
18109
18114
|
}
|
18110
18115
|
});
|
18111
18116
|
|
18112
|
-
// ../
|
18117
|
+
// ../drizzle-orm/dist/tracing.js
|
18113
18118
|
var otel, rawTracer, tracer;
|
18114
18119
|
var init_tracing = __esm({
|
18115
|
-
"../
|
18120
|
+
"../drizzle-orm/dist/tracing.js"() {
|
18116
18121
|
"use strict";
|
18117
18122
|
init_tracing_utils();
|
18118
18123
|
init_version();
|
@@ -18150,16 +18155,16 @@ var init_tracing = __esm({
|
|
18150
18155
|
}
|
18151
18156
|
});
|
18152
18157
|
|
18153
|
-
// ../
|
18158
|
+
// ../drizzle-orm/dist/view-common.js
|
18154
18159
|
var ViewBaseConfig;
|
18155
18160
|
var init_view_common = __esm({
|
18156
|
-
"../
|
18161
|
+
"../drizzle-orm/dist/view-common.js"() {
|
18157
18162
|
"use strict";
|
18158
18163
|
ViewBaseConfig = Symbol.for("drizzle:ViewBaseConfig");
|
18159
18164
|
}
|
18160
18165
|
});
|
18161
18166
|
|
18162
|
-
// ../
|
18167
|
+
// ../drizzle-orm/dist/sql/sql.js
|
18163
18168
|
function isSQLWrapper(value) {
|
18164
18169
|
return value !== null && value !== void 0 && typeof value.getSQL === "function";
|
18165
18170
|
}
|
@@ -18207,12 +18212,18 @@ function fillPlaceholders(params, values) {
|
|
18207
18212
|
}
|
18208
18213
|
return values[p.name];
|
18209
18214
|
}
|
18215
|
+
if (is(p, Param) && is(p.value, Placeholder)) {
|
18216
|
+
if (!(p.value.name in values)) {
|
18217
|
+
throw new Error(`No value for placeholder "${p.value.name}" was provided`);
|
18218
|
+
}
|
18219
|
+
return p.encoder.mapToDriverValue(values[p.value.name]);
|
18220
|
+
}
|
18210
18221
|
return p;
|
18211
18222
|
});
|
18212
18223
|
}
|
18213
18224
|
var _a20, FakePrimitiveParam, _a21, StringChunk, _a22, _SQL, SQL, _a23, Name, noopDecoder, noopEncoder, noopMapper, _a24, Param, _a25, Placeholder, _a26, _b11, View;
|
18214
18225
|
var init_sql = __esm({
|
18215
|
-
"../
|
18226
|
+
"../drizzle-orm/dist/sql/sql.js"() {
|
18216
18227
|
"use strict";
|
18217
18228
|
init_entity();
|
18218
18229
|
init_enum();
|
@@ -18320,6 +18331,9 @@ var init_sql = __esm({
|
|
18320
18331
|
};
|
18321
18332
|
}
|
18322
18333
|
if (is(chunk, Param)) {
|
18334
|
+
if (is(chunk.value, Placeholder)) {
|
18335
|
+
return { sql: escapeParam(paramStartIndex.value++, chunk), params: [chunk], typings: ["none"] };
|
18336
|
+
}
|
18323
18337
|
const mappedValue = chunk.value === null ? null : chunk.encoder.mapToDriverValue(chunk.value);
|
18324
18338
|
if (is(mappedValue, _SQL)) {
|
18325
18339
|
return this.buildQueryFromSourceParams([mappedValue], config);
|
@@ -18327,7 +18341,7 @@ var init_sql = __esm({
|
|
18327
18341
|
if (inlineParams) {
|
18328
18342
|
return { sql: this.mapInlineParam(mappedValue, config), params: [] };
|
18329
18343
|
}
|
18330
|
-
let typings;
|
18344
|
+
let typings = ["none"];
|
18331
18345
|
if (prepareTyping) {
|
18332
18346
|
typings = [prepareTyping(chunk.encoder)];
|
18333
18347
|
}
|
@@ -18369,7 +18383,7 @@ var init_sql = __esm({
|
|
18369
18383
|
if (inlineParams) {
|
18370
18384
|
return { sql: this.mapInlineParam(chunk, config), params: [] };
|
18371
18385
|
}
|
18372
|
-
return { sql: escapeParam(paramStartIndex.value++, chunk), params: [chunk] };
|
18386
|
+
return { sql: escapeParam(paramStartIndex.value++, chunk), params: [chunk], typings: ["none"] };
|
18373
18387
|
}));
|
18374
18388
|
}
|
18375
18389
|
mapInlineParam(chunk, { escapeString }) {
|
@@ -18558,7 +18572,7 @@ var init_sql = __esm({
|
|
18558
18572
|
}
|
18559
18573
|
});
|
18560
18574
|
|
18561
|
-
// ../
|
18575
|
+
// ../drizzle-orm/dist/alias.js
|
18562
18576
|
function aliasedTable(table4, tableAlias) {
|
18563
18577
|
return new Proxy(table4, new TableAliasProxyHandler(tableAlias, false));
|
18564
18578
|
}
|
@@ -18590,7 +18604,7 @@ function mapColumnsInSQLToAlias(query, alias) {
|
|
18590
18604
|
}
|
18591
18605
|
var _a27, ColumnAliasProxyHandler, _a28, TableAliasProxyHandler, _a29, RelationTableAliasProxyHandler;
|
18592
18606
|
var init_alias = __esm({
|
18593
|
-
"../
|
18607
|
+
"../drizzle-orm/dist/alias.js"() {
|
18594
18608
|
"use strict";
|
18595
18609
|
init_column();
|
18596
18610
|
init_entity();
|
@@ -18671,10 +18685,10 @@ var init_alias = __esm({
|
|
18671
18685
|
}
|
18672
18686
|
});
|
18673
18687
|
|
18674
|
-
// ../
|
18688
|
+
// ../drizzle-orm/dist/errors.js
|
18675
18689
|
var _a30, _b12, DrizzleError, _a31, _b13, TransactionRollbackError;
|
18676
18690
|
var init_errors = __esm({
|
18677
|
-
"../
|
18691
|
+
"../drizzle-orm/dist/errors.js"() {
|
18678
18692
|
"use strict";
|
18679
18693
|
init_entity();
|
18680
18694
|
DrizzleError = class extends (_b12 = Error, _a30 = entityKind, _b12) {
|
@@ -18694,7 +18708,7 @@ var init_errors = __esm({
|
|
18694
18708
|
}
|
18695
18709
|
});
|
18696
18710
|
|
18697
|
-
// ../
|
18711
|
+
// ../drizzle-orm/dist/sql/expressions/conditions.js
|
18698
18712
|
function bindIfParam(value, column4) {
|
18699
18713
|
if (isDriverValueEncoder(column4) && !isSQLWrapper(value) && !is(value, Param) && !is(value, Placeholder) && !is(value, Column2) && !is(value, Table2) && !is(value, View)) {
|
18700
18714
|
return new Param(value, column4);
|
@@ -18822,7 +18836,7 @@ function arrayOverlaps(column4, values) {
|
|
18822
18836
|
}
|
18823
18837
|
var eq, ne, gt, gte, lt, lte;
|
18824
18838
|
var init_conditions = __esm({
|
18825
|
-
"../
|
18839
|
+
"../drizzle-orm/dist/sql/expressions/conditions.js"() {
|
18826
18840
|
"use strict";
|
18827
18841
|
init_column();
|
18828
18842
|
init_entity();
|
@@ -18849,7 +18863,7 @@ var init_conditions = __esm({
|
|
18849
18863
|
}
|
18850
18864
|
});
|
18851
18865
|
|
18852
|
-
// ../
|
18866
|
+
// ../drizzle-orm/dist/sql/expressions/select.js
|
18853
18867
|
function asc(column4) {
|
18854
18868
|
return sql`${column4} asc`;
|
18855
18869
|
}
|
@@ -18857,33 +18871,33 @@ function desc(column4) {
|
|
18857
18871
|
return sql`${column4} desc`;
|
18858
18872
|
}
|
18859
18873
|
var init_select = __esm({
|
18860
|
-
"../
|
18874
|
+
"../drizzle-orm/dist/sql/expressions/select.js"() {
|
18861
18875
|
"use strict";
|
18862
18876
|
init_sql();
|
18863
18877
|
}
|
18864
18878
|
});
|
18865
18879
|
|
18866
|
-
// ../
|
18880
|
+
// ../drizzle-orm/dist/sql/expressions/index.js
|
18867
18881
|
var init_expressions = __esm({
|
18868
|
-
"../
|
18882
|
+
"../drizzle-orm/dist/sql/expressions/index.js"() {
|
18869
18883
|
"use strict";
|
18870
18884
|
init_conditions();
|
18871
18885
|
init_select();
|
18872
18886
|
}
|
18873
18887
|
});
|
18874
18888
|
|
18875
|
-
// ../
|
18889
|
+
// ../drizzle-orm/dist/expressions.js
|
18876
18890
|
var init_expressions2 = __esm({
|
18877
|
-
"../
|
18891
|
+
"../drizzle-orm/dist/expressions.js"() {
|
18878
18892
|
"use strict";
|
18879
18893
|
init_expressions();
|
18880
18894
|
}
|
18881
18895
|
});
|
18882
18896
|
|
18883
|
-
// ../
|
18897
|
+
// ../drizzle-orm/dist/logger.js
|
18884
18898
|
var _a32, ConsoleLogWriter, _a33, DefaultLogger, _a34, NoopLogger;
|
18885
18899
|
var init_logger = __esm({
|
18886
|
-
"../
|
18900
|
+
"../drizzle-orm/dist/logger.js"() {
|
18887
18901
|
"use strict";
|
18888
18902
|
init_entity();
|
18889
18903
|
_a32 = entityKind;
|
@@ -18921,17 +18935,17 @@ var init_logger = __esm({
|
|
18921
18935
|
}
|
18922
18936
|
});
|
18923
18937
|
|
18924
|
-
// ../
|
18938
|
+
// ../drizzle-orm/dist/operations.js
|
18925
18939
|
var init_operations = __esm({
|
18926
|
-
"../
|
18940
|
+
"../drizzle-orm/dist/operations.js"() {
|
18927
18941
|
"use strict";
|
18928
18942
|
}
|
18929
18943
|
});
|
18930
18944
|
|
18931
|
-
// ../
|
18945
|
+
// ../drizzle-orm/dist/query-promise.js
|
18932
18946
|
var _a35, _b14, QueryPromise;
|
18933
18947
|
var init_query_promise = __esm({
|
18934
|
-
"../
|
18948
|
+
"../drizzle-orm/dist/query-promise.js"() {
|
18935
18949
|
"use strict";
|
18936
18950
|
init_entity();
|
18937
18951
|
_b14 = entityKind, _a35 = Symbol.toStringTag;
|
@@ -18962,10 +18976,10 @@ var init_query_promise = __esm({
|
|
18962
18976
|
}
|
18963
18977
|
});
|
18964
18978
|
|
18965
|
-
// ../
|
18979
|
+
// ../drizzle-orm/dist/pg-core/primary-keys.js
|
18966
18980
|
var _a36, PrimaryKeyBuilder, _a37, PrimaryKey;
|
18967
18981
|
var init_primary_keys = __esm({
|
18968
|
-
"../
|
18982
|
+
"../drizzle-orm/dist/pg-core/primary-keys.js"() {
|
18969
18983
|
"use strict";
|
18970
18984
|
init_entity();
|
18971
18985
|
init_table2();
|
@@ -19002,7 +19016,7 @@ var init_primary_keys = __esm({
|
|
19002
19016
|
}
|
19003
19017
|
});
|
19004
19018
|
|
19005
|
-
// ../
|
19019
|
+
// ../drizzle-orm/dist/relations.js
|
19006
19020
|
function getOperators() {
|
19007
19021
|
return {
|
19008
19022
|
and,
|
@@ -19223,7 +19237,7 @@ function mapRelationalRow(tablesConfig, tableConfig, row, buildQueryResultSelect
|
|
19223
19237
|
}
|
19224
19238
|
var _a38, Relation, _a39, Relations, _a40, _b15, _One, One, _a41, _b16, _Many, Many;
|
19225
19239
|
var init_relations = __esm({
|
19226
|
-
"../
|
19240
|
+
"../drizzle-orm/dist/relations.js"() {
|
19227
19241
|
"use strict";
|
19228
19242
|
init_table();
|
19229
19243
|
init_column();
|
@@ -19290,7 +19304,7 @@ var init_relations = __esm({
|
|
19290
19304
|
}
|
19291
19305
|
});
|
19292
19306
|
|
19293
|
-
// ../
|
19307
|
+
// ../drizzle-orm/dist/sql/functions/aggregate.js
|
19294
19308
|
function count(expression) {
|
19295
19309
|
return sql`count(${expression || sql.raw("*")})`.mapWith(Number);
|
19296
19310
|
}
|
@@ -19316,7 +19330,7 @@ function min(expression) {
|
|
19316
19330
|
return sql`min(${expression})`.mapWith(is(expression, Column2) ? expression : String);
|
19317
19331
|
}
|
19318
19332
|
var init_aggregate = __esm({
|
19319
|
-
"../
|
19333
|
+
"../drizzle-orm/dist/sql/functions/aggregate.js"() {
|
19320
19334
|
"use strict";
|
19321
19335
|
init_column();
|
19322
19336
|
init_entity();
|
@@ -19324,7 +19338,7 @@ var init_aggregate = __esm({
|
|
19324
19338
|
}
|
19325
19339
|
});
|
19326
19340
|
|
19327
|
-
// ../
|
19341
|
+
// ../drizzle-orm/dist/sql/functions/vector.js
|
19328
19342
|
function toSql(value) {
|
19329
19343
|
return JSON.stringify(value);
|
19330
19344
|
}
|
@@ -19365,24 +19379,24 @@ function jaccardDistance(column4, value) {
|
|
19365
19379
|
return sql`${column4} <%> ${value}`;
|
19366
19380
|
}
|
19367
19381
|
var init_vector = __esm({
|
19368
|
-
"../
|
19382
|
+
"../drizzle-orm/dist/sql/functions/vector.js"() {
|
19369
19383
|
"use strict";
|
19370
19384
|
init_sql();
|
19371
19385
|
}
|
19372
19386
|
});
|
19373
19387
|
|
19374
|
-
// ../
|
19388
|
+
// ../drizzle-orm/dist/sql/functions/index.js
|
19375
19389
|
var init_functions = __esm({
|
19376
|
-
"../
|
19390
|
+
"../drizzle-orm/dist/sql/functions/index.js"() {
|
19377
19391
|
"use strict";
|
19378
19392
|
init_aggregate();
|
19379
19393
|
init_vector();
|
19380
19394
|
}
|
19381
19395
|
});
|
19382
19396
|
|
19383
|
-
// ../
|
19397
|
+
// ../drizzle-orm/dist/sql/index.js
|
19384
19398
|
var init_sql2 = __esm({
|
19385
|
-
"../
|
19399
|
+
"../drizzle-orm/dist/sql/index.js"() {
|
19386
19400
|
"use strict";
|
19387
19401
|
init_expressions();
|
19388
19402
|
init_functions();
|
@@ -19390,7 +19404,7 @@ var init_sql2 = __esm({
|
|
19390
19404
|
}
|
19391
19405
|
});
|
19392
19406
|
|
19393
|
-
// ../
|
19407
|
+
// ../drizzle-orm/dist/utils.js
|
19394
19408
|
function mapResultRow(columns, row, joinsNotNullableMap) {
|
19395
19409
|
const nullifyMap = {};
|
19396
19410
|
const result = columns.reduce(
|
@@ -19498,7 +19512,7 @@ function getTableLikeName(table4) {
|
|
19498
19512
|
return is(table4, Subquery) ? table4._.alias : is(table4, View) ? table4[ViewBaseConfig].name : is(table4, SQL) ? void 0 : table4[Table2.Symbol.IsAlias] ? table4[Table2.Symbol.Name] : table4[Table2.Symbol.BaseName];
|
19499
19513
|
}
|
19500
19514
|
var init_utils2 = __esm({
|
19501
|
-
"../
|
19515
|
+
"../drizzle-orm/dist/utils.js"() {
|
19502
19516
|
"use strict";
|
19503
19517
|
init_column();
|
19504
19518
|
init_entity();
|
@@ -19509,9 +19523,9 @@ var init_utils2 = __esm({
|
|
19509
19523
|
}
|
19510
19524
|
});
|
19511
19525
|
|
19512
|
-
// ../
|
19513
|
-
var
|
19514
|
-
__export(
|
19526
|
+
// ../drizzle-orm/dist/index.js
|
19527
|
+
var dist_exports = {};
|
19528
|
+
__export(dist_exports, {
|
19515
19529
|
BaseName: () => BaseName,
|
19516
19530
|
Column: () => Column2,
|
19517
19531
|
ColumnAliasProxyHandler: () => ColumnAliasProxyHandler,
|
@@ -19625,8 +19639,8 @@ __export(drizzle_orm_exports, {
|
|
19625
19639
|
sum: () => sum,
|
19626
19640
|
sumDistinct: () => sumDistinct
|
19627
19641
|
});
|
19628
|
-
var
|
19629
|
-
"../
|
19642
|
+
var init_dist = __esm({
|
19643
|
+
"../drizzle-orm/dist/index.js"() {
|
19630
19644
|
"use strict";
|
19631
19645
|
init_alias();
|
19632
19646
|
init_column_builder();
|
@@ -19646,17 +19660,17 @@ var init_drizzle_orm = __esm({
|
|
19646
19660
|
}
|
19647
19661
|
});
|
19648
19662
|
|
19649
|
-
// ../
|
19663
|
+
// ../drizzle-orm/dist/pg-core/alias.js
|
19650
19664
|
var init_alias2 = __esm({
|
19651
|
-
"../
|
19665
|
+
"../drizzle-orm/dist/pg-core/alias.js"() {
|
19652
19666
|
"use strict";
|
19653
19667
|
}
|
19654
19668
|
});
|
19655
19669
|
|
19656
|
-
// ../
|
19670
|
+
// ../drizzle-orm/dist/pg-core/checks.js
|
19657
19671
|
var _a42, CheckBuilder, _a43, Check;
|
19658
19672
|
var init_checks = __esm({
|
19659
|
-
"../
|
19673
|
+
"../drizzle-orm/dist/pg-core/checks.js"() {
|
19660
19674
|
"use strict";
|
19661
19675
|
init_entity();
|
19662
19676
|
_a42 = entityKind;
|
@@ -19686,10 +19700,10 @@ var init_checks = __esm({
|
|
19686
19700
|
}
|
19687
19701
|
});
|
19688
19702
|
|
19689
|
-
// ../
|
19703
|
+
// ../drizzle-orm/dist/pg-core/columns/int.common.js
|
19690
19704
|
var _a44, _b17, PgIntColumnBaseBuilder;
|
19691
19705
|
var init_int_common = __esm({
|
19692
|
-
"../
|
19706
|
+
"../drizzle-orm/dist/pg-core/columns/int.common.js"() {
|
19693
19707
|
"use strict";
|
19694
19708
|
init_entity();
|
19695
19709
|
init_common2();
|
@@ -19733,10 +19747,10 @@ var init_int_common = __esm({
|
|
19733
19747
|
}
|
19734
19748
|
});
|
19735
19749
|
|
19736
|
-
// ../
|
19750
|
+
// ../drizzle-orm/dist/pg-core/columns/bigint.js
|
19737
19751
|
var _a45, _b18, PgBigInt53Builder, _a46, _b19, PgBigInt53, _a47, _b20, PgBigInt64Builder, _a48, _b21, PgBigInt64;
|
19738
19752
|
var init_bigint = __esm({
|
19739
|
-
"../
|
19753
|
+
"../drizzle-orm/dist/pg-core/columns/bigint.js"() {
|
19740
19754
|
"use strict";
|
19741
19755
|
init_entity();
|
19742
19756
|
init_common2();
|
@@ -19789,10 +19803,10 @@ var init_bigint = __esm({
|
|
19789
19803
|
}
|
19790
19804
|
});
|
19791
19805
|
|
19792
|
-
// ../
|
19806
|
+
// ../drizzle-orm/dist/pg-core/columns/bigserial.js
|
19793
19807
|
var _a49, _b22, PgBigSerial53Builder, _a50, _b23, PgBigSerial53, _a51, _b24, PgBigSerial64Builder, _a52, _b25, PgBigSerial64;
|
19794
19808
|
var init_bigserial = __esm({
|
19795
|
-
"../
|
19809
|
+
"../drizzle-orm/dist/pg-core/columns/bigserial.js"() {
|
19796
19810
|
"use strict";
|
19797
19811
|
init_entity();
|
19798
19812
|
init_common2();
|
@@ -19850,10 +19864,10 @@ var init_bigserial = __esm({
|
|
19850
19864
|
}
|
19851
19865
|
});
|
19852
19866
|
|
19853
|
-
// ../
|
19867
|
+
// ../drizzle-orm/dist/pg-core/columns/boolean.js
|
19854
19868
|
var _a53, _b26, PgBooleanBuilder, _a54, _b27, PgBoolean;
|
19855
19869
|
var init_boolean = __esm({
|
19856
|
-
"../
|
19870
|
+
"../drizzle-orm/dist/pg-core/columns/boolean.js"() {
|
19857
19871
|
"use strict";
|
19858
19872
|
init_entity();
|
19859
19873
|
init_common2();
|
@@ -19876,10 +19890,10 @@ var init_boolean = __esm({
|
|
19876
19890
|
}
|
19877
19891
|
});
|
19878
19892
|
|
19879
|
-
// ../
|
19893
|
+
// ../drizzle-orm/dist/pg-core/columns/char.js
|
19880
19894
|
var _a55, _b28, PgCharBuilder, _a56, _b29, PgChar;
|
19881
19895
|
var init_char = __esm({
|
19882
|
-
"../
|
19896
|
+
"../drizzle-orm/dist/pg-core/columns/char.js"() {
|
19883
19897
|
"use strict";
|
19884
19898
|
init_entity();
|
19885
19899
|
init_common2();
|
@@ -19909,10 +19923,10 @@ var init_char = __esm({
|
|
19909
19923
|
}
|
19910
19924
|
});
|
19911
19925
|
|
19912
|
-
// ../
|
19926
|
+
// ../drizzle-orm/dist/pg-core/columns/cidr.js
|
19913
19927
|
var _a57, _b30, PgCidrBuilder, _a58, _b31, PgCidr;
|
19914
19928
|
var init_cidr = __esm({
|
19915
|
-
"../
|
19929
|
+
"../drizzle-orm/dist/pg-core/columns/cidr.js"() {
|
19916
19930
|
"use strict";
|
19917
19931
|
init_entity();
|
19918
19932
|
init_common2();
|
@@ -19935,10 +19949,10 @@ var init_cidr = __esm({
|
|
19935
19949
|
}
|
19936
19950
|
});
|
19937
19951
|
|
19938
|
-
// ../
|
19952
|
+
// ../drizzle-orm/dist/pg-core/columns/custom.js
|
19939
19953
|
var _a59, _b32, PgCustomColumnBuilder, _a60, _b33, PgCustomColumn;
|
19940
19954
|
var init_custom = __esm({
|
19941
|
-
"../
|
19955
|
+
"../drizzle-orm/dist/pg-core/columns/custom.js"() {
|
19942
19956
|
"use strict";
|
19943
19957
|
init_entity();
|
19944
19958
|
init_common2();
|
@@ -19981,10 +19995,10 @@ var init_custom = __esm({
|
|
19981
19995
|
}
|
19982
19996
|
});
|
19983
19997
|
|
19984
|
-
// ../
|
19998
|
+
// ../drizzle-orm/dist/pg-core/columns/date.common.js
|
19985
19999
|
var _a61, _b34, PgDateColumnBaseBuilder;
|
19986
20000
|
var init_date_common = __esm({
|
19987
|
-
"../
|
20001
|
+
"../drizzle-orm/dist/pg-core/columns/date.common.js"() {
|
19988
20002
|
"use strict";
|
19989
20003
|
init_entity();
|
19990
20004
|
init_sql();
|
@@ -19998,10 +20012,10 @@ var init_date_common = __esm({
|
|
19998
20012
|
}
|
19999
20013
|
});
|
20000
20014
|
|
20001
|
-
// ../
|
20015
|
+
// ../drizzle-orm/dist/pg-core/columns/date.js
|
20002
20016
|
var _a62, _b35, PgDateBuilder, _a63, _b36, PgDate, _a64, _b37, PgDateStringBuilder, _a65, _b38, PgDateString;
|
20003
20017
|
var init_date = __esm({
|
20004
|
-
"../
|
20018
|
+
"../drizzle-orm/dist/pg-core/columns/date.js"() {
|
20005
20019
|
"use strict";
|
20006
20020
|
init_entity();
|
20007
20021
|
init_common2();
|
@@ -20050,10 +20064,10 @@ var init_date = __esm({
|
|
20050
20064
|
}
|
20051
20065
|
});
|
20052
20066
|
|
20053
|
-
// ../
|
20067
|
+
// ../drizzle-orm/dist/pg-core/columns/double-precision.js
|
20054
20068
|
var _a66, _b39, PgDoublePrecisionBuilder, _a67, _b40, PgDoublePrecision;
|
20055
20069
|
var init_double_precision = __esm({
|
20056
|
-
"../
|
20070
|
+
"../drizzle-orm/dist/pg-core/columns/double-precision.js"() {
|
20057
20071
|
"use strict";
|
20058
20072
|
init_entity();
|
20059
20073
|
init_common2();
|
@@ -20085,10 +20099,10 @@ var init_double_precision = __esm({
|
|
20085
20099
|
}
|
20086
20100
|
});
|
20087
20101
|
|
20088
|
-
// ../
|
20102
|
+
// ../drizzle-orm/dist/pg-core/columns/inet.js
|
20089
20103
|
var _a68, _b41, PgInetBuilder, _a69, _b42, PgInet;
|
20090
20104
|
var init_inet = __esm({
|
20091
|
-
"../
|
20105
|
+
"../drizzle-orm/dist/pg-core/columns/inet.js"() {
|
20092
20106
|
"use strict";
|
20093
20107
|
init_entity();
|
20094
20108
|
init_common2();
|
@@ -20111,10 +20125,10 @@ var init_inet = __esm({
|
|
20111
20125
|
}
|
20112
20126
|
});
|
20113
20127
|
|
20114
|
-
// ../
|
20128
|
+
// ../drizzle-orm/dist/pg-core/columns/integer.js
|
20115
20129
|
var _a70, _b43, PgIntegerBuilder, _a71, _b44, PgInteger;
|
20116
20130
|
var init_integer = __esm({
|
20117
|
-
"../
|
20131
|
+
"../drizzle-orm/dist/pg-core/columns/integer.js"() {
|
20118
20132
|
"use strict";
|
20119
20133
|
init_entity();
|
20120
20134
|
init_common2();
|
@@ -20144,10 +20158,10 @@ var init_integer = __esm({
|
|
20144
20158
|
}
|
20145
20159
|
});
|
20146
20160
|
|
20147
|
-
// ../
|
20161
|
+
// ../drizzle-orm/dist/pg-core/columns/interval.js
|
20148
20162
|
var _a72, _b45, PgIntervalBuilder, _a73, _b46, PgInterval;
|
20149
20163
|
var init_interval = __esm({
|
20150
|
-
"../
|
20164
|
+
"../drizzle-orm/dist/pg-core/columns/interval.js"() {
|
20151
20165
|
"use strict";
|
20152
20166
|
init_entity();
|
20153
20167
|
init_common2();
|
@@ -20178,10 +20192,10 @@ var init_interval = __esm({
|
|
20178
20192
|
}
|
20179
20193
|
});
|
20180
20194
|
|
20181
|
-
// ../
|
20195
|
+
// ../drizzle-orm/dist/pg-core/columns/json.js
|
20182
20196
|
var _a74, _b47, PgJsonBuilder, _a75, _b48, PgJson;
|
20183
20197
|
var init_json = __esm({
|
20184
|
-
"../
|
20198
|
+
"../drizzle-orm/dist/pg-core/columns/json.js"() {
|
20185
20199
|
"use strict";
|
20186
20200
|
init_entity();
|
20187
20201
|
init_common2();
|
@@ -20220,10 +20234,10 @@ var init_json = __esm({
|
|
20220
20234
|
}
|
20221
20235
|
});
|
20222
20236
|
|
20223
|
-
// ../
|
20237
|
+
// ../drizzle-orm/dist/pg-core/columns/jsonb.js
|
20224
20238
|
var _a76, _b49, PgJsonbBuilder, _a77, _b50, PgJsonb;
|
20225
20239
|
var init_jsonb = __esm({
|
20226
|
-
"../
|
20240
|
+
"../drizzle-orm/dist/pg-core/columns/jsonb.js"() {
|
20227
20241
|
"use strict";
|
20228
20242
|
init_entity();
|
20229
20243
|
init_common2();
|
@@ -20262,10 +20276,10 @@ var init_jsonb = __esm({
|
|
20262
20276
|
}
|
20263
20277
|
});
|
20264
20278
|
|
20265
|
-
// ../
|
20279
|
+
// ../drizzle-orm/dist/pg-core/columns/line.js
|
20266
20280
|
var _a78, _b51, PgLineBuilder, _a79, _b52, PgLineTuple, _a80, _b53, PgLineABCBuilder, _a81, _b54, PgLineABC;
|
20267
20281
|
var init_line = __esm({
|
20268
|
-
"../
|
20282
|
+
"../drizzle-orm/dist/pg-core/columns/line.js"() {
|
20269
20283
|
"use strict";
|
20270
20284
|
init_entity();
|
20271
20285
|
init_common2();
|
@@ -20324,10 +20338,10 @@ var init_line = __esm({
|
|
20324
20338
|
}
|
20325
20339
|
});
|
20326
20340
|
|
20327
|
-
// ../
|
20341
|
+
// ../drizzle-orm/dist/pg-core/columns/macaddr.js
|
20328
20342
|
var _a82, _b55, PgMacaddrBuilder, _a83, _b56, PgMacaddr;
|
20329
20343
|
var init_macaddr = __esm({
|
20330
|
-
"../
|
20344
|
+
"../drizzle-orm/dist/pg-core/columns/macaddr.js"() {
|
20331
20345
|
"use strict";
|
20332
20346
|
init_entity();
|
20333
20347
|
init_common2();
|
@@ -20350,10 +20364,10 @@ var init_macaddr = __esm({
|
|
20350
20364
|
}
|
20351
20365
|
});
|
20352
20366
|
|
20353
|
-
// ../
|
20367
|
+
// ../drizzle-orm/dist/pg-core/columns/macaddr8.js
|
20354
20368
|
var _a84, _b57, PgMacaddr8Builder, _a85, _b58, PgMacaddr8;
|
20355
20369
|
var init_macaddr8 = __esm({
|
20356
|
-
"../
|
20370
|
+
"../drizzle-orm/dist/pg-core/columns/macaddr8.js"() {
|
20357
20371
|
"use strict";
|
20358
20372
|
init_entity();
|
20359
20373
|
init_common2();
|
@@ -20376,10 +20390,10 @@ var init_macaddr8 = __esm({
|
|
20376
20390
|
}
|
20377
20391
|
});
|
20378
20392
|
|
20379
|
-
// ../
|
20393
|
+
// ../drizzle-orm/dist/pg-core/columns/numeric.js
|
20380
20394
|
var _a86, _b59, PgNumericBuilder, _a87, _b60, PgNumeric;
|
20381
20395
|
var init_numeric = __esm({
|
20382
|
-
"../
|
20396
|
+
"../drizzle-orm/dist/pg-core/columns/numeric.js"() {
|
20383
20397
|
"use strict";
|
20384
20398
|
init_entity();
|
20385
20399
|
init_common2();
|
@@ -20417,10 +20431,10 @@ var init_numeric = __esm({
|
|
20417
20431
|
}
|
20418
20432
|
});
|
20419
20433
|
|
20420
|
-
// ../
|
20434
|
+
// ../drizzle-orm/dist/pg-core/columns/point.js
|
20421
20435
|
var _a88, _b61, PgPointTupleBuilder, _a89, _b62, PgPointTuple, _a90, _b63, PgPointObjectBuilder, _a91, _b64, PgPointObject;
|
20422
20436
|
var init_point = __esm({
|
20423
|
-
"../
|
20437
|
+
"../drizzle-orm/dist/pg-core/columns/point.js"() {
|
20424
20438
|
"use strict";
|
20425
20439
|
init_entity();
|
20426
20440
|
init_common2();
|
@@ -20485,7 +20499,7 @@ var init_point = __esm({
|
|
20485
20499
|
}
|
20486
20500
|
});
|
20487
20501
|
|
20488
|
-
// ../
|
20502
|
+
// ../drizzle-orm/dist/pg-core/columns/postgis_extension/utils.js
|
20489
20503
|
function hexToBytes(hex) {
|
20490
20504
|
const bytes = [];
|
20491
20505
|
for (let c = 0; c < hex.length; c += 2) {
|
@@ -20524,15 +20538,15 @@ function parseEWKB(hex) {
|
|
20524
20538
|
throw new Error("Unsupported geometry type");
|
20525
20539
|
}
|
20526
20540
|
var init_utils3 = __esm({
|
20527
|
-
"../
|
20541
|
+
"../drizzle-orm/dist/pg-core/columns/postgis_extension/utils.js"() {
|
20528
20542
|
"use strict";
|
20529
20543
|
}
|
20530
20544
|
});
|
20531
20545
|
|
20532
|
-
// ../
|
20546
|
+
// ../drizzle-orm/dist/pg-core/columns/postgis_extension/geometry.js
|
20533
20547
|
var _a92, _b65, PgGeometryBuilder, _a93, _b66, PgGeometry, _a94, _b67, PgGeometryObjectBuilder, _a95, _b68, PgGeometryObject;
|
20534
20548
|
var init_geometry = __esm({
|
20535
|
-
"../
|
20549
|
+
"../drizzle-orm/dist/pg-core/columns/postgis_extension/geometry.js"() {
|
20536
20550
|
"use strict";
|
20537
20551
|
init_entity();
|
20538
20552
|
init_common2();
|
@@ -20591,10 +20605,10 @@ var init_geometry = __esm({
|
|
20591
20605
|
}
|
20592
20606
|
});
|
20593
20607
|
|
20594
|
-
// ../
|
20608
|
+
// ../drizzle-orm/dist/pg-core/columns/real.js
|
20595
20609
|
var _a96, _b69, PgRealBuilder, _a97, _b70, PgReal;
|
20596
20610
|
var init_real = __esm({
|
20597
|
-
"../
|
20611
|
+
"../drizzle-orm/dist/pg-core/columns/real.js"() {
|
20598
20612
|
"use strict";
|
20599
20613
|
init_entity();
|
20600
20614
|
init_common2();
|
@@ -20627,10 +20641,10 @@ var init_real = __esm({
|
|
20627
20641
|
}
|
20628
20642
|
});
|
20629
20643
|
|
20630
|
-
// ../
|
20644
|
+
// ../drizzle-orm/dist/pg-core/columns/serial.js
|
20631
20645
|
var _a98, _b71, PgSerialBuilder, _a99, _b72, PgSerial;
|
20632
20646
|
var init_serial = __esm({
|
20633
|
-
"../
|
20647
|
+
"../drizzle-orm/dist/pg-core/columns/serial.js"() {
|
20634
20648
|
"use strict";
|
20635
20649
|
init_entity();
|
20636
20650
|
init_common2();
|
@@ -20655,10 +20669,10 @@ var init_serial = __esm({
|
|
20655
20669
|
}
|
20656
20670
|
});
|
20657
20671
|
|
20658
|
-
// ../
|
20672
|
+
// ../drizzle-orm/dist/pg-core/columns/smallint.js
|
20659
20673
|
var _a100, _b73, PgSmallIntBuilder, _a101, _b74, PgSmallInt;
|
20660
20674
|
var init_smallint = __esm({
|
20661
|
-
"../
|
20675
|
+
"../drizzle-orm/dist/pg-core/columns/smallint.js"() {
|
20662
20676
|
"use strict";
|
20663
20677
|
init_entity();
|
20664
20678
|
init_common2();
|
@@ -20691,10 +20705,10 @@ var init_smallint = __esm({
|
|
20691
20705
|
}
|
20692
20706
|
});
|
20693
20707
|
|
20694
|
-
// ../
|
20708
|
+
// ../drizzle-orm/dist/pg-core/columns/smallserial.js
|
20695
20709
|
var _a102, _b75, PgSmallSerialBuilder, _a103, _b76, PgSmallSerial;
|
20696
20710
|
var init_smallserial = __esm({
|
20697
|
-
"../
|
20711
|
+
"../drizzle-orm/dist/pg-core/columns/smallserial.js"() {
|
20698
20712
|
"use strict";
|
20699
20713
|
init_entity();
|
20700
20714
|
init_common2();
|
@@ -20722,10 +20736,10 @@ var init_smallserial = __esm({
|
|
20722
20736
|
}
|
20723
20737
|
});
|
20724
20738
|
|
20725
|
-
// ../
|
20739
|
+
// ../drizzle-orm/dist/pg-core/columns/text.js
|
20726
20740
|
var _a104, _b77, PgTextBuilder, _a105, _b78, PgText;
|
20727
20741
|
var init_text = __esm({
|
20728
|
-
"../
|
20742
|
+
"../drizzle-orm/dist/pg-core/columns/text.js"() {
|
20729
20743
|
"use strict";
|
20730
20744
|
init_entity();
|
20731
20745
|
init_common2();
|
@@ -20753,10 +20767,10 @@ var init_text = __esm({
|
|
20753
20767
|
}
|
20754
20768
|
});
|
20755
20769
|
|
20756
|
-
// ../
|
20770
|
+
// ../drizzle-orm/dist/pg-core/columns/time.js
|
20757
20771
|
var _a106, _b79, PgTimeBuilder, _a107, _b80, PgTime;
|
20758
20772
|
var init_time = __esm({
|
20759
|
-
"../
|
20773
|
+
"../drizzle-orm/dist/pg-core/columns/time.js"() {
|
20760
20774
|
"use strict";
|
20761
20775
|
init_entity();
|
20762
20776
|
init_common2();
|
@@ -20792,10 +20806,10 @@ var init_time = __esm({
|
|
20792
20806
|
}
|
20793
20807
|
});
|
20794
20808
|
|
20795
|
-
// ../
|
20809
|
+
// ../drizzle-orm/dist/pg-core/columns/timestamp.js
|
20796
20810
|
var _a108, _b81, PgTimestampBuilder, _a109, _b82, PgTimestamp, _a110, _b83, PgTimestampStringBuilder, _a111, _b84, PgTimestampString;
|
20797
20811
|
var init_timestamp = __esm({
|
20798
|
-
"../
|
20812
|
+
"../drizzle-orm/dist/pg-core/columns/timestamp.js"() {
|
20799
20813
|
"use strict";
|
20800
20814
|
init_entity();
|
20801
20815
|
init_common2();
|
@@ -20864,10 +20878,10 @@ var init_timestamp = __esm({
|
|
20864
20878
|
}
|
20865
20879
|
});
|
20866
20880
|
|
20867
|
-
// ../
|
20881
|
+
// ../drizzle-orm/dist/pg-core/columns/uuid.js
|
20868
20882
|
var _a112, _b85, PgUUIDBuilder, _a113, _b86, PgUUID;
|
20869
20883
|
var init_uuid = __esm({
|
20870
|
-
"../
|
20884
|
+
"../drizzle-orm/dist/pg-core/columns/uuid.js"() {
|
20871
20885
|
"use strict";
|
20872
20886
|
init_entity();
|
20873
20887
|
init_sql();
|
@@ -20897,10 +20911,10 @@ var init_uuid = __esm({
|
|
20897
20911
|
}
|
20898
20912
|
});
|
20899
20913
|
|
20900
|
-
// ../
|
20914
|
+
// ../drizzle-orm/dist/pg-core/columns/varchar.js
|
20901
20915
|
var _a114, _b87, PgVarcharBuilder, _a115, _b88, PgVarchar;
|
20902
20916
|
var init_varchar = __esm({
|
20903
|
-
"../
|
20917
|
+
"../drizzle-orm/dist/pg-core/columns/varchar.js"() {
|
20904
20918
|
"use strict";
|
20905
20919
|
init_entity();
|
20906
20920
|
init_common2();
|
@@ -20930,10 +20944,10 @@ var init_varchar = __esm({
|
|
20930
20944
|
}
|
20931
20945
|
});
|
20932
20946
|
|
20933
|
-
// ../
|
20947
|
+
// ../drizzle-orm/dist/pg-core/columns/vector_extension/bit.js
|
20934
20948
|
var _a116, _b89, PgBinaryVectorBuilder, _a117, _b90, PgBinaryVector;
|
20935
20949
|
var init_bit = __esm({
|
20936
|
-
"../
|
20950
|
+
"../drizzle-orm/dist/pg-core/columns/vector_extension/bit.js"() {
|
20937
20951
|
"use strict";
|
20938
20952
|
init_entity();
|
20939
20953
|
init_common2();
|
@@ -20964,10 +20978,10 @@ var init_bit = __esm({
|
|
20964
20978
|
}
|
20965
20979
|
});
|
20966
20980
|
|
20967
|
-
// ../
|
20981
|
+
// ../drizzle-orm/dist/pg-core/columns/vector_extension/halfvec.js
|
20968
20982
|
var _a118, _b91, PgHalfVectorBuilder, _a119, _b92, PgHalfVector;
|
20969
20983
|
var init_halfvec = __esm({
|
20970
|
-
"../
|
20984
|
+
"../drizzle-orm/dist/pg-core/columns/vector_extension/halfvec.js"() {
|
20971
20985
|
"use strict";
|
20972
20986
|
init_entity();
|
20973
20987
|
init_common2();
|
@@ -21004,10 +21018,10 @@ var init_halfvec = __esm({
|
|
21004
21018
|
}
|
21005
21019
|
});
|
21006
21020
|
|
21007
|
-
// ../
|
21021
|
+
// ../drizzle-orm/dist/pg-core/columns/vector_extension/sparsevec.js
|
21008
21022
|
var _a120, _b93, PgSparseVectorBuilder, _a121, _b94, PgSparseVector;
|
21009
21023
|
var init_sparsevec = __esm({
|
21010
|
-
"../
|
21024
|
+
"../drizzle-orm/dist/pg-core/columns/vector_extension/sparsevec.js"() {
|
21011
21025
|
"use strict";
|
21012
21026
|
init_entity();
|
21013
21027
|
init_common2();
|
@@ -21038,10 +21052,10 @@ var init_sparsevec = __esm({
|
|
21038
21052
|
}
|
21039
21053
|
});
|
21040
21054
|
|
21041
|
-
// ../
|
21055
|
+
// ../drizzle-orm/dist/pg-core/columns/vector_extension/vector.js
|
21042
21056
|
var _a122, _b95, PgVectorBuilder, _a123, _b96, PgVector;
|
21043
21057
|
var init_vector2 = __esm({
|
21044
|
-
"../
|
21058
|
+
"../drizzle-orm/dist/pg-core/columns/vector_extension/vector.js"() {
|
21045
21059
|
"use strict";
|
21046
21060
|
init_entity();
|
21047
21061
|
init_common2();
|
@@ -21075,9 +21089,9 @@ var init_vector2 = __esm({
|
|
21075
21089
|
}
|
21076
21090
|
});
|
21077
21091
|
|
21078
|
-
// ../
|
21092
|
+
// ../drizzle-orm/dist/pg-core/columns/index.js
|
21079
21093
|
var init_columns = __esm({
|
21080
|
-
"../
|
21094
|
+
"../drizzle-orm/dist/pg-core/columns/index.js"() {
|
21081
21095
|
"use strict";
|
21082
21096
|
init_bigint();
|
21083
21097
|
init_bigserial();
|
@@ -21116,10 +21130,10 @@ var init_columns = __esm({
|
|
21116
21130
|
}
|
21117
21131
|
});
|
21118
21132
|
|
21119
|
-
// ../
|
21133
|
+
// ../drizzle-orm/dist/pg-core/query-builders/delete.js
|
21120
21134
|
var _a124, _b97, PgDeleteBase;
|
21121
21135
|
var init_delete = __esm({
|
21122
|
-
"../
|
21136
|
+
"../drizzle-orm/dist/pg-core/query-builders/delete.js"() {
|
21123
21137
|
"use strict";
|
21124
21138
|
init_entity();
|
21125
21139
|
init_query_promise();
|
@@ -21201,10 +21215,10 @@ var init_delete = __esm({
|
|
21201
21215
|
}
|
21202
21216
|
});
|
21203
21217
|
|
21204
|
-
// ../
|
21218
|
+
// ../drizzle-orm/dist/pg-core/query-builders/insert.js
|
21205
21219
|
var _a125, PgInsertBuilder, _a126, _b98, PgInsertBase;
|
21206
21220
|
var init_insert = __esm({
|
21207
|
-
"../
|
21221
|
+
"../drizzle-orm/dist/pg-core/query-builders/insert.js"() {
|
21208
21222
|
"use strict";
|
21209
21223
|
init_entity();
|
21210
21224
|
init_query_promise();
|
@@ -21357,10 +21371,10 @@ var init_insert = __esm({
|
|
21357
21371
|
}
|
21358
21372
|
});
|
21359
21373
|
|
21360
|
-
// ../
|
21374
|
+
// ../drizzle-orm/dist/pg-core/view-base.js
|
21361
21375
|
var _a127, _b99, PgViewBase;
|
21362
21376
|
var init_view_base = __esm({
|
21363
|
-
"../
|
21377
|
+
"../drizzle-orm/dist/pg-core/view-base.js"() {
|
21364
21378
|
"use strict";
|
21365
21379
|
init_entity();
|
21366
21380
|
init_sql();
|
@@ -21370,10 +21384,10 @@ var init_view_base = __esm({
|
|
21370
21384
|
}
|
21371
21385
|
});
|
21372
21386
|
|
21373
|
-
// ../
|
21387
|
+
// ../drizzle-orm/dist/pg-core/dialect.js
|
21374
21388
|
var _a128, PgDialect;
|
21375
21389
|
var init_dialect = __esm({
|
21376
|
-
"../
|
21390
|
+
"../drizzle-orm/dist/pg-core/dialect.js"() {
|
21377
21391
|
"use strict";
|
21378
21392
|
init_alias();
|
21379
21393
|
init_column();
|
@@ -22453,10 +22467,10 @@ var init_dialect = __esm({
|
|
22453
22467
|
}
|
22454
22468
|
});
|
22455
22469
|
|
22456
|
-
// ../
|
22470
|
+
// ../drizzle-orm/dist/selection-proxy.js
|
22457
22471
|
var _a129, _SelectionProxyHandler, SelectionProxyHandler;
|
22458
22472
|
var init_selection_proxy = __esm({
|
22459
|
-
"../
|
22473
|
+
"../drizzle-orm/dist/selection-proxy.js"() {
|
22460
22474
|
"use strict";
|
22461
22475
|
init_alias();
|
22462
22476
|
init_column();
|
@@ -22535,10 +22549,10 @@ var init_selection_proxy = __esm({
|
|
22535
22549
|
}
|
22536
22550
|
});
|
22537
22551
|
|
22538
|
-
// ../
|
22552
|
+
// ../drizzle-orm/dist/query-builders/query-builder.js
|
22539
22553
|
var _a130, TypedQueryBuilder;
|
22540
22554
|
var init_query_builder = __esm({
|
22541
|
-
"../
|
22555
|
+
"../drizzle-orm/dist/query-builders/query-builder.js"() {
|
22542
22556
|
"use strict";
|
22543
22557
|
init_entity();
|
22544
22558
|
_a130 = entityKind;
|
@@ -22552,7 +22566,7 @@ var init_query_builder = __esm({
|
|
22552
22566
|
}
|
22553
22567
|
});
|
22554
22568
|
|
22555
|
-
// ../
|
22569
|
+
// ../drizzle-orm/dist/pg-core/query-builders/select.js
|
22556
22570
|
function createSetOperator(type, isAll) {
|
22557
22571
|
return (leftSelect, rightSelect, ...restSelects) => {
|
22558
22572
|
const setOperators = [rightSelect, ...restSelects].map((select) => ({
|
@@ -22572,7 +22586,7 @@ function createSetOperator(type, isAll) {
|
|
22572
22586
|
}
|
22573
22587
|
var _a131, PgSelectBuilder, _a132, _b100, PgSelectQueryBuilderBase, _a133, _b101, PgSelectBase, getPgSetOperators, union, unionAll, intersect, intersectAll, except, exceptAll;
|
22574
22588
|
var init_select2 = __esm({
|
22575
|
-
"../
|
22589
|
+
"../drizzle-orm/dist/pg-core/query-builders/select.js"() {
|
22576
22590
|
"use strict";
|
22577
22591
|
init_entity();
|
22578
22592
|
init_view_base();
|
@@ -23289,10 +23303,10 @@ var init_select2 = __esm({
|
|
23289
23303
|
}
|
23290
23304
|
});
|
23291
23305
|
|
23292
|
-
// ../
|
23306
|
+
// ../drizzle-orm/dist/pg-core/query-builders/query-builder.js
|
23293
23307
|
var _a134, QueryBuilder;
|
23294
23308
|
var init_query_builder2 = __esm({
|
23295
|
-
"../
|
23309
|
+
"../drizzle-orm/dist/pg-core/query-builders/query-builder.js"() {
|
23296
23310
|
"use strict";
|
23297
23311
|
init_entity();
|
23298
23312
|
init_dialect();
|
@@ -23381,10 +23395,10 @@ var init_query_builder2 = __esm({
|
|
23381
23395
|
}
|
23382
23396
|
});
|
23383
23397
|
|
23384
|
-
// ../
|
23398
|
+
// ../drizzle-orm/dist/pg-core/query-builders/refresh-materialized-view.js
|
23385
23399
|
var _a135, _b102, PgRefreshMaterializedView;
|
23386
23400
|
var init_refresh_materialized_view = __esm({
|
23387
|
-
"../
|
23401
|
+
"../drizzle-orm/dist/pg-core/query-builders/refresh-materialized-view.js"() {
|
23388
23402
|
"use strict";
|
23389
23403
|
init_entity();
|
23390
23404
|
init_query_promise();
|
@@ -23438,17 +23452,17 @@ var init_refresh_materialized_view = __esm({
|
|
23438
23452
|
}
|
23439
23453
|
});
|
23440
23454
|
|
23441
|
-
// ../
|
23455
|
+
// ../drizzle-orm/dist/pg-core/query-builders/select.types.js
|
23442
23456
|
var init_select_types = __esm({
|
23443
|
-
"../
|
23457
|
+
"../drizzle-orm/dist/pg-core/query-builders/select.types.js"() {
|
23444
23458
|
"use strict";
|
23445
23459
|
}
|
23446
23460
|
});
|
23447
23461
|
|
23448
|
-
// ../
|
23462
|
+
// ../drizzle-orm/dist/pg-core/query-builders/update.js
|
23449
23463
|
var _a136, PgUpdateBuilder, _a137, _b103, PgUpdateBase;
|
23450
23464
|
var init_update = __esm({
|
23451
|
-
"../
|
23465
|
+
"../drizzle-orm/dist/pg-core/query-builders/update.js"() {
|
23452
23466
|
"use strict";
|
23453
23467
|
init_entity();
|
23454
23468
|
init_query_promise();
|
@@ -23548,9 +23562,9 @@ var init_update = __esm({
|
|
23548
23562
|
}
|
23549
23563
|
});
|
23550
23564
|
|
23551
|
-
// ../
|
23565
|
+
// ../drizzle-orm/dist/pg-core/query-builders/index.js
|
23552
23566
|
var init_query_builders = __esm({
|
23553
|
-
"../
|
23567
|
+
"../drizzle-orm/dist/pg-core/query-builders/index.js"() {
|
23554
23568
|
"use strict";
|
23555
23569
|
init_delete();
|
23556
23570
|
init_insert();
|
@@ -23562,10 +23576,10 @@ var init_query_builders = __esm({
|
|
23562
23576
|
}
|
23563
23577
|
});
|
23564
23578
|
|
23565
|
-
// ../
|
23579
|
+
// ../drizzle-orm/dist/pg-core/query-builders/query.js
|
23566
23580
|
var _a138, RelationalQueryBuilder, _a139, _b104, PgRelationalQuery;
|
23567
23581
|
var init_query = __esm({
|
23568
|
-
"../
|
23582
|
+
"../drizzle-orm/dist/pg-core/query-builders/query.js"() {
|
23569
23583
|
"use strict";
|
23570
23584
|
init_entity();
|
23571
23585
|
init_query_promise();
|
@@ -23680,10 +23694,10 @@ var init_query = __esm({
|
|
23680
23694
|
}
|
23681
23695
|
});
|
23682
23696
|
|
23683
|
-
// ../
|
23697
|
+
// ../drizzle-orm/dist/pg-core/query-builders/raw.js
|
23684
23698
|
var _a140, _b105, PgRaw;
|
23685
23699
|
var init_raw = __esm({
|
23686
|
-
"../
|
23700
|
+
"../drizzle-orm/dist/pg-core/query-builders/raw.js"() {
|
23687
23701
|
"use strict";
|
23688
23702
|
init_entity();
|
23689
23703
|
init_query_promise();
|
@@ -23717,10 +23731,10 @@ var init_raw = __esm({
|
|
23717
23731
|
}
|
23718
23732
|
});
|
23719
23733
|
|
23720
|
-
// ../
|
23734
|
+
// ../drizzle-orm/dist/pg-core/db.js
|
23721
23735
|
var _a141, PgDatabase;
|
23722
23736
|
var init_db = __esm({
|
23723
|
-
"../
|
23737
|
+
"../drizzle-orm/dist/pg-core/db.js"() {
|
23724
23738
|
"use strict";
|
23725
23739
|
init_entity();
|
23726
23740
|
init_query_builders();
|
@@ -23998,10 +24012,10 @@ var init_db = __esm({
|
|
23998
24012
|
}
|
23999
24013
|
});
|
24000
24014
|
|
24001
|
-
// ../
|
24015
|
+
// ../drizzle-orm/dist/pg-core/indexes.js
|
24002
24016
|
var _a142, IndexBuilderOn, _a143, IndexBuilder, _a144, Index2;
|
24003
24017
|
var init_indexes = __esm({
|
24004
|
-
"../
|
24018
|
+
"../drizzle-orm/dist/pg-core/indexes.js"() {
|
24005
24019
|
"use strict";
|
24006
24020
|
init_sql();
|
24007
24021
|
init_entity();
|
@@ -24116,7 +24130,7 @@ var init_indexes = __esm({
|
|
24116
24130
|
}
|
24117
24131
|
});
|
24118
24132
|
|
24119
|
-
// ../
|
24133
|
+
// ../drizzle-orm/dist/pg-core/sequence.js
|
24120
24134
|
function pgSequenceWithSchema(name2, options, schema4) {
|
24121
24135
|
return new PgSequence(name2, options, schema4);
|
24122
24136
|
}
|
@@ -24125,7 +24139,7 @@ function isPgSequence(obj) {
|
|
24125
24139
|
}
|
24126
24140
|
var _a145, PgSequence;
|
24127
24141
|
var init_sequence = __esm({
|
24128
|
-
"../
|
24142
|
+
"../drizzle-orm/dist/pg-core/sequence.js"() {
|
24129
24143
|
"use strict";
|
24130
24144
|
init_entity();
|
24131
24145
|
_a145 = entityKind;
|
@@ -24140,16 +24154,16 @@ var init_sequence = __esm({
|
|
24140
24154
|
}
|
24141
24155
|
});
|
24142
24156
|
|
24143
|
-
// ../
|
24157
|
+
// ../drizzle-orm/dist/pg-core/view-common.js
|
24144
24158
|
var PgViewConfig;
|
24145
24159
|
var init_view_common2 = __esm({
|
24146
|
-
"../
|
24160
|
+
"../drizzle-orm/dist/pg-core/view-common.js"() {
|
24147
24161
|
"use strict";
|
24148
24162
|
PgViewConfig = Symbol.for("drizzle:PgViewConfig");
|
24149
24163
|
}
|
24150
24164
|
});
|
24151
24165
|
|
24152
|
-
// ../
|
24166
|
+
// ../drizzle-orm/dist/pg-core/view.js
|
24153
24167
|
function pgViewWithSchema(name2, selection, schema4) {
|
24154
24168
|
if (selection) {
|
24155
24169
|
return new ManualViewBuilder(name2, selection, schema4);
|
@@ -24164,7 +24178,7 @@ function pgMaterializedViewWithSchema(name2, selection, schema4) {
|
|
24164
24178
|
}
|
24165
24179
|
var _a146, DefaultViewBuilderCore, _a147, _b106, ViewBuilder, _a148, _b107, ManualViewBuilder, _a149, MaterializedViewBuilderCore, _a150, _b108, MaterializedViewBuilder, _a151, _b109, ManualMaterializedViewBuilder, _a152, _b110, _c3, PgView, PgMaterializedViewConfig, _a153, _b111, _c4, PgMaterializedView;
|
24166
24180
|
var init_view = __esm({
|
24167
|
-
"../
|
24181
|
+
"../drizzle-orm/dist/pg-core/view.js"() {
|
24168
24182
|
"use strict";
|
24169
24183
|
init_entity();
|
24170
24184
|
init_selection_proxy();
|
@@ -24391,10 +24405,10 @@ var init_view = __esm({
|
|
24391
24405
|
}
|
24392
24406
|
});
|
24393
24407
|
|
24394
|
-
// ../
|
24408
|
+
// ../drizzle-orm/dist/pg-core/schema.js
|
24395
24409
|
var _a154, PgSchema5;
|
24396
24410
|
var init_schema = __esm({
|
24397
|
-
"../
|
24411
|
+
"../drizzle-orm/dist/pg-core/schema.js"() {
|
24398
24412
|
"use strict";
|
24399
24413
|
init_entity();
|
24400
24414
|
init_sql();
|
@@ -24433,10 +24447,10 @@ var init_schema = __esm({
|
|
24433
24447
|
}
|
24434
24448
|
});
|
24435
24449
|
|
24436
|
-
// ../
|
24450
|
+
// ../drizzle-orm/dist/pg-core/session.js
|
24437
24451
|
var _a155, PgPreparedQuery, _a156, PgSession, _a157, _b112, PgTransaction;
|
24438
24452
|
var init_session = __esm({
|
24439
|
-
"../
|
24453
|
+
"../drizzle-orm/dist/pg-core/session.js"() {
|
24440
24454
|
"use strict";
|
24441
24455
|
init_entity();
|
24442
24456
|
init_errors();
|
@@ -24517,14 +24531,14 @@ var init_session = __esm({
|
|
24517
24531
|
}
|
24518
24532
|
});
|
24519
24533
|
|
24520
|
-
// ../
|
24534
|
+
// ../drizzle-orm/dist/pg-core/subquery.js
|
24521
24535
|
var init_subquery2 = __esm({
|
24522
|
-
"../
|
24536
|
+
"../drizzle-orm/dist/pg-core/subquery.js"() {
|
24523
24537
|
"use strict";
|
24524
24538
|
}
|
24525
24539
|
});
|
24526
24540
|
|
24527
|
-
// ../
|
24541
|
+
// ../drizzle-orm/dist/pg-core/utils.js
|
24528
24542
|
function getTableConfig(table4) {
|
24529
24543
|
const columns = Object.values(table4[Table2.Symbol.Columns]);
|
24530
24544
|
const indexes = [];
|
@@ -24563,7 +24577,7 @@ function getTableConfig(table4) {
|
|
24563
24577
|
};
|
24564
24578
|
}
|
24565
24579
|
var init_utils4 = __esm({
|
24566
|
-
"../
|
24580
|
+
"../drizzle-orm/dist/pg-core/utils.js"() {
|
24567
24581
|
"use strict";
|
24568
24582
|
init_entity();
|
24569
24583
|
init_table2();
|
@@ -24576,17 +24590,17 @@ var init_utils4 = __esm({
|
|
24576
24590
|
}
|
24577
24591
|
});
|
24578
24592
|
|
24579
|
-
// ../
|
24593
|
+
// ../drizzle-orm/dist/pg-core/utils/index.js
|
24580
24594
|
var init_utils5 = __esm({
|
24581
|
-
"../
|
24595
|
+
"../drizzle-orm/dist/pg-core/utils/index.js"() {
|
24582
24596
|
"use strict";
|
24583
24597
|
init_array();
|
24584
24598
|
}
|
24585
24599
|
});
|
24586
24600
|
|
24587
|
-
// ../
|
24601
|
+
// ../drizzle-orm/dist/pg-core/index.js
|
24588
24602
|
var init_pg_core = __esm({
|
24589
|
-
"../
|
24603
|
+
"../drizzle-orm/dist/pg-core/index.js"() {
|
24590
24604
|
"use strict";
|
24591
24605
|
init_alias2();
|
24592
24606
|
init_checks();
|
@@ -24641,16 +24655,41 @@ function minRangeForIdentityBasedOn(columnType) {
|
|
24641
24655
|
function stringFromDatabaseIdentityProperty(field) {
|
24642
24656
|
return typeof field === "string" ? field : typeof field === "undefined" ? void 0 : typeof field === "bigint" ? field.toString() : String(field);
|
24643
24657
|
}
|
24658
|
+
function buildArrayString(array, sqlType) {
|
24659
|
+
sqlType = sqlType.split("[")[0];
|
24660
|
+
const values = array.map((value) => {
|
24661
|
+
if (typeof value === "number" || typeof value === "bigint") {
|
24662
|
+
return value.toString();
|
24663
|
+
} else if (typeof value === "boolean") {
|
24664
|
+
return value ? "true" : "false";
|
24665
|
+
} else if (Array.isArray(value)) {
|
24666
|
+
return buildArrayString(value, sqlType);
|
24667
|
+
} else if (value instanceof Date) {
|
24668
|
+
if (sqlType === "date") {
|
24669
|
+
return `"${value.toISOString().split("T")[0]}"`;
|
24670
|
+
} else if (sqlType === "timestamp") {
|
24671
|
+
return `"${value.toISOString().replace("T", " ").slice(0, 23)}"`;
|
24672
|
+
} else {
|
24673
|
+
return `"${value.toISOString()}"`;
|
24674
|
+
}
|
24675
|
+
} else if (typeof value === "object") {
|
24676
|
+
return `"${JSON.stringify(value).replaceAll('"', '\\"')}"`;
|
24677
|
+
}
|
24678
|
+
return `"${value}"`;
|
24679
|
+
}).join(",");
|
24680
|
+
return `{${values}}`;
|
24681
|
+
}
|
24644
24682
|
var dialect4, indexName, generatePgSnapshot, trimChar, fromDatabase, columnToDefault, defaultForColumn;
|
24645
24683
|
var init_pgSerializer = __esm({
|
24646
24684
|
"src/serializer/pgSerializer.ts"() {
|
24647
24685
|
"use strict";
|
24648
24686
|
init_source();
|
24649
|
-
|
24687
|
+
init_dist();
|
24650
24688
|
init_pg_core();
|
24651
24689
|
init_pg_core();
|
24652
24690
|
init_vector3();
|
24653
24691
|
init_outputs();
|
24692
|
+
init_utils();
|
24654
24693
|
init_serializer();
|
24655
24694
|
dialect4 = new PgDialect();
|
24656
24695
|
indexName = (tableName, columns) => {
|
@@ -24757,6 +24796,11 @@ ${withStyle.errorWarning(`We've found duplicated unique constraint names in ${so
|
|
24757
24796
|
} else {
|
24758
24797
|
columnToSet.default = `'${column4.default.toISOString()}'`;
|
24759
24798
|
}
|
24799
|
+
} else if (isPgArrayType(sqlTypeLowered) && Array.isArray(column4.default)) {
|
24800
|
+
columnToSet.default = `'${buildArrayString(
|
24801
|
+
column4.default,
|
24802
|
+
sqlTypeLowered
|
24803
|
+
)}'::${sqlTypeLowered}`;
|
24760
24804
|
} else {
|
24761
24805
|
columnToSet.default = column4.default;
|
24762
24806
|
}
|
@@ -25555,17 +25599,17 @@ var init_selector_ui = __esm({
|
|
25555
25599
|
}
|
25556
25600
|
});
|
25557
25601
|
|
25558
|
-
// ../
|
25602
|
+
// ../drizzle-orm/dist/sqlite-core/alias.js
|
25559
25603
|
var init_alias3 = __esm({
|
25560
|
-
"../
|
25604
|
+
"../drizzle-orm/dist/sqlite-core/alias.js"() {
|
25561
25605
|
"use strict";
|
25562
25606
|
}
|
25563
25607
|
});
|
25564
25608
|
|
25565
|
-
// ../
|
25609
|
+
// ../drizzle-orm/dist/sqlite-core/checks.js
|
25566
25610
|
var _a158, CheckBuilder2, _a159, Check2;
|
25567
25611
|
var init_checks2 = __esm({
|
25568
|
-
"../
|
25612
|
+
"../drizzle-orm/dist/sqlite-core/checks.js"() {
|
25569
25613
|
"use strict";
|
25570
25614
|
init_entity();
|
25571
25615
|
_a158 = entityKind;
|
@@ -25594,7 +25638,7 @@ var init_checks2 = __esm({
|
|
25594
25638
|
}
|
25595
25639
|
});
|
25596
25640
|
|
25597
|
-
// ../
|
25641
|
+
// ../drizzle-orm/dist/sqlite-core/table.js
|
25598
25642
|
function sqliteTableBase(name2, columns, extraConfig, schema4, baseName = name2) {
|
25599
25643
|
const rawTable = new SQLiteTable(name2, schema4, baseName);
|
25600
25644
|
const builtColumns = Object.fromEntries(
|
@@ -25615,7 +25659,7 @@ function sqliteTableBase(name2, columns, extraConfig, schema4, baseName = name2)
|
|
25615
25659
|
}
|
25616
25660
|
var InlineForeignKeys2, _a160, _b113, _c5, _d3, _e2, SQLiteTable, sqliteTable;
|
25617
25661
|
var init_table3 = __esm({
|
25618
|
-
"../
|
25662
|
+
"../drizzle-orm/dist/sqlite-core/table.js"() {
|
25619
25663
|
"use strict";
|
25620
25664
|
init_entity();
|
25621
25665
|
init_table();
|
@@ -25642,10 +25686,10 @@ var init_table3 = __esm({
|
|
25642
25686
|
}
|
25643
25687
|
});
|
25644
25688
|
|
25645
|
-
// ../
|
25689
|
+
// ../drizzle-orm/dist/sqlite-core/foreign-keys.js
|
25646
25690
|
var _a161, ForeignKeyBuilder2, _a162, ForeignKey2;
|
25647
25691
|
var init_foreign_keys2 = __esm({
|
25648
|
-
"../
|
25692
|
+
"../drizzle-orm/dist/sqlite-core/foreign-keys.js"() {
|
25649
25693
|
"use strict";
|
25650
25694
|
init_entity();
|
25651
25695
|
init_table3();
|
@@ -25709,13 +25753,13 @@ var init_foreign_keys2 = __esm({
|
|
25709
25753
|
}
|
25710
25754
|
});
|
25711
25755
|
|
25712
|
-
// ../
|
25756
|
+
// ../drizzle-orm/dist/sqlite-core/unique-constraint.js
|
25713
25757
|
function uniqueKeyName2(table4, columns) {
|
25714
25758
|
return `${table4[SQLiteTable.Symbol.Name]}_${columns.join("_")}_unique`;
|
25715
25759
|
}
|
25716
25760
|
var _a163, UniqueConstraintBuilder2, _a164, UniqueOnConstraintBuilder2, _a165, UniqueConstraint2;
|
25717
25761
|
var init_unique_constraint2 = __esm({
|
25718
|
-
"../
|
25762
|
+
"../drizzle-orm/dist/sqlite-core/unique-constraint.js"() {
|
25719
25763
|
"use strict";
|
25720
25764
|
init_entity();
|
25721
25765
|
init_table3();
|
@@ -25762,10 +25806,10 @@ var init_unique_constraint2 = __esm({
|
|
25762
25806
|
}
|
25763
25807
|
});
|
25764
25808
|
|
25765
|
-
// ../
|
25809
|
+
// ../drizzle-orm/dist/sqlite-core/columns/common.js
|
25766
25810
|
var _a166, _b114, SQLiteColumnBuilder, _a167, _b115, SQLiteColumn;
|
25767
25811
|
var init_common3 = __esm({
|
25768
|
-
"../
|
25812
|
+
"../drizzle-orm/dist/sqlite-core/columns/common.js"() {
|
25769
25813
|
"use strict";
|
25770
25814
|
init_column_builder();
|
25771
25815
|
init_column();
|
@@ -25827,10 +25871,10 @@ var init_common3 = __esm({
|
|
25827
25871
|
}
|
25828
25872
|
});
|
25829
25873
|
|
25830
|
-
// ../
|
25874
|
+
// ../drizzle-orm/dist/sqlite-core/columns/blob.js
|
25831
25875
|
var _a168, _b116, SQLiteBigIntBuilder, _a169, _b117, SQLiteBigInt, _a170, _b118, SQLiteBlobJsonBuilder, _a171, _b119, SQLiteBlobJson, _a172, _b120, SQLiteBlobBufferBuilder, _a173, _b121, SQLiteBlobBuffer;
|
25832
25876
|
var init_blob = __esm({
|
25833
|
-
"../
|
25877
|
+
"../drizzle-orm/dist/sqlite-core/columns/blob.js"() {
|
25834
25878
|
"use strict";
|
25835
25879
|
init_entity();
|
25836
25880
|
init_common3();
|
@@ -25900,10 +25944,10 @@ var init_blob = __esm({
|
|
25900
25944
|
}
|
25901
25945
|
});
|
25902
25946
|
|
25903
|
-
// ../
|
25947
|
+
// ../drizzle-orm/dist/sqlite-core/columns/custom.js
|
25904
25948
|
var _a174, _b122, SQLiteCustomColumnBuilder, _a175, _b123, SQLiteCustomColumn;
|
25905
25949
|
var init_custom2 = __esm({
|
25906
|
-
"../
|
25950
|
+
"../drizzle-orm/dist/sqlite-core/columns/custom.js"() {
|
25907
25951
|
"use strict";
|
25908
25952
|
init_entity();
|
25909
25953
|
init_common3();
|
@@ -25946,10 +25990,10 @@ var init_custom2 = __esm({
|
|
25946
25990
|
}
|
25947
25991
|
});
|
25948
25992
|
|
25949
|
-
// ../
|
25993
|
+
// ../drizzle-orm/dist/sqlite-core/columns/integer.js
|
25950
25994
|
var _a176, _b124, SQLiteBaseIntegerBuilder, _a177, _b125, SQLiteBaseInteger, _a178, _b126, SQLiteIntegerBuilder, _a179, _b127, SQLiteInteger, _a180, _b128, SQLiteTimestampBuilder, _a181, _b129, SQLiteTimestamp, _a182, _b130, SQLiteBooleanBuilder, _a183, _b131, SQLiteBoolean;
|
25951
25995
|
var init_integer2 = __esm({
|
25952
|
-
"../
|
25996
|
+
"../drizzle-orm/dist/sqlite-core/columns/integer.js"() {
|
25953
25997
|
"use strict";
|
25954
25998
|
init_entity();
|
25955
25999
|
init_sql();
|
@@ -26063,10 +26107,10 @@ var init_integer2 = __esm({
|
|
26063
26107
|
}
|
26064
26108
|
});
|
26065
26109
|
|
26066
|
-
// ../
|
26110
|
+
// ../drizzle-orm/dist/sqlite-core/columns/numeric.js
|
26067
26111
|
var _a184, _b132, SQLiteNumericBuilder, _a185, _b133, SQLiteNumeric;
|
26068
26112
|
var init_numeric2 = __esm({
|
26069
|
-
"../
|
26113
|
+
"../drizzle-orm/dist/sqlite-core/columns/numeric.js"() {
|
26070
26114
|
"use strict";
|
26071
26115
|
init_entity();
|
26072
26116
|
init_common3();
|
@@ -26092,10 +26136,10 @@ var init_numeric2 = __esm({
|
|
26092
26136
|
}
|
26093
26137
|
});
|
26094
26138
|
|
26095
|
-
// ../
|
26139
|
+
// ../drizzle-orm/dist/sqlite-core/columns/real.js
|
26096
26140
|
var _a186, _b134, SQLiteRealBuilder, _a187, _b135, SQLiteReal;
|
26097
26141
|
var init_real2 = __esm({
|
26098
|
-
"../
|
26142
|
+
"../drizzle-orm/dist/sqlite-core/columns/real.js"() {
|
26099
26143
|
"use strict";
|
26100
26144
|
init_entity();
|
26101
26145
|
init_common3();
|
@@ -26118,10 +26162,10 @@ var init_real2 = __esm({
|
|
26118
26162
|
}
|
26119
26163
|
});
|
26120
26164
|
|
26121
|
-
// ../
|
26165
|
+
// ../drizzle-orm/dist/sqlite-core/columns/text.js
|
26122
26166
|
var _a188, _b136, SQLiteTextBuilder, _a189, _b137, SQLiteText, _a190, _b138, SQLiteTextJsonBuilder, _a191, _b139, SQLiteTextJson;
|
26123
26167
|
var init_text2 = __esm({
|
26124
|
-
"../
|
26168
|
+
"../drizzle-orm/dist/sqlite-core/columns/text.js"() {
|
26125
26169
|
"use strict";
|
26126
26170
|
init_entity();
|
26127
26171
|
init_common3();
|
@@ -26176,9 +26220,9 @@ var init_text2 = __esm({
|
|
26176
26220
|
}
|
26177
26221
|
});
|
26178
26222
|
|
26179
|
-
// ../
|
26223
|
+
// ../drizzle-orm/dist/sqlite-core/columns/index.js
|
26180
26224
|
var init_columns2 = __esm({
|
26181
|
-
"../
|
26225
|
+
"../drizzle-orm/dist/sqlite-core/columns/index.js"() {
|
26182
26226
|
"use strict";
|
26183
26227
|
init_blob();
|
26184
26228
|
init_common3();
|
@@ -26190,10 +26234,10 @@ var init_columns2 = __esm({
|
|
26190
26234
|
}
|
26191
26235
|
});
|
26192
26236
|
|
26193
|
-
// ../
|
26237
|
+
// ../drizzle-orm/dist/sqlite-core/query-builders/delete.js
|
26194
26238
|
var _a192, _b140, SQLiteDeleteBase;
|
26195
26239
|
var init_delete2 = __esm({
|
26196
|
-
"../
|
26240
|
+
"../drizzle-orm/dist/sqlite-core/query-builders/delete.js"() {
|
26197
26241
|
"use strict";
|
26198
26242
|
init_entity();
|
26199
26243
|
init_query_promise();
|
@@ -26289,10 +26333,10 @@ var init_delete2 = __esm({
|
|
26289
26333
|
}
|
26290
26334
|
});
|
26291
26335
|
|
26292
|
-
// ../
|
26336
|
+
// ../drizzle-orm/dist/sqlite-core/query-builders/insert.js
|
26293
26337
|
var _a193, SQLiteInsertBuilder, _a194, _b141, SQLiteInsertBase;
|
26294
26338
|
var init_insert2 = __esm({
|
26295
|
-
"../
|
26339
|
+
"../drizzle-orm/dist/sqlite-core/query-builders/insert.js"() {
|
26296
26340
|
"use strict";
|
26297
26341
|
init_entity();
|
26298
26342
|
init_query_promise();
|
@@ -26457,10 +26501,10 @@ var init_insert2 = __esm({
|
|
26457
26501
|
}
|
26458
26502
|
});
|
26459
26503
|
|
26460
|
-
// ../
|
26504
|
+
// ../drizzle-orm/dist/sqlite-core/view-base.js
|
26461
26505
|
var _a195, _b142, SQLiteViewBase;
|
26462
26506
|
var init_view_base2 = __esm({
|
26463
|
-
"../
|
26507
|
+
"../drizzle-orm/dist/sqlite-core/view-base.js"() {
|
26464
26508
|
"use strict";
|
26465
26509
|
init_entity();
|
26466
26510
|
init_sql();
|
@@ -26470,10 +26514,10 @@ var init_view_base2 = __esm({
|
|
26470
26514
|
}
|
26471
26515
|
});
|
26472
26516
|
|
26473
|
-
// ../
|
26517
|
+
// ../drizzle-orm/dist/sqlite-core/dialect.js
|
26474
26518
|
var _a196, SQLiteDialect, _a197, _b143, SQLiteSyncDialect, _a198, _b144, SQLiteAsyncDialect;
|
26475
26519
|
var init_dialect2 = __esm({
|
26476
|
-
"../
|
26520
|
+
"../drizzle-orm/dist/sqlite-core/dialect.js"() {
|
26477
26521
|
"use strict";
|
26478
26522
|
init_alias();
|
26479
26523
|
init_column();
|
@@ -27065,7 +27109,7 @@ var init_dialect2 = __esm({
|
|
27065
27109
|
}
|
27066
27110
|
});
|
27067
27111
|
|
27068
|
-
// ../
|
27112
|
+
// ../drizzle-orm/dist/sqlite-core/query-builders/select.js
|
27069
27113
|
function createSetOperator2(type, isAll) {
|
27070
27114
|
return (leftSelect, rightSelect, ...restSelects) => {
|
27071
27115
|
const setOperators = [rightSelect, ...restSelects].map((select) => ({
|
@@ -27085,7 +27129,7 @@ function createSetOperator2(type, isAll) {
|
|
27085
27129
|
}
|
27086
27130
|
var _a199, SQLiteSelectBuilder, _a200, _b145, SQLiteSelectQueryBuilderBase, _a201, _b146, SQLiteSelectBase, getSQLiteSetOperators, union2, unionAll2, intersect2, except2;
|
27087
27131
|
var init_select3 = __esm({
|
27088
|
-
"../
|
27132
|
+
"../drizzle-orm/dist/sqlite-core/query-builders/select.js"() {
|
27089
27133
|
"use strict";
|
27090
27134
|
init_entity();
|
27091
27135
|
init_query_builder();
|
@@ -27698,10 +27742,10 @@ var init_select3 = __esm({
|
|
27698
27742
|
}
|
27699
27743
|
});
|
27700
27744
|
|
27701
|
-
// ../
|
27745
|
+
// ../drizzle-orm/dist/sqlite-core/query-builders/query-builder.js
|
27702
27746
|
var _a202, QueryBuilder2;
|
27703
27747
|
var init_query_builder3 = __esm({
|
27704
|
-
"../
|
27748
|
+
"../drizzle-orm/dist/sqlite-core/query-builders/query-builder.js"() {
|
27705
27749
|
"use strict";
|
27706
27750
|
init_entity();
|
27707
27751
|
init_selection_proxy();
|
@@ -27771,17 +27815,17 @@ var init_query_builder3 = __esm({
|
|
27771
27815
|
}
|
27772
27816
|
});
|
27773
27817
|
|
27774
|
-
// ../
|
27818
|
+
// ../drizzle-orm/dist/sqlite-core/query-builders/select.types.js
|
27775
27819
|
var init_select_types2 = __esm({
|
27776
|
-
"../
|
27820
|
+
"../drizzle-orm/dist/sqlite-core/query-builders/select.types.js"() {
|
27777
27821
|
"use strict";
|
27778
27822
|
}
|
27779
27823
|
});
|
27780
27824
|
|
27781
|
-
// ../
|
27825
|
+
// ../drizzle-orm/dist/sqlite-core/query-builders/update.js
|
27782
27826
|
var _a203, SQLiteUpdateBuilder, _a204, _b147, SQLiteUpdateBase;
|
27783
27827
|
var init_update2 = __esm({
|
27784
|
-
"../
|
27828
|
+
"../drizzle-orm/dist/sqlite-core/query-builders/update.js"() {
|
27785
27829
|
"use strict";
|
27786
27830
|
init_entity();
|
27787
27831
|
init_query_promise();
|
@@ -27899,9 +27943,9 @@ var init_update2 = __esm({
|
|
27899
27943
|
}
|
27900
27944
|
});
|
27901
27945
|
|
27902
|
-
// ../
|
27946
|
+
// ../drizzle-orm/dist/sqlite-core/query-builders/index.js
|
27903
27947
|
var init_query_builders2 = __esm({
|
27904
|
-
"../
|
27948
|
+
"../drizzle-orm/dist/sqlite-core/query-builders/index.js"() {
|
27905
27949
|
"use strict";
|
27906
27950
|
init_delete2();
|
27907
27951
|
init_insert2();
|
@@ -27912,10 +27956,10 @@ var init_query_builders2 = __esm({
|
|
27912
27956
|
}
|
27913
27957
|
});
|
27914
27958
|
|
27915
|
-
// ../
|
27959
|
+
// ../drizzle-orm/dist/sqlite-core/query-builders/query.js
|
27916
27960
|
var _a205, RelationalQueryBuilder2, _a206, _b148, SQLiteRelationalQuery, _a207, _b149, SQLiteSyncRelationalQuery;
|
27917
27961
|
var init_query2 = __esm({
|
27918
|
-
"../
|
27962
|
+
"../drizzle-orm/dist/sqlite-core/query-builders/query.js"() {
|
27919
27963
|
"use strict";
|
27920
27964
|
init_entity();
|
27921
27965
|
init_query_promise();
|
@@ -28066,10 +28110,10 @@ var init_query2 = __esm({
|
|
28066
28110
|
}
|
28067
28111
|
});
|
28068
28112
|
|
28069
|
-
// ../
|
28113
|
+
// ../drizzle-orm/dist/sqlite-core/query-builders/raw.js
|
28070
28114
|
var _a208, _b150, SQLiteRaw;
|
28071
28115
|
var init_raw2 = __esm({
|
28072
|
-
"../
|
28116
|
+
"../drizzle-orm/dist/sqlite-core/query-builders/raw.js"() {
|
28073
28117
|
"use strict";
|
28074
28118
|
init_entity();
|
28075
28119
|
init_query_promise();
|
@@ -28102,10 +28146,10 @@ var init_raw2 = __esm({
|
|
28102
28146
|
}
|
28103
28147
|
});
|
28104
28148
|
|
28105
|
-
// ../
|
28149
|
+
// ../drizzle-orm/dist/sqlite-core/db.js
|
28106
28150
|
var _a209, BaseSQLiteDatabase;
|
28107
28151
|
var init_db2 = __esm({
|
28108
|
-
"../
|
28152
|
+
"../drizzle-orm/dist/sqlite-core/db.js"() {
|
28109
28153
|
"use strict";
|
28110
28154
|
init_entity();
|
28111
28155
|
init_selection_proxy();
|
@@ -28395,10 +28439,10 @@ var init_db2 = __esm({
|
|
28395
28439
|
}
|
28396
28440
|
});
|
28397
28441
|
|
28398
|
-
// ../
|
28442
|
+
// ../drizzle-orm/dist/sqlite-core/indexes.js
|
28399
28443
|
var _a210, IndexBuilderOn2, _a211, IndexBuilder2, _a212, Index4;
|
28400
28444
|
var init_indexes2 = __esm({
|
28401
|
-
"../
|
28445
|
+
"../drizzle-orm/dist/sqlite-core/indexes.js"() {
|
28402
28446
|
"use strict";
|
28403
28447
|
init_entity();
|
28404
28448
|
_a210 = entityKind;
|
@@ -28448,10 +28492,10 @@ var init_indexes2 = __esm({
|
|
28448
28492
|
}
|
28449
28493
|
});
|
28450
28494
|
|
28451
|
-
// ../
|
28495
|
+
// ../drizzle-orm/dist/sqlite-core/primary-keys.js
|
28452
28496
|
var _a213, PrimaryKeyBuilder2, _a214, PrimaryKey2;
|
28453
28497
|
var init_primary_keys2 = __esm({
|
28454
|
-
"../
|
28498
|
+
"../drizzle-orm/dist/sqlite-core/primary-keys.js"() {
|
28455
28499
|
"use strict";
|
28456
28500
|
init_entity();
|
28457
28501
|
init_table3();
|
@@ -28488,10 +28532,10 @@ var init_primary_keys2 = __esm({
|
|
28488
28532
|
}
|
28489
28533
|
});
|
28490
28534
|
|
28491
|
-
// ../
|
28535
|
+
// ../drizzle-orm/dist/sqlite-core/session.js
|
28492
28536
|
var _a215, _b151, ExecuteResultSync, _a216, SQLitePreparedQuery, _a217, SQLiteSession, _a218, _b152, SQLiteTransaction;
|
28493
28537
|
var init_session2 = __esm({
|
28494
|
-
"../
|
28538
|
+
"../drizzle-orm/dist/sqlite-core/session.js"() {
|
28495
28539
|
"use strict";
|
28496
28540
|
init_entity();
|
28497
28541
|
init_errors();
|
@@ -28609,23 +28653,23 @@ var init_session2 = __esm({
|
|
28609
28653
|
}
|
28610
28654
|
});
|
28611
28655
|
|
28612
|
-
// ../
|
28656
|
+
// ../drizzle-orm/dist/sqlite-core/subquery.js
|
28613
28657
|
var init_subquery3 = __esm({
|
28614
|
-
"../
|
28658
|
+
"../drizzle-orm/dist/sqlite-core/subquery.js"() {
|
28615
28659
|
"use strict";
|
28616
28660
|
}
|
28617
28661
|
});
|
28618
28662
|
|
28619
|
-
// ../
|
28663
|
+
// ../drizzle-orm/dist/sqlite-core/view-common.js
|
28620
28664
|
var SQLiteViewConfig;
|
28621
28665
|
var init_view_common3 = __esm({
|
28622
|
-
"../
|
28666
|
+
"../drizzle-orm/dist/sqlite-core/view-common.js"() {
|
28623
28667
|
"use strict";
|
28624
28668
|
SQLiteViewConfig = Symbol.for("drizzle:SQLiteViewConfig");
|
28625
28669
|
}
|
28626
28670
|
});
|
28627
28671
|
|
28628
|
-
// ../
|
28672
|
+
// ../drizzle-orm/dist/sqlite-core/utils.js
|
28629
28673
|
function getTableConfig2(table4) {
|
28630
28674
|
const columns = Object.values(table4[SQLiteTable.Symbol.Columns]);
|
28631
28675
|
const indexes = [];
|
@@ -28662,7 +28706,7 @@ function getTableConfig2(table4) {
|
|
28662
28706
|
};
|
28663
28707
|
}
|
28664
28708
|
var init_utils6 = __esm({
|
28665
|
-
"../
|
28709
|
+
"../drizzle-orm/dist/sqlite-core/utils.js"() {
|
28666
28710
|
"use strict";
|
28667
28711
|
init_entity();
|
28668
28712
|
init_table();
|
@@ -28675,10 +28719,10 @@ var init_utils6 = __esm({
|
|
28675
28719
|
}
|
28676
28720
|
});
|
28677
28721
|
|
28678
|
-
// ../
|
28722
|
+
// ../drizzle-orm/dist/sqlite-core/view.js
|
28679
28723
|
var _a219, ViewBuilderCore, _a220, _b153, ViewBuilder2, _a221, _b154, ManualViewBuilder2, _a222, _b155, _c6, SQLiteView;
|
28680
28724
|
var init_view2 = __esm({
|
28681
|
-
"../
|
28725
|
+
"../drizzle-orm/dist/sqlite-core/view.js"() {
|
28682
28726
|
"use strict";
|
28683
28727
|
init_entity();
|
28684
28728
|
init_selection_proxy();
|
@@ -28780,9 +28824,9 @@ var init_view2 = __esm({
|
|
28780
28824
|
}
|
28781
28825
|
});
|
28782
28826
|
|
28783
|
-
// ../
|
28827
|
+
// ../drizzle-orm/dist/sqlite-core/index.js
|
28784
28828
|
var init_sqlite_core = __esm({
|
28785
|
-
"../
|
28829
|
+
"../drizzle-orm/dist/sqlite-core/index.js"() {
|
28786
28830
|
"use strict";
|
28787
28831
|
init_alias3();
|
28788
28832
|
init_checks2();
|
@@ -28869,7 +28913,7 @@ var init_sqliteSerializer = __esm({
|
|
28869
28913
|
"src/serializer/sqliteSerializer.ts"() {
|
28870
28914
|
"use strict";
|
28871
28915
|
init_source();
|
28872
|
-
|
28916
|
+
init_dist();
|
28873
28917
|
init_sqlite_core();
|
28874
28918
|
init_outputs();
|
28875
28919
|
init_serializer();
|
@@ -29036,7 +29080,7 @@ The unique constraint ${source_default.underline.blue(
|
|
29036
29080
|
primaryKeys.forEach((it) => {
|
29037
29081
|
if (it.columns.length > 1) {
|
29038
29082
|
primaryKeysObject[it.getName()] = {
|
29039
|
-
columns: it.columns.map((it2) => it2.name)
|
29083
|
+
columns: it.columns.map((it2) => it2.name),
|
29040
29084
|
name: it.getName()
|
29041
29085
|
};
|
29042
29086
|
} else {
|
@@ -29161,7 +29205,6 @@ The unique constraint ${source_default.underline.blue(
|
|
29161
29205
|
}
|
29162
29206
|
for (const [key, value] of Object.entries(tableToPk)) {
|
29163
29207
|
if (value.length > 1) {
|
29164
|
-
value.sort();
|
29165
29208
|
result[key].compositePrimaryKeys = {
|
29166
29209
|
[`${key}_${value.join("_")}_pk`]: {
|
29167
29210
|
columns: value,
|
@@ -29282,17 +29325,17 @@ WHERE
|
|
29282
29325
|
}
|
29283
29326
|
});
|
29284
29327
|
|
29285
|
-
// ../
|
29328
|
+
// ../drizzle-orm/dist/mysql-core/alias.js
|
29286
29329
|
var init_alias4 = __esm({
|
29287
|
-
"../
|
29330
|
+
"../drizzle-orm/dist/mysql-core/alias.js"() {
|
29288
29331
|
"use strict";
|
29289
29332
|
}
|
29290
29333
|
});
|
29291
29334
|
|
29292
|
-
// ../
|
29335
|
+
// ../drizzle-orm/dist/mysql-core/checks.js
|
29293
29336
|
var _a223, CheckBuilder3, _a224, Check3;
|
29294
29337
|
var init_checks3 = __esm({
|
29295
|
-
"../
|
29338
|
+
"../drizzle-orm/dist/mysql-core/checks.js"() {
|
29296
29339
|
"use strict";
|
29297
29340
|
init_entity();
|
29298
29341
|
_a223 = entityKind;
|
@@ -29322,7 +29365,7 @@ var init_checks3 = __esm({
|
|
29322
29365
|
}
|
29323
29366
|
});
|
29324
29367
|
|
29325
|
-
// ../
|
29368
|
+
// ../drizzle-orm/dist/mysql-core/table.js
|
29326
29369
|
function mysqlTableWithSchema(name2, columns, extraConfig, schema4, baseName = name2) {
|
29327
29370
|
const rawTable = new MySqlTable(name2, schema4, baseName);
|
29328
29371
|
const builtColumns = Object.fromEntries(
|
@@ -29343,7 +29386,7 @@ function mysqlTableWithSchema(name2, columns, extraConfig, schema4, baseName = n
|
|
29343
29386
|
}
|
29344
29387
|
var InlineForeignKeys3, _a225, _b156, _c7, _d4, _e3, MySqlTable, mysqlTable;
|
29345
29388
|
var init_table4 = __esm({
|
29346
|
-
"../
|
29389
|
+
"../drizzle-orm/dist/mysql-core/table.js"() {
|
29347
29390
|
"use strict";
|
29348
29391
|
init_entity();
|
29349
29392
|
init_table();
|
@@ -29370,10 +29413,10 @@ var init_table4 = __esm({
|
|
29370
29413
|
}
|
29371
29414
|
});
|
29372
29415
|
|
29373
|
-
// ../
|
29416
|
+
// ../drizzle-orm/dist/mysql-core/foreign-keys.js
|
29374
29417
|
var _a226, ForeignKeyBuilder3, _a227, ForeignKey3;
|
29375
29418
|
var init_foreign_keys3 = __esm({
|
29376
|
-
"../
|
29419
|
+
"../drizzle-orm/dist/mysql-core/foreign-keys.js"() {
|
29377
29420
|
"use strict";
|
29378
29421
|
init_entity();
|
29379
29422
|
init_table4();
|
@@ -29437,13 +29480,13 @@ var init_foreign_keys3 = __esm({
|
|
29437
29480
|
}
|
29438
29481
|
});
|
29439
29482
|
|
29440
|
-
// ../
|
29483
|
+
// ../drizzle-orm/dist/mysql-core/unique-constraint.js
|
29441
29484
|
function uniqueKeyName3(table4, columns) {
|
29442
29485
|
return `${table4[MySqlTable.Symbol.Name]}_${columns.join("_")}_unique`;
|
29443
29486
|
}
|
29444
29487
|
var _a228, UniqueConstraintBuilder3, _a229, UniqueOnConstraintBuilder3, _a230, UniqueConstraint3;
|
29445
29488
|
var init_unique_constraint3 = __esm({
|
29446
|
-
"../
|
29489
|
+
"../drizzle-orm/dist/mysql-core/unique-constraint.js"() {
|
29447
29490
|
"use strict";
|
29448
29491
|
init_entity();
|
29449
29492
|
init_table4();
|
@@ -29491,10 +29534,10 @@ var init_unique_constraint3 = __esm({
|
|
29491
29534
|
}
|
29492
29535
|
});
|
29493
29536
|
|
29494
|
-
// ../
|
29537
|
+
// ../drizzle-orm/dist/mysql-core/columns/common.js
|
29495
29538
|
var _a231, _b157, MySqlColumnBuilder, _a232, _b158, MySqlColumn, _a233, _b159, MySqlColumnBuilderWithAutoIncrement, _a234, _b160, MySqlColumnWithAutoIncrement;
|
29496
29539
|
var init_common4 = __esm({
|
29497
|
-
"../
|
29540
|
+
"../drizzle-orm/dist/mysql-core/columns/common.js"() {
|
29498
29541
|
"use strict";
|
29499
29542
|
init_column_builder();
|
29500
29543
|
init_column();
|
@@ -29575,10 +29618,10 @@ var init_common4 = __esm({
|
|
29575
29618
|
}
|
29576
29619
|
});
|
29577
29620
|
|
29578
|
-
// ../
|
29621
|
+
// ../drizzle-orm/dist/mysql-core/columns/bigint.js
|
29579
29622
|
var _a235, _b161, MySqlBigInt53Builder, _a236, _b162, MySqlBigInt53, _a237, _b163, MySqlBigInt64Builder, _a238, _b164, MySqlBigInt64;
|
29580
29623
|
var init_bigint2 = __esm({
|
29581
|
-
"../
|
29624
|
+
"../drizzle-orm/dist/mysql-core/columns/bigint.js"() {
|
29582
29625
|
"use strict";
|
29583
29626
|
init_entity();
|
29584
29627
|
init_common4();
|
@@ -29635,10 +29678,10 @@ var init_bigint2 = __esm({
|
|
29635
29678
|
}
|
29636
29679
|
});
|
29637
29680
|
|
29638
|
-
// ../
|
29681
|
+
// ../drizzle-orm/dist/mysql-core/columns/binary.js
|
29639
29682
|
var _a239, _b165, MySqlBinaryBuilder, _a240, _b166, MySqlBinary;
|
29640
29683
|
var init_binary = __esm({
|
29641
|
-
"../
|
29684
|
+
"../drizzle-orm/dist/mysql-core/columns/binary.js"() {
|
29642
29685
|
"use strict";
|
29643
29686
|
init_entity();
|
29644
29687
|
init_common4();
|
@@ -29666,10 +29709,10 @@ var init_binary = __esm({
|
|
29666
29709
|
}
|
29667
29710
|
});
|
29668
29711
|
|
29669
|
-
// ../
|
29712
|
+
// ../drizzle-orm/dist/mysql-core/columns/boolean.js
|
29670
29713
|
var _a241, _b167, MySqlBooleanBuilder, _a242, _b168, MySqlBoolean;
|
29671
29714
|
var init_boolean2 = __esm({
|
29672
|
-
"../
|
29715
|
+
"../drizzle-orm/dist/mysql-core/columns/boolean.js"() {
|
29673
29716
|
"use strict";
|
29674
29717
|
init_entity();
|
29675
29718
|
init_common4();
|
@@ -29701,10 +29744,10 @@ var init_boolean2 = __esm({
|
|
29701
29744
|
}
|
29702
29745
|
});
|
29703
29746
|
|
29704
|
-
// ../
|
29747
|
+
// ../drizzle-orm/dist/mysql-core/columns/char.js
|
29705
29748
|
var _a243, _b169, MySqlCharBuilder, _a244, _b170, MySqlChar;
|
29706
29749
|
var init_char2 = __esm({
|
29707
|
-
"../
|
29750
|
+
"../drizzle-orm/dist/mysql-core/columns/char.js"() {
|
29708
29751
|
"use strict";
|
29709
29752
|
init_entity();
|
29710
29753
|
init_common4();
|
@@ -29737,10 +29780,10 @@ var init_char2 = __esm({
|
|
29737
29780
|
}
|
29738
29781
|
});
|
29739
29782
|
|
29740
|
-
// ../
|
29783
|
+
// ../drizzle-orm/dist/mysql-core/columns/custom.js
|
29741
29784
|
var _a245, _b171, MySqlCustomColumnBuilder, _a246, _b172, MySqlCustomColumn;
|
29742
29785
|
var init_custom3 = __esm({
|
29743
|
-
"../
|
29786
|
+
"../drizzle-orm/dist/mysql-core/columns/custom.js"() {
|
29744
29787
|
"use strict";
|
29745
29788
|
init_entity();
|
29746
29789
|
init_common4();
|
@@ -29783,10 +29826,10 @@ var init_custom3 = __esm({
|
|
29783
29826
|
}
|
29784
29827
|
});
|
29785
29828
|
|
29786
|
-
// ../
|
29829
|
+
// ../drizzle-orm/dist/mysql-core/columns/date.js
|
29787
29830
|
var _a247, _b173, MySqlDateBuilder, _a248, _b174, MySqlDate, _a249, _b175, MySqlDateStringBuilder, _a250, _b176, MySqlDateString;
|
29788
29831
|
var init_date2 = __esm({
|
29789
|
-
"../
|
29832
|
+
"../drizzle-orm/dist/mysql-core/columns/date.js"() {
|
29790
29833
|
"use strict";
|
29791
29834
|
init_entity();
|
29792
29835
|
init_common4();
|
@@ -29837,10 +29880,10 @@ var init_date2 = __esm({
|
|
29837
29880
|
}
|
29838
29881
|
});
|
29839
29882
|
|
29840
|
-
// ../
|
29883
|
+
// ../drizzle-orm/dist/mysql-core/columns/datetime.js
|
29841
29884
|
var _a251, _b177, MySqlDateTimeBuilder, _a252, _b178, MySqlDateTime, _a253, _b179, MySqlDateTimeStringBuilder, _a254, _b180, MySqlDateTimeString;
|
29842
29885
|
var init_datetime = __esm({
|
29843
|
-
"../
|
29886
|
+
"../drizzle-orm/dist/mysql-core/columns/datetime.js"() {
|
29844
29887
|
"use strict";
|
29845
29888
|
init_entity();
|
29846
29889
|
init_common4();
|
@@ -29905,10 +29948,10 @@ var init_datetime = __esm({
|
|
29905
29948
|
}
|
29906
29949
|
});
|
29907
29950
|
|
29908
|
-
// ../
|
29951
|
+
// ../drizzle-orm/dist/mysql-core/columns/decimal.js
|
29909
29952
|
var _a255, _b181, MySqlDecimalBuilder, _a256, _b182, MySqlDecimal;
|
29910
29953
|
var init_decimal = __esm({
|
29911
|
-
"../
|
29954
|
+
"../drizzle-orm/dist/mysql-core/columns/decimal.js"() {
|
29912
29955
|
"use strict";
|
29913
29956
|
init_entity();
|
29914
29957
|
init_common4();
|
@@ -29947,10 +29990,10 @@ var init_decimal = __esm({
|
|
29947
29990
|
}
|
29948
29991
|
});
|
29949
29992
|
|
29950
|
-
// ../
|
29993
|
+
// ../drizzle-orm/dist/mysql-core/columns/double.js
|
29951
29994
|
var _a257, _b183, MySqlDoubleBuilder, _a258, _b184, MySqlDouble;
|
29952
29995
|
var init_double = __esm({
|
29953
|
-
"../
|
29996
|
+
"../drizzle-orm/dist/mysql-core/columns/double.js"() {
|
29954
29997
|
"use strict";
|
29955
29998
|
init_entity();
|
29956
29999
|
init_common4();
|
@@ -29986,10 +30029,10 @@ var init_double = __esm({
|
|
29986
30029
|
}
|
29987
30030
|
});
|
29988
30031
|
|
29989
|
-
// ../
|
30032
|
+
// ../drizzle-orm/dist/mysql-core/columns/enum.js
|
29990
30033
|
var _a259, _b185, MySqlEnumColumnBuilder, _a260, _b186, MySqlEnumColumn;
|
29991
30034
|
var init_enum2 = __esm({
|
29992
|
-
"../
|
30035
|
+
"../drizzle-orm/dist/mysql-core/columns/enum.js"() {
|
29993
30036
|
"use strict";
|
29994
30037
|
init_entity();
|
29995
30038
|
init_common4();
|
@@ -30020,10 +30063,10 @@ var init_enum2 = __esm({
|
|
30020
30063
|
}
|
30021
30064
|
});
|
30022
30065
|
|
30023
|
-
// ../
|
30066
|
+
// ../drizzle-orm/dist/mysql-core/columns/float.js
|
30024
30067
|
var _a261, _b187, MySqlFloatBuilder, _a262, _b188, MySqlFloat;
|
30025
30068
|
var init_float = __esm({
|
30026
|
-
"../
|
30069
|
+
"../drizzle-orm/dist/mysql-core/columns/float.js"() {
|
30027
30070
|
"use strict";
|
30028
30071
|
init_entity();
|
30029
30072
|
init_common4();
|
@@ -30046,10 +30089,10 @@ var init_float = __esm({
|
|
30046
30089
|
}
|
30047
30090
|
});
|
30048
30091
|
|
30049
|
-
// ../
|
30092
|
+
// ../drizzle-orm/dist/mysql-core/columns/int.js
|
30050
30093
|
var _a263, _b189, MySqlIntBuilder, _a264, _b190, MySqlInt;
|
30051
30094
|
var init_int = __esm({
|
30052
|
-
"../
|
30095
|
+
"../drizzle-orm/dist/mysql-core/columns/int.js"() {
|
30053
30096
|
"use strict";
|
30054
30097
|
init_entity();
|
30055
30098
|
init_common4();
|
@@ -30079,10 +30122,10 @@ var init_int = __esm({
|
|
30079
30122
|
}
|
30080
30123
|
});
|
30081
30124
|
|
30082
|
-
// ../
|
30125
|
+
// ../drizzle-orm/dist/mysql-core/columns/json.js
|
30083
30126
|
var _a265, _b191, MySqlJsonBuilder, _a266, _b192, MySqlJson;
|
30084
30127
|
var init_json2 = __esm({
|
30085
|
-
"../
|
30128
|
+
"../drizzle-orm/dist/mysql-core/columns/json.js"() {
|
30086
30129
|
"use strict";
|
30087
30130
|
init_entity();
|
30088
30131
|
init_common4();
|
@@ -30108,10 +30151,10 @@ var init_json2 = __esm({
|
|
30108
30151
|
}
|
30109
30152
|
});
|
30110
30153
|
|
30111
|
-
// ../
|
30154
|
+
// ../drizzle-orm/dist/mysql-core/columns/mediumint.js
|
30112
30155
|
var _a267, _b193, MySqlMediumIntBuilder, _a268, _b194, MySqlMediumInt;
|
30113
30156
|
var init_mediumint = __esm({
|
30114
|
-
"../
|
30157
|
+
"../drizzle-orm/dist/mysql-core/columns/mediumint.js"() {
|
30115
30158
|
"use strict";
|
30116
30159
|
init_entity();
|
30117
30160
|
init_common4();
|
@@ -30144,10 +30187,10 @@ var init_mediumint = __esm({
|
|
30144
30187
|
}
|
30145
30188
|
});
|
30146
30189
|
|
30147
|
-
// ../
|
30190
|
+
// ../drizzle-orm/dist/mysql-core/columns/real.js
|
30148
30191
|
var _a269, _b195, MySqlRealBuilder, _a270, _b196, MySqlReal;
|
30149
30192
|
var init_real3 = __esm({
|
30150
|
-
"../
|
30193
|
+
"../drizzle-orm/dist/mysql-core/columns/real.js"() {
|
30151
30194
|
"use strict";
|
30152
30195
|
init_entity();
|
30153
30196
|
init_common4();
|
@@ -30183,10 +30226,10 @@ var init_real3 = __esm({
|
|
30183
30226
|
}
|
30184
30227
|
});
|
30185
30228
|
|
30186
|
-
// ../
|
30229
|
+
// ../drizzle-orm/dist/mysql-core/columns/serial.js
|
30187
30230
|
var _a271, _b197, MySqlSerialBuilder, _a272, _b198, MySqlSerial;
|
30188
30231
|
var init_serial2 = __esm({
|
30189
|
-
"../
|
30232
|
+
"../drizzle-orm/dist/mysql-core/columns/serial.js"() {
|
30190
30233
|
"use strict";
|
30191
30234
|
init_entity();
|
30192
30235
|
init_common4();
|
@@ -30217,10 +30260,10 @@ var init_serial2 = __esm({
|
|
30217
30260
|
}
|
30218
30261
|
});
|
30219
30262
|
|
30220
|
-
// ../
|
30263
|
+
// ../drizzle-orm/dist/mysql-core/columns/smallint.js
|
30221
30264
|
var _a273, _b199, MySqlSmallIntBuilder, _a274, _b200, MySqlSmallInt;
|
30222
30265
|
var init_smallint2 = __esm({
|
30223
|
-
"../
|
30266
|
+
"../drizzle-orm/dist/mysql-core/columns/smallint.js"() {
|
30224
30267
|
"use strict";
|
30225
30268
|
init_entity();
|
30226
30269
|
init_common4();
|
@@ -30253,10 +30296,10 @@ var init_smallint2 = __esm({
|
|
30253
30296
|
}
|
30254
30297
|
});
|
30255
30298
|
|
30256
|
-
// ../
|
30299
|
+
// ../drizzle-orm/dist/mysql-core/columns/text.js
|
30257
30300
|
var _a275, _b201, MySqlTextBuilder, _a276, _b202, MySqlText;
|
30258
30301
|
var init_text3 = __esm({
|
30259
|
-
"../
|
30302
|
+
"../drizzle-orm/dist/mysql-core/columns/text.js"() {
|
30260
30303
|
"use strict";
|
30261
30304
|
init_entity();
|
30262
30305
|
init_common4();
|
@@ -30286,10 +30329,10 @@ var init_text3 = __esm({
|
|
30286
30329
|
}
|
30287
30330
|
});
|
30288
30331
|
|
30289
|
-
// ../
|
30332
|
+
// ../drizzle-orm/dist/mysql-core/columns/time.js
|
30290
30333
|
var _a277, _b203, MySqlTimeBuilder, _a278, _b204, MySqlTime;
|
30291
30334
|
var init_time2 = __esm({
|
30292
|
-
"../
|
30335
|
+
"../drizzle-orm/dist/mysql-core/columns/time.js"() {
|
30293
30336
|
"use strict";
|
30294
30337
|
init_entity();
|
30295
30338
|
init_common4();
|
@@ -30318,10 +30361,10 @@ var init_time2 = __esm({
|
|
30318
30361
|
}
|
30319
30362
|
});
|
30320
30363
|
|
30321
|
-
// ../
|
30364
|
+
// ../drizzle-orm/dist/mysql-core/columns/date.common.js
|
30322
30365
|
var _a279, _b205, MySqlDateColumnBaseBuilder, _a280, _b206, MySqlDateBaseColumn;
|
30323
30366
|
var init_date_common2 = __esm({
|
30324
|
-
"../
|
30367
|
+
"../drizzle-orm/dist/mysql-core/columns/date.common.js"() {
|
30325
30368
|
"use strict";
|
30326
30369
|
init_entity();
|
30327
30370
|
init_sql();
|
@@ -30348,10 +30391,10 @@ var init_date_common2 = __esm({
|
|
30348
30391
|
}
|
30349
30392
|
});
|
30350
30393
|
|
30351
|
-
// ../
|
30394
|
+
// ../drizzle-orm/dist/mysql-core/columns/timestamp.js
|
30352
30395
|
var _a281, _b207, MySqlTimestampBuilder, _a282, _b208, MySqlTimestamp, _a283, _b209, MySqlTimestampStringBuilder, _a284, _b210, MySqlTimestampString;
|
30353
30396
|
var init_timestamp2 = __esm({
|
30354
|
-
"../
|
30397
|
+
"../drizzle-orm/dist/mysql-core/columns/timestamp.js"() {
|
30355
30398
|
"use strict";
|
30356
30399
|
init_entity();
|
30357
30400
|
init_date_common2();
|
@@ -30414,10 +30457,10 @@ var init_timestamp2 = __esm({
|
|
30414
30457
|
}
|
30415
30458
|
});
|
30416
30459
|
|
30417
|
-
// ../
|
30460
|
+
// ../drizzle-orm/dist/mysql-core/columns/tinyint.js
|
30418
30461
|
var _a285, _b211, MySqlTinyIntBuilder, _a286, _b212, MySqlTinyInt;
|
30419
30462
|
var init_tinyint = __esm({
|
30420
|
-
"../
|
30463
|
+
"../drizzle-orm/dist/mysql-core/columns/tinyint.js"() {
|
30421
30464
|
"use strict";
|
30422
30465
|
init_entity();
|
30423
30466
|
init_common4();
|
@@ -30450,10 +30493,10 @@ var init_tinyint = __esm({
|
|
30450
30493
|
}
|
30451
30494
|
});
|
30452
30495
|
|
30453
|
-
// ../
|
30496
|
+
// ../drizzle-orm/dist/mysql-core/columns/varbinary.js
|
30454
30497
|
var _a287, _b213, MySqlVarBinaryBuilder, _a288, _b214, MySqlVarBinary;
|
30455
30498
|
var init_varbinary = __esm({
|
30456
|
-
"../
|
30499
|
+
"../drizzle-orm/dist/mysql-core/columns/varbinary.js"() {
|
30457
30500
|
"use strict";
|
30458
30501
|
init_entity();
|
30459
30502
|
init_common4();
|
@@ -30485,10 +30528,10 @@ var init_varbinary = __esm({
|
|
30485
30528
|
}
|
30486
30529
|
});
|
30487
30530
|
|
30488
|
-
// ../
|
30531
|
+
// ../drizzle-orm/dist/mysql-core/columns/varchar.js
|
30489
30532
|
var _a289, _b215, MySqlVarCharBuilder, _a290, _b216, MySqlVarChar;
|
30490
30533
|
var init_varchar2 = __esm({
|
30491
|
-
"../
|
30534
|
+
"../drizzle-orm/dist/mysql-core/columns/varchar.js"() {
|
30492
30535
|
"use strict";
|
30493
30536
|
init_entity();
|
30494
30537
|
init_common4();
|
@@ -30522,10 +30565,10 @@ var init_varchar2 = __esm({
|
|
30522
30565
|
}
|
30523
30566
|
});
|
30524
30567
|
|
30525
|
-
// ../
|
30568
|
+
// ../drizzle-orm/dist/mysql-core/columns/year.js
|
30526
30569
|
var _a291, _b217, MySqlYearBuilder, _a292, _b218, MySqlYear;
|
30527
30570
|
var init_year = __esm({
|
30528
|
-
"../
|
30571
|
+
"../drizzle-orm/dist/mysql-core/columns/year.js"() {
|
30529
30572
|
"use strict";
|
30530
30573
|
init_entity();
|
30531
30574
|
init_common4();
|
@@ -30548,9 +30591,9 @@ var init_year = __esm({
|
|
30548
30591
|
}
|
30549
30592
|
});
|
30550
30593
|
|
30551
|
-
// ../
|
30594
|
+
// ../drizzle-orm/dist/mysql-core/columns/index.js
|
30552
30595
|
var init_columns3 = __esm({
|
30553
|
-
"../
|
30596
|
+
"../drizzle-orm/dist/mysql-core/columns/index.js"() {
|
30554
30597
|
"use strict";
|
30555
30598
|
init_bigint2();
|
30556
30599
|
init_binary();
|
@@ -30580,10 +30623,10 @@ var init_columns3 = __esm({
|
|
30580
30623
|
}
|
30581
30624
|
});
|
30582
30625
|
|
30583
|
-
// ../
|
30626
|
+
// ../drizzle-orm/dist/mysql-core/query-builders/delete.js
|
30584
30627
|
var _a293, _b219, MySqlDeleteBase;
|
30585
30628
|
var init_delete3 = __esm({
|
30586
|
-
"../
|
30629
|
+
"../drizzle-orm/dist/mysql-core/query-builders/delete.js"() {
|
30587
30630
|
"use strict";
|
30588
30631
|
init_entity();
|
30589
30632
|
init_query_promise();
|
@@ -30661,10 +30704,10 @@ var init_delete3 = __esm({
|
|
30661
30704
|
}
|
30662
30705
|
});
|
30663
30706
|
|
30664
|
-
// ../
|
30707
|
+
// ../drizzle-orm/dist/mysql-core/query-builders/insert.js
|
30665
30708
|
var _a294, MySqlInsertBuilder, _a295, _b220, MySqlInsertBase;
|
30666
30709
|
var init_insert3 = __esm({
|
30667
|
-
"../
|
30710
|
+
"../drizzle-orm/dist/mysql-core/query-builders/insert.js"() {
|
30668
30711
|
"use strict";
|
30669
30712
|
init_entity();
|
30670
30713
|
init_query_promise();
|
@@ -30786,10 +30829,10 @@ var init_insert3 = __esm({
|
|
30786
30829
|
}
|
30787
30830
|
});
|
30788
30831
|
|
30789
|
-
// ../
|
30832
|
+
// ../drizzle-orm/dist/mysql-core/view-base.js
|
30790
30833
|
var _a296, _b221, MySqlViewBase;
|
30791
30834
|
var init_view_base3 = __esm({
|
30792
|
-
"../
|
30835
|
+
"../drizzle-orm/dist/mysql-core/view-base.js"() {
|
30793
30836
|
"use strict";
|
30794
30837
|
init_entity();
|
30795
30838
|
init_sql();
|
@@ -30799,10 +30842,10 @@ var init_view_base3 = __esm({
|
|
30799
30842
|
}
|
30800
30843
|
});
|
30801
30844
|
|
30802
|
-
// ../
|
30845
|
+
// ../drizzle-orm/dist/mysql-core/dialect.js
|
30803
30846
|
var _a297, MySqlDialect;
|
30804
30847
|
var init_dialect3 = __esm({
|
30805
|
-
"../
|
30848
|
+
"../drizzle-orm/dist/mysql-core/dialect.js"() {
|
30806
30849
|
"use strict";
|
30807
30850
|
init_alias();
|
30808
30851
|
init_column();
|
@@ -31598,7 +31641,7 @@ var init_dialect3 = __esm({
|
|
31598
31641
|
}
|
31599
31642
|
});
|
31600
31643
|
|
31601
|
-
// ../
|
31644
|
+
// ../drizzle-orm/dist/mysql-core/query-builders/select.js
|
31602
31645
|
function createSetOperator3(type, isAll) {
|
31603
31646
|
return (leftSelect, rightSelect, ...restSelects) => {
|
31604
31647
|
const setOperators = [rightSelect, ...restSelects].map((select) => ({
|
@@ -31618,7 +31661,7 @@ function createSetOperator3(type, isAll) {
|
|
31618
31661
|
}
|
31619
31662
|
var _a298, MySqlSelectBuilder, _a299, _b222, MySqlSelectQueryBuilderBase, _a300, _b223, MySqlSelectBase, getMySqlSetOperators, union3, unionAll3, intersect3, intersectAll2, except3, exceptAll2;
|
31620
31663
|
var init_select4 = __esm({
|
31621
|
-
"../
|
31664
|
+
"../drizzle-orm/dist/mysql-core/query-builders/select.js"() {
|
31622
31665
|
"use strict";
|
31623
31666
|
init_entity();
|
31624
31667
|
init_query_builder();
|
@@ -32322,10 +32365,10 @@ var init_select4 = __esm({
|
|
32322
32365
|
}
|
32323
32366
|
});
|
32324
32367
|
|
32325
|
-
// ../
|
32368
|
+
// ../drizzle-orm/dist/mysql-core/query-builders/query-builder.js
|
32326
32369
|
var _a301, QueryBuilder3;
|
32327
32370
|
var init_query_builder4 = __esm({
|
32328
|
-
"../
|
32371
|
+
"../drizzle-orm/dist/mysql-core/query-builders/query-builder.js"() {
|
32329
32372
|
"use strict";
|
32330
32373
|
init_entity();
|
32331
32374
|
init_dialect3();
|
@@ -32395,17 +32438,17 @@ var init_query_builder4 = __esm({
|
|
32395
32438
|
}
|
32396
32439
|
});
|
32397
32440
|
|
32398
|
-
// ../
|
32441
|
+
// ../drizzle-orm/dist/mysql-core/query-builders/select.types.js
|
32399
32442
|
var init_select_types3 = __esm({
|
32400
|
-
"../
|
32443
|
+
"../drizzle-orm/dist/mysql-core/query-builders/select.types.js"() {
|
32401
32444
|
"use strict";
|
32402
32445
|
}
|
32403
32446
|
});
|
32404
32447
|
|
32405
|
-
// ../
|
32448
|
+
// ../drizzle-orm/dist/mysql-core/query-builders/update.js
|
32406
32449
|
var _a302, MySqlUpdateBuilder, _a303, _b224, MySqlUpdateBase;
|
32407
32450
|
var init_update3 = __esm({
|
32408
|
-
"../
|
32451
|
+
"../drizzle-orm/dist/mysql-core/query-builders/update.js"() {
|
32409
32452
|
"use strict";
|
32410
32453
|
init_entity();
|
32411
32454
|
init_query_promise();
|
@@ -32500,9 +32543,9 @@ var init_update3 = __esm({
|
|
32500
32543
|
}
|
32501
32544
|
});
|
32502
32545
|
|
32503
|
-
// ../
|
32546
|
+
// ../drizzle-orm/dist/mysql-core/query-builders/index.js
|
32504
32547
|
var init_query_builders3 = __esm({
|
32505
|
-
"../
|
32548
|
+
"../drizzle-orm/dist/mysql-core/query-builders/index.js"() {
|
32506
32549
|
"use strict";
|
32507
32550
|
init_delete3();
|
32508
32551
|
init_insert3();
|
@@ -32513,10 +32556,10 @@ var init_query_builders3 = __esm({
|
|
32513
32556
|
}
|
32514
32557
|
});
|
32515
32558
|
|
32516
|
-
// ../
|
32559
|
+
// ../drizzle-orm/dist/mysql-core/query-builders/query.js
|
32517
32560
|
var _a304, RelationalQueryBuilder3, _a305, _b225, MySqlRelationalQuery;
|
32518
32561
|
var init_query3 = __esm({
|
32519
|
-
"../
|
32562
|
+
"../drizzle-orm/dist/mysql-core/query-builders/query.js"() {
|
32520
32563
|
"use strict";
|
32521
32564
|
init_entity();
|
32522
32565
|
init_query_promise();
|
@@ -32631,10 +32674,10 @@ var init_query3 = __esm({
|
|
32631
32674
|
}
|
32632
32675
|
});
|
32633
32676
|
|
32634
|
-
// ../
|
32677
|
+
// ../drizzle-orm/dist/mysql-core/db.js
|
32635
32678
|
var _a306, MySqlDatabase;
|
32636
32679
|
var init_db3 = __esm({
|
32637
|
-
"../
|
32680
|
+
"../drizzle-orm/dist/mysql-core/db.js"() {
|
32638
32681
|
"use strict";
|
32639
32682
|
init_entity();
|
32640
32683
|
init_selection_proxy();
|
@@ -32854,10 +32897,10 @@ var init_db3 = __esm({
|
|
32854
32897
|
}
|
32855
32898
|
});
|
32856
32899
|
|
32857
|
-
// ../
|
32900
|
+
// ../drizzle-orm/dist/mysql-core/indexes.js
|
32858
32901
|
var _a307, IndexBuilderOn3, _a308, IndexBuilder3, _a309, Index5;
|
32859
32902
|
var init_indexes3 = __esm({
|
32860
|
-
"../
|
32903
|
+
"../drizzle-orm/dist/mysql-core/indexes.js"() {
|
32861
32904
|
"use strict";
|
32862
32905
|
init_entity();
|
32863
32906
|
_a307 = entityKind;
|
@@ -32911,10 +32954,10 @@ var init_indexes3 = __esm({
|
|
32911
32954
|
}
|
32912
32955
|
});
|
32913
32956
|
|
32914
|
-
// ../
|
32957
|
+
// ../drizzle-orm/dist/mysql-core/primary-keys.js
|
32915
32958
|
var _a310, PrimaryKeyBuilder3, _a311, PrimaryKey3;
|
32916
32959
|
var init_primary_keys3 = __esm({
|
32917
|
-
"../
|
32960
|
+
"../drizzle-orm/dist/mysql-core/primary-keys.js"() {
|
32918
32961
|
"use strict";
|
32919
32962
|
init_entity();
|
32920
32963
|
init_table4();
|
@@ -32951,16 +32994,16 @@ var init_primary_keys3 = __esm({
|
|
32951
32994
|
}
|
32952
32995
|
});
|
32953
32996
|
|
32954
|
-
// ../
|
32997
|
+
// ../drizzle-orm/dist/mysql-core/view-common.js
|
32955
32998
|
var MySqlViewConfig;
|
32956
32999
|
var init_view_common4 = __esm({
|
32957
|
-
"../
|
33000
|
+
"../drizzle-orm/dist/mysql-core/view-common.js"() {
|
32958
33001
|
"use strict";
|
32959
33002
|
MySqlViewConfig = Symbol.for("drizzle:MySqlViewConfig");
|
32960
33003
|
}
|
32961
33004
|
});
|
32962
33005
|
|
32963
|
-
// ../
|
33006
|
+
// ../drizzle-orm/dist/mysql-core/view.js
|
32964
33007
|
function mysqlViewWithSchema(name2, selection, schema4) {
|
32965
33008
|
if (selection) {
|
32966
33009
|
return new ManualViewBuilder3(name2, selection, schema4);
|
@@ -32969,7 +33012,7 @@ function mysqlViewWithSchema(name2, selection, schema4) {
|
|
32969
33012
|
}
|
32970
33013
|
var _a312, ViewBuilderCore2, _a313, _b226, ViewBuilder3, _a314, _b227, ManualViewBuilder3, _a315, _b228, _c8, MySqlView;
|
32971
33014
|
var init_view3 = __esm({
|
32972
|
-
"../
|
33015
|
+
"../drizzle-orm/dist/mysql-core/view.js"() {
|
32973
33016
|
"use strict";
|
32974
33017
|
init_entity();
|
32975
33018
|
init_selection_proxy();
|
@@ -33087,10 +33130,10 @@ var init_view3 = __esm({
|
|
33087
33130
|
}
|
33088
33131
|
});
|
33089
33132
|
|
33090
|
-
// ../
|
33133
|
+
// ../drizzle-orm/dist/mysql-core/schema.js
|
33091
33134
|
var _a316, MySqlSchema5;
|
33092
33135
|
var init_schema2 = __esm({
|
33093
|
-
"../
|
33136
|
+
"../drizzle-orm/dist/mysql-core/schema.js"() {
|
33094
33137
|
"use strict";
|
33095
33138
|
init_entity();
|
33096
33139
|
init_table4();
|
@@ -33111,10 +33154,10 @@ var init_schema2 = __esm({
|
|
33111
33154
|
}
|
33112
33155
|
});
|
33113
33156
|
|
33114
|
-
// ../
|
33157
|
+
// ../drizzle-orm/dist/mysql-core/session.js
|
33115
33158
|
var _a317, MySqlPreparedQuery, _a318, MySqlSession, _a319, _b229, MySqlTransaction;
|
33116
33159
|
var init_session3 = __esm({
|
33117
|
-
"../
|
33160
|
+
"../drizzle-orm/dist/mysql-core/session.js"() {
|
33118
33161
|
"use strict";
|
33119
33162
|
init_entity();
|
33120
33163
|
init_errors();
|
@@ -33144,7 +33187,7 @@ var init_session3 = __esm({
|
|
33144
33187
|
if (config.isolationLevel) {
|
33145
33188
|
parts.push(`isolation level ${config.isolationLevel}`);
|
33146
33189
|
}
|
33147
|
-
return parts.length ? sql
|
33190
|
+
return parts.length ? sql`set transaction ${sql.raw(parts.join(" "))}` : void 0;
|
33148
33191
|
}
|
33149
33192
|
getStartTransactionSQL(config) {
|
33150
33193
|
const parts = [];
|
@@ -33154,7 +33197,7 @@ var init_session3 = __esm({
|
|
33154
33197
|
if (config.accessMode) {
|
33155
33198
|
parts.push(config.accessMode);
|
33156
33199
|
}
|
33157
|
-
return parts.length ? sql
|
33200
|
+
return parts.length ? sql`start transaction ${sql.raw(parts.join(" "))}` : void 0;
|
33158
33201
|
}
|
33159
33202
|
};
|
33160
33203
|
__publicField(MySqlSession, _a318, "MySqlSession");
|
@@ -33172,14 +33215,14 @@ var init_session3 = __esm({
|
|
33172
33215
|
}
|
33173
33216
|
});
|
33174
33217
|
|
33175
|
-
// ../
|
33218
|
+
// ../drizzle-orm/dist/mysql-core/subquery.js
|
33176
33219
|
var init_subquery4 = __esm({
|
33177
|
-
"../
|
33220
|
+
"../drizzle-orm/dist/mysql-core/subquery.js"() {
|
33178
33221
|
"use strict";
|
33179
33222
|
}
|
33180
33223
|
});
|
33181
33224
|
|
33182
|
-
// ../
|
33225
|
+
// ../drizzle-orm/dist/mysql-core/utils.js
|
33183
33226
|
function getTableConfig3(table4) {
|
33184
33227
|
const columns = Object.values(table4[MySqlTable.Symbol.Columns]);
|
33185
33228
|
const indexes = [];
|
@@ -33220,7 +33263,7 @@ function getTableConfig3(table4) {
|
|
33220
33263
|
};
|
33221
33264
|
}
|
33222
33265
|
var init_utils7 = __esm({
|
33223
|
-
"../
|
33266
|
+
"../drizzle-orm/dist/mysql-core/utils.js"() {
|
33224
33267
|
"use strict";
|
33225
33268
|
init_entity();
|
33226
33269
|
init_table();
|
@@ -33233,9 +33276,9 @@ var init_utils7 = __esm({
|
|
33233
33276
|
}
|
33234
33277
|
});
|
33235
33278
|
|
33236
|
-
// ../
|
33279
|
+
// ../drizzle-orm/dist/mysql-core/index.js
|
33237
33280
|
var init_mysql_core = __esm({
|
33238
|
-
"../
|
33281
|
+
"../drizzle-orm/dist/mysql-core/index.js"() {
|
33239
33282
|
"use strict";
|
33240
33283
|
init_alias4();
|
33241
33284
|
init_checks3();
|
@@ -33280,8 +33323,8 @@ var init_mysqlSerializer = __esm({
|
|
33280
33323
|
"src/serializer/mysqlSerializer.ts"() {
|
33281
33324
|
"use strict";
|
33282
33325
|
init_source();
|
33283
|
-
|
33284
|
-
|
33326
|
+
init_dist();
|
33327
|
+
init_dist();
|
33285
33328
|
init_mysql_core();
|
33286
33329
|
init_mysql_core();
|
33287
33330
|
init_outputs();
|
@@ -33605,7 +33648,7 @@ We have encountered a collision between the index name on columns ${source_defau
|
|
33605
33648
|
onUpdate = true;
|
33606
33649
|
}
|
33607
33650
|
const newColumn = {
|
33608
|
-
default: columnDefault === null ? void 0 : /^-?[\d.]+(?:e-?\d+)?$/.test(columnDefault) && !columnType.startsWith(
|
33651
|
+
default: columnDefault === null ? void 0 : /^-?[\d.]+(?:e-?\d+)?$/.test(columnDefault) && !["decimal", "char", "varchar"].some((type) => columnType.startsWith(type)) ? Number(columnDefault) : isDefaultAnExpression ? clearDefaults(columnDefault, collation) : `'${columnDefault}'`,
|
33609
33652
|
autoincrement: isAutoincrement,
|
33610
33653
|
name: columnName,
|
33611
33654
|
type: changedType,
|
@@ -34083,7 +34126,7 @@ var prepareFromExports;
|
|
34083
34126
|
var init_pgImports = __esm({
|
34084
34127
|
"src/serializer/pgImports.ts"() {
|
34085
34128
|
"use strict";
|
34086
|
-
|
34129
|
+
init_dist();
|
34087
34130
|
init_pg_core();
|
34088
34131
|
init_utils8();
|
34089
34132
|
prepareFromExports = (exports) => {
|
@@ -34122,7 +34165,7 @@ var prepareFromExports2, prepareFromSqliteImports;
|
|
34122
34165
|
var init_sqliteImports = __esm({
|
34123
34166
|
"src/serializer/sqliteImports.ts"() {
|
34124
34167
|
"use strict";
|
34125
|
-
|
34168
|
+
init_dist();
|
34126
34169
|
init_sqlite_core();
|
34127
34170
|
init_utils8();
|
34128
34171
|
prepareFromExports2 = (exports) => {
|
@@ -34160,7 +34203,7 @@ var prepareFromExports3, prepareFromMySqlImports;
|
|
34160
34203
|
var init_mysqlImports = __esm({
|
34161
34204
|
"src/serializer/mysqlImports.ts"() {
|
34162
34205
|
"use strict";
|
34163
|
-
|
34206
|
+
init_dist();
|
34164
34207
|
init_mysql_core();
|
34165
34208
|
init_utils8();
|
34166
34209
|
prepareFromExports3 = (exports) => {
|
@@ -34808,6 +34851,37 @@ var updateUpToV6 = (json) => {
|
|
34808
34851
|
enums
|
34809
34852
|
};
|
34810
34853
|
};
|
34854
|
+
var updateUpToV7 = (json) => {
|
34855
|
+
const schema4 = pgSchemaV6.parse(json);
|
34856
|
+
const tables = Object.fromEntries(
|
34857
|
+
Object.entries(schema4.tables).map((it) => {
|
34858
|
+
const table4 = it[1];
|
34859
|
+
const mappedIndexes = Object.fromEntries(
|
34860
|
+
Object.entries(table4.indexes).map((idx) => {
|
34861
|
+
const { columns, ...rest } = idx[1];
|
34862
|
+
const mappedColumns = columns.map((it2) => {
|
34863
|
+
return {
|
34864
|
+
expression: it2,
|
34865
|
+
isExpression: false,
|
34866
|
+
asc: true,
|
34867
|
+
nulls: "last",
|
34868
|
+
opClass: void 0
|
34869
|
+
};
|
34870
|
+
});
|
34871
|
+
return [idx[0], { columns: mappedColumns, with: {}, ...rest }];
|
34872
|
+
})
|
34873
|
+
);
|
34874
|
+
return [it[0], { ...table4, indexes: mappedIndexes }];
|
34875
|
+
})
|
34876
|
+
);
|
34877
|
+
return {
|
34878
|
+
...schema4,
|
34879
|
+
version: "7",
|
34880
|
+
dialect: "postgresql",
|
34881
|
+
sequences: {},
|
34882
|
+
tables
|
34883
|
+
};
|
34884
|
+
};
|
34811
34885
|
|
34812
34886
|
// src/cli/commands/sqliteIntrospect.ts
|
34813
34887
|
var import_hanji6 = __toESM(require_hanji());
|
@@ -35278,7 +35352,7 @@ var generateMigration = async (prev, cur) => {
|
|
35278
35352
|
};
|
35279
35353
|
var pushSchema = async (imports, drizzleInstance, schemaFilters) => {
|
35280
35354
|
const { applyPgSnapshotsDiff: applyPgSnapshotsDiff2 } = await Promise.resolve().then(() => (init_snapshotsDiffer(), snapshotsDiffer_exports));
|
35281
|
-
const { sql: sql2 } = await Promise.resolve().then(() => (
|
35355
|
+
const { sql: sql2 } = await Promise.resolve().then(() => (init_dist(), dist_exports));
|
35282
35356
|
const db = {
|
35283
35357
|
query: async (query, params) => {
|
35284
35358
|
const res = await drizzleInstance.execute(sql2.raw(query));
|
@@ -35348,7 +35422,7 @@ var generateSQLiteMigration = async (prev, cur) => {
|
|
35348
35422
|
};
|
35349
35423
|
var pushSQLiteSchema = async (imports, drizzleInstance) => {
|
35350
35424
|
const { applySqliteSnapshotsDiff: applySqliteSnapshotsDiff2 } = await Promise.resolve().then(() => (init_snapshotsDiffer(), snapshotsDiffer_exports));
|
35351
|
-
const { sql: sql2 } = await Promise.resolve().then(() => (
|
35425
|
+
const { sql: sql2 } = await Promise.resolve().then(() => (init_dist(), dist_exports));
|
35352
35426
|
const db = {
|
35353
35427
|
query: async (query, params) => {
|
35354
35428
|
const res = drizzleInstance.all(sql2.raw(query));
|
@@ -35425,7 +35499,7 @@ var pushMySQLSchema = async (imports, drizzleInstance, databaseName) => {
|
|
35425
35499
|
const { applyMysqlSnapshotsDiff: applyMysqlSnapshotsDiff2 } = await Promise.resolve().then(() => (init_snapshotsDiffer(), snapshotsDiffer_exports));
|
35426
35500
|
const { logSuggestionsAndReturn: logSuggestionsAndReturn3 } = await Promise.resolve().then(() => (init_mysqlPushUtils(), mysqlPushUtils_exports));
|
35427
35501
|
const { mysqlPushIntrospect: mysqlPushIntrospect2 } = await Promise.resolve().then(() => (init_mysqlIntrospect(), mysqlIntrospect_exports));
|
35428
|
-
const { sql: sql2 } = await Promise.resolve().then(() => (
|
35502
|
+
const { sql: sql2 } = await Promise.resolve().then(() => (init_dist(), dist_exports));
|
35429
35503
|
const db = {
|
35430
35504
|
query: async (query, params) => {
|
35431
35505
|
const res = await drizzleInstance.execute(sql2.raw(query));
|
@@ -35464,7 +35538,13 @@ var pushMySQLSchema = async (imports, drizzleInstance, databaseName) => {
|
|
35464
35538
|
};
|
35465
35539
|
};
|
35466
35540
|
var upPgSnapshot = (snapshot) => {
|
35467
|
-
|
35541
|
+
if (snapshot.version === "5") {
|
35542
|
+
return updateUpToV7(updateUpToV6(snapshot));
|
35543
|
+
}
|
35544
|
+
if (snapshot.version === "6") {
|
35545
|
+
return updateUpToV7(snapshot);
|
35546
|
+
}
|
35547
|
+
return snapshot;
|
35468
35548
|
};
|
35469
35549
|
export {
|
35470
35550
|
generateDrizzleJson,
|