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.js
CHANGED
@@ -8338,6 +8338,9 @@ var init_sqliteSchema = __esm({
|
|
8338
8338
|
});
|
8339
8339
|
|
8340
8340
|
// src/utils.ts
|
8341
|
+
function isPgArrayType(sqlType) {
|
8342
|
+
return sqlType.match(/.*\[\d*\].*|.*\[\].*/g) !== null;
|
8343
|
+
}
|
8341
8344
|
var copy, prepareMigrationMeta, schemaRenameKey, tableRenameKey, columnRenameKey;
|
8342
8345
|
var init_utils = __esm({
|
8343
8346
|
"src/utils.ts"() {
|
@@ -8711,14 +8714,14 @@ var require_heap = __commonJS({
|
|
8711
8714
|
return item;
|
8712
8715
|
};
|
8713
8716
|
heapify = function(array, cmp) {
|
8714
|
-
var i, _i2,
|
8717
|
+
var i, _i2, _j2, _len, _ref, _ref1, _results, _results1;
|
8715
8718
|
if (cmp == null) {
|
8716
8719
|
cmp = defaultCmp;
|
8717
8720
|
}
|
8718
8721
|
_ref1 = function() {
|
8719
8722
|
_results1 = [];
|
8720
|
-
for (var
|
8721
|
-
_results1.push(
|
8723
|
+
for (var _j3 = 0, _ref2 = floor(array.length / 2); 0 <= _ref2 ? _j3 < _ref2 : _j3 > _ref2; 0 <= _ref2 ? _j3++ : _j3--) {
|
8724
|
+
_results1.push(_j3);
|
8722
8725
|
}
|
8723
8726
|
return _results1;
|
8724
8727
|
}.apply(this).reverse();
|
@@ -8759,7 +8762,7 @@ var require_heap = __commonJS({
|
|
8759
8762
|
return result.sort(cmp).reverse();
|
8760
8763
|
};
|
8761
8764
|
nsmallest = function(array, n, cmp) {
|
8762
|
-
var elem, i, los, result, _i2,
|
8765
|
+
var elem, i, los, result, _i2, _j2, _len, _ref, _ref1, _results;
|
8763
8766
|
if (cmp == null) {
|
8764
8767
|
cmp = defaultCmp;
|
8765
8768
|
}
|
@@ -8782,7 +8785,7 @@ var require_heap = __commonJS({
|
|
8782
8785
|
}
|
8783
8786
|
heapify(array, cmp);
|
8784
8787
|
_results = [];
|
8785
|
-
for (i =
|
8788
|
+
for (i = _j2 = 0, _ref1 = min2(n, array.length); 0 <= _ref1 ? _j2 < _ref1 : _j2 > _ref1; i = 0 <= _ref1 ? ++_j2 : --_j2) {
|
8786
8789
|
_results.push(heappop(array, cmp));
|
8787
8790
|
}
|
8788
8791
|
return _results;
|
@@ -17272,7 +17275,7 @@ var init_mjs = __esm({
|
|
17272
17275
|
}
|
17273
17276
|
});
|
17274
17277
|
|
17275
|
-
// ../
|
17278
|
+
// ../drizzle-orm/dist/entity.js
|
17276
17279
|
function is(value, type) {
|
17277
17280
|
if (!value || typeof value !== "object") {
|
17278
17281
|
return false;
|
@@ -17298,17 +17301,17 @@ function is(value, type) {
|
|
17298
17301
|
}
|
17299
17302
|
var entityKind, hasOwnEntityKind;
|
17300
17303
|
var init_entity = __esm({
|
17301
|
-
"../
|
17304
|
+
"../drizzle-orm/dist/entity.js"() {
|
17302
17305
|
"use strict";
|
17303
17306
|
entityKind = Symbol.for("drizzle:entityKind");
|
17304
17307
|
hasOwnEntityKind = Symbol.for("drizzle:hasOwnEntityKind");
|
17305
17308
|
}
|
17306
17309
|
});
|
17307
17310
|
|
17308
|
-
// ../
|
17311
|
+
// ../drizzle-orm/dist/column.js
|
17309
17312
|
var _a, Column2;
|
17310
17313
|
var init_column = __esm({
|
17311
|
-
"../
|
17314
|
+
"../drizzle-orm/dist/column.js"() {
|
17312
17315
|
"use strict";
|
17313
17316
|
init_entity();
|
17314
17317
|
_a = entityKind;
|
@@ -17362,10 +17365,10 @@ var init_column = __esm({
|
|
17362
17365
|
}
|
17363
17366
|
});
|
17364
17367
|
|
17365
|
-
// ../
|
17368
|
+
// ../drizzle-orm/dist/column-builder.js
|
17366
17369
|
var _a2, ColumnBuilder;
|
17367
17370
|
var init_column_builder = __esm({
|
17368
|
-
"../
|
17371
|
+
"../drizzle-orm/dist/column-builder.js"() {
|
17369
17372
|
"use strict";
|
17370
17373
|
init_entity();
|
17371
17374
|
_a2 = entityKind;
|
@@ -17467,7 +17470,7 @@ var init_column_builder = __esm({
|
|
17467
17470
|
}
|
17468
17471
|
});
|
17469
17472
|
|
17470
|
-
// ../
|
17473
|
+
// ../drizzle-orm/dist/table.js
|
17471
17474
|
function isTable(table4) {
|
17472
17475
|
return typeof table4 === "object" && table4 !== null && IsDrizzleTable in table4;
|
17473
17476
|
}
|
@@ -17477,9 +17480,9 @@ function getTableName(table4) {
|
|
17477
17480
|
function getTableUniqueName(table4) {
|
17478
17481
|
return `${table4[Schema] ?? "public"}.${table4[TableName]}`;
|
17479
17482
|
}
|
17480
|
-
var TableName, Schema, Columns, ExtraConfigColumns, OriginalName, BaseName, IsAlias, ExtraConfigBuilder, IsDrizzleTable, _a3, _b, _c, _d, _e, _f, _g, _h, _i, Table2;
|
17483
|
+
var TableName, Schema, Columns, ExtraConfigColumns, OriginalName, BaseName, IsAlias, ExtraConfigBuilder, IsDrizzleTable, _a3, _b, _c, _d, _e, _f, _g, _h, _i, _j, Table2;
|
17481
17484
|
var init_table = __esm({
|
17482
|
-
"../
|
17485
|
+
"../drizzle-orm/dist/table.js"() {
|
17483
17486
|
"use strict";
|
17484
17487
|
init_entity();
|
17485
17488
|
TableName = Symbol.for("drizzle:Name");
|
@@ -17491,32 +17494,34 @@ var init_table = __esm({
|
|
17491
17494
|
IsAlias = Symbol.for("drizzle:IsAlias");
|
17492
17495
|
ExtraConfigBuilder = Symbol.for("drizzle:ExtraConfigBuilder");
|
17493
17496
|
IsDrizzleTable = Symbol.for("drizzle:IsDrizzleTable");
|
17494
|
-
|
17497
|
+
_j = entityKind, _i = TableName, _h = OriginalName, _g = Schema, _f = Columns, _e = ExtraConfigColumns, _d = BaseName, _c = IsAlias, _b = IsDrizzleTable, _a3 = ExtraConfigBuilder;
|
17495
17498
|
Table2 = class {
|
17496
17499
|
constructor(name2, schema4, baseName) {
|
17497
17500
|
/**
|
17498
17501
|
* @internal
|
17499
17502
|
* Can be changed if the table is aliased.
|
17500
17503
|
*/
|
17501
|
-
__publicField(this,
|
17504
|
+
__publicField(this, _i);
|
17502
17505
|
/**
|
17503
17506
|
* @internal
|
17504
17507
|
* Used to store the original name of the table, before any aliasing.
|
17505
17508
|
*/
|
17509
|
+
__publicField(this, _h);
|
17510
|
+
/** @internal */
|
17506
17511
|
__publicField(this, _g);
|
17507
17512
|
/** @internal */
|
17508
17513
|
__publicField(this, _f);
|
17509
17514
|
/** @internal */
|
17510
17515
|
__publicField(this, _e);
|
17511
|
-
/** @internal */
|
17512
|
-
__publicField(this, _d);
|
17513
17516
|
/**
|
17514
17517
|
* @internal
|
17515
17518
|
* Used to store the table name before the transformation via the `tableCreator` functions.
|
17516
17519
|
*/
|
17517
|
-
__publicField(this,
|
17520
|
+
__publicField(this, _d);
|
17518
17521
|
/** @internal */
|
17519
|
-
__publicField(this,
|
17522
|
+
__publicField(this, _c, false);
|
17523
|
+
/** @internal */
|
17524
|
+
__publicField(this, _b, true);
|
17520
17525
|
/** @internal */
|
17521
17526
|
__publicField(this, _a3);
|
17522
17527
|
this[TableName] = this[OriginalName] = name2;
|
@@ -17524,7 +17529,7 @@ var init_table = __esm({
|
|
17524
17529
|
this[BaseName] = baseName;
|
17525
17530
|
}
|
17526
17531
|
};
|
17527
|
-
__publicField(Table2,
|
17532
|
+
__publicField(Table2, _j, "Table");
|
17528
17533
|
/** @internal */
|
17529
17534
|
__publicField(Table2, "Symbol", {
|
17530
17535
|
Name: TableName,
|
@@ -17539,7 +17544,7 @@ var init_table = __esm({
|
|
17539
17544
|
}
|
17540
17545
|
});
|
17541
17546
|
|
17542
|
-
// ../
|
17547
|
+
// ../drizzle-orm/dist/pg-core/table.js
|
17543
17548
|
function pgTableWithSchema(name2, columns, extraConfig, schema4, baseName = name2) {
|
17544
17549
|
const rawTable = new PgTable(name2, schema4, baseName);
|
17545
17550
|
const builtColumns = Object.fromEntries(
|
@@ -17567,7 +17572,7 @@ function pgTableWithSchema(name2, columns, extraConfig, schema4, baseName = name
|
|
17567
17572
|
}
|
17568
17573
|
var InlineForeignKeys, _a4, _b2, _c2, _d2, PgTable, pgTable;
|
17569
17574
|
var init_table2 = __esm({
|
17570
|
-
"../
|
17575
|
+
"../drizzle-orm/dist/pg-core/table.js"() {
|
17571
17576
|
"use strict";
|
17572
17577
|
init_entity();
|
17573
17578
|
init_table();
|
@@ -17592,10 +17597,10 @@ var init_table2 = __esm({
|
|
17592
17597
|
}
|
17593
17598
|
});
|
17594
17599
|
|
17595
|
-
// ../
|
17600
|
+
// ../drizzle-orm/dist/pg-core/foreign-keys.js
|
17596
17601
|
var _a5, ForeignKeyBuilder, _a6, ForeignKey;
|
17597
17602
|
var init_foreign_keys = __esm({
|
17598
|
-
"../
|
17603
|
+
"../drizzle-orm/dist/pg-core/foreign-keys.js"() {
|
17599
17604
|
"use strict";
|
17600
17605
|
init_entity();
|
17601
17606
|
init_table2();
|
@@ -17659,23 +17664,23 @@ var init_foreign_keys = __esm({
|
|
17659
17664
|
}
|
17660
17665
|
});
|
17661
17666
|
|
17662
|
-
// ../
|
17667
|
+
// ../drizzle-orm/dist/tracing-utils.js
|
17663
17668
|
function iife(fn, ...args) {
|
17664
17669
|
return fn(...args);
|
17665
17670
|
}
|
17666
17671
|
var init_tracing_utils = __esm({
|
17667
|
-
"../
|
17672
|
+
"../drizzle-orm/dist/tracing-utils.js"() {
|
17668
17673
|
"use strict";
|
17669
17674
|
}
|
17670
17675
|
});
|
17671
17676
|
|
17672
|
-
// ../
|
17677
|
+
// ../drizzle-orm/dist/pg-core/unique-constraint.js
|
17673
17678
|
function uniqueKeyName(table4, columns) {
|
17674
17679
|
return `${table4[PgTable.Symbol.Name]}_${columns.join("_")}_unique`;
|
17675
17680
|
}
|
17676
17681
|
var _a7, UniqueConstraintBuilder, _a8, UniqueOnConstraintBuilder, _a9, UniqueConstraint;
|
17677
17682
|
var init_unique_constraint = __esm({
|
17678
|
-
"../
|
17683
|
+
"../drizzle-orm/dist/pg-core/unique-constraint.js"() {
|
17679
17684
|
"use strict";
|
17680
17685
|
init_entity();
|
17681
17686
|
init_table2();
|
@@ -17730,7 +17735,7 @@ var init_unique_constraint = __esm({
|
|
17730
17735
|
}
|
17731
17736
|
});
|
17732
17737
|
|
17733
|
-
// ../
|
17738
|
+
// ../drizzle-orm/dist/pg-core/utils/array.js
|
17734
17739
|
function parsePgArrayValue(arrayString, startFrom, inQuotes) {
|
17735
17740
|
for (let i = startFrom; i < arrayString.length; i++) {
|
17736
17741
|
const char = arrayString[i];
|
@@ -17806,15 +17811,15 @@ function makePgArray(array) {
|
|
17806
17811
|
}).join(",")}}`;
|
17807
17812
|
}
|
17808
17813
|
var init_array = __esm({
|
17809
|
-
"../
|
17814
|
+
"../drizzle-orm/dist/pg-core/utils/array.js"() {
|
17810
17815
|
"use strict";
|
17811
17816
|
}
|
17812
17817
|
});
|
17813
17818
|
|
17814
|
-
// ../
|
17819
|
+
// ../drizzle-orm/dist/pg-core/columns/common.js
|
17815
17820
|
var _a10, _b3, PgColumnBuilder, _a11, _b4, PgColumn, _a12, _b5, ExtraConfigColumn, _a13, IndexedColumn, _a14, _b6, PgArrayBuilder, _a15, _b7, _PgArray, PgArray;
|
17816
17821
|
var init_common2 = __esm({
|
17817
|
-
"../
|
17822
|
+
"../drizzle-orm/dist/pg-core/columns/common.js"() {
|
17818
17823
|
"use strict";
|
17819
17824
|
init_column_builder();
|
17820
17825
|
init_column();
|
@@ -18015,7 +18020,7 @@ var init_common2 = __esm({
|
|
18015
18020
|
}
|
18016
18021
|
});
|
18017
18022
|
|
18018
|
-
// ../
|
18023
|
+
// ../drizzle-orm/dist/pg-core/columns/enum.js
|
18019
18024
|
function isPgEnum(obj) {
|
18020
18025
|
return !!obj && typeof obj === "function" && isPgEnumSym in obj && obj[isPgEnumSym] === true;
|
18021
18026
|
}
|
@@ -18033,7 +18038,7 @@ function pgEnumWithSchema(enumName, values, schema4) {
|
|
18033
18038
|
}
|
18034
18039
|
var isPgEnumSym, _a16, _b8, PgEnumColumnBuilder, _a17, _b9, PgEnumColumn;
|
18035
18040
|
var init_enum = __esm({
|
18036
|
-
"../
|
18041
|
+
"../drizzle-orm/dist/pg-core/columns/enum.js"() {
|
18037
18042
|
"use strict";
|
18038
18043
|
init_entity();
|
18039
18044
|
init_common2();
|
@@ -18067,10 +18072,10 @@ var init_enum = __esm({
|
|
18067
18072
|
}
|
18068
18073
|
});
|
18069
18074
|
|
18070
|
-
// ../
|
18075
|
+
// ../drizzle-orm/dist/subquery.js
|
18071
18076
|
var _a18, Subquery, _a19, _b10, WithSubquery;
|
18072
18077
|
var init_subquery = __esm({
|
18073
|
-
"../
|
18078
|
+
"../drizzle-orm/dist/subquery.js"() {
|
18074
18079
|
"use strict";
|
18075
18080
|
init_entity();
|
18076
18081
|
_a18 = entityKind;
|
@@ -18095,19 +18100,19 @@ var init_subquery = __esm({
|
|
18095
18100
|
}
|
18096
18101
|
});
|
18097
18102
|
|
18098
|
-
// ../
|
18103
|
+
// ../drizzle-orm/dist/version.js
|
18099
18104
|
var version;
|
18100
18105
|
var init_version = __esm({
|
18101
|
-
"../
|
18106
|
+
"../drizzle-orm/dist/version.js"() {
|
18102
18107
|
"use strict";
|
18103
|
-
version = "0.
|
18108
|
+
version = "0.33.0";
|
18104
18109
|
}
|
18105
18110
|
});
|
18106
18111
|
|
18107
|
-
// ../
|
18112
|
+
// ../drizzle-orm/dist/tracing.js
|
18108
18113
|
var otel, rawTracer, tracer;
|
18109
18114
|
var init_tracing = __esm({
|
18110
|
-
"../
|
18115
|
+
"../drizzle-orm/dist/tracing.js"() {
|
18111
18116
|
"use strict";
|
18112
18117
|
init_tracing_utils();
|
18113
18118
|
init_version();
|
@@ -18145,16 +18150,16 @@ var init_tracing = __esm({
|
|
18145
18150
|
}
|
18146
18151
|
});
|
18147
18152
|
|
18148
|
-
// ../
|
18153
|
+
// ../drizzle-orm/dist/view-common.js
|
18149
18154
|
var ViewBaseConfig;
|
18150
18155
|
var init_view_common = __esm({
|
18151
|
-
"../
|
18156
|
+
"../drizzle-orm/dist/view-common.js"() {
|
18152
18157
|
"use strict";
|
18153
18158
|
ViewBaseConfig = Symbol.for("drizzle:ViewBaseConfig");
|
18154
18159
|
}
|
18155
18160
|
});
|
18156
18161
|
|
18157
|
-
// ../
|
18162
|
+
// ../drizzle-orm/dist/sql/sql.js
|
18158
18163
|
function isSQLWrapper(value) {
|
18159
18164
|
return value !== null && value !== void 0 && typeof value.getSQL === "function";
|
18160
18165
|
}
|
@@ -18202,12 +18207,18 @@ function fillPlaceholders(params, values) {
|
|
18202
18207
|
}
|
18203
18208
|
return values[p.name];
|
18204
18209
|
}
|
18210
|
+
if (is(p, Param) && is(p.value, Placeholder)) {
|
18211
|
+
if (!(p.value.name in values)) {
|
18212
|
+
throw new Error(`No value for placeholder "${p.value.name}" was provided`);
|
18213
|
+
}
|
18214
|
+
return p.encoder.mapToDriverValue(values[p.value.name]);
|
18215
|
+
}
|
18205
18216
|
return p;
|
18206
18217
|
});
|
18207
18218
|
}
|
18208
18219
|
var _a20, FakePrimitiveParam, _a21, StringChunk, _a22, _SQL, SQL, _a23, Name, noopDecoder, noopEncoder, noopMapper, _a24, Param, _a25, Placeholder, _a26, _b11, View;
|
18209
18220
|
var init_sql = __esm({
|
18210
|
-
"../
|
18221
|
+
"../drizzle-orm/dist/sql/sql.js"() {
|
18211
18222
|
"use strict";
|
18212
18223
|
init_entity();
|
18213
18224
|
init_enum();
|
@@ -18315,6 +18326,9 @@ var init_sql = __esm({
|
|
18315
18326
|
};
|
18316
18327
|
}
|
18317
18328
|
if (is(chunk, Param)) {
|
18329
|
+
if (is(chunk.value, Placeholder)) {
|
18330
|
+
return { sql: escapeParam(paramStartIndex.value++, chunk), params: [chunk], typings: ["none"] };
|
18331
|
+
}
|
18318
18332
|
const mappedValue = chunk.value === null ? null : chunk.encoder.mapToDriverValue(chunk.value);
|
18319
18333
|
if (is(mappedValue, _SQL)) {
|
18320
18334
|
return this.buildQueryFromSourceParams([mappedValue], config);
|
@@ -18322,7 +18336,7 @@ var init_sql = __esm({
|
|
18322
18336
|
if (inlineParams) {
|
18323
18337
|
return { sql: this.mapInlineParam(mappedValue, config), params: [] };
|
18324
18338
|
}
|
18325
|
-
let typings;
|
18339
|
+
let typings = ["none"];
|
18326
18340
|
if (prepareTyping) {
|
18327
18341
|
typings = [prepareTyping(chunk.encoder)];
|
18328
18342
|
}
|
@@ -18364,7 +18378,7 @@ var init_sql = __esm({
|
|
18364
18378
|
if (inlineParams) {
|
18365
18379
|
return { sql: this.mapInlineParam(chunk, config), params: [] };
|
18366
18380
|
}
|
18367
|
-
return { sql: escapeParam(paramStartIndex.value++, chunk), params: [chunk] };
|
18381
|
+
return { sql: escapeParam(paramStartIndex.value++, chunk), params: [chunk], typings: ["none"] };
|
18368
18382
|
}));
|
18369
18383
|
}
|
18370
18384
|
mapInlineParam(chunk, { escapeString }) {
|
@@ -18553,7 +18567,7 @@ var init_sql = __esm({
|
|
18553
18567
|
}
|
18554
18568
|
});
|
18555
18569
|
|
18556
|
-
// ../
|
18570
|
+
// ../drizzle-orm/dist/alias.js
|
18557
18571
|
function aliasedTable(table4, tableAlias) {
|
18558
18572
|
return new Proxy(table4, new TableAliasProxyHandler(tableAlias, false));
|
18559
18573
|
}
|
@@ -18585,7 +18599,7 @@ function mapColumnsInSQLToAlias(query, alias) {
|
|
18585
18599
|
}
|
18586
18600
|
var _a27, ColumnAliasProxyHandler, _a28, TableAliasProxyHandler, _a29, RelationTableAliasProxyHandler;
|
18587
18601
|
var init_alias = __esm({
|
18588
|
-
"../
|
18602
|
+
"../drizzle-orm/dist/alias.js"() {
|
18589
18603
|
"use strict";
|
18590
18604
|
init_column();
|
18591
18605
|
init_entity();
|
@@ -18666,10 +18680,10 @@ var init_alias = __esm({
|
|
18666
18680
|
}
|
18667
18681
|
});
|
18668
18682
|
|
18669
|
-
// ../
|
18683
|
+
// ../drizzle-orm/dist/errors.js
|
18670
18684
|
var _a30, _b12, DrizzleError, _a31, _b13, TransactionRollbackError;
|
18671
18685
|
var init_errors = __esm({
|
18672
|
-
"../
|
18686
|
+
"../drizzle-orm/dist/errors.js"() {
|
18673
18687
|
"use strict";
|
18674
18688
|
init_entity();
|
18675
18689
|
DrizzleError = class extends (_b12 = Error, _a30 = entityKind, _b12) {
|
@@ -18689,7 +18703,7 @@ var init_errors = __esm({
|
|
18689
18703
|
}
|
18690
18704
|
});
|
18691
18705
|
|
18692
|
-
// ../
|
18706
|
+
// ../drizzle-orm/dist/sql/expressions/conditions.js
|
18693
18707
|
function bindIfParam(value, column4) {
|
18694
18708
|
if (isDriverValueEncoder(column4) && !isSQLWrapper(value) && !is(value, Param) && !is(value, Placeholder) && !is(value, Column2) && !is(value, Table2) && !is(value, View)) {
|
18695
18709
|
return new Param(value, column4);
|
@@ -18817,7 +18831,7 @@ function arrayOverlaps(column4, values) {
|
|
18817
18831
|
}
|
18818
18832
|
var eq, ne, gt, gte, lt, lte;
|
18819
18833
|
var init_conditions = __esm({
|
18820
|
-
"../
|
18834
|
+
"../drizzle-orm/dist/sql/expressions/conditions.js"() {
|
18821
18835
|
"use strict";
|
18822
18836
|
init_column();
|
18823
18837
|
init_entity();
|
@@ -18844,7 +18858,7 @@ var init_conditions = __esm({
|
|
18844
18858
|
}
|
18845
18859
|
});
|
18846
18860
|
|
18847
|
-
// ../
|
18861
|
+
// ../drizzle-orm/dist/sql/expressions/select.js
|
18848
18862
|
function asc(column4) {
|
18849
18863
|
return sql`${column4} asc`;
|
18850
18864
|
}
|
@@ -18852,33 +18866,33 @@ function desc(column4) {
|
|
18852
18866
|
return sql`${column4} desc`;
|
18853
18867
|
}
|
18854
18868
|
var init_select = __esm({
|
18855
|
-
"../
|
18869
|
+
"../drizzle-orm/dist/sql/expressions/select.js"() {
|
18856
18870
|
"use strict";
|
18857
18871
|
init_sql();
|
18858
18872
|
}
|
18859
18873
|
});
|
18860
18874
|
|
18861
|
-
// ../
|
18875
|
+
// ../drizzle-orm/dist/sql/expressions/index.js
|
18862
18876
|
var init_expressions = __esm({
|
18863
|
-
"../
|
18877
|
+
"../drizzle-orm/dist/sql/expressions/index.js"() {
|
18864
18878
|
"use strict";
|
18865
18879
|
init_conditions();
|
18866
18880
|
init_select();
|
18867
18881
|
}
|
18868
18882
|
});
|
18869
18883
|
|
18870
|
-
// ../
|
18884
|
+
// ../drizzle-orm/dist/expressions.js
|
18871
18885
|
var init_expressions2 = __esm({
|
18872
|
-
"../
|
18886
|
+
"../drizzle-orm/dist/expressions.js"() {
|
18873
18887
|
"use strict";
|
18874
18888
|
init_expressions();
|
18875
18889
|
}
|
18876
18890
|
});
|
18877
18891
|
|
18878
|
-
// ../
|
18892
|
+
// ../drizzle-orm/dist/logger.js
|
18879
18893
|
var _a32, ConsoleLogWriter, _a33, DefaultLogger, _a34, NoopLogger;
|
18880
18894
|
var init_logger = __esm({
|
18881
|
-
"../
|
18895
|
+
"../drizzle-orm/dist/logger.js"() {
|
18882
18896
|
"use strict";
|
18883
18897
|
init_entity();
|
18884
18898
|
_a32 = entityKind;
|
@@ -18916,17 +18930,17 @@ var init_logger = __esm({
|
|
18916
18930
|
}
|
18917
18931
|
});
|
18918
18932
|
|
18919
|
-
// ../
|
18933
|
+
// ../drizzle-orm/dist/operations.js
|
18920
18934
|
var init_operations = __esm({
|
18921
|
-
"../
|
18935
|
+
"../drizzle-orm/dist/operations.js"() {
|
18922
18936
|
"use strict";
|
18923
18937
|
}
|
18924
18938
|
});
|
18925
18939
|
|
18926
|
-
// ../
|
18940
|
+
// ../drizzle-orm/dist/query-promise.js
|
18927
18941
|
var _a35, _b14, QueryPromise;
|
18928
18942
|
var init_query_promise = __esm({
|
18929
|
-
"../
|
18943
|
+
"../drizzle-orm/dist/query-promise.js"() {
|
18930
18944
|
"use strict";
|
18931
18945
|
init_entity();
|
18932
18946
|
_b14 = entityKind, _a35 = Symbol.toStringTag;
|
@@ -18957,10 +18971,10 @@ var init_query_promise = __esm({
|
|
18957
18971
|
}
|
18958
18972
|
});
|
18959
18973
|
|
18960
|
-
// ../
|
18974
|
+
// ../drizzle-orm/dist/pg-core/primary-keys.js
|
18961
18975
|
var _a36, PrimaryKeyBuilder, _a37, PrimaryKey;
|
18962
18976
|
var init_primary_keys = __esm({
|
18963
|
-
"../
|
18977
|
+
"../drizzle-orm/dist/pg-core/primary-keys.js"() {
|
18964
18978
|
"use strict";
|
18965
18979
|
init_entity();
|
18966
18980
|
init_table2();
|
@@ -18997,7 +19011,7 @@ var init_primary_keys = __esm({
|
|
18997
19011
|
}
|
18998
19012
|
});
|
18999
19013
|
|
19000
|
-
// ../
|
19014
|
+
// ../drizzle-orm/dist/relations.js
|
19001
19015
|
function getOperators() {
|
19002
19016
|
return {
|
19003
19017
|
and,
|
@@ -19218,7 +19232,7 @@ function mapRelationalRow(tablesConfig, tableConfig, row, buildQueryResultSelect
|
|
19218
19232
|
}
|
19219
19233
|
var _a38, Relation, _a39, Relations, _a40, _b15, _One, One, _a41, _b16, _Many, Many;
|
19220
19234
|
var init_relations = __esm({
|
19221
|
-
"../
|
19235
|
+
"../drizzle-orm/dist/relations.js"() {
|
19222
19236
|
"use strict";
|
19223
19237
|
init_table();
|
19224
19238
|
init_column();
|
@@ -19285,7 +19299,7 @@ var init_relations = __esm({
|
|
19285
19299
|
}
|
19286
19300
|
});
|
19287
19301
|
|
19288
|
-
// ../
|
19302
|
+
// ../drizzle-orm/dist/sql/functions/aggregate.js
|
19289
19303
|
function count(expression) {
|
19290
19304
|
return sql`count(${expression || sql.raw("*")})`.mapWith(Number);
|
19291
19305
|
}
|
@@ -19311,7 +19325,7 @@ function min(expression) {
|
|
19311
19325
|
return sql`min(${expression})`.mapWith(is(expression, Column2) ? expression : String);
|
19312
19326
|
}
|
19313
19327
|
var init_aggregate = __esm({
|
19314
|
-
"../
|
19328
|
+
"../drizzle-orm/dist/sql/functions/aggregate.js"() {
|
19315
19329
|
"use strict";
|
19316
19330
|
init_column();
|
19317
19331
|
init_entity();
|
@@ -19319,7 +19333,7 @@ var init_aggregate = __esm({
|
|
19319
19333
|
}
|
19320
19334
|
});
|
19321
19335
|
|
19322
|
-
// ../
|
19336
|
+
// ../drizzle-orm/dist/sql/functions/vector.js
|
19323
19337
|
function toSql(value) {
|
19324
19338
|
return JSON.stringify(value);
|
19325
19339
|
}
|
@@ -19360,24 +19374,24 @@ function jaccardDistance(column4, value) {
|
|
19360
19374
|
return sql`${column4} <%> ${value}`;
|
19361
19375
|
}
|
19362
19376
|
var init_vector = __esm({
|
19363
|
-
"../
|
19377
|
+
"../drizzle-orm/dist/sql/functions/vector.js"() {
|
19364
19378
|
"use strict";
|
19365
19379
|
init_sql();
|
19366
19380
|
}
|
19367
19381
|
});
|
19368
19382
|
|
19369
|
-
// ../
|
19383
|
+
// ../drizzle-orm/dist/sql/functions/index.js
|
19370
19384
|
var init_functions = __esm({
|
19371
|
-
"../
|
19385
|
+
"../drizzle-orm/dist/sql/functions/index.js"() {
|
19372
19386
|
"use strict";
|
19373
19387
|
init_aggregate();
|
19374
19388
|
init_vector();
|
19375
19389
|
}
|
19376
19390
|
});
|
19377
19391
|
|
19378
|
-
// ../
|
19392
|
+
// ../drizzle-orm/dist/sql/index.js
|
19379
19393
|
var init_sql2 = __esm({
|
19380
|
-
"../
|
19394
|
+
"../drizzle-orm/dist/sql/index.js"() {
|
19381
19395
|
"use strict";
|
19382
19396
|
init_expressions();
|
19383
19397
|
init_functions();
|
@@ -19385,7 +19399,7 @@ var init_sql2 = __esm({
|
|
19385
19399
|
}
|
19386
19400
|
});
|
19387
19401
|
|
19388
|
-
// ../
|
19402
|
+
// ../drizzle-orm/dist/utils.js
|
19389
19403
|
function mapResultRow(columns, row, joinsNotNullableMap) {
|
19390
19404
|
const nullifyMap = {};
|
19391
19405
|
const result = columns.reduce(
|
@@ -19493,7 +19507,7 @@ function getTableLikeName(table4) {
|
|
19493
19507
|
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];
|
19494
19508
|
}
|
19495
19509
|
var init_utils2 = __esm({
|
19496
|
-
"../
|
19510
|
+
"../drizzle-orm/dist/utils.js"() {
|
19497
19511
|
"use strict";
|
19498
19512
|
init_column();
|
19499
19513
|
init_entity();
|
@@ -19504,9 +19518,9 @@ var init_utils2 = __esm({
|
|
19504
19518
|
}
|
19505
19519
|
});
|
19506
19520
|
|
19507
|
-
// ../
|
19508
|
-
var
|
19509
|
-
__export(
|
19521
|
+
// ../drizzle-orm/dist/index.js
|
19522
|
+
var dist_exports = {};
|
19523
|
+
__export(dist_exports, {
|
19510
19524
|
BaseName: () => BaseName,
|
19511
19525
|
Column: () => Column2,
|
19512
19526
|
ColumnAliasProxyHandler: () => ColumnAliasProxyHandler,
|
@@ -19620,8 +19634,8 @@ __export(drizzle_orm_exports, {
|
|
19620
19634
|
sum: () => sum,
|
19621
19635
|
sumDistinct: () => sumDistinct
|
19622
19636
|
});
|
19623
|
-
var
|
19624
|
-
"../
|
19637
|
+
var init_dist = __esm({
|
19638
|
+
"../drizzle-orm/dist/index.js"() {
|
19625
19639
|
"use strict";
|
19626
19640
|
init_alias();
|
19627
19641
|
init_column_builder();
|
@@ -19641,17 +19655,17 @@ var init_drizzle_orm = __esm({
|
|
19641
19655
|
}
|
19642
19656
|
});
|
19643
19657
|
|
19644
|
-
// ../
|
19658
|
+
// ../drizzle-orm/dist/pg-core/alias.js
|
19645
19659
|
var init_alias2 = __esm({
|
19646
|
-
"../
|
19660
|
+
"../drizzle-orm/dist/pg-core/alias.js"() {
|
19647
19661
|
"use strict";
|
19648
19662
|
}
|
19649
19663
|
});
|
19650
19664
|
|
19651
|
-
// ../
|
19665
|
+
// ../drizzle-orm/dist/pg-core/checks.js
|
19652
19666
|
var _a42, CheckBuilder, _a43, Check;
|
19653
19667
|
var init_checks = __esm({
|
19654
|
-
"../
|
19668
|
+
"../drizzle-orm/dist/pg-core/checks.js"() {
|
19655
19669
|
"use strict";
|
19656
19670
|
init_entity();
|
19657
19671
|
_a42 = entityKind;
|
@@ -19681,10 +19695,10 @@ var init_checks = __esm({
|
|
19681
19695
|
}
|
19682
19696
|
});
|
19683
19697
|
|
19684
|
-
// ../
|
19698
|
+
// ../drizzle-orm/dist/pg-core/columns/int.common.js
|
19685
19699
|
var _a44, _b17, PgIntColumnBaseBuilder;
|
19686
19700
|
var init_int_common = __esm({
|
19687
|
-
"../
|
19701
|
+
"../drizzle-orm/dist/pg-core/columns/int.common.js"() {
|
19688
19702
|
"use strict";
|
19689
19703
|
init_entity();
|
19690
19704
|
init_common2();
|
@@ -19728,10 +19742,10 @@ var init_int_common = __esm({
|
|
19728
19742
|
}
|
19729
19743
|
});
|
19730
19744
|
|
19731
|
-
// ../
|
19745
|
+
// ../drizzle-orm/dist/pg-core/columns/bigint.js
|
19732
19746
|
var _a45, _b18, PgBigInt53Builder, _a46, _b19, PgBigInt53, _a47, _b20, PgBigInt64Builder, _a48, _b21, PgBigInt64;
|
19733
19747
|
var init_bigint = __esm({
|
19734
|
-
"../
|
19748
|
+
"../drizzle-orm/dist/pg-core/columns/bigint.js"() {
|
19735
19749
|
"use strict";
|
19736
19750
|
init_entity();
|
19737
19751
|
init_common2();
|
@@ -19784,10 +19798,10 @@ var init_bigint = __esm({
|
|
19784
19798
|
}
|
19785
19799
|
});
|
19786
19800
|
|
19787
|
-
// ../
|
19801
|
+
// ../drizzle-orm/dist/pg-core/columns/bigserial.js
|
19788
19802
|
var _a49, _b22, PgBigSerial53Builder, _a50, _b23, PgBigSerial53, _a51, _b24, PgBigSerial64Builder, _a52, _b25, PgBigSerial64;
|
19789
19803
|
var init_bigserial = __esm({
|
19790
|
-
"../
|
19804
|
+
"../drizzle-orm/dist/pg-core/columns/bigserial.js"() {
|
19791
19805
|
"use strict";
|
19792
19806
|
init_entity();
|
19793
19807
|
init_common2();
|
@@ -19845,10 +19859,10 @@ var init_bigserial = __esm({
|
|
19845
19859
|
}
|
19846
19860
|
});
|
19847
19861
|
|
19848
|
-
// ../
|
19862
|
+
// ../drizzle-orm/dist/pg-core/columns/boolean.js
|
19849
19863
|
var _a53, _b26, PgBooleanBuilder, _a54, _b27, PgBoolean;
|
19850
19864
|
var init_boolean = __esm({
|
19851
|
-
"../
|
19865
|
+
"../drizzle-orm/dist/pg-core/columns/boolean.js"() {
|
19852
19866
|
"use strict";
|
19853
19867
|
init_entity();
|
19854
19868
|
init_common2();
|
@@ -19871,10 +19885,10 @@ var init_boolean = __esm({
|
|
19871
19885
|
}
|
19872
19886
|
});
|
19873
19887
|
|
19874
|
-
// ../
|
19888
|
+
// ../drizzle-orm/dist/pg-core/columns/char.js
|
19875
19889
|
var _a55, _b28, PgCharBuilder, _a56, _b29, PgChar;
|
19876
19890
|
var init_char = __esm({
|
19877
|
-
"../
|
19891
|
+
"../drizzle-orm/dist/pg-core/columns/char.js"() {
|
19878
19892
|
"use strict";
|
19879
19893
|
init_entity();
|
19880
19894
|
init_common2();
|
@@ -19904,10 +19918,10 @@ var init_char = __esm({
|
|
19904
19918
|
}
|
19905
19919
|
});
|
19906
19920
|
|
19907
|
-
// ../
|
19921
|
+
// ../drizzle-orm/dist/pg-core/columns/cidr.js
|
19908
19922
|
var _a57, _b30, PgCidrBuilder, _a58, _b31, PgCidr;
|
19909
19923
|
var init_cidr = __esm({
|
19910
|
-
"../
|
19924
|
+
"../drizzle-orm/dist/pg-core/columns/cidr.js"() {
|
19911
19925
|
"use strict";
|
19912
19926
|
init_entity();
|
19913
19927
|
init_common2();
|
@@ -19930,10 +19944,10 @@ var init_cidr = __esm({
|
|
19930
19944
|
}
|
19931
19945
|
});
|
19932
19946
|
|
19933
|
-
// ../
|
19947
|
+
// ../drizzle-orm/dist/pg-core/columns/custom.js
|
19934
19948
|
var _a59, _b32, PgCustomColumnBuilder, _a60, _b33, PgCustomColumn;
|
19935
19949
|
var init_custom = __esm({
|
19936
|
-
"../
|
19950
|
+
"../drizzle-orm/dist/pg-core/columns/custom.js"() {
|
19937
19951
|
"use strict";
|
19938
19952
|
init_entity();
|
19939
19953
|
init_common2();
|
@@ -19976,10 +19990,10 @@ var init_custom = __esm({
|
|
19976
19990
|
}
|
19977
19991
|
});
|
19978
19992
|
|
19979
|
-
// ../
|
19993
|
+
// ../drizzle-orm/dist/pg-core/columns/date.common.js
|
19980
19994
|
var _a61, _b34, PgDateColumnBaseBuilder;
|
19981
19995
|
var init_date_common = __esm({
|
19982
|
-
"../
|
19996
|
+
"../drizzle-orm/dist/pg-core/columns/date.common.js"() {
|
19983
19997
|
"use strict";
|
19984
19998
|
init_entity();
|
19985
19999
|
init_sql();
|
@@ -19993,10 +20007,10 @@ var init_date_common = __esm({
|
|
19993
20007
|
}
|
19994
20008
|
});
|
19995
20009
|
|
19996
|
-
// ../
|
20010
|
+
// ../drizzle-orm/dist/pg-core/columns/date.js
|
19997
20011
|
var _a62, _b35, PgDateBuilder, _a63, _b36, PgDate, _a64, _b37, PgDateStringBuilder, _a65, _b38, PgDateString;
|
19998
20012
|
var init_date = __esm({
|
19999
|
-
"../
|
20013
|
+
"../drizzle-orm/dist/pg-core/columns/date.js"() {
|
20000
20014
|
"use strict";
|
20001
20015
|
init_entity();
|
20002
20016
|
init_common2();
|
@@ -20045,10 +20059,10 @@ var init_date = __esm({
|
|
20045
20059
|
}
|
20046
20060
|
});
|
20047
20061
|
|
20048
|
-
// ../
|
20062
|
+
// ../drizzle-orm/dist/pg-core/columns/double-precision.js
|
20049
20063
|
var _a66, _b39, PgDoublePrecisionBuilder, _a67, _b40, PgDoublePrecision;
|
20050
20064
|
var init_double_precision = __esm({
|
20051
|
-
"../
|
20065
|
+
"../drizzle-orm/dist/pg-core/columns/double-precision.js"() {
|
20052
20066
|
"use strict";
|
20053
20067
|
init_entity();
|
20054
20068
|
init_common2();
|
@@ -20080,10 +20094,10 @@ var init_double_precision = __esm({
|
|
20080
20094
|
}
|
20081
20095
|
});
|
20082
20096
|
|
20083
|
-
// ../
|
20097
|
+
// ../drizzle-orm/dist/pg-core/columns/inet.js
|
20084
20098
|
var _a68, _b41, PgInetBuilder, _a69, _b42, PgInet;
|
20085
20099
|
var init_inet = __esm({
|
20086
|
-
"../
|
20100
|
+
"../drizzle-orm/dist/pg-core/columns/inet.js"() {
|
20087
20101
|
"use strict";
|
20088
20102
|
init_entity();
|
20089
20103
|
init_common2();
|
@@ -20106,10 +20120,10 @@ var init_inet = __esm({
|
|
20106
20120
|
}
|
20107
20121
|
});
|
20108
20122
|
|
20109
|
-
// ../
|
20123
|
+
// ../drizzle-orm/dist/pg-core/columns/integer.js
|
20110
20124
|
var _a70, _b43, PgIntegerBuilder, _a71, _b44, PgInteger;
|
20111
20125
|
var init_integer = __esm({
|
20112
|
-
"../
|
20126
|
+
"../drizzle-orm/dist/pg-core/columns/integer.js"() {
|
20113
20127
|
"use strict";
|
20114
20128
|
init_entity();
|
20115
20129
|
init_common2();
|
@@ -20139,10 +20153,10 @@ var init_integer = __esm({
|
|
20139
20153
|
}
|
20140
20154
|
});
|
20141
20155
|
|
20142
|
-
// ../
|
20156
|
+
// ../drizzle-orm/dist/pg-core/columns/interval.js
|
20143
20157
|
var _a72, _b45, PgIntervalBuilder, _a73, _b46, PgInterval;
|
20144
20158
|
var init_interval = __esm({
|
20145
|
-
"../
|
20159
|
+
"../drizzle-orm/dist/pg-core/columns/interval.js"() {
|
20146
20160
|
"use strict";
|
20147
20161
|
init_entity();
|
20148
20162
|
init_common2();
|
@@ -20173,10 +20187,10 @@ var init_interval = __esm({
|
|
20173
20187
|
}
|
20174
20188
|
});
|
20175
20189
|
|
20176
|
-
// ../
|
20190
|
+
// ../drizzle-orm/dist/pg-core/columns/json.js
|
20177
20191
|
var _a74, _b47, PgJsonBuilder, _a75, _b48, PgJson;
|
20178
20192
|
var init_json = __esm({
|
20179
|
-
"../
|
20193
|
+
"../drizzle-orm/dist/pg-core/columns/json.js"() {
|
20180
20194
|
"use strict";
|
20181
20195
|
init_entity();
|
20182
20196
|
init_common2();
|
@@ -20215,10 +20229,10 @@ var init_json = __esm({
|
|
20215
20229
|
}
|
20216
20230
|
});
|
20217
20231
|
|
20218
|
-
// ../
|
20232
|
+
// ../drizzle-orm/dist/pg-core/columns/jsonb.js
|
20219
20233
|
var _a76, _b49, PgJsonbBuilder, _a77, _b50, PgJsonb;
|
20220
20234
|
var init_jsonb = __esm({
|
20221
|
-
"../
|
20235
|
+
"../drizzle-orm/dist/pg-core/columns/jsonb.js"() {
|
20222
20236
|
"use strict";
|
20223
20237
|
init_entity();
|
20224
20238
|
init_common2();
|
@@ -20257,10 +20271,10 @@ var init_jsonb = __esm({
|
|
20257
20271
|
}
|
20258
20272
|
});
|
20259
20273
|
|
20260
|
-
// ../
|
20274
|
+
// ../drizzle-orm/dist/pg-core/columns/line.js
|
20261
20275
|
var _a78, _b51, PgLineBuilder, _a79, _b52, PgLineTuple, _a80, _b53, PgLineABCBuilder, _a81, _b54, PgLineABC;
|
20262
20276
|
var init_line = __esm({
|
20263
|
-
"../
|
20277
|
+
"../drizzle-orm/dist/pg-core/columns/line.js"() {
|
20264
20278
|
"use strict";
|
20265
20279
|
init_entity();
|
20266
20280
|
init_common2();
|
@@ -20319,10 +20333,10 @@ var init_line = __esm({
|
|
20319
20333
|
}
|
20320
20334
|
});
|
20321
20335
|
|
20322
|
-
// ../
|
20336
|
+
// ../drizzle-orm/dist/pg-core/columns/macaddr.js
|
20323
20337
|
var _a82, _b55, PgMacaddrBuilder, _a83, _b56, PgMacaddr;
|
20324
20338
|
var init_macaddr = __esm({
|
20325
|
-
"../
|
20339
|
+
"../drizzle-orm/dist/pg-core/columns/macaddr.js"() {
|
20326
20340
|
"use strict";
|
20327
20341
|
init_entity();
|
20328
20342
|
init_common2();
|
@@ -20345,10 +20359,10 @@ var init_macaddr = __esm({
|
|
20345
20359
|
}
|
20346
20360
|
});
|
20347
20361
|
|
20348
|
-
// ../
|
20362
|
+
// ../drizzle-orm/dist/pg-core/columns/macaddr8.js
|
20349
20363
|
var _a84, _b57, PgMacaddr8Builder, _a85, _b58, PgMacaddr8;
|
20350
20364
|
var init_macaddr8 = __esm({
|
20351
|
-
"../
|
20365
|
+
"../drizzle-orm/dist/pg-core/columns/macaddr8.js"() {
|
20352
20366
|
"use strict";
|
20353
20367
|
init_entity();
|
20354
20368
|
init_common2();
|
@@ -20371,10 +20385,10 @@ var init_macaddr8 = __esm({
|
|
20371
20385
|
}
|
20372
20386
|
});
|
20373
20387
|
|
20374
|
-
// ../
|
20388
|
+
// ../drizzle-orm/dist/pg-core/columns/numeric.js
|
20375
20389
|
var _a86, _b59, PgNumericBuilder, _a87, _b60, PgNumeric;
|
20376
20390
|
var init_numeric = __esm({
|
20377
|
-
"../
|
20391
|
+
"../drizzle-orm/dist/pg-core/columns/numeric.js"() {
|
20378
20392
|
"use strict";
|
20379
20393
|
init_entity();
|
20380
20394
|
init_common2();
|
@@ -20412,10 +20426,10 @@ var init_numeric = __esm({
|
|
20412
20426
|
}
|
20413
20427
|
});
|
20414
20428
|
|
20415
|
-
// ../
|
20429
|
+
// ../drizzle-orm/dist/pg-core/columns/point.js
|
20416
20430
|
var _a88, _b61, PgPointTupleBuilder, _a89, _b62, PgPointTuple, _a90, _b63, PgPointObjectBuilder, _a91, _b64, PgPointObject;
|
20417
20431
|
var init_point = __esm({
|
20418
|
-
"../
|
20432
|
+
"../drizzle-orm/dist/pg-core/columns/point.js"() {
|
20419
20433
|
"use strict";
|
20420
20434
|
init_entity();
|
20421
20435
|
init_common2();
|
@@ -20480,7 +20494,7 @@ var init_point = __esm({
|
|
20480
20494
|
}
|
20481
20495
|
});
|
20482
20496
|
|
20483
|
-
// ../
|
20497
|
+
// ../drizzle-orm/dist/pg-core/columns/postgis_extension/utils.js
|
20484
20498
|
function hexToBytes(hex) {
|
20485
20499
|
const bytes = [];
|
20486
20500
|
for (let c = 0; c < hex.length; c += 2) {
|
@@ -20519,15 +20533,15 @@ function parseEWKB(hex) {
|
|
20519
20533
|
throw new Error("Unsupported geometry type");
|
20520
20534
|
}
|
20521
20535
|
var init_utils3 = __esm({
|
20522
|
-
"../
|
20536
|
+
"../drizzle-orm/dist/pg-core/columns/postgis_extension/utils.js"() {
|
20523
20537
|
"use strict";
|
20524
20538
|
}
|
20525
20539
|
});
|
20526
20540
|
|
20527
|
-
// ../
|
20541
|
+
// ../drizzle-orm/dist/pg-core/columns/postgis_extension/geometry.js
|
20528
20542
|
var _a92, _b65, PgGeometryBuilder, _a93, _b66, PgGeometry, _a94, _b67, PgGeometryObjectBuilder, _a95, _b68, PgGeometryObject;
|
20529
20543
|
var init_geometry = __esm({
|
20530
|
-
"../
|
20544
|
+
"../drizzle-orm/dist/pg-core/columns/postgis_extension/geometry.js"() {
|
20531
20545
|
"use strict";
|
20532
20546
|
init_entity();
|
20533
20547
|
init_common2();
|
@@ -20586,10 +20600,10 @@ var init_geometry = __esm({
|
|
20586
20600
|
}
|
20587
20601
|
});
|
20588
20602
|
|
20589
|
-
// ../
|
20603
|
+
// ../drizzle-orm/dist/pg-core/columns/real.js
|
20590
20604
|
var _a96, _b69, PgRealBuilder, _a97, _b70, PgReal;
|
20591
20605
|
var init_real = __esm({
|
20592
|
-
"../
|
20606
|
+
"../drizzle-orm/dist/pg-core/columns/real.js"() {
|
20593
20607
|
"use strict";
|
20594
20608
|
init_entity();
|
20595
20609
|
init_common2();
|
@@ -20622,10 +20636,10 @@ var init_real = __esm({
|
|
20622
20636
|
}
|
20623
20637
|
});
|
20624
20638
|
|
20625
|
-
// ../
|
20639
|
+
// ../drizzle-orm/dist/pg-core/columns/serial.js
|
20626
20640
|
var _a98, _b71, PgSerialBuilder, _a99, _b72, PgSerial;
|
20627
20641
|
var init_serial = __esm({
|
20628
|
-
"../
|
20642
|
+
"../drizzle-orm/dist/pg-core/columns/serial.js"() {
|
20629
20643
|
"use strict";
|
20630
20644
|
init_entity();
|
20631
20645
|
init_common2();
|
@@ -20650,10 +20664,10 @@ var init_serial = __esm({
|
|
20650
20664
|
}
|
20651
20665
|
});
|
20652
20666
|
|
20653
|
-
// ../
|
20667
|
+
// ../drizzle-orm/dist/pg-core/columns/smallint.js
|
20654
20668
|
var _a100, _b73, PgSmallIntBuilder, _a101, _b74, PgSmallInt;
|
20655
20669
|
var init_smallint = __esm({
|
20656
|
-
"../
|
20670
|
+
"../drizzle-orm/dist/pg-core/columns/smallint.js"() {
|
20657
20671
|
"use strict";
|
20658
20672
|
init_entity();
|
20659
20673
|
init_common2();
|
@@ -20686,10 +20700,10 @@ var init_smallint = __esm({
|
|
20686
20700
|
}
|
20687
20701
|
});
|
20688
20702
|
|
20689
|
-
// ../
|
20703
|
+
// ../drizzle-orm/dist/pg-core/columns/smallserial.js
|
20690
20704
|
var _a102, _b75, PgSmallSerialBuilder, _a103, _b76, PgSmallSerial;
|
20691
20705
|
var init_smallserial = __esm({
|
20692
|
-
"../
|
20706
|
+
"../drizzle-orm/dist/pg-core/columns/smallserial.js"() {
|
20693
20707
|
"use strict";
|
20694
20708
|
init_entity();
|
20695
20709
|
init_common2();
|
@@ -20717,10 +20731,10 @@ var init_smallserial = __esm({
|
|
20717
20731
|
}
|
20718
20732
|
});
|
20719
20733
|
|
20720
|
-
// ../
|
20734
|
+
// ../drizzle-orm/dist/pg-core/columns/text.js
|
20721
20735
|
var _a104, _b77, PgTextBuilder, _a105, _b78, PgText;
|
20722
20736
|
var init_text = __esm({
|
20723
|
-
"../
|
20737
|
+
"../drizzle-orm/dist/pg-core/columns/text.js"() {
|
20724
20738
|
"use strict";
|
20725
20739
|
init_entity();
|
20726
20740
|
init_common2();
|
@@ -20748,10 +20762,10 @@ var init_text = __esm({
|
|
20748
20762
|
}
|
20749
20763
|
});
|
20750
20764
|
|
20751
|
-
// ../
|
20765
|
+
// ../drizzle-orm/dist/pg-core/columns/time.js
|
20752
20766
|
var _a106, _b79, PgTimeBuilder, _a107, _b80, PgTime;
|
20753
20767
|
var init_time = __esm({
|
20754
|
-
"../
|
20768
|
+
"../drizzle-orm/dist/pg-core/columns/time.js"() {
|
20755
20769
|
"use strict";
|
20756
20770
|
init_entity();
|
20757
20771
|
init_common2();
|
@@ -20787,10 +20801,10 @@ var init_time = __esm({
|
|
20787
20801
|
}
|
20788
20802
|
});
|
20789
20803
|
|
20790
|
-
// ../
|
20804
|
+
// ../drizzle-orm/dist/pg-core/columns/timestamp.js
|
20791
20805
|
var _a108, _b81, PgTimestampBuilder, _a109, _b82, PgTimestamp, _a110, _b83, PgTimestampStringBuilder, _a111, _b84, PgTimestampString;
|
20792
20806
|
var init_timestamp = __esm({
|
20793
|
-
"../
|
20807
|
+
"../drizzle-orm/dist/pg-core/columns/timestamp.js"() {
|
20794
20808
|
"use strict";
|
20795
20809
|
init_entity();
|
20796
20810
|
init_common2();
|
@@ -20859,10 +20873,10 @@ var init_timestamp = __esm({
|
|
20859
20873
|
}
|
20860
20874
|
});
|
20861
20875
|
|
20862
|
-
// ../
|
20876
|
+
// ../drizzle-orm/dist/pg-core/columns/uuid.js
|
20863
20877
|
var _a112, _b85, PgUUIDBuilder, _a113, _b86, PgUUID;
|
20864
20878
|
var init_uuid = __esm({
|
20865
|
-
"../
|
20879
|
+
"../drizzle-orm/dist/pg-core/columns/uuid.js"() {
|
20866
20880
|
"use strict";
|
20867
20881
|
init_entity();
|
20868
20882
|
init_sql();
|
@@ -20892,10 +20906,10 @@ var init_uuid = __esm({
|
|
20892
20906
|
}
|
20893
20907
|
});
|
20894
20908
|
|
20895
|
-
// ../
|
20909
|
+
// ../drizzle-orm/dist/pg-core/columns/varchar.js
|
20896
20910
|
var _a114, _b87, PgVarcharBuilder, _a115, _b88, PgVarchar;
|
20897
20911
|
var init_varchar = __esm({
|
20898
|
-
"../
|
20912
|
+
"../drizzle-orm/dist/pg-core/columns/varchar.js"() {
|
20899
20913
|
"use strict";
|
20900
20914
|
init_entity();
|
20901
20915
|
init_common2();
|
@@ -20925,10 +20939,10 @@ var init_varchar = __esm({
|
|
20925
20939
|
}
|
20926
20940
|
});
|
20927
20941
|
|
20928
|
-
// ../
|
20942
|
+
// ../drizzle-orm/dist/pg-core/columns/vector_extension/bit.js
|
20929
20943
|
var _a116, _b89, PgBinaryVectorBuilder, _a117, _b90, PgBinaryVector;
|
20930
20944
|
var init_bit = __esm({
|
20931
|
-
"../
|
20945
|
+
"../drizzle-orm/dist/pg-core/columns/vector_extension/bit.js"() {
|
20932
20946
|
"use strict";
|
20933
20947
|
init_entity();
|
20934
20948
|
init_common2();
|
@@ -20959,10 +20973,10 @@ var init_bit = __esm({
|
|
20959
20973
|
}
|
20960
20974
|
});
|
20961
20975
|
|
20962
|
-
// ../
|
20976
|
+
// ../drizzle-orm/dist/pg-core/columns/vector_extension/halfvec.js
|
20963
20977
|
var _a118, _b91, PgHalfVectorBuilder, _a119, _b92, PgHalfVector;
|
20964
20978
|
var init_halfvec = __esm({
|
20965
|
-
"../
|
20979
|
+
"../drizzle-orm/dist/pg-core/columns/vector_extension/halfvec.js"() {
|
20966
20980
|
"use strict";
|
20967
20981
|
init_entity();
|
20968
20982
|
init_common2();
|
@@ -20999,10 +21013,10 @@ var init_halfvec = __esm({
|
|
20999
21013
|
}
|
21000
21014
|
});
|
21001
21015
|
|
21002
|
-
// ../
|
21016
|
+
// ../drizzle-orm/dist/pg-core/columns/vector_extension/sparsevec.js
|
21003
21017
|
var _a120, _b93, PgSparseVectorBuilder, _a121, _b94, PgSparseVector;
|
21004
21018
|
var init_sparsevec = __esm({
|
21005
|
-
"../
|
21019
|
+
"../drizzle-orm/dist/pg-core/columns/vector_extension/sparsevec.js"() {
|
21006
21020
|
"use strict";
|
21007
21021
|
init_entity();
|
21008
21022
|
init_common2();
|
@@ -21033,10 +21047,10 @@ var init_sparsevec = __esm({
|
|
21033
21047
|
}
|
21034
21048
|
});
|
21035
21049
|
|
21036
|
-
// ../
|
21050
|
+
// ../drizzle-orm/dist/pg-core/columns/vector_extension/vector.js
|
21037
21051
|
var _a122, _b95, PgVectorBuilder, _a123, _b96, PgVector;
|
21038
21052
|
var init_vector2 = __esm({
|
21039
|
-
"../
|
21053
|
+
"../drizzle-orm/dist/pg-core/columns/vector_extension/vector.js"() {
|
21040
21054
|
"use strict";
|
21041
21055
|
init_entity();
|
21042
21056
|
init_common2();
|
@@ -21070,9 +21084,9 @@ var init_vector2 = __esm({
|
|
21070
21084
|
}
|
21071
21085
|
});
|
21072
21086
|
|
21073
|
-
// ../
|
21087
|
+
// ../drizzle-orm/dist/pg-core/columns/index.js
|
21074
21088
|
var init_columns = __esm({
|
21075
|
-
"../
|
21089
|
+
"../drizzle-orm/dist/pg-core/columns/index.js"() {
|
21076
21090
|
"use strict";
|
21077
21091
|
init_bigint();
|
21078
21092
|
init_bigserial();
|
@@ -21111,10 +21125,10 @@ var init_columns = __esm({
|
|
21111
21125
|
}
|
21112
21126
|
});
|
21113
21127
|
|
21114
|
-
// ../
|
21128
|
+
// ../drizzle-orm/dist/pg-core/query-builders/delete.js
|
21115
21129
|
var _a124, _b97, PgDeleteBase;
|
21116
21130
|
var init_delete = __esm({
|
21117
|
-
"../
|
21131
|
+
"../drizzle-orm/dist/pg-core/query-builders/delete.js"() {
|
21118
21132
|
"use strict";
|
21119
21133
|
init_entity();
|
21120
21134
|
init_query_promise();
|
@@ -21196,10 +21210,10 @@ var init_delete = __esm({
|
|
21196
21210
|
}
|
21197
21211
|
});
|
21198
21212
|
|
21199
|
-
// ../
|
21213
|
+
// ../drizzle-orm/dist/pg-core/query-builders/insert.js
|
21200
21214
|
var _a125, PgInsertBuilder, _a126, _b98, PgInsertBase;
|
21201
21215
|
var init_insert = __esm({
|
21202
|
-
"../
|
21216
|
+
"../drizzle-orm/dist/pg-core/query-builders/insert.js"() {
|
21203
21217
|
"use strict";
|
21204
21218
|
init_entity();
|
21205
21219
|
init_query_promise();
|
@@ -21352,10 +21366,10 @@ var init_insert = __esm({
|
|
21352
21366
|
}
|
21353
21367
|
});
|
21354
21368
|
|
21355
|
-
// ../
|
21369
|
+
// ../drizzle-orm/dist/pg-core/view-base.js
|
21356
21370
|
var _a127, _b99, PgViewBase;
|
21357
21371
|
var init_view_base = __esm({
|
21358
|
-
"../
|
21372
|
+
"../drizzle-orm/dist/pg-core/view-base.js"() {
|
21359
21373
|
"use strict";
|
21360
21374
|
init_entity();
|
21361
21375
|
init_sql();
|
@@ -21365,10 +21379,10 @@ var init_view_base = __esm({
|
|
21365
21379
|
}
|
21366
21380
|
});
|
21367
21381
|
|
21368
|
-
// ../
|
21382
|
+
// ../drizzle-orm/dist/pg-core/dialect.js
|
21369
21383
|
var _a128, PgDialect;
|
21370
21384
|
var init_dialect = __esm({
|
21371
|
-
"../
|
21385
|
+
"../drizzle-orm/dist/pg-core/dialect.js"() {
|
21372
21386
|
"use strict";
|
21373
21387
|
init_alias();
|
21374
21388
|
init_column();
|
@@ -22448,10 +22462,10 @@ var init_dialect = __esm({
|
|
22448
22462
|
}
|
22449
22463
|
});
|
22450
22464
|
|
22451
|
-
// ../
|
22465
|
+
// ../drizzle-orm/dist/selection-proxy.js
|
22452
22466
|
var _a129, _SelectionProxyHandler, SelectionProxyHandler;
|
22453
22467
|
var init_selection_proxy = __esm({
|
22454
|
-
"../
|
22468
|
+
"../drizzle-orm/dist/selection-proxy.js"() {
|
22455
22469
|
"use strict";
|
22456
22470
|
init_alias();
|
22457
22471
|
init_column();
|
@@ -22530,10 +22544,10 @@ var init_selection_proxy = __esm({
|
|
22530
22544
|
}
|
22531
22545
|
});
|
22532
22546
|
|
22533
|
-
// ../
|
22547
|
+
// ../drizzle-orm/dist/query-builders/query-builder.js
|
22534
22548
|
var _a130, TypedQueryBuilder;
|
22535
22549
|
var init_query_builder = __esm({
|
22536
|
-
"../
|
22550
|
+
"../drizzle-orm/dist/query-builders/query-builder.js"() {
|
22537
22551
|
"use strict";
|
22538
22552
|
init_entity();
|
22539
22553
|
_a130 = entityKind;
|
@@ -22547,7 +22561,7 @@ var init_query_builder = __esm({
|
|
22547
22561
|
}
|
22548
22562
|
});
|
22549
22563
|
|
22550
|
-
// ../
|
22564
|
+
// ../drizzle-orm/dist/pg-core/query-builders/select.js
|
22551
22565
|
function createSetOperator(type, isAll) {
|
22552
22566
|
return (leftSelect, rightSelect, ...restSelects) => {
|
22553
22567
|
const setOperators = [rightSelect, ...restSelects].map((select) => ({
|
@@ -22567,7 +22581,7 @@ function createSetOperator(type, isAll) {
|
|
22567
22581
|
}
|
22568
22582
|
var _a131, PgSelectBuilder, _a132, _b100, PgSelectQueryBuilderBase, _a133, _b101, PgSelectBase, getPgSetOperators, union, unionAll, intersect, intersectAll, except, exceptAll;
|
22569
22583
|
var init_select2 = __esm({
|
22570
|
-
"../
|
22584
|
+
"../drizzle-orm/dist/pg-core/query-builders/select.js"() {
|
22571
22585
|
"use strict";
|
22572
22586
|
init_entity();
|
22573
22587
|
init_view_base();
|
@@ -23284,10 +23298,10 @@ var init_select2 = __esm({
|
|
23284
23298
|
}
|
23285
23299
|
});
|
23286
23300
|
|
23287
|
-
// ../
|
23301
|
+
// ../drizzle-orm/dist/pg-core/query-builders/query-builder.js
|
23288
23302
|
var _a134, QueryBuilder;
|
23289
23303
|
var init_query_builder2 = __esm({
|
23290
|
-
"../
|
23304
|
+
"../drizzle-orm/dist/pg-core/query-builders/query-builder.js"() {
|
23291
23305
|
"use strict";
|
23292
23306
|
init_entity();
|
23293
23307
|
init_dialect();
|
@@ -23376,10 +23390,10 @@ var init_query_builder2 = __esm({
|
|
23376
23390
|
}
|
23377
23391
|
});
|
23378
23392
|
|
23379
|
-
// ../
|
23393
|
+
// ../drizzle-orm/dist/pg-core/query-builders/refresh-materialized-view.js
|
23380
23394
|
var _a135, _b102, PgRefreshMaterializedView;
|
23381
23395
|
var init_refresh_materialized_view = __esm({
|
23382
|
-
"../
|
23396
|
+
"../drizzle-orm/dist/pg-core/query-builders/refresh-materialized-view.js"() {
|
23383
23397
|
"use strict";
|
23384
23398
|
init_entity();
|
23385
23399
|
init_query_promise();
|
@@ -23433,17 +23447,17 @@ var init_refresh_materialized_view = __esm({
|
|
23433
23447
|
}
|
23434
23448
|
});
|
23435
23449
|
|
23436
|
-
// ../
|
23450
|
+
// ../drizzle-orm/dist/pg-core/query-builders/select.types.js
|
23437
23451
|
var init_select_types = __esm({
|
23438
|
-
"../
|
23452
|
+
"../drizzle-orm/dist/pg-core/query-builders/select.types.js"() {
|
23439
23453
|
"use strict";
|
23440
23454
|
}
|
23441
23455
|
});
|
23442
23456
|
|
23443
|
-
// ../
|
23457
|
+
// ../drizzle-orm/dist/pg-core/query-builders/update.js
|
23444
23458
|
var _a136, PgUpdateBuilder, _a137, _b103, PgUpdateBase;
|
23445
23459
|
var init_update = __esm({
|
23446
|
-
"../
|
23460
|
+
"../drizzle-orm/dist/pg-core/query-builders/update.js"() {
|
23447
23461
|
"use strict";
|
23448
23462
|
init_entity();
|
23449
23463
|
init_query_promise();
|
@@ -23543,9 +23557,9 @@ var init_update = __esm({
|
|
23543
23557
|
}
|
23544
23558
|
});
|
23545
23559
|
|
23546
|
-
// ../
|
23560
|
+
// ../drizzle-orm/dist/pg-core/query-builders/index.js
|
23547
23561
|
var init_query_builders = __esm({
|
23548
|
-
"../
|
23562
|
+
"../drizzle-orm/dist/pg-core/query-builders/index.js"() {
|
23549
23563
|
"use strict";
|
23550
23564
|
init_delete();
|
23551
23565
|
init_insert();
|
@@ -23557,10 +23571,10 @@ var init_query_builders = __esm({
|
|
23557
23571
|
}
|
23558
23572
|
});
|
23559
23573
|
|
23560
|
-
// ../
|
23574
|
+
// ../drizzle-orm/dist/pg-core/query-builders/query.js
|
23561
23575
|
var _a138, RelationalQueryBuilder, _a139, _b104, PgRelationalQuery;
|
23562
23576
|
var init_query = __esm({
|
23563
|
-
"../
|
23577
|
+
"../drizzle-orm/dist/pg-core/query-builders/query.js"() {
|
23564
23578
|
"use strict";
|
23565
23579
|
init_entity();
|
23566
23580
|
init_query_promise();
|
@@ -23675,10 +23689,10 @@ var init_query = __esm({
|
|
23675
23689
|
}
|
23676
23690
|
});
|
23677
23691
|
|
23678
|
-
// ../
|
23692
|
+
// ../drizzle-orm/dist/pg-core/query-builders/raw.js
|
23679
23693
|
var _a140, _b105, PgRaw;
|
23680
23694
|
var init_raw = __esm({
|
23681
|
-
"../
|
23695
|
+
"../drizzle-orm/dist/pg-core/query-builders/raw.js"() {
|
23682
23696
|
"use strict";
|
23683
23697
|
init_entity();
|
23684
23698
|
init_query_promise();
|
@@ -23712,10 +23726,10 @@ var init_raw = __esm({
|
|
23712
23726
|
}
|
23713
23727
|
});
|
23714
23728
|
|
23715
|
-
// ../
|
23729
|
+
// ../drizzle-orm/dist/pg-core/db.js
|
23716
23730
|
var _a141, PgDatabase;
|
23717
23731
|
var init_db = __esm({
|
23718
|
-
"../
|
23732
|
+
"../drizzle-orm/dist/pg-core/db.js"() {
|
23719
23733
|
"use strict";
|
23720
23734
|
init_entity();
|
23721
23735
|
init_query_builders();
|
@@ -23993,10 +24007,10 @@ var init_db = __esm({
|
|
23993
24007
|
}
|
23994
24008
|
});
|
23995
24009
|
|
23996
|
-
// ../
|
24010
|
+
// ../drizzle-orm/dist/pg-core/indexes.js
|
23997
24011
|
var _a142, IndexBuilderOn, _a143, IndexBuilder, _a144, Index2;
|
23998
24012
|
var init_indexes = __esm({
|
23999
|
-
"../
|
24013
|
+
"../drizzle-orm/dist/pg-core/indexes.js"() {
|
24000
24014
|
"use strict";
|
24001
24015
|
init_sql();
|
24002
24016
|
init_entity();
|
@@ -24111,7 +24125,7 @@ var init_indexes = __esm({
|
|
24111
24125
|
}
|
24112
24126
|
});
|
24113
24127
|
|
24114
|
-
// ../
|
24128
|
+
// ../drizzle-orm/dist/pg-core/sequence.js
|
24115
24129
|
function pgSequenceWithSchema(name2, options, schema4) {
|
24116
24130
|
return new PgSequence(name2, options, schema4);
|
24117
24131
|
}
|
@@ -24120,7 +24134,7 @@ function isPgSequence(obj) {
|
|
24120
24134
|
}
|
24121
24135
|
var _a145, PgSequence;
|
24122
24136
|
var init_sequence = __esm({
|
24123
|
-
"../
|
24137
|
+
"../drizzle-orm/dist/pg-core/sequence.js"() {
|
24124
24138
|
"use strict";
|
24125
24139
|
init_entity();
|
24126
24140
|
_a145 = entityKind;
|
@@ -24135,16 +24149,16 @@ var init_sequence = __esm({
|
|
24135
24149
|
}
|
24136
24150
|
});
|
24137
24151
|
|
24138
|
-
// ../
|
24152
|
+
// ../drizzle-orm/dist/pg-core/view-common.js
|
24139
24153
|
var PgViewConfig;
|
24140
24154
|
var init_view_common2 = __esm({
|
24141
|
-
"../
|
24155
|
+
"../drizzle-orm/dist/pg-core/view-common.js"() {
|
24142
24156
|
"use strict";
|
24143
24157
|
PgViewConfig = Symbol.for("drizzle:PgViewConfig");
|
24144
24158
|
}
|
24145
24159
|
});
|
24146
24160
|
|
24147
|
-
// ../
|
24161
|
+
// ../drizzle-orm/dist/pg-core/view.js
|
24148
24162
|
function pgViewWithSchema(name2, selection, schema4) {
|
24149
24163
|
if (selection) {
|
24150
24164
|
return new ManualViewBuilder(name2, selection, schema4);
|
@@ -24159,7 +24173,7 @@ function pgMaterializedViewWithSchema(name2, selection, schema4) {
|
|
24159
24173
|
}
|
24160
24174
|
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;
|
24161
24175
|
var init_view = __esm({
|
24162
|
-
"../
|
24176
|
+
"../drizzle-orm/dist/pg-core/view.js"() {
|
24163
24177
|
"use strict";
|
24164
24178
|
init_entity();
|
24165
24179
|
init_selection_proxy();
|
@@ -24386,10 +24400,10 @@ var init_view = __esm({
|
|
24386
24400
|
}
|
24387
24401
|
});
|
24388
24402
|
|
24389
|
-
// ../
|
24403
|
+
// ../drizzle-orm/dist/pg-core/schema.js
|
24390
24404
|
var _a154, PgSchema5;
|
24391
24405
|
var init_schema = __esm({
|
24392
|
-
"../
|
24406
|
+
"../drizzle-orm/dist/pg-core/schema.js"() {
|
24393
24407
|
"use strict";
|
24394
24408
|
init_entity();
|
24395
24409
|
init_sql();
|
@@ -24428,10 +24442,10 @@ var init_schema = __esm({
|
|
24428
24442
|
}
|
24429
24443
|
});
|
24430
24444
|
|
24431
|
-
// ../
|
24445
|
+
// ../drizzle-orm/dist/pg-core/session.js
|
24432
24446
|
var _a155, PgPreparedQuery, _a156, PgSession, _a157, _b112, PgTransaction;
|
24433
24447
|
var init_session = __esm({
|
24434
|
-
"../
|
24448
|
+
"../drizzle-orm/dist/pg-core/session.js"() {
|
24435
24449
|
"use strict";
|
24436
24450
|
init_entity();
|
24437
24451
|
init_errors();
|
@@ -24512,14 +24526,14 @@ var init_session = __esm({
|
|
24512
24526
|
}
|
24513
24527
|
});
|
24514
24528
|
|
24515
|
-
// ../
|
24529
|
+
// ../drizzle-orm/dist/pg-core/subquery.js
|
24516
24530
|
var init_subquery2 = __esm({
|
24517
|
-
"../
|
24531
|
+
"../drizzle-orm/dist/pg-core/subquery.js"() {
|
24518
24532
|
"use strict";
|
24519
24533
|
}
|
24520
24534
|
});
|
24521
24535
|
|
24522
|
-
// ../
|
24536
|
+
// ../drizzle-orm/dist/pg-core/utils.js
|
24523
24537
|
function getTableConfig(table4) {
|
24524
24538
|
const columns = Object.values(table4[Table2.Symbol.Columns]);
|
24525
24539
|
const indexes = [];
|
@@ -24558,7 +24572,7 @@ function getTableConfig(table4) {
|
|
24558
24572
|
};
|
24559
24573
|
}
|
24560
24574
|
var init_utils4 = __esm({
|
24561
|
-
"../
|
24575
|
+
"../drizzle-orm/dist/pg-core/utils.js"() {
|
24562
24576
|
"use strict";
|
24563
24577
|
init_entity();
|
24564
24578
|
init_table2();
|
@@ -24571,17 +24585,17 @@ var init_utils4 = __esm({
|
|
24571
24585
|
}
|
24572
24586
|
});
|
24573
24587
|
|
24574
|
-
// ../
|
24588
|
+
// ../drizzle-orm/dist/pg-core/utils/index.js
|
24575
24589
|
var init_utils5 = __esm({
|
24576
|
-
"../
|
24590
|
+
"../drizzle-orm/dist/pg-core/utils/index.js"() {
|
24577
24591
|
"use strict";
|
24578
24592
|
init_array();
|
24579
24593
|
}
|
24580
24594
|
});
|
24581
24595
|
|
24582
|
-
// ../
|
24596
|
+
// ../drizzle-orm/dist/pg-core/index.js
|
24583
24597
|
var init_pg_core = __esm({
|
24584
|
-
"../
|
24598
|
+
"../drizzle-orm/dist/pg-core/index.js"() {
|
24585
24599
|
"use strict";
|
24586
24600
|
init_alias2();
|
24587
24601
|
init_checks();
|
@@ -24636,16 +24650,41 @@ function minRangeForIdentityBasedOn(columnType) {
|
|
24636
24650
|
function stringFromDatabaseIdentityProperty(field) {
|
24637
24651
|
return typeof field === "string" ? field : typeof field === "undefined" ? void 0 : typeof field === "bigint" ? field.toString() : String(field);
|
24638
24652
|
}
|
24653
|
+
function buildArrayString(array, sqlType) {
|
24654
|
+
sqlType = sqlType.split("[")[0];
|
24655
|
+
const values = array.map((value) => {
|
24656
|
+
if (typeof value === "number" || typeof value === "bigint") {
|
24657
|
+
return value.toString();
|
24658
|
+
} else if (typeof value === "boolean") {
|
24659
|
+
return value ? "true" : "false";
|
24660
|
+
} else if (Array.isArray(value)) {
|
24661
|
+
return buildArrayString(value, sqlType);
|
24662
|
+
} else if (value instanceof Date) {
|
24663
|
+
if (sqlType === "date") {
|
24664
|
+
return `"${value.toISOString().split("T")[0]}"`;
|
24665
|
+
} else if (sqlType === "timestamp") {
|
24666
|
+
return `"${value.toISOString().replace("T", " ").slice(0, 23)}"`;
|
24667
|
+
} else {
|
24668
|
+
return `"${value.toISOString()}"`;
|
24669
|
+
}
|
24670
|
+
} else if (typeof value === "object") {
|
24671
|
+
return `"${JSON.stringify(value).replaceAll('"', '\\"')}"`;
|
24672
|
+
}
|
24673
|
+
return `"${value}"`;
|
24674
|
+
}).join(",");
|
24675
|
+
return `{${values}}`;
|
24676
|
+
}
|
24639
24677
|
var dialect4, indexName, generatePgSnapshot, trimChar, fromDatabase, columnToDefault, defaultForColumn;
|
24640
24678
|
var init_pgSerializer = __esm({
|
24641
24679
|
"src/serializer/pgSerializer.ts"() {
|
24642
24680
|
"use strict";
|
24643
24681
|
init_source();
|
24644
|
-
|
24682
|
+
init_dist();
|
24645
24683
|
init_pg_core();
|
24646
24684
|
init_pg_core();
|
24647
24685
|
init_vector3();
|
24648
24686
|
init_outputs();
|
24687
|
+
init_utils();
|
24649
24688
|
init_serializer();
|
24650
24689
|
dialect4 = new PgDialect();
|
24651
24690
|
indexName = (tableName, columns) => {
|
@@ -24752,6 +24791,11 @@ ${withStyle.errorWarning(`We've found duplicated unique constraint names in ${so
|
|
24752
24791
|
} else {
|
24753
24792
|
columnToSet.default = `'${column4.default.toISOString()}'`;
|
24754
24793
|
}
|
24794
|
+
} else if (isPgArrayType(sqlTypeLowered) && Array.isArray(column4.default)) {
|
24795
|
+
columnToSet.default = `'${buildArrayString(
|
24796
|
+
column4.default,
|
24797
|
+
sqlTypeLowered
|
24798
|
+
)}'::${sqlTypeLowered}`;
|
24755
24799
|
} else {
|
24756
24800
|
columnToSet.default = column4.default;
|
24757
24801
|
}
|
@@ -25550,17 +25594,17 @@ var init_selector_ui = __esm({
|
|
25550
25594
|
}
|
25551
25595
|
});
|
25552
25596
|
|
25553
|
-
// ../
|
25597
|
+
// ../drizzle-orm/dist/sqlite-core/alias.js
|
25554
25598
|
var init_alias3 = __esm({
|
25555
|
-
"../
|
25599
|
+
"../drizzle-orm/dist/sqlite-core/alias.js"() {
|
25556
25600
|
"use strict";
|
25557
25601
|
}
|
25558
25602
|
});
|
25559
25603
|
|
25560
|
-
// ../
|
25604
|
+
// ../drizzle-orm/dist/sqlite-core/checks.js
|
25561
25605
|
var _a158, CheckBuilder2, _a159, Check2;
|
25562
25606
|
var init_checks2 = __esm({
|
25563
|
-
"../
|
25607
|
+
"../drizzle-orm/dist/sqlite-core/checks.js"() {
|
25564
25608
|
"use strict";
|
25565
25609
|
init_entity();
|
25566
25610
|
_a158 = entityKind;
|
@@ -25589,7 +25633,7 @@ var init_checks2 = __esm({
|
|
25589
25633
|
}
|
25590
25634
|
});
|
25591
25635
|
|
25592
|
-
// ../
|
25636
|
+
// ../drizzle-orm/dist/sqlite-core/table.js
|
25593
25637
|
function sqliteTableBase(name2, columns, extraConfig, schema4, baseName = name2) {
|
25594
25638
|
const rawTable = new SQLiteTable(name2, schema4, baseName);
|
25595
25639
|
const builtColumns = Object.fromEntries(
|
@@ -25610,7 +25654,7 @@ function sqliteTableBase(name2, columns, extraConfig, schema4, baseName = name2)
|
|
25610
25654
|
}
|
25611
25655
|
var InlineForeignKeys2, _a160, _b113, _c5, _d3, _e2, SQLiteTable, sqliteTable;
|
25612
25656
|
var init_table3 = __esm({
|
25613
|
-
"../
|
25657
|
+
"../drizzle-orm/dist/sqlite-core/table.js"() {
|
25614
25658
|
"use strict";
|
25615
25659
|
init_entity();
|
25616
25660
|
init_table();
|
@@ -25637,10 +25681,10 @@ var init_table3 = __esm({
|
|
25637
25681
|
}
|
25638
25682
|
});
|
25639
25683
|
|
25640
|
-
// ../
|
25684
|
+
// ../drizzle-orm/dist/sqlite-core/foreign-keys.js
|
25641
25685
|
var _a161, ForeignKeyBuilder2, _a162, ForeignKey2;
|
25642
25686
|
var init_foreign_keys2 = __esm({
|
25643
|
-
"../
|
25687
|
+
"../drizzle-orm/dist/sqlite-core/foreign-keys.js"() {
|
25644
25688
|
"use strict";
|
25645
25689
|
init_entity();
|
25646
25690
|
init_table3();
|
@@ -25704,13 +25748,13 @@ var init_foreign_keys2 = __esm({
|
|
25704
25748
|
}
|
25705
25749
|
});
|
25706
25750
|
|
25707
|
-
// ../
|
25751
|
+
// ../drizzle-orm/dist/sqlite-core/unique-constraint.js
|
25708
25752
|
function uniqueKeyName2(table4, columns) {
|
25709
25753
|
return `${table4[SQLiteTable.Symbol.Name]}_${columns.join("_")}_unique`;
|
25710
25754
|
}
|
25711
25755
|
var _a163, UniqueConstraintBuilder2, _a164, UniqueOnConstraintBuilder2, _a165, UniqueConstraint2;
|
25712
25756
|
var init_unique_constraint2 = __esm({
|
25713
|
-
"../
|
25757
|
+
"../drizzle-orm/dist/sqlite-core/unique-constraint.js"() {
|
25714
25758
|
"use strict";
|
25715
25759
|
init_entity();
|
25716
25760
|
init_table3();
|
@@ -25757,10 +25801,10 @@ var init_unique_constraint2 = __esm({
|
|
25757
25801
|
}
|
25758
25802
|
});
|
25759
25803
|
|
25760
|
-
// ../
|
25804
|
+
// ../drizzle-orm/dist/sqlite-core/columns/common.js
|
25761
25805
|
var _a166, _b114, SQLiteColumnBuilder, _a167, _b115, SQLiteColumn;
|
25762
25806
|
var init_common3 = __esm({
|
25763
|
-
"../
|
25807
|
+
"../drizzle-orm/dist/sqlite-core/columns/common.js"() {
|
25764
25808
|
"use strict";
|
25765
25809
|
init_column_builder();
|
25766
25810
|
init_column();
|
@@ -25822,10 +25866,10 @@ var init_common3 = __esm({
|
|
25822
25866
|
}
|
25823
25867
|
});
|
25824
25868
|
|
25825
|
-
// ../
|
25869
|
+
// ../drizzle-orm/dist/sqlite-core/columns/blob.js
|
25826
25870
|
var _a168, _b116, SQLiteBigIntBuilder, _a169, _b117, SQLiteBigInt, _a170, _b118, SQLiteBlobJsonBuilder, _a171, _b119, SQLiteBlobJson, _a172, _b120, SQLiteBlobBufferBuilder, _a173, _b121, SQLiteBlobBuffer;
|
25827
25871
|
var init_blob = __esm({
|
25828
|
-
"../
|
25872
|
+
"../drizzle-orm/dist/sqlite-core/columns/blob.js"() {
|
25829
25873
|
"use strict";
|
25830
25874
|
init_entity();
|
25831
25875
|
init_common3();
|
@@ -25895,10 +25939,10 @@ var init_blob = __esm({
|
|
25895
25939
|
}
|
25896
25940
|
});
|
25897
25941
|
|
25898
|
-
// ../
|
25942
|
+
// ../drizzle-orm/dist/sqlite-core/columns/custom.js
|
25899
25943
|
var _a174, _b122, SQLiteCustomColumnBuilder, _a175, _b123, SQLiteCustomColumn;
|
25900
25944
|
var init_custom2 = __esm({
|
25901
|
-
"../
|
25945
|
+
"../drizzle-orm/dist/sqlite-core/columns/custom.js"() {
|
25902
25946
|
"use strict";
|
25903
25947
|
init_entity();
|
25904
25948
|
init_common3();
|
@@ -25941,10 +25985,10 @@ var init_custom2 = __esm({
|
|
25941
25985
|
}
|
25942
25986
|
});
|
25943
25987
|
|
25944
|
-
// ../
|
25988
|
+
// ../drizzle-orm/dist/sqlite-core/columns/integer.js
|
25945
25989
|
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;
|
25946
25990
|
var init_integer2 = __esm({
|
25947
|
-
"../
|
25991
|
+
"../drizzle-orm/dist/sqlite-core/columns/integer.js"() {
|
25948
25992
|
"use strict";
|
25949
25993
|
init_entity();
|
25950
25994
|
init_sql();
|
@@ -26058,10 +26102,10 @@ var init_integer2 = __esm({
|
|
26058
26102
|
}
|
26059
26103
|
});
|
26060
26104
|
|
26061
|
-
// ../
|
26105
|
+
// ../drizzle-orm/dist/sqlite-core/columns/numeric.js
|
26062
26106
|
var _a184, _b132, SQLiteNumericBuilder, _a185, _b133, SQLiteNumeric;
|
26063
26107
|
var init_numeric2 = __esm({
|
26064
|
-
"../
|
26108
|
+
"../drizzle-orm/dist/sqlite-core/columns/numeric.js"() {
|
26065
26109
|
"use strict";
|
26066
26110
|
init_entity();
|
26067
26111
|
init_common3();
|
@@ -26087,10 +26131,10 @@ var init_numeric2 = __esm({
|
|
26087
26131
|
}
|
26088
26132
|
});
|
26089
26133
|
|
26090
|
-
// ../
|
26134
|
+
// ../drizzle-orm/dist/sqlite-core/columns/real.js
|
26091
26135
|
var _a186, _b134, SQLiteRealBuilder, _a187, _b135, SQLiteReal;
|
26092
26136
|
var init_real2 = __esm({
|
26093
|
-
"../
|
26137
|
+
"../drizzle-orm/dist/sqlite-core/columns/real.js"() {
|
26094
26138
|
"use strict";
|
26095
26139
|
init_entity();
|
26096
26140
|
init_common3();
|
@@ -26113,10 +26157,10 @@ var init_real2 = __esm({
|
|
26113
26157
|
}
|
26114
26158
|
});
|
26115
26159
|
|
26116
|
-
// ../
|
26160
|
+
// ../drizzle-orm/dist/sqlite-core/columns/text.js
|
26117
26161
|
var _a188, _b136, SQLiteTextBuilder, _a189, _b137, SQLiteText, _a190, _b138, SQLiteTextJsonBuilder, _a191, _b139, SQLiteTextJson;
|
26118
26162
|
var init_text2 = __esm({
|
26119
|
-
"../
|
26163
|
+
"../drizzle-orm/dist/sqlite-core/columns/text.js"() {
|
26120
26164
|
"use strict";
|
26121
26165
|
init_entity();
|
26122
26166
|
init_common3();
|
@@ -26171,9 +26215,9 @@ var init_text2 = __esm({
|
|
26171
26215
|
}
|
26172
26216
|
});
|
26173
26217
|
|
26174
|
-
// ../
|
26218
|
+
// ../drizzle-orm/dist/sqlite-core/columns/index.js
|
26175
26219
|
var init_columns2 = __esm({
|
26176
|
-
"../
|
26220
|
+
"../drizzle-orm/dist/sqlite-core/columns/index.js"() {
|
26177
26221
|
"use strict";
|
26178
26222
|
init_blob();
|
26179
26223
|
init_common3();
|
@@ -26185,10 +26229,10 @@ var init_columns2 = __esm({
|
|
26185
26229
|
}
|
26186
26230
|
});
|
26187
26231
|
|
26188
|
-
// ../
|
26232
|
+
// ../drizzle-orm/dist/sqlite-core/query-builders/delete.js
|
26189
26233
|
var _a192, _b140, SQLiteDeleteBase;
|
26190
26234
|
var init_delete2 = __esm({
|
26191
|
-
"../
|
26235
|
+
"../drizzle-orm/dist/sqlite-core/query-builders/delete.js"() {
|
26192
26236
|
"use strict";
|
26193
26237
|
init_entity();
|
26194
26238
|
init_query_promise();
|
@@ -26284,10 +26328,10 @@ var init_delete2 = __esm({
|
|
26284
26328
|
}
|
26285
26329
|
});
|
26286
26330
|
|
26287
|
-
// ../
|
26331
|
+
// ../drizzle-orm/dist/sqlite-core/query-builders/insert.js
|
26288
26332
|
var _a193, SQLiteInsertBuilder, _a194, _b141, SQLiteInsertBase;
|
26289
26333
|
var init_insert2 = __esm({
|
26290
|
-
"../
|
26334
|
+
"../drizzle-orm/dist/sqlite-core/query-builders/insert.js"() {
|
26291
26335
|
"use strict";
|
26292
26336
|
init_entity();
|
26293
26337
|
init_query_promise();
|
@@ -26452,10 +26496,10 @@ var init_insert2 = __esm({
|
|
26452
26496
|
}
|
26453
26497
|
});
|
26454
26498
|
|
26455
|
-
// ../
|
26499
|
+
// ../drizzle-orm/dist/sqlite-core/view-base.js
|
26456
26500
|
var _a195, _b142, SQLiteViewBase;
|
26457
26501
|
var init_view_base2 = __esm({
|
26458
|
-
"../
|
26502
|
+
"../drizzle-orm/dist/sqlite-core/view-base.js"() {
|
26459
26503
|
"use strict";
|
26460
26504
|
init_entity();
|
26461
26505
|
init_sql();
|
@@ -26465,10 +26509,10 @@ var init_view_base2 = __esm({
|
|
26465
26509
|
}
|
26466
26510
|
});
|
26467
26511
|
|
26468
|
-
// ../
|
26512
|
+
// ../drizzle-orm/dist/sqlite-core/dialect.js
|
26469
26513
|
var _a196, SQLiteDialect, _a197, _b143, SQLiteSyncDialect, _a198, _b144, SQLiteAsyncDialect;
|
26470
26514
|
var init_dialect2 = __esm({
|
26471
|
-
"../
|
26515
|
+
"../drizzle-orm/dist/sqlite-core/dialect.js"() {
|
26472
26516
|
"use strict";
|
26473
26517
|
init_alias();
|
26474
26518
|
init_column();
|
@@ -27060,7 +27104,7 @@ var init_dialect2 = __esm({
|
|
27060
27104
|
}
|
27061
27105
|
});
|
27062
27106
|
|
27063
|
-
// ../
|
27107
|
+
// ../drizzle-orm/dist/sqlite-core/query-builders/select.js
|
27064
27108
|
function createSetOperator2(type, isAll) {
|
27065
27109
|
return (leftSelect, rightSelect, ...restSelects) => {
|
27066
27110
|
const setOperators = [rightSelect, ...restSelects].map((select) => ({
|
@@ -27080,7 +27124,7 @@ function createSetOperator2(type, isAll) {
|
|
27080
27124
|
}
|
27081
27125
|
var _a199, SQLiteSelectBuilder, _a200, _b145, SQLiteSelectQueryBuilderBase, _a201, _b146, SQLiteSelectBase, getSQLiteSetOperators, union2, unionAll2, intersect2, except2;
|
27082
27126
|
var init_select3 = __esm({
|
27083
|
-
"../
|
27127
|
+
"../drizzle-orm/dist/sqlite-core/query-builders/select.js"() {
|
27084
27128
|
"use strict";
|
27085
27129
|
init_entity();
|
27086
27130
|
init_query_builder();
|
@@ -27693,10 +27737,10 @@ var init_select3 = __esm({
|
|
27693
27737
|
}
|
27694
27738
|
});
|
27695
27739
|
|
27696
|
-
// ../
|
27740
|
+
// ../drizzle-orm/dist/sqlite-core/query-builders/query-builder.js
|
27697
27741
|
var _a202, QueryBuilder2;
|
27698
27742
|
var init_query_builder3 = __esm({
|
27699
|
-
"../
|
27743
|
+
"../drizzle-orm/dist/sqlite-core/query-builders/query-builder.js"() {
|
27700
27744
|
"use strict";
|
27701
27745
|
init_entity();
|
27702
27746
|
init_selection_proxy();
|
@@ -27766,17 +27810,17 @@ var init_query_builder3 = __esm({
|
|
27766
27810
|
}
|
27767
27811
|
});
|
27768
27812
|
|
27769
|
-
// ../
|
27813
|
+
// ../drizzle-orm/dist/sqlite-core/query-builders/select.types.js
|
27770
27814
|
var init_select_types2 = __esm({
|
27771
|
-
"../
|
27815
|
+
"../drizzle-orm/dist/sqlite-core/query-builders/select.types.js"() {
|
27772
27816
|
"use strict";
|
27773
27817
|
}
|
27774
27818
|
});
|
27775
27819
|
|
27776
|
-
// ../
|
27820
|
+
// ../drizzle-orm/dist/sqlite-core/query-builders/update.js
|
27777
27821
|
var _a203, SQLiteUpdateBuilder, _a204, _b147, SQLiteUpdateBase;
|
27778
27822
|
var init_update2 = __esm({
|
27779
|
-
"../
|
27823
|
+
"../drizzle-orm/dist/sqlite-core/query-builders/update.js"() {
|
27780
27824
|
"use strict";
|
27781
27825
|
init_entity();
|
27782
27826
|
init_query_promise();
|
@@ -27894,9 +27938,9 @@ var init_update2 = __esm({
|
|
27894
27938
|
}
|
27895
27939
|
});
|
27896
27940
|
|
27897
|
-
// ../
|
27941
|
+
// ../drizzle-orm/dist/sqlite-core/query-builders/index.js
|
27898
27942
|
var init_query_builders2 = __esm({
|
27899
|
-
"../
|
27943
|
+
"../drizzle-orm/dist/sqlite-core/query-builders/index.js"() {
|
27900
27944
|
"use strict";
|
27901
27945
|
init_delete2();
|
27902
27946
|
init_insert2();
|
@@ -27907,10 +27951,10 @@ var init_query_builders2 = __esm({
|
|
27907
27951
|
}
|
27908
27952
|
});
|
27909
27953
|
|
27910
|
-
// ../
|
27954
|
+
// ../drizzle-orm/dist/sqlite-core/query-builders/query.js
|
27911
27955
|
var _a205, RelationalQueryBuilder2, _a206, _b148, SQLiteRelationalQuery, _a207, _b149, SQLiteSyncRelationalQuery;
|
27912
27956
|
var init_query2 = __esm({
|
27913
|
-
"../
|
27957
|
+
"../drizzle-orm/dist/sqlite-core/query-builders/query.js"() {
|
27914
27958
|
"use strict";
|
27915
27959
|
init_entity();
|
27916
27960
|
init_query_promise();
|
@@ -28061,10 +28105,10 @@ var init_query2 = __esm({
|
|
28061
28105
|
}
|
28062
28106
|
});
|
28063
28107
|
|
28064
|
-
// ../
|
28108
|
+
// ../drizzle-orm/dist/sqlite-core/query-builders/raw.js
|
28065
28109
|
var _a208, _b150, SQLiteRaw;
|
28066
28110
|
var init_raw2 = __esm({
|
28067
|
-
"../
|
28111
|
+
"../drizzle-orm/dist/sqlite-core/query-builders/raw.js"() {
|
28068
28112
|
"use strict";
|
28069
28113
|
init_entity();
|
28070
28114
|
init_query_promise();
|
@@ -28097,10 +28141,10 @@ var init_raw2 = __esm({
|
|
28097
28141
|
}
|
28098
28142
|
});
|
28099
28143
|
|
28100
|
-
// ../
|
28144
|
+
// ../drizzle-orm/dist/sqlite-core/db.js
|
28101
28145
|
var _a209, BaseSQLiteDatabase;
|
28102
28146
|
var init_db2 = __esm({
|
28103
|
-
"../
|
28147
|
+
"../drizzle-orm/dist/sqlite-core/db.js"() {
|
28104
28148
|
"use strict";
|
28105
28149
|
init_entity();
|
28106
28150
|
init_selection_proxy();
|
@@ -28390,10 +28434,10 @@ var init_db2 = __esm({
|
|
28390
28434
|
}
|
28391
28435
|
});
|
28392
28436
|
|
28393
|
-
// ../
|
28437
|
+
// ../drizzle-orm/dist/sqlite-core/indexes.js
|
28394
28438
|
var _a210, IndexBuilderOn2, _a211, IndexBuilder2, _a212, Index4;
|
28395
28439
|
var init_indexes2 = __esm({
|
28396
|
-
"../
|
28440
|
+
"../drizzle-orm/dist/sqlite-core/indexes.js"() {
|
28397
28441
|
"use strict";
|
28398
28442
|
init_entity();
|
28399
28443
|
_a210 = entityKind;
|
@@ -28443,10 +28487,10 @@ var init_indexes2 = __esm({
|
|
28443
28487
|
}
|
28444
28488
|
});
|
28445
28489
|
|
28446
|
-
// ../
|
28490
|
+
// ../drizzle-orm/dist/sqlite-core/primary-keys.js
|
28447
28491
|
var _a213, PrimaryKeyBuilder2, _a214, PrimaryKey2;
|
28448
28492
|
var init_primary_keys2 = __esm({
|
28449
|
-
"../
|
28493
|
+
"../drizzle-orm/dist/sqlite-core/primary-keys.js"() {
|
28450
28494
|
"use strict";
|
28451
28495
|
init_entity();
|
28452
28496
|
init_table3();
|
@@ -28483,10 +28527,10 @@ var init_primary_keys2 = __esm({
|
|
28483
28527
|
}
|
28484
28528
|
});
|
28485
28529
|
|
28486
|
-
// ../
|
28530
|
+
// ../drizzle-orm/dist/sqlite-core/session.js
|
28487
28531
|
var _a215, _b151, ExecuteResultSync, _a216, SQLitePreparedQuery, _a217, SQLiteSession, _a218, _b152, SQLiteTransaction;
|
28488
28532
|
var init_session2 = __esm({
|
28489
|
-
"../
|
28533
|
+
"../drizzle-orm/dist/sqlite-core/session.js"() {
|
28490
28534
|
"use strict";
|
28491
28535
|
init_entity();
|
28492
28536
|
init_errors();
|
@@ -28604,23 +28648,23 @@ var init_session2 = __esm({
|
|
28604
28648
|
}
|
28605
28649
|
});
|
28606
28650
|
|
28607
|
-
// ../
|
28651
|
+
// ../drizzle-orm/dist/sqlite-core/subquery.js
|
28608
28652
|
var init_subquery3 = __esm({
|
28609
|
-
"../
|
28653
|
+
"../drizzle-orm/dist/sqlite-core/subquery.js"() {
|
28610
28654
|
"use strict";
|
28611
28655
|
}
|
28612
28656
|
});
|
28613
28657
|
|
28614
|
-
// ../
|
28658
|
+
// ../drizzle-orm/dist/sqlite-core/view-common.js
|
28615
28659
|
var SQLiteViewConfig;
|
28616
28660
|
var init_view_common3 = __esm({
|
28617
|
-
"../
|
28661
|
+
"../drizzle-orm/dist/sqlite-core/view-common.js"() {
|
28618
28662
|
"use strict";
|
28619
28663
|
SQLiteViewConfig = Symbol.for("drizzle:SQLiteViewConfig");
|
28620
28664
|
}
|
28621
28665
|
});
|
28622
28666
|
|
28623
|
-
// ../
|
28667
|
+
// ../drizzle-orm/dist/sqlite-core/utils.js
|
28624
28668
|
function getTableConfig2(table4) {
|
28625
28669
|
const columns = Object.values(table4[SQLiteTable.Symbol.Columns]);
|
28626
28670
|
const indexes = [];
|
@@ -28657,7 +28701,7 @@ function getTableConfig2(table4) {
|
|
28657
28701
|
};
|
28658
28702
|
}
|
28659
28703
|
var init_utils6 = __esm({
|
28660
|
-
"../
|
28704
|
+
"../drizzle-orm/dist/sqlite-core/utils.js"() {
|
28661
28705
|
"use strict";
|
28662
28706
|
init_entity();
|
28663
28707
|
init_table();
|
@@ -28670,10 +28714,10 @@ var init_utils6 = __esm({
|
|
28670
28714
|
}
|
28671
28715
|
});
|
28672
28716
|
|
28673
|
-
// ../
|
28717
|
+
// ../drizzle-orm/dist/sqlite-core/view.js
|
28674
28718
|
var _a219, ViewBuilderCore, _a220, _b153, ViewBuilder2, _a221, _b154, ManualViewBuilder2, _a222, _b155, _c6, SQLiteView;
|
28675
28719
|
var init_view2 = __esm({
|
28676
|
-
"../
|
28720
|
+
"../drizzle-orm/dist/sqlite-core/view.js"() {
|
28677
28721
|
"use strict";
|
28678
28722
|
init_entity();
|
28679
28723
|
init_selection_proxy();
|
@@ -28775,9 +28819,9 @@ var init_view2 = __esm({
|
|
28775
28819
|
}
|
28776
28820
|
});
|
28777
28821
|
|
28778
|
-
// ../
|
28822
|
+
// ../drizzle-orm/dist/sqlite-core/index.js
|
28779
28823
|
var init_sqlite_core = __esm({
|
28780
|
-
"../
|
28824
|
+
"../drizzle-orm/dist/sqlite-core/index.js"() {
|
28781
28825
|
"use strict";
|
28782
28826
|
init_alias3();
|
28783
28827
|
init_checks2();
|
@@ -28864,7 +28908,7 @@ var init_sqliteSerializer = __esm({
|
|
28864
28908
|
"src/serializer/sqliteSerializer.ts"() {
|
28865
28909
|
"use strict";
|
28866
28910
|
init_source();
|
28867
|
-
|
28911
|
+
init_dist();
|
28868
28912
|
init_sqlite_core();
|
28869
28913
|
init_outputs();
|
28870
28914
|
init_serializer();
|
@@ -29031,7 +29075,7 @@ The unique constraint ${source_default.underline.blue(
|
|
29031
29075
|
primaryKeys.forEach((it) => {
|
29032
29076
|
if (it.columns.length > 1) {
|
29033
29077
|
primaryKeysObject[it.getName()] = {
|
29034
|
-
columns: it.columns.map((it2) => it2.name)
|
29078
|
+
columns: it.columns.map((it2) => it2.name),
|
29035
29079
|
name: it.getName()
|
29036
29080
|
};
|
29037
29081
|
} else {
|
@@ -29156,7 +29200,6 @@ The unique constraint ${source_default.underline.blue(
|
|
29156
29200
|
}
|
29157
29201
|
for (const [key, value] of Object.entries(tableToPk)) {
|
29158
29202
|
if (value.length > 1) {
|
29159
|
-
value.sort();
|
29160
29203
|
result[key].compositePrimaryKeys = {
|
29161
29204
|
[`${key}_${value.join("_")}_pk`]: {
|
29162
29205
|
columns: value,
|
@@ -29277,17 +29320,17 @@ WHERE
|
|
29277
29320
|
}
|
29278
29321
|
});
|
29279
29322
|
|
29280
|
-
// ../
|
29323
|
+
// ../drizzle-orm/dist/mysql-core/alias.js
|
29281
29324
|
var init_alias4 = __esm({
|
29282
|
-
"../
|
29325
|
+
"../drizzle-orm/dist/mysql-core/alias.js"() {
|
29283
29326
|
"use strict";
|
29284
29327
|
}
|
29285
29328
|
});
|
29286
29329
|
|
29287
|
-
// ../
|
29330
|
+
// ../drizzle-orm/dist/mysql-core/checks.js
|
29288
29331
|
var _a223, CheckBuilder3, _a224, Check3;
|
29289
29332
|
var init_checks3 = __esm({
|
29290
|
-
"../
|
29333
|
+
"../drizzle-orm/dist/mysql-core/checks.js"() {
|
29291
29334
|
"use strict";
|
29292
29335
|
init_entity();
|
29293
29336
|
_a223 = entityKind;
|
@@ -29317,7 +29360,7 @@ var init_checks3 = __esm({
|
|
29317
29360
|
}
|
29318
29361
|
});
|
29319
29362
|
|
29320
|
-
// ../
|
29363
|
+
// ../drizzle-orm/dist/mysql-core/table.js
|
29321
29364
|
function mysqlTableWithSchema(name2, columns, extraConfig, schema4, baseName = name2) {
|
29322
29365
|
const rawTable = new MySqlTable(name2, schema4, baseName);
|
29323
29366
|
const builtColumns = Object.fromEntries(
|
@@ -29338,7 +29381,7 @@ function mysqlTableWithSchema(name2, columns, extraConfig, schema4, baseName = n
|
|
29338
29381
|
}
|
29339
29382
|
var InlineForeignKeys3, _a225, _b156, _c7, _d4, _e3, MySqlTable, mysqlTable;
|
29340
29383
|
var init_table4 = __esm({
|
29341
|
-
"../
|
29384
|
+
"../drizzle-orm/dist/mysql-core/table.js"() {
|
29342
29385
|
"use strict";
|
29343
29386
|
init_entity();
|
29344
29387
|
init_table();
|
@@ -29365,10 +29408,10 @@ var init_table4 = __esm({
|
|
29365
29408
|
}
|
29366
29409
|
});
|
29367
29410
|
|
29368
|
-
// ../
|
29411
|
+
// ../drizzle-orm/dist/mysql-core/foreign-keys.js
|
29369
29412
|
var _a226, ForeignKeyBuilder3, _a227, ForeignKey3;
|
29370
29413
|
var init_foreign_keys3 = __esm({
|
29371
|
-
"../
|
29414
|
+
"../drizzle-orm/dist/mysql-core/foreign-keys.js"() {
|
29372
29415
|
"use strict";
|
29373
29416
|
init_entity();
|
29374
29417
|
init_table4();
|
@@ -29432,13 +29475,13 @@ var init_foreign_keys3 = __esm({
|
|
29432
29475
|
}
|
29433
29476
|
});
|
29434
29477
|
|
29435
|
-
// ../
|
29478
|
+
// ../drizzle-orm/dist/mysql-core/unique-constraint.js
|
29436
29479
|
function uniqueKeyName3(table4, columns) {
|
29437
29480
|
return `${table4[MySqlTable.Symbol.Name]}_${columns.join("_")}_unique`;
|
29438
29481
|
}
|
29439
29482
|
var _a228, UniqueConstraintBuilder3, _a229, UniqueOnConstraintBuilder3, _a230, UniqueConstraint3;
|
29440
29483
|
var init_unique_constraint3 = __esm({
|
29441
|
-
"../
|
29484
|
+
"../drizzle-orm/dist/mysql-core/unique-constraint.js"() {
|
29442
29485
|
"use strict";
|
29443
29486
|
init_entity();
|
29444
29487
|
init_table4();
|
@@ -29486,10 +29529,10 @@ var init_unique_constraint3 = __esm({
|
|
29486
29529
|
}
|
29487
29530
|
});
|
29488
29531
|
|
29489
|
-
// ../
|
29532
|
+
// ../drizzle-orm/dist/mysql-core/columns/common.js
|
29490
29533
|
var _a231, _b157, MySqlColumnBuilder, _a232, _b158, MySqlColumn, _a233, _b159, MySqlColumnBuilderWithAutoIncrement, _a234, _b160, MySqlColumnWithAutoIncrement;
|
29491
29534
|
var init_common4 = __esm({
|
29492
|
-
"../
|
29535
|
+
"../drizzle-orm/dist/mysql-core/columns/common.js"() {
|
29493
29536
|
"use strict";
|
29494
29537
|
init_column_builder();
|
29495
29538
|
init_column();
|
@@ -29570,10 +29613,10 @@ var init_common4 = __esm({
|
|
29570
29613
|
}
|
29571
29614
|
});
|
29572
29615
|
|
29573
|
-
// ../
|
29616
|
+
// ../drizzle-orm/dist/mysql-core/columns/bigint.js
|
29574
29617
|
var _a235, _b161, MySqlBigInt53Builder, _a236, _b162, MySqlBigInt53, _a237, _b163, MySqlBigInt64Builder, _a238, _b164, MySqlBigInt64;
|
29575
29618
|
var init_bigint2 = __esm({
|
29576
|
-
"../
|
29619
|
+
"../drizzle-orm/dist/mysql-core/columns/bigint.js"() {
|
29577
29620
|
"use strict";
|
29578
29621
|
init_entity();
|
29579
29622
|
init_common4();
|
@@ -29630,10 +29673,10 @@ var init_bigint2 = __esm({
|
|
29630
29673
|
}
|
29631
29674
|
});
|
29632
29675
|
|
29633
|
-
// ../
|
29676
|
+
// ../drizzle-orm/dist/mysql-core/columns/binary.js
|
29634
29677
|
var _a239, _b165, MySqlBinaryBuilder, _a240, _b166, MySqlBinary;
|
29635
29678
|
var init_binary = __esm({
|
29636
|
-
"../
|
29679
|
+
"../drizzle-orm/dist/mysql-core/columns/binary.js"() {
|
29637
29680
|
"use strict";
|
29638
29681
|
init_entity();
|
29639
29682
|
init_common4();
|
@@ -29661,10 +29704,10 @@ var init_binary = __esm({
|
|
29661
29704
|
}
|
29662
29705
|
});
|
29663
29706
|
|
29664
|
-
// ../
|
29707
|
+
// ../drizzle-orm/dist/mysql-core/columns/boolean.js
|
29665
29708
|
var _a241, _b167, MySqlBooleanBuilder, _a242, _b168, MySqlBoolean;
|
29666
29709
|
var init_boolean2 = __esm({
|
29667
|
-
"../
|
29710
|
+
"../drizzle-orm/dist/mysql-core/columns/boolean.js"() {
|
29668
29711
|
"use strict";
|
29669
29712
|
init_entity();
|
29670
29713
|
init_common4();
|
@@ -29696,10 +29739,10 @@ var init_boolean2 = __esm({
|
|
29696
29739
|
}
|
29697
29740
|
});
|
29698
29741
|
|
29699
|
-
// ../
|
29742
|
+
// ../drizzle-orm/dist/mysql-core/columns/char.js
|
29700
29743
|
var _a243, _b169, MySqlCharBuilder, _a244, _b170, MySqlChar;
|
29701
29744
|
var init_char2 = __esm({
|
29702
|
-
"../
|
29745
|
+
"../drizzle-orm/dist/mysql-core/columns/char.js"() {
|
29703
29746
|
"use strict";
|
29704
29747
|
init_entity();
|
29705
29748
|
init_common4();
|
@@ -29732,10 +29775,10 @@ var init_char2 = __esm({
|
|
29732
29775
|
}
|
29733
29776
|
});
|
29734
29777
|
|
29735
|
-
// ../
|
29778
|
+
// ../drizzle-orm/dist/mysql-core/columns/custom.js
|
29736
29779
|
var _a245, _b171, MySqlCustomColumnBuilder, _a246, _b172, MySqlCustomColumn;
|
29737
29780
|
var init_custom3 = __esm({
|
29738
|
-
"../
|
29781
|
+
"../drizzle-orm/dist/mysql-core/columns/custom.js"() {
|
29739
29782
|
"use strict";
|
29740
29783
|
init_entity();
|
29741
29784
|
init_common4();
|
@@ -29778,10 +29821,10 @@ var init_custom3 = __esm({
|
|
29778
29821
|
}
|
29779
29822
|
});
|
29780
29823
|
|
29781
|
-
// ../
|
29824
|
+
// ../drizzle-orm/dist/mysql-core/columns/date.js
|
29782
29825
|
var _a247, _b173, MySqlDateBuilder, _a248, _b174, MySqlDate, _a249, _b175, MySqlDateStringBuilder, _a250, _b176, MySqlDateString;
|
29783
29826
|
var init_date2 = __esm({
|
29784
|
-
"../
|
29827
|
+
"../drizzle-orm/dist/mysql-core/columns/date.js"() {
|
29785
29828
|
"use strict";
|
29786
29829
|
init_entity();
|
29787
29830
|
init_common4();
|
@@ -29832,10 +29875,10 @@ var init_date2 = __esm({
|
|
29832
29875
|
}
|
29833
29876
|
});
|
29834
29877
|
|
29835
|
-
// ../
|
29878
|
+
// ../drizzle-orm/dist/mysql-core/columns/datetime.js
|
29836
29879
|
var _a251, _b177, MySqlDateTimeBuilder, _a252, _b178, MySqlDateTime, _a253, _b179, MySqlDateTimeStringBuilder, _a254, _b180, MySqlDateTimeString;
|
29837
29880
|
var init_datetime = __esm({
|
29838
|
-
"../
|
29881
|
+
"../drizzle-orm/dist/mysql-core/columns/datetime.js"() {
|
29839
29882
|
"use strict";
|
29840
29883
|
init_entity();
|
29841
29884
|
init_common4();
|
@@ -29900,10 +29943,10 @@ var init_datetime = __esm({
|
|
29900
29943
|
}
|
29901
29944
|
});
|
29902
29945
|
|
29903
|
-
// ../
|
29946
|
+
// ../drizzle-orm/dist/mysql-core/columns/decimal.js
|
29904
29947
|
var _a255, _b181, MySqlDecimalBuilder, _a256, _b182, MySqlDecimal;
|
29905
29948
|
var init_decimal = __esm({
|
29906
|
-
"../
|
29949
|
+
"../drizzle-orm/dist/mysql-core/columns/decimal.js"() {
|
29907
29950
|
"use strict";
|
29908
29951
|
init_entity();
|
29909
29952
|
init_common4();
|
@@ -29942,10 +29985,10 @@ var init_decimal = __esm({
|
|
29942
29985
|
}
|
29943
29986
|
});
|
29944
29987
|
|
29945
|
-
// ../
|
29988
|
+
// ../drizzle-orm/dist/mysql-core/columns/double.js
|
29946
29989
|
var _a257, _b183, MySqlDoubleBuilder, _a258, _b184, MySqlDouble;
|
29947
29990
|
var init_double = __esm({
|
29948
|
-
"../
|
29991
|
+
"../drizzle-orm/dist/mysql-core/columns/double.js"() {
|
29949
29992
|
"use strict";
|
29950
29993
|
init_entity();
|
29951
29994
|
init_common4();
|
@@ -29981,10 +30024,10 @@ var init_double = __esm({
|
|
29981
30024
|
}
|
29982
30025
|
});
|
29983
30026
|
|
29984
|
-
// ../
|
30027
|
+
// ../drizzle-orm/dist/mysql-core/columns/enum.js
|
29985
30028
|
var _a259, _b185, MySqlEnumColumnBuilder, _a260, _b186, MySqlEnumColumn;
|
29986
30029
|
var init_enum2 = __esm({
|
29987
|
-
"../
|
30030
|
+
"../drizzle-orm/dist/mysql-core/columns/enum.js"() {
|
29988
30031
|
"use strict";
|
29989
30032
|
init_entity();
|
29990
30033
|
init_common4();
|
@@ -30015,10 +30058,10 @@ var init_enum2 = __esm({
|
|
30015
30058
|
}
|
30016
30059
|
});
|
30017
30060
|
|
30018
|
-
// ../
|
30061
|
+
// ../drizzle-orm/dist/mysql-core/columns/float.js
|
30019
30062
|
var _a261, _b187, MySqlFloatBuilder, _a262, _b188, MySqlFloat;
|
30020
30063
|
var init_float = __esm({
|
30021
|
-
"../
|
30064
|
+
"../drizzle-orm/dist/mysql-core/columns/float.js"() {
|
30022
30065
|
"use strict";
|
30023
30066
|
init_entity();
|
30024
30067
|
init_common4();
|
@@ -30041,10 +30084,10 @@ var init_float = __esm({
|
|
30041
30084
|
}
|
30042
30085
|
});
|
30043
30086
|
|
30044
|
-
// ../
|
30087
|
+
// ../drizzle-orm/dist/mysql-core/columns/int.js
|
30045
30088
|
var _a263, _b189, MySqlIntBuilder, _a264, _b190, MySqlInt;
|
30046
30089
|
var init_int = __esm({
|
30047
|
-
"../
|
30090
|
+
"../drizzle-orm/dist/mysql-core/columns/int.js"() {
|
30048
30091
|
"use strict";
|
30049
30092
|
init_entity();
|
30050
30093
|
init_common4();
|
@@ -30074,10 +30117,10 @@ var init_int = __esm({
|
|
30074
30117
|
}
|
30075
30118
|
});
|
30076
30119
|
|
30077
|
-
// ../
|
30120
|
+
// ../drizzle-orm/dist/mysql-core/columns/json.js
|
30078
30121
|
var _a265, _b191, MySqlJsonBuilder, _a266, _b192, MySqlJson;
|
30079
30122
|
var init_json2 = __esm({
|
30080
|
-
"../
|
30123
|
+
"../drizzle-orm/dist/mysql-core/columns/json.js"() {
|
30081
30124
|
"use strict";
|
30082
30125
|
init_entity();
|
30083
30126
|
init_common4();
|
@@ -30103,10 +30146,10 @@ var init_json2 = __esm({
|
|
30103
30146
|
}
|
30104
30147
|
});
|
30105
30148
|
|
30106
|
-
// ../
|
30149
|
+
// ../drizzle-orm/dist/mysql-core/columns/mediumint.js
|
30107
30150
|
var _a267, _b193, MySqlMediumIntBuilder, _a268, _b194, MySqlMediumInt;
|
30108
30151
|
var init_mediumint = __esm({
|
30109
|
-
"../
|
30152
|
+
"../drizzle-orm/dist/mysql-core/columns/mediumint.js"() {
|
30110
30153
|
"use strict";
|
30111
30154
|
init_entity();
|
30112
30155
|
init_common4();
|
@@ -30139,10 +30182,10 @@ var init_mediumint = __esm({
|
|
30139
30182
|
}
|
30140
30183
|
});
|
30141
30184
|
|
30142
|
-
// ../
|
30185
|
+
// ../drizzle-orm/dist/mysql-core/columns/real.js
|
30143
30186
|
var _a269, _b195, MySqlRealBuilder, _a270, _b196, MySqlReal;
|
30144
30187
|
var init_real3 = __esm({
|
30145
|
-
"../
|
30188
|
+
"../drizzle-orm/dist/mysql-core/columns/real.js"() {
|
30146
30189
|
"use strict";
|
30147
30190
|
init_entity();
|
30148
30191
|
init_common4();
|
@@ -30178,10 +30221,10 @@ var init_real3 = __esm({
|
|
30178
30221
|
}
|
30179
30222
|
});
|
30180
30223
|
|
30181
|
-
// ../
|
30224
|
+
// ../drizzle-orm/dist/mysql-core/columns/serial.js
|
30182
30225
|
var _a271, _b197, MySqlSerialBuilder, _a272, _b198, MySqlSerial;
|
30183
30226
|
var init_serial2 = __esm({
|
30184
|
-
"../
|
30227
|
+
"../drizzle-orm/dist/mysql-core/columns/serial.js"() {
|
30185
30228
|
"use strict";
|
30186
30229
|
init_entity();
|
30187
30230
|
init_common4();
|
@@ -30212,10 +30255,10 @@ var init_serial2 = __esm({
|
|
30212
30255
|
}
|
30213
30256
|
});
|
30214
30257
|
|
30215
|
-
// ../
|
30258
|
+
// ../drizzle-orm/dist/mysql-core/columns/smallint.js
|
30216
30259
|
var _a273, _b199, MySqlSmallIntBuilder, _a274, _b200, MySqlSmallInt;
|
30217
30260
|
var init_smallint2 = __esm({
|
30218
|
-
"../
|
30261
|
+
"../drizzle-orm/dist/mysql-core/columns/smallint.js"() {
|
30219
30262
|
"use strict";
|
30220
30263
|
init_entity();
|
30221
30264
|
init_common4();
|
@@ -30248,10 +30291,10 @@ var init_smallint2 = __esm({
|
|
30248
30291
|
}
|
30249
30292
|
});
|
30250
30293
|
|
30251
|
-
// ../
|
30294
|
+
// ../drizzle-orm/dist/mysql-core/columns/text.js
|
30252
30295
|
var _a275, _b201, MySqlTextBuilder, _a276, _b202, MySqlText;
|
30253
30296
|
var init_text3 = __esm({
|
30254
|
-
"../
|
30297
|
+
"../drizzle-orm/dist/mysql-core/columns/text.js"() {
|
30255
30298
|
"use strict";
|
30256
30299
|
init_entity();
|
30257
30300
|
init_common4();
|
@@ -30281,10 +30324,10 @@ var init_text3 = __esm({
|
|
30281
30324
|
}
|
30282
30325
|
});
|
30283
30326
|
|
30284
|
-
// ../
|
30327
|
+
// ../drizzle-orm/dist/mysql-core/columns/time.js
|
30285
30328
|
var _a277, _b203, MySqlTimeBuilder, _a278, _b204, MySqlTime;
|
30286
30329
|
var init_time2 = __esm({
|
30287
|
-
"../
|
30330
|
+
"../drizzle-orm/dist/mysql-core/columns/time.js"() {
|
30288
30331
|
"use strict";
|
30289
30332
|
init_entity();
|
30290
30333
|
init_common4();
|
@@ -30313,10 +30356,10 @@ var init_time2 = __esm({
|
|
30313
30356
|
}
|
30314
30357
|
});
|
30315
30358
|
|
30316
|
-
// ../
|
30359
|
+
// ../drizzle-orm/dist/mysql-core/columns/date.common.js
|
30317
30360
|
var _a279, _b205, MySqlDateColumnBaseBuilder, _a280, _b206, MySqlDateBaseColumn;
|
30318
30361
|
var init_date_common2 = __esm({
|
30319
|
-
"../
|
30362
|
+
"../drizzle-orm/dist/mysql-core/columns/date.common.js"() {
|
30320
30363
|
"use strict";
|
30321
30364
|
init_entity();
|
30322
30365
|
init_sql();
|
@@ -30343,10 +30386,10 @@ var init_date_common2 = __esm({
|
|
30343
30386
|
}
|
30344
30387
|
});
|
30345
30388
|
|
30346
|
-
// ../
|
30389
|
+
// ../drizzle-orm/dist/mysql-core/columns/timestamp.js
|
30347
30390
|
var _a281, _b207, MySqlTimestampBuilder, _a282, _b208, MySqlTimestamp, _a283, _b209, MySqlTimestampStringBuilder, _a284, _b210, MySqlTimestampString;
|
30348
30391
|
var init_timestamp2 = __esm({
|
30349
|
-
"../
|
30392
|
+
"../drizzle-orm/dist/mysql-core/columns/timestamp.js"() {
|
30350
30393
|
"use strict";
|
30351
30394
|
init_entity();
|
30352
30395
|
init_date_common2();
|
@@ -30409,10 +30452,10 @@ var init_timestamp2 = __esm({
|
|
30409
30452
|
}
|
30410
30453
|
});
|
30411
30454
|
|
30412
|
-
// ../
|
30455
|
+
// ../drizzle-orm/dist/mysql-core/columns/tinyint.js
|
30413
30456
|
var _a285, _b211, MySqlTinyIntBuilder, _a286, _b212, MySqlTinyInt;
|
30414
30457
|
var init_tinyint = __esm({
|
30415
|
-
"../
|
30458
|
+
"../drizzle-orm/dist/mysql-core/columns/tinyint.js"() {
|
30416
30459
|
"use strict";
|
30417
30460
|
init_entity();
|
30418
30461
|
init_common4();
|
@@ -30445,10 +30488,10 @@ var init_tinyint = __esm({
|
|
30445
30488
|
}
|
30446
30489
|
});
|
30447
30490
|
|
30448
|
-
// ../
|
30491
|
+
// ../drizzle-orm/dist/mysql-core/columns/varbinary.js
|
30449
30492
|
var _a287, _b213, MySqlVarBinaryBuilder, _a288, _b214, MySqlVarBinary;
|
30450
30493
|
var init_varbinary = __esm({
|
30451
|
-
"../
|
30494
|
+
"../drizzle-orm/dist/mysql-core/columns/varbinary.js"() {
|
30452
30495
|
"use strict";
|
30453
30496
|
init_entity();
|
30454
30497
|
init_common4();
|
@@ -30480,10 +30523,10 @@ var init_varbinary = __esm({
|
|
30480
30523
|
}
|
30481
30524
|
});
|
30482
30525
|
|
30483
|
-
// ../
|
30526
|
+
// ../drizzle-orm/dist/mysql-core/columns/varchar.js
|
30484
30527
|
var _a289, _b215, MySqlVarCharBuilder, _a290, _b216, MySqlVarChar;
|
30485
30528
|
var init_varchar2 = __esm({
|
30486
|
-
"../
|
30529
|
+
"../drizzle-orm/dist/mysql-core/columns/varchar.js"() {
|
30487
30530
|
"use strict";
|
30488
30531
|
init_entity();
|
30489
30532
|
init_common4();
|
@@ -30517,10 +30560,10 @@ var init_varchar2 = __esm({
|
|
30517
30560
|
}
|
30518
30561
|
});
|
30519
30562
|
|
30520
|
-
// ../
|
30563
|
+
// ../drizzle-orm/dist/mysql-core/columns/year.js
|
30521
30564
|
var _a291, _b217, MySqlYearBuilder, _a292, _b218, MySqlYear;
|
30522
30565
|
var init_year = __esm({
|
30523
|
-
"../
|
30566
|
+
"../drizzle-orm/dist/mysql-core/columns/year.js"() {
|
30524
30567
|
"use strict";
|
30525
30568
|
init_entity();
|
30526
30569
|
init_common4();
|
@@ -30543,9 +30586,9 @@ var init_year = __esm({
|
|
30543
30586
|
}
|
30544
30587
|
});
|
30545
30588
|
|
30546
|
-
// ../
|
30589
|
+
// ../drizzle-orm/dist/mysql-core/columns/index.js
|
30547
30590
|
var init_columns3 = __esm({
|
30548
|
-
"../
|
30591
|
+
"../drizzle-orm/dist/mysql-core/columns/index.js"() {
|
30549
30592
|
"use strict";
|
30550
30593
|
init_bigint2();
|
30551
30594
|
init_binary();
|
@@ -30575,10 +30618,10 @@ var init_columns3 = __esm({
|
|
30575
30618
|
}
|
30576
30619
|
});
|
30577
30620
|
|
30578
|
-
// ../
|
30621
|
+
// ../drizzle-orm/dist/mysql-core/query-builders/delete.js
|
30579
30622
|
var _a293, _b219, MySqlDeleteBase;
|
30580
30623
|
var init_delete3 = __esm({
|
30581
|
-
"../
|
30624
|
+
"../drizzle-orm/dist/mysql-core/query-builders/delete.js"() {
|
30582
30625
|
"use strict";
|
30583
30626
|
init_entity();
|
30584
30627
|
init_query_promise();
|
@@ -30656,10 +30699,10 @@ var init_delete3 = __esm({
|
|
30656
30699
|
}
|
30657
30700
|
});
|
30658
30701
|
|
30659
|
-
// ../
|
30702
|
+
// ../drizzle-orm/dist/mysql-core/query-builders/insert.js
|
30660
30703
|
var _a294, MySqlInsertBuilder, _a295, _b220, MySqlInsertBase;
|
30661
30704
|
var init_insert3 = __esm({
|
30662
|
-
"../
|
30705
|
+
"../drizzle-orm/dist/mysql-core/query-builders/insert.js"() {
|
30663
30706
|
"use strict";
|
30664
30707
|
init_entity();
|
30665
30708
|
init_query_promise();
|
@@ -30781,10 +30824,10 @@ var init_insert3 = __esm({
|
|
30781
30824
|
}
|
30782
30825
|
});
|
30783
30826
|
|
30784
|
-
// ../
|
30827
|
+
// ../drizzle-orm/dist/mysql-core/view-base.js
|
30785
30828
|
var _a296, _b221, MySqlViewBase;
|
30786
30829
|
var init_view_base3 = __esm({
|
30787
|
-
"../
|
30830
|
+
"../drizzle-orm/dist/mysql-core/view-base.js"() {
|
30788
30831
|
"use strict";
|
30789
30832
|
init_entity();
|
30790
30833
|
init_sql();
|
@@ -30794,10 +30837,10 @@ var init_view_base3 = __esm({
|
|
30794
30837
|
}
|
30795
30838
|
});
|
30796
30839
|
|
30797
|
-
// ../
|
30840
|
+
// ../drizzle-orm/dist/mysql-core/dialect.js
|
30798
30841
|
var _a297, MySqlDialect;
|
30799
30842
|
var init_dialect3 = __esm({
|
30800
|
-
"../
|
30843
|
+
"../drizzle-orm/dist/mysql-core/dialect.js"() {
|
30801
30844
|
"use strict";
|
30802
30845
|
init_alias();
|
30803
30846
|
init_column();
|
@@ -31593,7 +31636,7 @@ var init_dialect3 = __esm({
|
|
31593
31636
|
}
|
31594
31637
|
});
|
31595
31638
|
|
31596
|
-
// ../
|
31639
|
+
// ../drizzle-orm/dist/mysql-core/query-builders/select.js
|
31597
31640
|
function createSetOperator3(type, isAll) {
|
31598
31641
|
return (leftSelect, rightSelect, ...restSelects) => {
|
31599
31642
|
const setOperators = [rightSelect, ...restSelects].map((select) => ({
|
@@ -31613,7 +31656,7 @@ function createSetOperator3(type, isAll) {
|
|
31613
31656
|
}
|
31614
31657
|
var _a298, MySqlSelectBuilder, _a299, _b222, MySqlSelectQueryBuilderBase, _a300, _b223, MySqlSelectBase, getMySqlSetOperators, union3, unionAll3, intersect3, intersectAll2, except3, exceptAll2;
|
31615
31658
|
var init_select4 = __esm({
|
31616
|
-
"../
|
31659
|
+
"../drizzle-orm/dist/mysql-core/query-builders/select.js"() {
|
31617
31660
|
"use strict";
|
31618
31661
|
init_entity();
|
31619
31662
|
init_query_builder();
|
@@ -32317,10 +32360,10 @@ var init_select4 = __esm({
|
|
32317
32360
|
}
|
32318
32361
|
});
|
32319
32362
|
|
32320
|
-
// ../
|
32363
|
+
// ../drizzle-orm/dist/mysql-core/query-builders/query-builder.js
|
32321
32364
|
var _a301, QueryBuilder3;
|
32322
32365
|
var init_query_builder4 = __esm({
|
32323
|
-
"../
|
32366
|
+
"../drizzle-orm/dist/mysql-core/query-builders/query-builder.js"() {
|
32324
32367
|
"use strict";
|
32325
32368
|
init_entity();
|
32326
32369
|
init_dialect3();
|
@@ -32390,17 +32433,17 @@ var init_query_builder4 = __esm({
|
|
32390
32433
|
}
|
32391
32434
|
});
|
32392
32435
|
|
32393
|
-
// ../
|
32436
|
+
// ../drizzle-orm/dist/mysql-core/query-builders/select.types.js
|
32394
32437
|
var init_select_types3 = __esm({
|
32395
|
-
"../
|
32438
|
+
"../drizzle-orm/dist/mysql-core/query-builders/select.types.js"() {
|
32396
32439
|
"use strict";
|
32397
32440
|
}
|
32398
32441
|
});
|
32399
32442
|
|
32400
|
-
// ../
|
32443
|
+
// ../drizzle-orm/dist/mysql-core/query-builders/update.js
|
32401
32444
|
var _a302, MySqlUpdateBuilder, _a303, _b224, MySqlUpdateBase;
|
32402
32445
|
var init_update3 = __esm({
|
32403
|
-
"../
|
32446
|
+
"../drizzle-orm/dist/mysql-core/query-builders/update.js"() {
|
32404
32447
|
"use strict";
|
32405
32448
|
init_entity();
|
32406
32449
|
init_query_promise();
|
@@ -32495,9 +32538,9 @@ var init_update3 = __esm({
|
|
32495
32538
|
}
|
32496
32539
|
});
|
32497
32540
|
|
32498
|
-
// ../
|
32541
|
+
// ../drizzle-orm/dist/mysql-core/query-builders/index.js
|
32499
32542
|
var init_query_builders3 = __esm({
|
32500
|
-
"../
|
32543
|
+
"../drizzle-orm/dist/mysql-core/query-builders/index.js"() {
|
32501
32544
|
"use strict";
|
32502
32545
|
init_delete3();
|
32503
32546
|
init_insert3();
|
@@ -32508,10 +32551,10 @@ var init_query_builders3 = __esm({
|
|
32508
32551
|
}
|
32509
32552
|
});
|
32510
32553
|
|
32511
|
-
// ../
|
32554
|
+
// ../drizzle-orm/dist/mysql-core/query-builders/query.js
|
32512
32555
|
var _a304, RelationalQueryBuilder3, _a305, _b225, MySqlRelationalQuery;
|
32513
32556
|
var init_query3 = __esm({
|
32514
|
-
"../
|
32557
|
+
"../drizzle-orm/dist/mysql-core/query-builders/query.js"() {
|
32515
32558
|
"use strict";
|
32516
32559
|
init_entity();
|
32517
32560
|
init_query_promise();
|
@@ -32626,10 +32669,10 @@ var init_query3 = __esm({
|
|
32626
32669
|
}
|
32627
32670
|
});
|
32628
32671
|
|
32629
|
-
// ../
|
32672
|
+
// ../drizzle-orm/dist/mysql-core/db.js
|
32630
32673
|
var _a306, MySqlDatabase;
|
32631
32674
|
var init_db3 = __esm({
|
32632
|
-
"../
|
32675
|
+
"../drizzle-orm/dist/mysql-core/db.js"() {
|
32633
32676
|
"use strict";
|
32634
32677
|
init_entity();
|
32635
32678
|
init_selection_proxy();
|
@@ -32849,10 +32892,10 @@ var init_db3 = __esm({
|
|
32849
32892
|
}
|
32850
32893
|
});
|
32851
32894
|
|
32852
|
-
// ../
|
32895
|
+
// ../drizzle-orm/dist/mysql-core/indexes.js
|
32853
32896
|
var _a307, IndexBuilderOn3, _a308, IndexBuilder3, _a309, Index5;
|
32854
32897
|
var init_indexes3 = __esm({
|
32855
|
-
"../
|
32898
|
+
"../drizzle-orm/dist/mysql-core/indexes.js"() {
|
32856
32899
|
"use strict";
|
32857
32900
|
init_entity();
|
32858
32901
|
_a307 = entityKind;
|
@@ -32906,10 +32949,10 @@ var init_indexes3 = __esm({
|
|
32906
32949
|
}
|
32907
32950
|
});
|
32908
32951
|
|
32909
|
-
// ../
|
32952
|
+
// ../drizzle-orm/dist/mysql-core/primary-keys.js
|
32910
32953
|
var _a310, PrimaryKeyBuilder3, _a311, PrimaryKey3;
|
32911
32954
|
var init_primary_keys3 = __esm({
|
32912
|
-
"../
|
32955
|
+
"../drizzle-orm/dist/mysql-core/primary-keys.js"() {
|
32913
32956
|
"use strict";
|
32914
32957
|
init_entity();
|
32915
32958
|
init_table4();
|
@@ -32946,16 +32989,16 @@ var init_primary_keys3 = __esm({
|
|
32946
32989
|
}
|
32947
32990
|
});
|
32948
32991
|
|
32949
|
-
// ../
|
32992
|
+
// ../drizzle-orm/dist/mysql-core/view-common.js
|
32950
32993
|
var MySqlViewConfig;
|
32951
32994
|
var init_view_common4 = __esm({
|
32952
|
-
"../
|
32995
|
+
"../drizzle-orm/dist/mysql-core/view-common.js"() {
|
32953
32996
|
"use strict";
|
32954
32997
|
MySqlViewConfig = Symbol.for("drizzle:MySqlViewConfig");
|
32955
32998
|
}
|
32956
32999
|
});
|
32957
33000
|
|
32958
|
-
// ../
|
33001
|
+
// ../drizzle-orm/dist/mysql-core/view.js
|
32959
33002
|
function mysqlViewWithSchema(name2, selection, schema4) {
|
32960
33003
|
if (selection) {
|
32961
33004
|
return new ManualViewBuilder3(name2, selection, schema4);
|
@@ -32964,7 +33007,7 @@ function mysqlViewWithSchema(name2, selection, schema4) {
|
|
32964
33007
|
}
|
32965
33008
|
var _a312, ViewBuilderCore2, _a313, _b226, ViewBuilder3, _a314, _b227, ManualViewBuilder3, _a315, _b228, _c8, MySqlView;
|
32966
33009
|
var init_view3 = __esm({
|
32967
|
-
"../
|
33010
|
+
"../drizzle-orm/dist/mysql-core/view.js"() {
|
32968
33011
|
"use strict";
|
32969
33012
|
init_entity();
|
32970
33013
|
init_selection_proxy();
|
@@ -33082,10 +33125,10 @@ var init_view3 = __esm({
|
|
33082
33125
|
}
|
33083
33126
|
});
|
33084
33127
|
|
33085
|
-
// ../
|
33128
|
+
// ../drizzle-orm/dist/mysql-core/schema.js
|
33086
33129
|
var _a316, MySqlSchema5;
|
33087
33130
|
var init_schema2 = __esm({
|
33088
|
-
"../
|
33131
|
+
"../drizzle-orm/dist/mysql-core/schema.js"() {
|
33089
33132
|
"use strict";
|
33090
33133
|
init_entity();
|
33091
33134
|
init_table4();
|
@@ -33106,10 +33149,10 @@ var init_schema2 = __esm({
|
|
33106
33149
|
}
|
33107
33150
|
});
|
33108
33151
|
|
33109
|
-
// ../
|
33152
|
+
// ../drizzle-orm/dist/mysql-core/session.js
|
33110
33153
|
var _a317, MySqlPreparedQuery, _a318, MySqlSession, _a319, _b229, MySqlTransaction;
|
33111
33154
|
var init_session3 = __esm({
|
33112
|
-
"../
|
33155
|
+
"../drizzle-orm/dist/mysql-core/session.js"() {
|
33113
33156
|
"use strict";
|
33114
33157
|
init_entity();
|
33115
33158
|
init_errors();
|
@@ -33139,7 +33182,7 @@ var init_session3 = __esm({
|
|
33139
33182
|
if (config.isolationLevel) {
|
33140
33183
|
parts.push(`isolation level ${config.isolationLevel}`);
|
33141
33184
|
}
|
33142
|
-
return parts.length ? sql
|
33185
|
+
return parts.length ? sql`set transaction ${sql.raw(parts.join(" "))}` : void 0;
|
33143
33186
|
}
|
33144
33187
|
getStartTransactionSQL(config) {
|
33145
33188
|
const parts = [];
|
@@ -33149,7 +33192,7 @@ var init_session3 = __esm({
|
|
33149
33192
|
if (config.accessMode) {
|
33150
33193
|
parts.push(config.accessMode);
|
33151
33194
|
}
|
33152
|
-
return parts.length ? sql
|
33195
|
+
return parts.length ? sql`start transaction ${sql.raw(parts.join(" "))}` : void 0;
|
33153
33196
|
}
|
33154
33197
|
};
|
33155
33198
|
__publicField(MySqlSession, _a318, "MySqlSession");
|
@@ -33167,14 +33210,14 @@ var init_session3 = __esm({
|
|
33167
33210
|
}
|
33168
33211
|
});
|
33169
33212
|
|
33170
|
-
// ../
|
33213
|
+
// ../drizzle-orm/dist/mysql-core/subquery.js
|
33171
33214
|
var init_subquery4 = __esm({
|
33172
|
-
"../
|
33215
|
+
"../drizzle-orm/dist/mysql-core/subquery.js"() {
|
33173
33216
|
"use strict";
|
33174
33217
|
}
|
33175
33218
|
});
|
33176
33219
|
|
33177
|
-
// ../
|
33220
|
+
// ../drizzle-orm/dist/mysql-core/utils.js
|
33178
33221
|
function getTableConfig3(table4) {
|
33179
33222
|
const columns = Object.values(table4[MySqlTable.Symbol.Columns]);
|
33180
33223
|
const indexes = [];
|
@@ -33215,7 +33258,7 @@ function getTableConfig3(table4) {
|
|
33215
33258
|
};
|
33216
33259
|
}
|
33217
33260
|
var init_utils7 = __esm({
|
33218
|
-
"../
|
33261
|
+
"../drizzle-orm/dist/mysql-core/utils.js"() {
|
33219
33262
|
"use strict";
|
33220
33263
|
init_entity();
|
33221
33264
|
init_table();
|
@@ -33228,9 +33271,9 @@ var init_utils7 = __esm({
|
|
33228
33271
|
}
|
33229
33272
|
});
|
33230
33273
|
|
33231
|
-
// ../
|
33274
|
+
// ../drizzle-orm/dist/mysql-core/index.js
|
33232
33275
|
var init_mysql_core = __esm({
|
33233
|
-
"../
|
33276
|
+
"../drizzle-orm/dist/mysql-core/index.js"() {
|
33234
33277
|
"use strict";
|
33235
33278
|
init_alias4();
|
33236
33279
|
init_checks3();
|
@@ -33275,8 +33318,8 @@ var init_mysqlSerializer = __esm({
|
|
33275
33318
|
"src/serializer/mysqlSerializer.ts"() {
|
33276
33319
|
"use strict";
|
33277
33320
|
init_source();
|
33278
|
-
|
33279
|
-
|
33321
|
+
init_dist();
|
33322
|
+
init_dist();
|
33280
33323
|
init_mysql_core();
|
33281
33324
|
init_mysql_core();
|
33282
33325
|
init_outputs();
|
@@ -33600,7 +33643,7 @@ We have encountered a collision between the index name on columns ${source_defau
|
|
33600
33643
|
onUpdate = true;
|
33601
33644
|
}
|
33602
33645
|
const newColumn = {
|
33603
|
-
default: columnDefault === null ? void 0 : /^-?[\d.]+(?:e-?\d+)?$/.test(columnDefault) && !columnType.startsWith(
|
33646
|
+
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}'`,
|
33604
33647
|
autoincrement: isAutoincrement,
|
33605
33648
|
name: columnName,
|
33606
33649
|
type: changedType,
|
@@ -34078,7 +34121,7 @@ var prepareFromExports;
|
|
34078
34121
|
var init_pgImports = __esm({
|
34079
34122
|
"src/serializer/pgImports.ts"() {
|
34080
34123
|
"use strict";
|
34081
|
-
|
34124
|
+
init_dist();
|
34082
34125
|
init_pg_core();
|
34083
34126
|
init_utils8();
|
34084
34127
|
prepareFromExports = (exports2) => {
|
@@ -34117,7 +34160,7 @@ var prepareFromExports2, prepareFromSqliteImports;
|
|
34117
34160
|
var init_sqliteImports = __esm({
|
34118
34161
|
"src/serializer/sqliteImports.ts"() {
|
34119
34162
|
"use strict";
|
34120
|
-
|
34163
|
+
init_dist();
|
34121
34164
|
init_sqlite_core();
|
34122
34165
|
init_utils8();
|
34123
34166
|
prepareFromExports2 = (exports2) => {
|
@@ -34155,7 +34198,7 @@ var prepareFromExports3, prepareFromMySqlImports;
|
|
34155
34198
|
var init_mysqlImports = __esm({
|
34156
34199
|
"src/serializer/mysqlImports.ts"() {
|
34157
34200
|
"use strict";
|
34158
|
-
|
34201
|
+
init_dist();
|
34159
34202
|
init_mysql_core();
|
34160
34203
|
init_utils8();
|
34161
34204
|
prepareFromExports3 = (exports2) => {
|
@@ -34817,6 +34860,37 @@ var updateUpToV6 = (json) => {
|
|
34817
34860
|
enums
|
34818
34861
|
};
|
34819
34862
|
};
|
34863
|
+
var updateUpToV7 = (json) => {
|
34864
|
+
const schema4 = pgSchemaV6.parse(json);
|
34865
|
+
const tables = Object.fromEntries(
|
34866
|
+
Object.entries(schema4.tables).map((it) => {
|
34867
|
+
const table4 = it[1];
|
34868
|
+
const mappedIndexes = Object.fromEntries(
|
34869
|
+
Object.entries(table4.indexes).map((idx) => {
|
34870
|
+
const { columns, ...rest } = idx[1];
|
34871
|
+
const mappedColumns = columns.map((it2) => {
|
34872
|
+
return {
|
34873
|
+
expression: it2,
|
34874
|
+
isExpression: false,
|
34875
|
+
asc: true,
|
34876
|
+
nulls: "last",
|
34877
|
+
opClass: void 0
|
34878
|
+
};
|
34879
|
+
});
|
34880
|
+
return [idx[0], { columns: mappedColumns, with: {}, ...rest }];
|
34881
|
+
})
|
34882
|
+
);
|
34883
|
+
return [it[0], { ...table4, indexes: mappedIndexes }];
|
34884
|
+
})
|
34885
|
+
);
|
34886
|
+
return {
|
34887
|
+
...schema4,
|
34888
|
+
version: "7",
|
34889
|
+
dialect: "postgresql",
|
34890
|
+
sequences: {},
|
34891
|
+
tables
|
34892
|
+
};
|
34893
|
+
};
|
34820
34894
|
|
34821
34895
|
// src/cli/commands/sqliteIntrospect.ts
|
34822
34896
|
var import_hanji6 = __toESM(require_hanji());
|
@@ -35287,7 +35361,7 @@ var generateMigration = async (prev, cur) => {
|
|
35287
35361
|
};
|
35288
35362
|
var pushSchema = async (imports, drizzleInstance, schemaFilters) => {
|
35289
35363
|
const { applyPgSnapshotsDiff: applyPgSnapshotsDiff2 } = await Promise.resolve().then(() => (init_snapshotsDiffer(), snapshotsDiffer_exports));
|
35290
|
-
const { sql: sql2 } = await Promise.resolve().then(() => (
|
35364
|
+
const { sql: sql2 } = await Promise.resolve().then(() => (init_dist(), dist_exports));
|
35291
35365
|
const db = {
|
35292
35366
|
query: async (query, params) => {
|
35293
35367
|
const res = await drizzleInstance.execute(sql2.raw(query));
|
@@ -35357,7 +35431,7 @@ var generateSQLiteMigration = async (prev, cur) => {
|
|
35357
35431
|
};
|
35358
35432
|
var pushSQLiteSchema = async (imports, drizzleInstance) => {
|
35359
35433
|
const { applySqliteSnapshotsDiff: applySqliteSnapshotsDiff2 } = await Promise.resolve().then(() => (init_snapshotsDiffer(), snapshotsDiffer_exports));
|
35360
|
-
const { sql: sql2 } = await Promise.resolve().then(() => (
|
35434
|
+
const { sql: sql2 } = await Promise.resolve().then(() => (init_dist(), dist_exports));
|
35361
35435
|
const db = {
|
35362
35436
|
query: async (query, params) => {
|
35363
35437
|
const res = drizzleInstance.all(sql2.raw(query));
|
@@ -35434,7 +35508,7 @@ var pushMySQLSchema = async (imports, drizzleInstance, databaseName) => {
|
|
35434
35508
|
const { applyMysqlSnapshotsDiff: applyMysqlSnapshotsDiff2 } = await Promise.resolve().then(() => (init_snapshotsDiffer(), snapshotsDiffer_exports));
|
35435
35509
|
const { logSuggestionsAndReturn: logSuggestionsAndReturn3 } = await Promise.resolve().then(() => (init_mysqlPushUtils(), mysqlPushUtils_exports));
|
35436
35510
|
const { mysqlPushIntrospect: mysqlPushIntrospect2 } = await Promise.resolve().then(() => (init_mysqlIntrospect(), mysqlIntrospect_exports));
|
35437
|
-
const { sql: sql2 } = await Promise.resolve().then(() => (
|
35511
|
+
const { sql: sql2 } = await Promise.resolve().then(() => (init_dist(), dist_exports));
|
35438
35512
|
const db = {
|
35439
35513
|
query: async (query, params) => {
|
35440
35514
|
const res = await drizzleInstance.execute(sql2.raw(query));
|
@@ -35473,7 +35547,13 @@ var pushMySQLSchema = async (imports, drizzleInstance, databaseName) => {
|
|
35473
35547
|
};
|
35474
35548
|
};
|
35475
35549
|
var upPgSnapshot = (snapshot) => {
|
35476
|
-
|
35550
|
+
if (snapshot.version === "5") {
|
35551
|
+
return updateUpToV7(updateUpToV6(snapshot));
|
35552
|
+
}
|
35553
|
+
if (snapshot.version === "6") {
|
35554
|
+
return updateUpToV7(snapshot);
|
35555
|
+
}
|
35556
|
+
return snapshot;
|
35477
35557
|
};
|
35478
35558
|
// Annotate the CommonJS export names for ESM import in node:
|
35479
35559
|
0 && (module.exports = {
|