drizzle-kit 0.24.2-417b0fa → 0.24.2-50ebd0a
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/api.js +661 -583
- package/api.mjs +661 -583
- package/bin.cjs +44 -55
- package/package.json +1 -1
package/api.mjs
CHANGED
@@ -3474,17 +3474,17 @@ function processCreateParams(params) {
|
|
3474
3474
|
if (errorMap2)
|
3475
3475
|
return { errorMap: errorMap2, description };
|
3476
3476
|
const customMap = (iss, ctx) => {
|
3477
|
-
var
|
3477
|
+
var _a324, _b234;
|
3478
3478
|
const { message } = params;
|
3479
3479
|
if (iss.code === "invalid_enum_value") {
|
3480
3480
|
return { message: message !== null && message !== void 0 ? message : ctx.defaultError };
|
3481
3481
|
}
|
3482
3482
|
if (typeof ctx.data === "undefined") {
|
3483
|
-
return { message: (
|
3483
|
+
return { message: (_a324 = message !== null && message !== void 0 ? message : required_error) !== null && _a324 !== void 0 ? _a324 : ctx.defaultError };
|
3484
3484
|
}
|
3485
3485
|
if (iss.code !== "invalid_type")
|
3486
3486
|
return { message: ctx.defaultError };
|
3487
|
-
return { message: (
|
3487
|
+
return { message: (_b234 = message !== null && message !== void 0 ? message : invalid_type_error) !== null && _b234 !== void 0 ? _b234 : ctx.defaultError };
|
3488
3488
|
};
|
3489
3489
|
return { errorMap: customMap, description };
|
3490
3490
|
}
|
@@ -4146,11 +4146,11 @@ var init_lib = __esm({
|
|
4146
4146
|
throw result.error;
|
4147
4147
|
}
|
4148
4148
|
safeParse(data, params) {
|
4149
|
-
var
|
4149
|
+
var _a324;
|
4150
4150
|
const ctx = {
|
4151
4151
|
common: {
|
4152
4152
|
issues: [],
|
4153
|
-
async: (
|
4153
|
+
async: (_a324 = params === null || params === void 0 ? void 0 : params.async) !== null && _a324 !== void 0 ? _a324 : false,
|
4154
4154
|
contextualErrorMap: params === null || params === void 0 ? void 0 : params.errorMap
|
4155
4155
|
},
|
4156
4156
|
path: (params === null || params === void 0 ? void 0 : params.path) || [],
|
@@ -4472,7 +4472,7 @@ var init_lib = __esm({
|
|
4472
4472
|
} else if (check.kind === "url") {
|
4473
4473
|
try {
|
4474
4474
|
new URL(input.data);
|
4475
|
-
} catch (
|
4475
|
+
} catch (_a324) {
|
4476
4476
|
ctx = this._getOrReturnCtx(input, ctx);
|
4477
4477
|
addIssueToContext(ctx, {
|
4478
4478
|
validation: "url",
|
@@ -4642,7 +4642,7 @@ var init_lib = __esm({
|
|
4642
4642
|
return this._addCheck({ kind: "ip", ...errorUtil.errToObj(options) });
|
4643
4643
|
}
|
4644
4644
|
datetime(options) {
|
4645
|
-
var
|
4645
|
+
var _a324, _b234;
|
4646
4646
|
if (typeof options === "string") {
|
4647
4647
|
return this._addCheck({
|
4648
4648
|
kind: "datetime",
|
@@ -4655,8 +4655,8 @@ var init_lib = __esm({
|
|
4655
4655
|
return this._addCheck({
|
4656
4656
|
kind: "datetime",
|
4657
4657
|
precision: typeof (options === null || options === void 0 ? void 0 : options.precision) === "undefined" ? null : options === null || options === void 0 ? void 0 : options.precision,
|
4658
|
-
offset: (
|
4659
|
-
local: (
|
4658
|
+
offset: (_a324 = options === null || options === void 0 ? void 0 : options.offset) !== null && _a324 !== void 0 ? _a324 : false,
|
4659
|
+
local: (_b234 = options === null || options === void 0 ? void 0 : options.local) !== null && _b234 !== void 0 ? _b234 : false,
|
4660
4660
|
...errorUtil.errToObj(options === null || options === void 0 ? void 0 : options.message)
|
4661
4661
|
});
|
4662
4662
|
}
|
@@ -4819,11 +4819,11 @@ var init_lib = __esm({
|
|
4819
4819
|
}
|
4820
4820
|
};
|
4821
4821
|
ZodString.create = (params) => {
|
4822
|
-
var
|
4822
|
+
var _a324;
|
4823
4823
|
return new ZodString({
|
4824
4824
|
checks: [],
|
4825
4825
|
typeName: ZodFirstPartyTypeKind.ZodString,
|
4826
|
-
coerce: (
|
4826
|
+
coerce: (_a324 = params === null || params === void 0 ? void 0 : params.coerce) !== null && _a324 !== void 0 ? _a324 : false,
|
4827
4827
|
...processCreateParams(params)
|
4828
4828
|
});
|
4829
4829
|
};
|
@@ -5216,11 +5216,11 @@ var init_lib = __esm({
|
|
5216
5216
|
}
|
5217
5217
|
};
|
5218
5218
|
ZodBigInt.create = (params) => {
|
5219
|
-
var
|
5219
|
+
var _a324;
|
5220
5220
|
return new ZodBigInt({
|
5221
5221
|
checks: [],
|
5222
5222
|
typeName: ZodFirstPartyTypeKind.ZodBigInt,
|
5223
|
-
coerce: (
|
5223
|
+
coerce: (_a324 = params === null || params === void 0 ? void 0 : params.coerce) !== null && _a324 !== void 0 ? _a324 : false,
|
5224
5224
|
...processCreateParams(params)
|
5225
5225
|
});
|
5226
5226
|
};
|
@@ -5700,8 +5700,8 @@ var init_lib = __esm({
|
|
5700
5700
|
unknownKeys: "strict",
|
5701
5701
|
...message !== void 0 ? {
|
5702
5702
|
errorMap: (issue, ctx) => {
|
5703
|
-
var
|
5704
|
-
const defaultError = (_c9 = (
|
5703
|
+
var _a324, _b234, _c9, _d5;
|
5704
|
+
const defaultError = (_c9 = (_b234 = (_a324 = this._def).errorMap) === null || _b234 === void 0 ? void 0 : _b234.call(_a324, issue, ctx).message) !== null && _c9 !== void 0 ? _c9 : ctx.defaultError;
|
5705
5705
|
if (issue.code === "unrecognized_keys")
|
5706
5706
|
return {
|
5707
5707
|
message: (_d5 = errorUtil.errToObj(message).message) !== null && _d5 !== void 0 ? _d5 : defaultError
|
@@ -11527,7 +11527,7 @@ var init_sqlgenerator = __esm({
|
|
11527
11527
|
isPgNativeType = (it) => {
|
11528
11528
|
if (pgNativeTypes.has(it)) return true;
|
11529
11529
|
const toCheck = it.replace(/ /g, "");
|
11530
|
-
return toCheck.startsWith("varchar(") || toCheck.startsWith("char(") || toCheck.startsWith("numeric(") || toCheck.startsWith("timestamp(") || toCheck.startsWith("doubleprecision[") || toCheck.startsWith("intervalyear(") || toCheck.startsWith("intervalmonth(") || toCheck.startsWith("intervalday(") || toCheck.startsWith("intervalhour(") || toCheck.startsWith("intervalminute(") || toCheck.startsWith("intervalsecond(") || toCheck.startsWith("intervalyeartomonth(") || toCheck.startsWith("intervaldaytohour(") || toCheck.startsWith("intervaldaytominute(") || toCheck.startsWith("intervaldaytosecond(") || toCheck.startsWith("intervalhourtominute(") || toCheck.startsWith("intervalhourtosecond(") || toCheck.startsWith("intervalminutetosecond(") || toCheck.startsWith("vector(") || toCheck.startsWith("geometry(") || /^(\w+)(\[\d*])+$/.test(it);
|
11530
|
+
return toCheck.startsWith("varchar(") || toCheck.startsWith("char(") || toCheck.startsWith("numeric(") || toCheck.startsWith("timestamp(") || toCheck.startsWith("doubleprecision[") || toCheck.startsWith("intervalyear(") || toCheck.startsWith("intervalmonth(") || toCheck.startsWith("intervalday(") || toCheck.startsWith("intervalhour(") || toCheck.startsWith("intervalminute(") || toCheck.startsWith("intervalsecond(") || toCheck.startsWith("intervalyeartomonth(") || toCheck.startsWith("intervaldaytohour(") || toCheck.startsWith("intervaldaytominute(") || toCheck.startsWith("intervaldaytosecond(") || toCheck.startsWith("intervalhourtominute(") || toCheck.startsWith("intervalhourtosecond(") || toCheck.startsWith("intervalminutetosecond(") || toCheck.startsWith("vector(") || toCheck.startsWith("geometry(") || toCheck.startsWith("geography(") || /^(\w+)(\[\d*])+$/.test(it);
|
11531
11531
|
};
|
11532
11532
|
Convertor = class {
|
11533
11533
|
};
|
@@ -18533,8 +18533,8 @@ var init_sql = __esm({
|
|
18533
18533
|
sql2.param = param2;
|
18534
18534
|
})(sql || (sql = {}));
|
18535
18535
|
((SQL2) => {
|
18536
|
-
var
|
18537
|
-
|
18536
|
+
var _a324;
|
18537
|
+
_a324 = entityKind;
|
18538
18538
|
const _Aliased = class _Aliased {
|
18539
18539
|
constructor(sql2, fieldAlias) {
|
18540
18540
|
/** @internal */
|
@@ -18550,7 +18550,7 @@ var init_sql = __esm({
|
|
18550
18550
|
return new _Aliased(this.sql, this.fieldAlias);
|
18551
18551
|
}
|
18552
18552
|
};
|
18553
|
-
__publicField(_Aliased,
|
18553
|
+
__publicField(_Aliased, _a324, "SQL.Aliased");
|
18554
18554
|
let Aliased = _Aliased;
|
18555
18555
|
SQL2.Aliased = Aliased;
|
18556
18556
|
})(SQL || (SQL = {}));
|
@@ -20567,15 +20567,91 @@ var init_utils3 = __esm({
|
|
20567
20567
|
}
|
20568
20568
|
});
|
20569
20569
|
|
20570
|
+
// ../drizzle-orm/dist/pg-core/columns/postgis_extension/geography.js
|
20571
|
+
var _a92, _b65, PgGeographyBuilder, _a93, _b66, PgGeography, _a94, _b67, PgGeographyObjectBuilder, _a95, _b68, PgGeographyObject;
|
20572
|
+
var init_geography = __esm({
|
20573
|
+
"../drizzle-orm/dist/pg-core/columns/postgis_extension/geography.js"() {
|
20574
|
+
"use strict";
|
20575
|
+
init_entity();
|
20576
|
+
init_common2();
|
20577
|
+
init_utils3();
|
20578
|
+
PgGeographyBuilder = class extends (_b65 = PgColumnBuilder, _a92 = entityKind, _b65) {
|
20579
|
+
constructor(name2, config) {
|
20580
|
+
super(name2, "array", "PgGeography");
|
20581
|
+
this.config.srid = config?.srid;
|
20582
|
+
this.config.type = config?.type;
|
20583
|
+
}
|
20584
|
+
/** @internal */
|
20585
|
+
build(table4) {
|
20586
|
+
return new PgGeography(
|
20587
|
+
table4,
|
20588
|
+
this.config
|
20589
|
+
);
|
20590
|
+
}
|
20591
|
+
};
|
20592
|
+
__publicField(PgGeographyBuilder, _a92, "PgGeographyBuilder");
|
20593
|
+
PgGeography = class extends (_b66 = PgColumn, _a93 = entityKind, _b66) {
|
20594
|
+
constructor() {
|
20595
|
+
super(...arguments);
|
20596
|
+
__publicField(this, "type", this.config.type);
|
20597
|
+
__publicField(this, "srid", this.config.srid);
|
20598
|
+
}
|
20599
|
+
getSQLType() {
|
20600
|
+
return `geography${this.type || this.srid ? `(${this.type ?? ""}${this.srid ? this.type ? `,${this.srid}` : this.srid : ""})` : ""}`;
|
20601
|
+
}
|
20602
|
+
mapFromDriverValue(value) {
|
20603
|
+
return parseEWKB(value);
|
20604
|
+
}
|
20605
|
+
mapToDriverValue(value) {
|
20606
|
+
return `point(${value[0]} ${value[1]})`;
|
20607
|
+
}
|
20608
|
+
};
|
20609
|
+
__publicField(PgGeography, _a93, "PgGeography");
|
20610
|
+
PgGeographyObjectBuilder = class extends (_b67 = PgColumnBuilder, _a94 = entityKind, _b67) {
|
20611
|
+
constructor(name2, config) {
|
20612
|
+
super(name2, "json", "PgGeographyObject");
|
20613
|
+
this.config.srid = config?.srid;
|
20614
|
+
this.config.type = config?.type;
|
20615
|
+
}
|
20616
|
+
/** @internal */
|
20617
|
+
build(table4) {
|
20618
|
+
return new PgGeographyObject(
|
20619
|
+
table4,
|
20620
|
+
this.config
|
20621
|
+
);
|
20622
|
+
}
|
20623
|
+
};
|
20624
|
+
__publicField(PgGeographyObjectBuilder, _a94, "PgGeographyObjectBuilder");
|
20625
|
+
PgGeographyObject = class extends (_b68 = PgColumn, _a95 = entityKind, _b68) {
|
20626
|
+
constructor() {
|
20627
|
+
super(...arguments);
|
20628
|
+
__publicField(this, "type", this.config.type);
|
20629
|
+
__publicField(this, "srid", this.config.srid);
|
20630
|
+
}
|
20631
|
+
getSQLType() {
|
20632
|
+
return `geography${this.type || this.srid ? `(${this.type ?? ""}${this.srid ? this.type ? `,${this.srid}` : this.srid : ""})` : ""}`;
|
20633
|
+
}
|
20634
|
+
mapFromDriverValue(value) {
|
20635
|
+
const parsed = parseEWKB(value);
|
20636
|
+
return { x: parsed[0], y: parsed[1] };
|
20637
|
+
}
|
20638
|
+
mapToDriverValue(value) {
|
20639
|
+
return `geography(${value.x} ${value.y})`;
|
20640
|
+
}
|
20641
|
+
};
|
20642
|
+
__publicField(PgGeographyObject, _a95, "PgGeographyObject");
|
20643
|
+
}
|
20644
|
+
});
|
20645
|
+
|
20570
20646
|
// ../drizzle-orm/dist/pg-core/columns/postgis_extension/geometry.js
|
20571
|
-
var
|
20647
|
+
var _a96, _b69, PgGeometryBuilder, _a97, _b70, PgGeometry, _a98, _b71, PgGeometryObjectBuilder, _a99, _b72, PgGeometryObject;
|
20572
20648
|
var init_geometry = __esm({
|
20573
20649
|
"../drizzle-orm/dist/pg-core/columns/postgis_extension/geometry.js"() {
|
20574
20650
|
"use strict";
|
20575
20651
|
init_entity();
|
20576
20652
|
init_common2();
|
20577
20653
|
init_utils3();
|
20578
|
-
PgGeometryBuilder = class extends (
|
20654
|
+
PgGeometryBuilder = class extends (_b69 = PgColumnBuilder, _a96 = entityKind, _b69) {
|
20579
20655
|
constructor(name2) {
|
20580
20656
|
super(name2, "array", "PgGeometry");
|
20581
20657
|
}
|
@@ -20587,8 +20663,8 @@ var init_geometry = __esm({
|
|
20587
20663
|
);
|
20588
20664
|
}
|
20589
20665
|
};
|
20590
|
-
__publicField(PgGeometryBuilder,
|
20591
|
-
PgGeometry = class extends (
|
20666
|
+
__publicField(PgGeometryBuilder, _a96, "PgGeometryBuilder");
|
20667
|
+
PgGeometry = class extends (_b70 = PgColumn, _a97 = entityKind, _b70) {
|
20592
20668
|
getSQLType() {
|
20593
20669
|
return "geometry(point)";
|
20594
20670
|
}
|
@@ -20599,8 +20675,8 @@ var init_geometry = __esm({
|
|
20599
20675
|
return `point(${value[0]} ${value[1]})`;
|
20600
20676
|
}
|
20601
20677
|
};
|
20602
|
-
__publicField(PgGeometry,
|
20603
|
-
PgGeometryObjectBuilder = class extends (
|
20678
|
+
__publicField(PgGeometry, _a97, "PgGeometry");
|
20679
|
+
PgGeometryObjectBuilder = class extends (_b71 = PgColumnBuilder, _a98 = entityKind, _b71) {
|
20604
20680
|
constructor(name2) {
|
20605
20681
|
super(name2, "json", "PgGeometryObject");
|
20606
20682
|
}
|
@@ -20612,8 +20688,8 @@ var init_geometry = __esm({
|
|
20612
20688
|
);
|
20613
20689
|
}
|
20614
20690
|
};
|
20615
|
-
__publicField(PgGeometryObjectBuilder,
|
20616
|
-
PgGeometryObject = class extends (
|
20691
|
+
__publicField(PgGeometryObjectBuilder, _a98, "PgGeometryObjectBuilder");
|
20692
|
+
PgGeometryObject = class extends (_b72 = PgColumn, _a99 = entityKind, _b72) {
|
20617
20693
|
getSQLType() {
|
20618
20694
|
return "geometry(point)";
|
20619
20695
|
}
|
@@ -20625,18 +20701,18 @@ var init_geometry = __esm({
|
|
20625
20701
|
return `point(${value.x} ${value.y})`;
|
20626
20702
|
}
|
20627
20703
|
};
|
20628
|
-
__publicField(PgGeometryObject,
|
20704
|
+
__publicField(PgGeometryObject, _a99, "PgGeometryObject");
|
20629
20705
|
}
|
20630
20706
|
});
|
20631
20707
|
|
20632
20708
|
// ../drizzle-orm/dist/pg-core/columns/real.js
|
20633
|
-
var
|
20709
|
+
var _a100, _b73, PgRealBuilder, _a101, _b74, PgReal;
|
20634
20710
|
var init_real = __esm({
|
20635
20711
|
"../drizzle-orm/dist/pg-core/columns/real.js"() {
|
20636
20712
|
"use strict";
|
20637
20713
|
init_entity();
|
20638
20714
|
init_common2();
|
20639
|
-
PgRealBuilder = class extends (
|
20715
|
+
PgRealBuilder = class extends (_b73 = PgColumnBuilder, _a100 = entityKind, _b73) {
|
20640
20716
|
constructor(name2, length) {
|
20641
20717
|
super(name2, "number", "PgReal");
|
20642
20718
|
this.config.length = length;
|
@@ -20646,8 +20722,8 @@ var init_real = __esm({
|
|
20646
20722
|
return new PgReal(table4, this.config);
|
20647
20723
|
}
|
20648
20724
|
};
|
20649
|
-
__publicField(PgRealBuilder,
|
20650
|
-
PgReal = class extends (
|
20725
|
+
__publicField(PgRealBuilder, _a100, "PgRealBuilder");
|
20726
|
+
PgReal = class extends (_b74 = PgColumn, _a101 = entityKind, _b74) {
|
20651
20727
|
constructor(table4, config) {
|
20652
20728
|
super(table4, config);
|
20653
20729
|
__publicField(this, "mapFromDriverValue", (value) => {
|
@@ -20661,18 +20737,18 @@ var init_real = __esm({
|
|
20661
20737
|
return "real";
|
20662
20738
|
}
|
20663
20739
|
};
|
20664
|
-
__publicField(PgReal,
|
20740
|
+
__publicField(PgReal, _a101, "PgReal");
|
20665
20741
|
}
|
20666
20742
|
});
|
20667
20743
|
|
20668
20744
|
// ../drizzle-orm/dist/pg-core/columns/serial.js
|
20669
|
-
var
|
20745
|
+
var _a102, _b75, PgSerialBuilder, _a103, _b76, PgSerial;
|
20670
20746
|
var init_serial = __esm({
|
20671
20747
|
"../drizzle-orm/dist/pg-core/columns/serial.js"() {
|
20672
20748
|
"use strict";
|
20673
20749
|
init_entity();
|
20674
20750
|
init_common2();
|
20675
|
-
PgSerialBuilder = class extends (
|
20751
|
+
PgSerialBuilder = class extends (_b75 = PgColumnBuilder, _a102 = entityKind, _b75) {
|
20676
20752
|
constructor(name2) {
|
20677
20753
|
super(name2, "number", "PgSerial");
|
20678
20754
|
this.config.hasDefault = true;
|
@@ -20683,25 +20759,25 @@ var init_serial = __esm({
|
|
20683
20759
|
return new PgSerial(table4, this.config);
|
20684
20760
|
}
|
20685
20761
|
};
|
20686
|
-
__publicField(PgSerialBuilder,
|
20687
|
-
PgSerial = class extends (
|
20762
|
+
__publicField(PgSerialBuilder, _a102, "PgSerialBuilder");
|
20763
|
+
PgSerial = class extends (_b76 = PgColumn, _a103 = entityKind, _b76) {
|
20688
20764
|
getSQLType() {
|
20689
20765
|
return "serial";
|
20690
20766
|
}
|
20691
20767
|
};
|
20692
|
-
__publicField(PgSerial,
|
20768
|
+
__publicField(PgSerial, _a103, "PgSerial");
|
20693
20769
|
}
|
20694
20770
|
});
|
20695
20771
|
|
20696
20772
|
// ../drizzle-orm/dist/pg-core/columns/smallint.js
|
20697
|
-
var
|
20773
|
+
var _a104, _b77, PgSmallIntBuilder, _a105, _b78, PgSmallInt;
|
20698
20774
|
var init_smallint = __esm({
|
20699
20775
|
"../drizzle-orm/dist/pg-core/columns/smallint.js"() {
|
20700
20776
|
"use strict";
|
20701
20777
|
init_entity();
|
20702
20778
|
init_common2();
|
20703
20779
|
init_int_common();
|
20704
|
-
PgSmallIntBuilder = class extends (
|
20780
|
+
PgSmallIntBuilder = class extends (_b77 = PgIntColumnBaseBuilder, _a104 = entityKind, _b77) {
|
20705
20781
|
constructor(name2) {
|
20706
20782
|
super(name2, "number", "PgSmallInt");
|
20707
20783
|
}
|
@@ -20710,8 +20786,8 @@ var init_smallint = __esm({
|
|
20710
20786
|
return new PgSmallInt(table4, this.config);
|
20711
20787
|
}
|
20712
20788
|
};
|
20713
|
-
__publicField(PgSmallIntBuilder,
|
20714
|
-
PgSmallInt = class extends (
|
20789
|
+
__publicField(PgSmallIntBuilder, _a104, "PgSmallIntBuilder");
|
20790
|
+
PgSmallInt = class extends (_b78 = PgColumn, _a105 = entityKind, _b78) {
|
20715
20791
|
constructor() {
|
20716
20792
|
super(...arguments);
|
20717
20793
|
__publicField(this, "mapFromDriverValue", (value) => {
|
@@ -20725,18 +20801,18 @@ var init_smallint = __esm({
|
|
20725
20801
|
return "smallint";
|
20726
20802
|
}
|
20727
20803
|
};
|
20728
|
-
__publicField(PgSmallInt,
|
20804
|
+
__publicField(PgSmallInt, _a105, "PgSmallInt");
|
20729
20805
|
}
|
20730
20806
|
});
|
20731
20807
|
|
20732
20808
|
// ../drizzle-orm/dist/pg-core/columns/smallserial.js
|
20733
|
-
var
|
20809
|
+
var _a106, _b79, PgSmallSerialBuilder, _a107, _b80, PgSmallSerial;
|
20734
20810
|
var init_smallserial = __esm({
|
20735
20811
|
"../drizzle-orm/dist/pg-core/columns/smallserial.js"() {
|
20736
20812
|
"use strict";
|
20737
20813
|
init_entity();
|
20738
20814
|
init_common2();
|
20739
|
-
PgSmallSerialBuilder = class extends (
|
20815
|
+
PgSmallSerialBuilder = class extends (_b79 = PgColumnBuilder, _a106 = entityKind, _b79) {
|
20740
20816
|
constructor(name2) {
|
20741
20817
|
super(name2, "number", "PgSmallSerial");
|
20742
20818
|
this.config.hasDefault = true;
|
@@ -20750,24 +20826,24 @@ var init_smallserial = __esm({
|
|
20750
20826
|
);
|
20751
20827
|
}
|
20752
20828
|
};
|
20753
|
-
__publicField(PgSmallSerialBuilder,
|
20754
|
-
PgSmallSerial = class extends (
|
20829
|
+
__publicField(PgSmallSerialBuilder, _a106, "PgSmallSerialBuilder");
|
20830
|
+
PgSmallSerial = class extends (_b80 = PgColumn, _a107 = entityKind, _b80) {
|
20755
20831
|
getSQLType() {
|
20756
20832
|
return "smallserial";
|
20757
20833
|
}
|
20758
20834
|
};
|
20759
|
-
__publicField(PgSmallSerial,
|
20835
|
+
__publicField(PgSmallSerial, _a107, "PgSmallSerial");
|
20760
20836
|
}
|
20761
20837
|
});
|
20762
20838
|
|
20763
20839
|
// ../drizzle-orm/dist/pg-core/columns/text.js
|
20764
|
-
var
|
20840
|
+
var _a108, _b81, PgTextBuilder, _a109, _b82, PgText;
|
20765
20841
|
var init_text = __esm({
|
20766
20842
|
"../drizzle-orm/dist/pg-core/columns/text.js"() {
|
20767
20843
|
"use strict";
|
20768
20844
|
init_entity();
|
20769
20845
|
init_common2();
|
20770
|
-
PgTextBuilder = class extends (
|
20846
|
+
PgTextBuilder = class extends (_b81 = PgColumnBuilder, _a108 = entityKind, _b81) {
|
20771
20847
|
constructor(name2, config) {
|
20772
20848
|
super(name2, "string", "PgText");
|
20773
20849
|
this.config.enumValues = config.enum;
|
@@ -20777,8 +20853,8 @@ var init_text = __esm({
|
|
20777
20853
|
return new PgText(table4, this.config);
|
20778
20854
|
}
|
20779
20855
|
};
|
20780
|
-
__publicField(PgTextBuilder,
|
20781
|
-
PgText = class extends (
|
20856
|
+
__publicField(PgTextBuilder, _a108, "PgTextBuilder");
|
20857
|
+
PgText = class extends (_b82 = PgColumn, _a109 = entityKind, _b82) {
|
20782
20858
|
constructor() {
|
20783
20859
|
super(...arguments);
|
20784
20860
|
__publicField(this, "enumValues", this.config.enumValues);
|
@@ -20787,19 +20863,19 @@ var init_text = __esm({
|
|
20787
20863
|
return "text";
|
20788
20864
|
}
|
20789
20865
|
};
|
20790
|
-
__publicField(PgText,
|
20866
|
+
__publicField(PgText, _a109, "PgText");
|
20791
20867
|
}
|
20792
20868
|
});
|
20793
20869
|
|
20794
20870
|
// ../drizzle-orm/dist/pg-core/columns/time.js
|
20795
|
-
var
|
20871
|
+
var _a110, _b83, PgTimeBuilder, _a111, _b84, PgTime;
|
20796
20872
|
var init_time = __esm({
|
20797
20873
|
"../drizzle-orm/dist/pg-core/columns/time.js"() {
|
20798
20874
|
"use strict";
|
20799
20875
|
init_entity();
|
20800
20876
|
init_common2();
|
20801
20877
|
init_date_common();
|
20802
|
-
PgTimeBuilder = class extends (
|
20878
|
+
PgTimeBuilder = class extends (_b83 = PgDateColumnBaseBuilder, _a110 = entityKind, _b83) {
|
20803
20879
|
constructor(name2, withTimezone, precision) {
|
20804
20880
|
super(name2, "string", "PgTime");
|
20805
20881
|
this.withTimezone = withTimezone;
|
@@ -20812,8 +20888,8 @@ var init_time = __esm({
|
|
20812
20888
|
return new PgTime(table4, this.config);
|
20813
20889
|
}
|
20814
20890
|
};
|
20815
|
-
__publicField(PgTimeBuilder,
|
20816
|
-
PgTime = class extends (
|
20891
|
+
__publicField(PgTimeBuilder, _a110, "PgTimeBuilder");
|
20892
|
+
PgTime = class extends (_b84 = PgColumn, _a111 = entityKind, _b84) {
|
20817
20893
|
constructor(table4, config) {
|
20818
20894
|
super(table4, config);
|
20819
20895
|
__publicField(this, "withTimezone");
|
@@ -20826,19 +20902,19 @@ var init_time = __esm({
|
|
20826
20902
|
return `time${precision}${this.withTimezone ? " with time zone" : ""}`;
|
20827
20903
|
}
|
20828
20904
|
};
|
20829
|
-
__publicField(PgTime,
|
20905
|
+
__publicField(PgTime, _a111, "PgTime");
|
20830
20906
|
}
|
20831
20907
|
});
|
20832
20908
|
|
20833
20909
|
// ../drizzle-orm/dist/pg-core/columns/timestamp.js
|
20834
|
-
var
|
20910
|
+
var _a112, _b85, PgTimestampBuilder, _a113, _b86, PgTimestamp, _a114, _b87, PgTimestampStringBuilder, _a115, _b88, PgTimestampString;
|
20835
20911
|
var init_timestamp = __esm({
|
20836
20912
|
"../drizzle-orm/dist/pg-core/columns/timestamp.js"() {
|
20837
20913
|
"use strict";
|
20838
20914
|
init_entity();
|
20839
20915
|
init_common2();
|
20840
20916
|
init_date_common();
|
20841
|
-
PgTimestampBuilder = class extends (
|
20917
|
+
PgTimestampBuilder = class extends (_b85 = PgDateColumnBaseBuilder, _a112 = entityKind, _b85) {
|
20842
20918
|
constructor(name2, withTimezone, precision) {
|
20843
20919
|
super(name2, "date", "PgTimestamp");
|
20844
20920
|
this.config.withTimezone = withTimezone;
|
@@ -20849,8 +20925,8 @@ var init_timestamp = __esm({
|
|
20849
20925
|
return new PgTimestamp(table4, this.config);
|
20850
20926
|
}
|
20851
20927
|
};
|
20852
|
-
__publicField(PgTimestampBuilder,
|
20853
|
-
PgTimestamp = class extends (
|
20928
|
+
__publicField(PgTimestampBuilder, _a112, "PgTimestampBuilder");
|
20929
|
+
PgTimestamp = class extends (_b86 = PgColumn, _a113 = entityKind, _b86) {
|
20854
20930
|
constructor(table4, config) {
|
20855
20931
|
super(table4, config);
|
20856
20932
|
__publicField(this, "withTimezone");
|
@@ -20869,8 +20945,8 @@ var init_timestamp = __esm({
|
|
20869
20945
|
return `timestamp${precision}${this.withTimezone ? " with time zone" : ""}`;
|
20870
20946
|
}
|
20871
20947
|
};
|
20872
|
-
__publicField(PgTimestamp,
|
20873
|
-
PgTimestampStringBuilder = class extends (
|
20948
|
+
__publicField(PgTimestamp, _a113, "PgTimestamp");
|
20949
|
+
PgTimestampStringBuilder = class extends (_b87 = PgDateColumnBaseBuilder, _a114 = entityKind, _b87) {
|
20874
20950
|
constructor(name2, withTimezone, precision) {
|
20875
20951
|
super(name2, "string", "PgTimestampString");
|
20876
20952
|
this.config.withTimezone = withTimezone;
|
@@ -20884,8 +20960,8 @@ var init_timestamp = __esm({
|
|
20884
20960
|
);
|
20885
20961
|
}
|
20886
20962
|
};
|
20887
|
-
__publicField(PgTimestampStringBuilder,
|
20888
|
-
PgTimestampString = class extends (
|
20963
|
+
__publicField(PgTimestampStringBuilder, _a114, "PgTimestampStringBuilder");
|
20964
|
+
PgTimestampString = class extends (_b88 = PgColumn, _a115 = entityKind, _b88) {
|
20889
20965
|
constructor(table4, config) {
|
20890
20966
|
super(table4, config);
|
20891
20967
|
__publicField(this, "withTimezone");
|
@@ -20898,19 +20974,19 @@ var init_timestamp = __esm({
|
|
20898
20974
|
return `timestamp${precision}${this.withTimezone ? " with time zone" : ""}`;
|
20899
20975
|
}
|
20900
20976
|
};
|
20901
|
-
__publicField(PgTimestampString,
|
20977
|
+
__publicField(PgTimestampString, _a115, "PgTimestampString");
|
20902
20978
|
}
|
20903
20979
|
});
|
20904
20980
|
|
20905
20981
|
// ../drizzle-orm/dist/pg-core/columns/uuid.js
|
20906
|
-
var
|
20982
|
+
var _a116, _b89, PgUUIDBuilder, _a117, _b90, PgUUID;
|
20907
20983
|
var init_uuid = __esm({
|
20908
20984
|
"../drizzle-orm/dist/pg-core/columns/uuid.js"() {
|
20909
20985
|
"use strict";
|
20910
20986
|
init_entity();
|
20911
20987
|
init_sql();
|
20912
20988
|
init_common2();
|
20913
|
-
PgUUIDBuilder = class extends (
|
20989
|
+
PgUUIDBuilder = class extends (_b89 = PgColumnBuilder, _a116 = entityKind, _b89) {
|
20914
20990
|
constructor(name2) {
|
20915
20991
|
super(name2, "string", "PgUUID");
|
20916
20992
|
}
|
@@ -20925,24 +21001,24 @@ var init_uuid = __esm({
|
|
20925
21001
|
return new PgUUID(table4, this.config);
|
20926
21002
|
}
|
20927
21003
|
};
|
20928
|
-
__publicField(PgUUIDBuilder,
|
20929
|
-
PgUUID = class extends (
|
21004
|
+
__publicField(PgUUIDBuilder, _a116, "PgUUIDBuilder");
|
21005
|
+
PgUUID = class extends (_b90 = PgColumn, _a117 = entityKind, _b90) {
|
20930
21006
|
getSQLType() {
|
20931
21007
|
return "uuid";
|
20932
21008
|
}
|
20933
21009
|
};
|
20934
|
-
__publicField(PgUUID,
|
21010
|
+
__publicField(PgUUID, _a117, "PgUUID");
|
20935
21011
|
}
|
20936
21012
|
});
|
20937
21013
|
|
20938
21014
|
// ../drizzle-orm/dist/pg-core/columns/varchar.js
|
20939
|
-
var
|
21015
|
+
var _a118, _b91, PgVarcharBuilder, _a119, _b92, PgVarchar;
|
20940
21016
|
var init_varchar = __esm({
|
20941
21017
|
"../drizzle-orm/dist/pg-core/columns/varchar.js"() {
|
20942
21018
|
"use strict";
|
20943
21019
|
init_entity();
|
20944
21020
|
init_common2();
|
20945
|
-
PgVarcharBuilder = class extends (
|
21021
|
+
PgVarcharBuilder = class extends (_b91 = PgColumnBuilder, _a118 = entityKind, _b91) {
|
20946
21022
|
constructor(name2, config) {
|
20947
21023
|
super(name2, "string", "PgVarchar");
|
20948
21024
|
this.config.length = config.length;
|
@@ -20953,8 +21029,8 @@ var init_varchar = __esm({
|
|
20953
21029
|
return new PgVarchar(table4, this.config);
|
20954
21030
|
}
|
20955
21031
|
};
|
20956
|
-
__publicField(PgVarcharBuilder,
|
20957
|
-
PgVarchar = class extends (
|
21032
|
+
__publicField(PgVarcharBuilder, _a118, "PgVarcharBuilder");
|
21033
|
+
PgVarchar = class extends (_b92 = PgColumn, _a119 = entityKind, _b92) {
|
20958
21034
|
constructor() {
|
20959
21035
|
super(...arguments);
|
20960
21036
|
__publicField(this, "length", this.config.length);
|
@@ -20964,18 +21040,18 @@ var init_varchar = __esm({
|
|
20964
21040
|
return this.length === void 0 ? `varchar` : `varchar(${this.length})`;
|
20965
21041
|
}
|
20966
21042
|
};
|
20967
|
-
__publicField(PgVarchar,
|
21043
|
+
__publicField(PgVarchar, _a119, "PgVarchar");
|
20968
21044
|
}
|
20969
21045
|
});
|
20970
21046
|
|
20971
21047
|
// ../drizzle-orm/dist/pg-core/columns/vector_extension/bit.js
|
20972
|
-
var
|
21048
|
+
var _a120, _b93, PgBinaryVectorBuilder, _a121, _b94, PgBinaryVector;
|
20973
21049
|
var init_bit = __esm({
|
20974
21050
|
"../drizzle-orm/dist/pg-core/columns/vector_extension/bit.js"() {
|
20975
21051
|
"use strict";
|
20976
21052
|
init_entity();
|
20977
21053
|
init_common2();
|
20978
|
-
PgBinaryVectorBuilder = class extends (
|
21054
|
+
PgBinaryVectorBuilder = class extends (_b93 = PgColumnBuilder, _a120 = entityKind, _b93) {
|
20979
21055
|
constructor(name2, config) {
|
20980
21056
|
super(name2, "string", "PgBinaryVector");
|
20981
21057
|
this.config.dimensions = config.dimensions;
|
@@ -20988,8 +21064,8 @@ var init_bit = __esm({
|
|
20988
21064
|
);
|
20989
21065
|
}
|
20990
21066
|
};
|
20991
|
-
__publicField(PgBinaryVectorBuilder,
|
20992
|
-
PgBinaryVector = class extends (
|
21067
|
+
__publicField(PgBinaryVectorBuilder, _a120, "PgBinaryVectorBuilder");
|
21068
|
+
PgBinaryVector = class extends (_b94 = PgColumn, _a121 = entityKind, _b94) {
|
20993
21069
|
constructor() {
|
20994
21070
|
super(...arguments);
|
20995
21071
|
__publicField(this, "dimensions", this.config.dimensions);
|
@@ -20998,18 +21074,18 @@ var init_bit = __esm({
|
|
20998
21074
|
return `bit(${this.dimensions})`;
|
20999
21075
|
}
|
21000
21076
|
};
|
21001
|
-
__publicField(PgBinaryVector,
|
21077
|
+
__publicField(PgBinaryVector, _a121, "PgBinaryVector");
|
21002
21078
|
}
|
21003
21079
|
});
|
21004
21080
|
|
21005
21081
|
// ../drizzle-orm/dist/pg-core/columns/vector_extension/halfvec.js
|
21006
|
-
var
|
21082
|
+
var _a122, _b95, PgHalfVectorBuilder, _a123, _b96, PgHalfVector;
|
21007
21083
|
var init_halfvec = __esm({
|
21008
21084
|
"../drizzle-orm/dist/pg-core/columns/vector_extension/halfvec.js"() {
|
21009
21085
|
"use strict";
|
21010
21086
|
init_entity();
|
21011
21087
|
init_common2();
|
21012
|
-
PgHalfVectorBuilder = class extends (
|
21088
|
+
PgHalfVectorBuilder = class extends (_b95 = PgColumnBuilder, _a122 = entityKind, _b95) {
|
21013
21089
|
constructor(name2, config) {
|
21014
21090
|
super(name2, "array", "PgHalfVector");
|
21015
21091
|
this.config.dimensions = config.dimensions;
|
@@ -21022,8 +21098,8 @@ var init_halfvec = __esm({
|
|
21022
21098
|
);
|
21023
21099
|
}
|
21024
21100
|
};
|
21025
|
-
__publicField(PgHalfVectorBuilder,
|
21026
|
-
PgHalfVector = class extends (
|
21101
|
+
__publicField(PgHalfVectorBuilder, _a122, "PgHalfVectorBuilder");
|
21102
|
+
PgHalfVector = class extends (_b96 = PgColumn, _a123 = entityKind, _b96) {
|
21027
21103
|
constructor() {
|
21028
21104
|
super(...arguments);
|
21029
21105
|
__publicField(this, "dimensions", this.config.dimensions);
|
@@ -21038,18 +21114,18 @@ var init_halfvec = __esm({
|
|
21038
21114
|
return value.slice(1, -1).split(",").map((v) => Number.parseFloat(v));
|
21039
21115
|
}
|
21040
21116
|
};
|
21041
|
-
__publicField(PgHalfVector,
|
21117
|
+
__publicField(PgHalfVector, _a123, "PgHalfVector");
|
21042
21118
|
}
|
21043
21119
|
});
|
21044
21120
|
|
21045
21121
|
// ../drizzle-orm/dist/pg-core/columns/vector_extension/sparsevec.js
|
21046
|
-
var
|
21122
|
+
var _a124, _b97, PgSparseVectorBuilder, _a125, _b98, PgSparseVector;
|
21047
21123
|
var init_sparsevec = __esm({
|
21048
21124
|
"../drizzle-orm/dist/pg-core/columns/vector_extension/sparsevec.js"() {
|
21049
21125
|
"use strict";
|
21050
21126
|
init_entity();
|
21051
21127
|
init_common2();
|
21052
|
-
PgSparseVectorBuilder = class extends (
|
21128
|
+
PgSparseVectorBuilder = class extends (_b97 = PgColumnBuilder, _a124 = entityKind, _b97) {
|
21053
21129
|
constructor(name2, config) {
|
21054
21130
|
super(name2, "string", "PgSparseVector");
|
21055
21131
|
this.config.dimensions = config.dimensions;
|
@@ -21062,8 +21138,8 @@ var init_sparsevec = __esm({
|
|
21062
21138
|
);
|
21063
21139
|
}
|
21064
21140
|
};
|
21065
|
-
__publicField(PgSparseVectorBuilder,
|
21066
|
-
PgSparseVector = class extends (
|
21141
|
+
__publicField(PgSparseVectorBuilder, _a124, "PgSparseVectorBuilder");
|
21142
|
+
PgSparseVector = class extends (_b98 = PgColumn, _a125 = entityKind, _b98) {
|
21067
21143
|
constructor() {
|
21068
21144
|
super(...arguments);
|
21069
21145
|
__publicField(this, "dimensions", this.config.dimensions);
|
@@ -21072,18 +21148,18 @@ var init_sparsevec = __esm({
|
|
21072
21148
|
return `sparsevec(${this.dimensions})`;
|
21073
21149
|
}
|
21074
21150
|
};
|
21075
|
-
__publicField(PgSparseVector,
|
21151
|
+
__publicField(PgSparseVector, _a125, "PgSparseVector");
|
21076
21152
|
}
|
21077
21153
|
});
|
21078
21154
|
|
21079
21155
|
// ../drizzle-orm/dist/pg-core/columns/vector_extension/vector.js
|
21080
|
-
var
|
21156
|
+
var _a126, _b99, PgVectorBuilder, _a127, _b100, PgVector;
|
21081
21157
|
var init_vector3 = __esm({
|
21082
21158
|
"../drizzle-orm/dist/pg-core/columns/vector_extension/vector.js"() {
|
21083
21159
|
"use strict";
|
21084
21160
|
init_entity();
|
21085
21161
|
init_common2();
|
21086
|
-
PgVectorBuilder = class extends (
|
21162
|
+
PgVectorBuilder = class extends (_b99 = PgColumnBuilder, _a126 = entityKind, _b99) {
|
21087
21163
|
constructor(name2, config) {
|
21088
21164
|
super(name2, "array", "PgVector");
|
21089
21165
|
this.config.dimensions = config.dimensions;
|
@@ -21093,8 +21169,8 @@ var init_vector3 = __esm({
|
|
21093
21169
|
return new PgVector(table4, this.config);
|
21094
21170
|
}
|
21095
21171
|
};
|
21096
|
-
__publicField(PgVectorBuilder,
|
21097
|
-
PgVector = class extends (
|
21172
|
+
__publicField(PgVectorBuilder, _a126, "PgVectorBuilder");
|
21173
|
+
PgVector = class extends (_b100 = PgColumn, _a127 = entityKind, _b100) {
|
21098
21174
|
constructor() {
|
21099
21175
|
super(...arguments);
|
21100
21176
|
__publicField(this, "dimensions", this.config.dimensions);
|
@@ -21109,7 +21185,7 @@ var init_vector3 = __esm({
|
|
21109
21185
|
return value.slice(1, -1).split(",").map((v) => Number.parseFloat(v));
|
21110
21186
|
}
|
21111
21187
|
};
|
21112
|
-
__publicField(PgVector,
|
21188
|
+
__publicField(PgVector, _a127, "PgVector");
|
21113
21189
|
}
|
21114
21190
|
});
|
21115
21191
|
|
@@ -21137,6 +21213,7 @@ var init_columns = __esm({
|
|
21137
21213
|
init_macaddr8();
|
21138
21214
|
init_numeric();
|
21139
21215
|
init_point();
|
21216
|
+
init_geography();
|
21140
21217
|
init_geometry();
|
21141
21218
|
init_real();
|
21142
21219
|
init_serial();
|
@@ -21155,7 +21232,7 @@ var init_columns = __esm({
|
|
21155
21232
|
});
|
21156
21233
|
|
21157
21234
|
// ../drizzle-orm/dist/pg-core/query-builders/delete.js
|
21158
|
-
var
|
21235
|
+
var _a128, _b101, PgDeleteBase;
|
21159
21236
|
var init_delete = __esm({
|
21160
21237
|
"../drizzle-orm/dist/pg-core/query-builders/delete.js"() {
|
21161
21238
|
"use strict";
|
@@ -21164,7 +21241,7 @@ var init_delete = __esm({
|
|
21164
21241
|
init_table();
|
21165
21242
|
init_tracing();
|
21166
21243
|
init_utils2();
|
21167
|
-
PgDeleteBase = class extends (
|
21244
|
+
PgDeleteBase = class extends (_b101 = QueryPromise, _a128 = entityKind, _b101) {
|
21168
21245
|
constructor(table4, session, dialect7, withList) {
|
21169
21246
|
super();
|
21170
21247
|
__publicField(this, "config");
|
@@ -21235,12 +21312,12 @@ var init_delete = __esm({
|
|
21235
21312
|
return this;
|
21236
21313
|
}
|
21237
21314
|
};
|
21238
|
-
__publicField(PgDeleteBase,
|
21315
|
+
__publicField(PgDeleteBase, _a128, "PgDelete");
|
21239
21316
|
}
|
21240
21317
|
});
|
21241
21318
|
|
21242
21319
|
// ../drizzle-orm/dist/pg-core/query-builders/insert.js
|
21243
|
-
var
|
21320
|
+
var _a129, PgInsertBuilder, _a130, _b102, PgInsertBase;
|
21244
21321
|
var init_insert = __esm({
|
21245
21322
|
"../drizzle-orm/dist/pg-core/query-builders/insert.js"() {
|
21246
21323
|
"use strict";
|
@@ -21250,7 +21327,7 @@ var init_insert = __esm({
|
|
21250
21327
|
init_table();
|
21251
21328
|
init_tracing();
|
21252
21329
|
init_utils2();
|
21253
|
-
|
21330
|
+
_a129 = entityKind;
|
21254
21331
|
PgInsertBuilder = class {
|
21255
21332
|
constructor(table4, session, dialect7, withList) {
|
21256
21333
|
this.table = table4;
|
@@ -21275,8 +21352,8 @@ var init_insert = __esm({
|
|
21275
21352
|
return new PgInsertBase(this.table, mappedValues, this.session, this.dialect, this.withList);
|
21276
21353
|
}
|
21277
21354
|
};
|
21278
|
-
__publicField(PgInsertBuilder,
|
21279
|
-
PgInsertBase = class extends (
|
21355
|
+
__publicField(PgInsertBuilder, _a129, "PgInsertBuilder");
|
21356
|
+
PgInsertBase = class extends (_b102 = QueryPromise, _a130 = entityKind, _b102) {
|
21280
21357
|
constructor(table4, values, session, dialect7, withList) {
|
21281
21358
|
super();
|
21282
21359
|
__publicField(this, "config");
|
@@ -21391,25 +21468,25 @@ var init_insert = __esm({
|
|
21391
21468
|
return this;
|
21392
21469
|
}
|
21393
21470
|
};
|
21394
|
-
__publicField(PgInsertBase,
|
21471
|
+
__publicField(PgInsertBase, _a130, "PgInsert");
|
21395
21472
|
}
|
21396
21473
|
});
|
21397
21474
|
|
21398
21475
|
// ../drizzle-orm/dist/pg-core/view-base.js
|
21399
|
-
var
|
21476
|
+
var _a131, _b103, PgViewBase;
|
21400
21477
|
var init_view_base = __esm({
|
21401
21478
|
"../drizzle-orm/dist/pg-core/view-base.js"() {
|
21402
21479
|
"use strict";
|
21403
21480
|
init_entity();
|
21404
21481
|
init_sql();
|
21405
|
-
PgViewBase = class extends (
|
21482
|
+
PgViewBase = class extends (_b103 = View, _a131 = entityKind, _b103) {
|
21406
21483
|
};
|
21407
|
-
__publicField(PgViewBase,
|
21484
|
+
__publicField(PgViewBase, _a131, "PgViewBase");
|
21408
21485
|
}
|
21409
21486
|
});
|
21410
21487
|
|
21411
21488
|
// ../drizzle-orm/dist/pg-core/dialect.js
|
21412
|
-
var
|
21489
|
+
var _a132, PgDialect;
|
21413
21490
|
var init_dialect = __esm({
|
21414
21491
|
"../drizzle-orm/dist/pg-core/dialect.js"() {
|
21415
21492
|
"use strict";
|
@@ -21427,7 +21504,7 @@ var init_dialect = __esm({
|
|
21427
21504
|
init_utils2();
|
21428
21505
|
init_view_common();
|
21429
21506
|
init_view_base();
|
21430
|
-
|
21507
|
+
_a132 = entityKind;
|
21431
21508
|
PgDialect = class {
|
21432
21509
|
async migrate(migrations, session, config) {
|
21433
21510
|
const migrationsTable = typeof config === "string" ? "__drizzle_migrations" : config.migrationsTable ?? "__drizzle_migrations";
|
@@ -22487,12 +22564,12 @@ var init_dialect = __esm({
|
|
22487
22564
|
};
|
22488
22565
|
}
|
22489
22566
|
};
|
22490
|
-
__publicField(PgDialect,
|
22567
|
+
__publicField(PgDialect, _a132, "PgDialect");
|
22491
22568
|
}
|
22492
22569
|
});
|
22493
22570
|
|
22494
22571
|
// ../drizzle-orm/dist/selection-proxy.js
|
22495
|
-
var
|
22572
|
+
var _a133, _SelectionProxyHandler, SelectionProxyHandler;
|
22496
22573
|
var init_selection_proxy = __esm({
|
22497
22574
|
"../drizzle-orm/dist/selection-proxy.js"() {
|
22498
22575
|
"use strict";
|
@@ -22502,7 +22579,7 @@ var init_selection_proxy = __esm({
|
|
22502
22579
|
init_sql();
|
22503
22580
|
init_subquery();
|
22504
22581
|
init_view_common();
|
22505
|
-
|
22582
|
+
_a133 = entityKind;
|
22506
22583
|
_SelectionProxyHandler = class _SelectionProxyHandler {
|
22507
22584
|
constructor(config) {
|
22508
22585
|
__publicField(this, "config");
|
@@ -22568,25 +22645,25 @@ var init_selection_proxy = __esm({
|
|
22568
22645
|
return new Proxy(value, new _SelectionProxyHandler(this.config));
|
22569
22646
|
}
|
22570
22647
|
};
|
22571
|
-
__publicField(_SelectionProxyHandler,
|
22648
|
+
__publicField(_SelectionProxyHandler, _a133, "SelectionProxyHandler");
|
22572
22649
|
SelectionProxyHandler = _SelectionProxyHandler;
|
22573
22650
|
}
|
22574
22651
|
});
|
22575
22652
|
|
22576
22653
|
// ../drizzle-orm/dist/query-builders/query-builder.js
|
22577
|
-
var
|
22654
|
+
var _a134, TypedQueryBuilder;
|
22578
22655
|
var init_query_builder = __esm({
|
22579
22656
|
"../drizzle-orm/dist/query-builders/query-builder.js"() {
|
22580
22657
|
"use strict";
|
22581
22658
|
init_entity();
|
22582
|
-
|
22659
|
+
_a134 = entityKind;
|
22583
22660
|
TypedQueryBuilder = class {
|
22584
22661
|
/** @internal */
|
22585
22662
|
getSelectedFields() {
|
22586
22663
|
return this._.selectedFields;
|
22587
22664
|
}
|
22588
22665
|
};
|
22589
|
-
__publicField(TypedQueryBuilder,
|
22666
|
+
__publicField(TypedQueryBuilder, _a134, "TypedQueryBuilder");
|
22590
22667
|
}
|
22591
22668
|
});
|
22592
22669
|
|
@@ -22608,7 +22685,7 @@ function createSetOperator(type, isAll) {
|
|
22608
22685
|
return leftSelect.addSetOperators(setOperators);
|
22609
22686
|
};
|
22610
22687
|
}
|
22611
|
-
var
|
22688
|
+
var _a135, PgSelectBuilder, _a136, _b104, PgSelectQueryBuilderBase, _a137, _b105, PgSelectBase, getPgSetOperators, union, unionAll, intersect, intersectAll, except, exceptAll;
|
22612
22689
|
var init_select2 = __esm({
|
22613
22690
|
"../drizzle-orm/dist/pg-core/query-builders/select.js"() {
|
22614
22691
|
"use strict";
|
@@ -22624,7 +22701,7 @@ var init_select2 = __esm({
|
|
22624
22701
|
init_utils2();
|
22625
22702
|
init_utils2();
|
22626
22703
|
init_view_common();
|
22627
|
-
|
22704
|
+
_a135 = entityKind;
|
22628
22705
|
PgSelectBuilder = class {
|
22629
22706
|
constructor(config) {
|
22630
22707
|
__publicField(this, "fields");
|
@@ -22673,8 +22750,8 @@ var init_select2 = __esm({
|
|
22673
22750
|
});
|
22674
22751
|
}
|
22675
22752
|
};
|
22676
|
-
__publicField(PgSelectBuilder,
|
22677
|
-
PgSelectQueryBuilderBase = class extends (
|
22753
|
+
__publicField(PgSelectBuilder, _a135, "PgSelectBuilder");
|
22754
|
+
PgSelectQueryBuilderBase = class extends (_b104 = TypedQueryBuilder, _a136 = entityKind, _b104) {
|
22678
22755
|
constructor({ table: table4, fields, isPartialSelect, session, dialect: dialect7, withList, distinct }) {
|
22679
22756
|
super();
|
22680
22757
|
__publicField(this, "_");
|
@@ -23274,8 +23351,8 @@ var init_select2 = __esm({
|
|
23274
23351
|
return this;
|
23275
23352
|
}
|
23276
23353
|
};
|
23277
|
-
__publicField(PgSelectQueryBuilderBase,
|
23278
|
-
PgSelectBase = class extends (
|
23354
|
+
__publicField(PgSelectQueryBuilderBase, _a136, "PgSelectQueryBuilder");
|
23355
|
+
PgSelectBase = class extends (_b105 = PgSelectQueryBuilderBase, _a137 = entityKind, _b105) {
|
23279
23356
|
constructor() {
|
23280
23357
|
super(...arguments);
|
23281
23358
|
__publicField(this, "execute", (placeholderValues) => {
|
@@ -23308,7 +23385,7 @@ var init_select2 = __esm({
|
|
23308
23385
|
return this._prepare(name2);
|
23309
23386
|
}
|
23310
23387
|
};
|
23311
|
-
__publicField(PgSelectBase,
|
23388
|
+
__publicField(PgSelectBase, _a137, "PgSelect");
|
23312
23389
|
applyMixins(PgSelectBase, [QueryPromise]);
|
23313
23390
|
getPgSetOperators = () => ({
|
23314
23391
|
union,
|
@@ -23328,7 +23405,7 @@ var init_select2 = __esm({
|
|
23328
23405
|
});
|
23329
23406
|
|
23330
23407
|
// ../drizzle-orm/dist/pg-core/query-builders/query-builder.js
|
23331
|
-
var
|
23408
|
+
var _a138, QueryBuilder;
|
23332
23409
|
var init_query_builder2 = __esm({
|
23333
23410
|
"../drizzle-orm/dist/pg-core/query-builders/query-builder.js"() {
|
23334
23411
|
"use strict";
|
@@ -23337,7 +23414,7 @@ var init_query_builder2 = __esm({
|
|
23337
23414
|
init_selection_proxy();
|
23338
23415
|
init_subquery();
|
23339
23416
|
init_select2();
|
23340
|
-
|
23417
|
+
_a138 = entityKind;
|
23341
23418
|
QueryBuilder = class {
|
23342
23419
|
constructor() {
|
23343
23420
|
__publicField(this, "dialect");
|
@@ -23415,19 +23492,19 @@ var init_query_builder2 = __esm({
|
|
23415
23492
|
return this.dialect;
|
23416
23493
|
}
|
23417
23494
|
};
|
23418
|
-
__publicField(QueryBuilder,
|
23495
|
+
__publicField(QueryBuilder, _a138, "PgQueryBuilder");
|
23419
23496
|
}
|
23420
23497
|
});
|
23421
23498
|
|
23422
23499
|
// ../drizzle-orm/dist/pg-core/query-builders/refresh-materialized-view.js
|
23423
|
-
var
|
23500
|
+
var _a139, _b106, PgRefreshMaterializedView;
|
23424
23501
|
var init_refresh_materialized_view = __esm({
|
23425
23502
|
"../drizzle-orm/dist/pg-core/query-builders/refresh-materialized-view.js"() {
|
23426
23503
|
"use strict";
|
23427
23504
|
init_entity();
|
23428
23505
|
init_query_promise();
|
23429
23506
|
init_tracing();
|
23430
|
-
PgRefreshMaterializedView = class extends (
|
23507
|
+
PgRefreshMaterializedView = class extends (_b106 = QueryPromise, _a139 = entityKind, _b106) {
|
23431
23508
|
constructor(view, session, dialect7) {
|
23432
23509
|
super();
|
23433
23510
|
__publicField(this, "config");
|
@@ -23472,7 +23549,7 @@ var init_refresh_materialized_view = __esm({
|
|
23472
23549
|
return this._prepare(name2);
|
23473
23550
|
}
|
23474
23551
|
};
|
23475
|
-
__publicField(PgRefreshMaterializedView,
|
23552
|
+
__publicField(PgRefreshMaterializedView, _a139, "PgRefreshMaterializedView");
|
23476
23553
|
}
|
23477
23554
|
});
|
23478
23555
|
|
@@ -23484,7 +23561,7 @@ var init_select_types = __esm({
|
|
23484
23561
|
});
|
23485
23562
|
|
23486
23563
|
// ../drizzle-orm/dist/pg-core/query-builders/update.js
|
23487
|
-
var
|
23564
|
+
var _a140, PgUpdateBuilder, _a141, _b107, PgUpdateBase;
|
23488
23565
|
var init_update = __esm({
|
23489
23566
|
"../drizzle-orm/dist/pg-core/query-builders/update.js"() {
|
23490
23567
|
"use strict";
|
@@ -23492,7 +23569,7 @@ var init_update = __esm({
|
|
23492
23569
|
init_query_promise();
|
23493
23570
|
init_table();
|
23494
23571
|
init_utils2();
|
23495
|
-
|
23572
|
+
_a140 = entityKind;
|
23496
23573
|
PgUpdateBuilder = class {
|
23497
23574
|
constructor(table4, session, dialect7, withList) {
|
23498
23575
|
this.table = table4;
|
@@ -23510,8 +23587,8 @@ var init_update = __esm({
|
|
23510
23587
|
);
|
23511
23588
|
}
|
23512
23589
|
};
|
23513
|
-
__publicField(PgUpdateBuilder,
|
23514
|
-
PgUpdateBase = class extends (
|
23590
|
+
__publicField(PgUpdateBuilder, _a140, "PgUpdateBuilder");
|
23591
|
+
PgUpdateBase = class extends (_b107 = QueryPromise, _a141 = entityKind, _b107) {
|
23515
23592
|
constructor(table4, set, session, dialect7, withList) {
|
23516
23593
|
super();
|
23517
23594
|
__publicField(this, "config");
|
@@ -23582,7 +23659,7 @@ var init_update = __esm({
|
|
23582
23659
|
return this;
|
23583
23660
|
}
|
23584
23661
|
};
|
23585
|
-
__publicField(PgUpdateBase,
|
23662
|
+
__publicField(PgUpdateBase, _a141, "PgUpdate");
|
23586
23663
|
}
|
23587
23664
|
});
|
23588
23665
|
|
@@ -23601,7 +23678,7 @@ var init_query_builders = __esm({
|
|
23601
23678
|
});
|
23602
23679
|
|
23603
23680
|
// ../drizzle-orm/dist/pg-core/query-builders/query.js
|
23604
|
-
var
|
23681
|
+
var _a142, RelationalQueryBuilder, _a143, _b108, PgRelationalQuery;
|
23605
23682
|
var init_query = __esm({
|
23606
23683
|
"../drizzle-orm/dist/pg-core/query-builders/query.js"() {
|
23607
23684
|
"use strict";
|
@@ -23609,7 +23686,7 @@ var init_query = __esm({
|
|
23609
23686
|
init_query_promise();
|
23610
23687
|
init_relations();
|
23611
23688
|
init_tracing();
|
23612
|
-
|
23689
|
+
_a142 = entityKind;
|
23613
23690
|
RelationalQueryBuilder = class {
|
23614
23691
|
constructor(fullSchema, schema4, tableNamesMap, table4, tableConfig, dialect7, session) {
|
23615
23692
|
this.fullSchema = fullSchema;
|
@@ -23647,8 +23724,8 @@ var init_query = __esm({
|
|
23647
23724
|
);
|
23648
23725
|
}
|
23649
23726
|
};
|
23650
|
-
__publicField(RelationalQueryBuilder,
|
23651
|
-
PgRelationalQuery = class extends (
|
23727
|
+
__publicField(RelationalQueryBuilder, _a142, "PgRelationalQueryBuilder");
|
23728
|
+
PgRelationalQuery = class extends (_b108 = QueryPromise, _a143 = entityKind, _b108) {
|
23652
23729
|
constructor(fullSchema, schema4, tableNamesMap, table4, tableConfig, dialect7, session, config, mode) {
|
23653
23730
|
super();
|
23654
23731
|
this.fullSchema = fullSchema;
|
@@ -23714,18 +23791,18 @@ var init_query = __esm({
|
|
23714
23791
|
});
|
23715
23792
|
}
|
23716
23793
|
};
|
23717
|
-
__publicField(PgRelationalQuery,
|
23794
|
+
__publicField(PgRelationalQuery, _a143, "PgRelationalQuery");
|
23718
23795
|
}
|
23719
23796
|
});
|
23720
23797
|
|
23721
23798
|
// ../drizzle-orm/dist/pg-core/query-builders/raw.js
|
23722
|
-
var
|
23799
|
+
var _a144, _b109, PgRaw;
|
23723
23800
|
var init_raw = __esm({
|
23724
23801
|
"../drizzle-orm/dist/pg-core/query-builders/raw.js"() {
|
23725
23802
|
"use strict";
|
23726
23803
|
init_entity();
|
23727
23804
|
init_query_promise();
|
23728
|
-
PgRaw = class extends (
|
23805
|
+
PgRaw = class extends (_b109 = QueryPromise, _a144 = entityKind, _b109) {
|
23729
23806
|
constructor(execute, sql2, query, mapBatchResult) {
|
23730
23807
|
super();
|
23731
23808
|
this.execute = execute;
|
@@ -23751,12 +23828,12 @@ var init_raw = __esm({
|
|
23751
23828
|
return false;
|
23752
23829
|
}
|
23753
23830
|
};
|
23754
|
-
__publicField(PgRaw,
|
23831
|
+
__publicField(PgRaw, _a144, "PgRaw");
|
23755
23832
|
}
|
23756
23833
|
});
|
23757
23834
|
|
23758
23835
|
// ../drizzle-orm/dist/pg-core/db.js
|
23759
|
-
var
|
23836
|
+
var _a145, PgDatabase;
|
23760
23837
|
var init_db = __esm({
|
23761
23838
|
"../drizzle-orm/dist/pg-core/db.js"() {
|
23762
23839
|
"use strict";
|
@@ -23767,7 +23844,7 @@ var init_db = __esm({
|
|
23767
23844
|
init_query();
|
23768
23845
|
init_raw();
|
23769
23846
|
init_refresh_materialized_view();
|
23770
|
-
|
23847
|
+
_a145 = entityKind;
|
23771
23848
|
PgDatabase = class {
|
23772
23849
|
constructor(dialect7, session, schema4) {
|
23773
23850
|
__publicField(this, "query");
|
@@ -24032,19 +24109,19 @@ var init_db = __esm({
|
|
24032
24109
|
return this.session.transaction(transaction, config);
|
24033
24110
|
}
|
24034
24111
|
};
|
24035
|
-
__publicField(PgDatabase,
|
24112
|
+
__publicField(PgDatabase, _a145, "PgDatabase");
|
24036
24113
|
}
|
24037
24114
|
});
|
24038
24115
|
|
24039
24116
|
// ../drizzle-orm/dist/pg-core/indexes.js
|
24040
|
-
var
|
24117
|
+
var _a146, IndexBuilderOn, _a147, IndexBuilder, _a148, Index2;
|
24041
24118
|
var init_indexes = __esm({
|
24042
24119
|
"../drizzle-orm/dist/pg-core/indexes.js"() {
|
24043
24120
|
"use strict";
|
24044
24121
|
init_sql();
|
24045
24122
|
init_entity();
|
24046
24123
|
init_columns();
|
24047
|
-
|
24124
|
+
_a146 = entityKind;
|
24048
24125
|
IndexBuilderOn = class {
|
24049
24126
|
constructor(unique, name2) {
|
24050
24127
|
this.unique = unique;
|
@@ -24111,8 +24188,8 @@ var init_indexes = __esm({
|
|
24111
24188
|
);
|
24112
24189
|
}
|
24113
24190
|
};
|
24114
|
-
__publicField(IndexBuilderOn,
|
24115
|
-
|
24191
|
+
__publicField(IndexBuilderOn, _a146, "PgIndexBuilderOn");
|
24192
|
+
_a147 = entityKind;
|
24116
24193
|
IndexBuilder = class {
|
24117
24194
|
constructor(columns, unique, only, name2, method = "btree") {
|
24118
24195
|
/** @internal */
|
@@ -24142,15 +24219,15 @@ var init_indexes = __esm({
|
|
24142
24219
|
return new Index2(this.config, table4);
|
24143
24220
|
}
|
24144
24221
|
};
|
24145
|
-
__publicField(IndexBuilder,
|
24146
|
-
|
24222
|
+
__publicField(IndexBuilder, _a147, "PgIndexBuilder");
|
24223
|
+
_a148 = entityKind;
|
24147
24224
|
Index2 = class {
|
24148
24225
|
constructor(config, table4) {
|
24149
24226
|
__publicField(this, "config");
|
24150
24227
|
this.config = { ...config, table: table4 };
|
24151
24228
|
}
|
24152
24229
|
};
|
24153
|
-
__publicField(Index2,
|
24230
|
+
__publicField(Index2, _a148, "PgIndex");
|
24154
24231
|
}
|
24155
24232
|
});
|
24156
24233
|
|
@@ -24161,12 +24238,12 @@ function pgSequenceWithSchema(name2, options, schema4) {
|
|
24161
24238
|
function isPgSequence(obj) {
|
24162
24239
|
return is(obj, PgSequence);
|
24163
24240
|
}
|
24164
|
-
var
|
24241
|
+
var _a149, PgSequence;
|
24165
24242
|
var init_sequence = __esm({
|
24166
24243
|
"../drizzle-orm/dist/pg-core/sequence.js"() {
|
24167
24244
|
"use strict";
|
24168
24245
|
init_entity();
|
24169
|
-
|
24246
|
+
_a149 = entityKind;
|
24170
24247
|
PgSequence = class {
|
24171
24248
|
constructor(seqName, seqOptions, schema4) {
|
24172
24249
|
this.seqName = seqName;
|
@@ -24174,7 +24251,7 @@ var init_sequence = __esm({
|
|
24174
24251
|
this.schema = schema4;
|
24175
24252
|
}
|
24176
24253
|
};
|
24177
|
-
__publicField(PgSequence,
|
24254
|
+
__publicField(PgSequence, _a149, "PgSequence");
|
24178
24255
|
}
|
24179
24256
|
});
|
24180
24257
|
|
@@ -24200,7 +24277,7 @@ function pgMaterializedViewWithSchema(name2, selection, schema4) {
|
|
24200
24277
|
}
|
24201
24278
|
return new MaterializedViewBuilder(name2, schema4);
|
24202
24279
|
}
|
24203
|
-
var
|
24280
|
+
var _a150, DefaultViewBuilderCore, _a151, _b110, ViewBuilder, _a152, _b111, ManualViewBuilder, _a153, MaterializedViewBuilderCore, _a154, _b112, MaterializedViewBuilder, _a155, _b113, ManualMaterializedViewBuilder, _a156, _b114, _c3, PgView, PgMaterializedViewConfig, _a157, _b115, _c4, PgMaterializedView;
|
24204
24281
|
var init_view = __esm({
|
24205
24282
|
"../drizzle-orm/dist/pg-core/view.js"() {
|
24206
24283
|
"use strict";
|
@@ -24211,7 +24288,7 @@ var init_view = __esm({
|
|
24211
24288
|
init_table2();
|
24212
24289
|
init_view_base();
|
24213
24290
|
init_view_common2();
|
24214
|
-
|
24291
|
+
_a150 = entityKind;
|
24215
24292
|
DefaultViewBuilderCore = class {
|
24216
24293
|
constructor(name2, schema4) {
|
24217
24294
|
__publicField(this, "config", {});
|
@@ -24223,8 +24300,8 @@ var init_view = __esm({
|
|
24223
24300
|
return this;
|
24224
24301
|
}
|
24225
24302
|
};
|
24226
|
-
__publicField(DefaultViewBuilderCore,
|
24227
|
-
ViewBuilder = class extends (
|
24303
|
+
__publicField(DefaultViewBuilderCore, _a150, "PgDefaultViewBuilderCore");
|
24304
|
+
ViewBuilder = class extends (_b110 = DefaultViewBuilderCore, _a151 = entityKind, _b110) {
|
24228
24305
|
as(qb) {
|
24229
24306
|
if (typeof qb === "function") {
|
24230
24307
|
qb = qb(new QueryBuilder());
|
@@ -24250,8 +24327,8 @@ var init_view = __esm({
|
|
24250
24327
|
);
|
24251
24328
|
}
|
24252
24329
|
};
|
24253
|
-
__publicField(ViewBuilder,
|
24254
|
-
ManualViewBuilder = class extends (
|
24330
|
+
__publicField(ViewBuilder, _a151, "PgViewBuilder");
|
24331
|
+
ManualViewBuilder = class extends (_b111 = DefaultViewBuilderCore, _a152 = entityKind, _b111) {
|
24255
24332
|
constructor(name2, columns, schema4) {
|
24256
24333
|
super(name2, schema4);
|
24257
24334
|
__publicField(this, "columns");
|
@@ -24296,8 +24373,8 @@ var init_view = __esm({
|
|
24296
24373
|
);
|
24297
24374
|
}
|
24298
24375
|
};
|
24299
|
-
__publicField(ManualViewBuilder,
|
24300
|
-
|
24376
|
+
__publicField(ManualViewBuilder, _a152, "PgManualViewBuilder");
|
24377
|
+
_a153 = entityKind;
|
24301
24378
|
MaterializedViewBuilderCore = class {
|
24302
24379
|
constructor(name2, schema4) {
|
24303
24380
|
__publicField(this, "config", {});
|
@@ -24321,8 +24398,8 @@ var init_view = __esm({
|
|
24321
24398
|
return this;
|
24322
24399
|
}
|
24323
24400
|
};
|
24324
|
-
__publicField(MaterializedViewBuilderCore,
|
24325
|
-
MaterializedViewBuilder = class extends (
|
24401
|
+
__publicField(MaterializedViewBuilderCore, _a153, "PgMaterializedViewBuilderCore");
|
24402
|
+
MaterializedViewBuilder = class extends (_b112 = MaterializedViewBuilderCore, _a154 = entityKind, _b112) {
|
24326
24403
|
as(qb) {
|
24327
24404
|
if (typeof qb === "function") {
|
24328
24405
|
qb = qb(new QueryBuilder());
|
@@ -24353,8 +24430,8 @@ var init_view = __esm({
|
|
24353
24430
|
);
|
24354
24431
|
}
|
24355
24432
|
};
|
24356
|
-
__publicField(MaterializedViewBuilder,
|
24357
|
-
ManualMaterializedViewBuilder = class extends (
|
24433
|
+
__publicField(MaterializedViewBuilder, _a154, "PgMaterializedViewBuilder");
|
24434
|
+
ManualMaterializedViewBuilder = class extends (_b113 = MaterializedViewBuilderCore, _a155 = entityKind, _b113) {
|
24358
24435
|
constructor(name2, columns, schema4) {
|
24359
24436
|
super(name2, schema4);
|
24360
24437
|
__publicField(this, "columns");
|
@@ -24399,11 +24476,11 @@ var init_view = __esm({
|
|
24399
24476
|
);
|
24400
24477
|
}
|
24401
24478
|
};
|
24402
|
-
__publicField(ManualMaterializedViewBuilder,
|
24403
|
-
PgView = class extends (_c3 = PgViewBase,
|
24479
|
+
__publicField(ManualMaterializedViewBuilder, _a155, "PgManualMaterializedViewBuilder");
|
24480
|
+
PgView = class extends (_c3 = PgViewBase, _b114 = entityKind, _a156 = PgViewConfig, _c3) {
|
24404
24481
|
constructor({ pgConfig, config }) {
|
24405
24482
|
super(config);
|
24406
|
-
__publicField(this,
|
24483
|
+
__publicField(this, _a156);
|
24407
24484
|
if (pgConfig) {
|
24408
24485
|
this[PgViewConfig] = {
|
24409
24486
|
with: pgConfig.with
|
@@ -24411,12 +24488,12 @@ var init_view = __esm({
|
|
24411
24488
|
}
|
24412
24489
|
}
|
24413
24490
|
};
|
24414
|
-
__publicField(PgView,
|
24491
|
+
__publicField(PgView, _b114, "PgView");
|
24415
24492
|
PgMaterializedViewConfig = Symbol.for("drizzle:PgMaterializedViewConfig");
|
24416
|
-
PgMaterializedView = class extends (_c4 = PgViewBase,
|
24493
|
+
PgMaterializedView = class extends (_c4 = PgViewBase, _b115 = entityKind, _a157 = PgMaterializedViewConfig, _c4) {
|
24417
24494
|
constructor({ pgConfig, config }) {
|
24418
24495
|
super(config);
|
24419
|
-
__publicField(this,
|
24496
|
+
__publicField(this, _a157);
|
24420
24497
|
this[PgMaterializedViewConfig] = {
|
24421
24498
|
with: pgConfig?.with,
|
24422
24499
|
using: pgConfig?.using,
|
@@ -24425,12 +24502,12 @@ var init_view = __esm({
|
|
24425
24502
|
};
|
24426
24503
|
}
|
24427
24504
|
};
|
24428
|
-
__publicField(PgMaterializedView,
|
24505
|
+
__publicField(PgMaterializedView, _b115, "PgMaterializedView");
|
24429
24506
|
}
|
24430
24507
|
});
|
24431
24508
|
|
24432
24509
|
// ../drizzle-orm/dist/pg-core/schema.js
|
24433
|
-
var
|
24510
|
+
var _a158, PgSchema5;
|
24434
24511
|
var init_schema = __esm({
|
24435
24512
|
"../drizzle-orm/dist/pg-core/schema.js"() {
|
24436
24513
|
"use strict";
|
@@ -24440,7 +24517,7 @@ var init_schema = __esm({
|
|
24440
24517
|
init_sequence();
|
24441
24518
|
init_table2();
|
24442
24519
|
init_view();
|
24443
|
-
|
24520
|
+
_a158 = entityKind;
|
24444
24521
|
PgSchema5 = class {
|
24445
24522
|
constructor(schemaName) {
|
24446
24523
|
__publicField(this, "table", (name2, columns, extraConfig) => {
|
@@ -24467,12 +24544,12 @@ var init_schema = __esm({
|
|
24467
24544
|
return true;
|
24468
24545
|
}
|
24469
24546
|
};
|
24470
|
-
__publicField(PgSchema5,
|
24547
|
+
__publicField(PgSchema5, _a158, "PgSchema");
|
24471
24548
|
}
|
24472
24549
|
});
|
24473
24550
|
|
24474
24551
|
// ../drizzle-orm/dist/pg-core/session.js
|
24475
|
-
var
|
24552
|
+
var _a159, PgPreparedQuery, _a160, PgSession, _a161, _b116, PgTransaction;
|
24476
24553
|
var init_session = __esm({
|
24477
24554
|
"../drizzle-orm/dist/pg-core/session.js"() {
|
24478
24555
|
"use strict";
|
@@ -24481,7 +24558,7 @@ var init_session = __esm({
|
|
24481
24558
|
init_sql2();
|
24482
24559
|
init_tracing();
|
24483
24560
|
init_db();
|
24484
|
-
|
24561
|
+
_a159 = entityKind;
|
24485
24562
|
PgPreparedQuery = class {
|
24486
24563
|
constructor(query) {
|
24487
24564
|
/** @internal */
|
@@ -24495,8 +24572,8 @@ var init_session = __esm({
|
|
24495
24572
|
return response;
|
24496
24573
|
}
|
24497
24574
|
};
|
24498
|
-
__publicField(PgPreparedQuery,
|
24499
|
-
|
24575
|
+
__publicField(PgPreparedQuery, _a159, "PgPreparedQuery");
|
24576
|
+
_a160 = entityKind;
|
24500
24577
|
PgSession = class {
|
24501
24578
|
constructor(dialect7) {
|
24502
24579
|
this.dialect = dialect7;
|
@@ -24523,8 +24600,8 @@ var init_session = __esm({
|
|
24523
24600
|
).all();
|
24524
24601
|
}
|
24525
24602
|
};
|
24526
|
-
__publicField(PgSession,
|
24527
|
-
PgTransaction = class extends (
|
24603
|
+
__publicField(PgSession, _a160, "PgSession");
|
24604
|
+
PgTransaction = class extends (_b116 = PgDatabase, _a161 = entityKind, _b116) {
|
24528
24605
|
constructor(dialect7, session, schema4, nestedIndex = 0) {
|
24529
24606
|
super(dialect7, session, schema4);
|
24530
24607
|
this.schema = schema4;
|
@@ -24551,7 +24628,7 @@ var init_session = __esm({
|
|
24551
24628
|
return this.session.execute(sql`set transaction ${this.getTransactionConfigSQL(config)}`);
|
24552
24629
|
}
|
24553
24630
|
};
|
24554
|
-
__publicField(PgTransaction,
|
24631
|
+
__publicField(PgTransaction, _a161, "PgTransaction");
|
24555
24632
|
}
|
24556
24633
|
});
|
24557
24634
|
|
@@ -25372,11 +25449,12 @@ ${withStyle.errorWarning(
|
|
25372
25449
|
}
|
25373
25450
|
columnTypeMapped = columnTypeMapped.replace("character varying", "varchar").replace(" without time zone", "").replace("character", "char");
|
25374
25451
|
columnTypeMapped = trimChar(columnTypeMapped, '"');
|
25452
|
+
columnTypeMapped = columnTypeMapped.replace("geography(Point,4326)", "geography(point)");
|
25375
25453
|
columnToReturn[columnName] = {
|
25376
25454
|
name: columnName,
|
25377
25455
|
type: (
|
25378
25456
|
// filter vectors, but in future we should filter any extension that was installed by user
|
25379
|
-
columnAdditionalDT === "USER-DEFINED" && !["vector", "geometry"].includes(enumType2) ? enumType2 : columnTypeMapped
|
25457
|
+
columnAdditionalDT === "USER-DEFINED" && !["vector", "geometry", "geography"].includes(enumType2) ? enumType2 : columnTypeMapped
|
25380
25458
|
),
|
25381
25459
|
typeSchema: enumsToReturn[`${typeSchema}.${enumType2}`] !== void 0 ? enumsToReturn[`${typeSchema}.${enumType2}`].schema : void 0,
|
25382
25460
|
primaryKey: primaryKey.length === 1 && cprimaryKey.length < 2,
|
@@ -25663,12 +25741,12 @@ var init_alias3 = __esm({
|
|
25663
25741
|
});
|
25664
25742
|
|
25665
25743
|
// ../drizzle-orm/dist/sqlite-core/checks.js
|
25666
|
-
var
|
25744
|
+
var _a162, CheckBuilder2, _a163, Check2;
|
25667
25745
|
var init_checks2 = __esm({
|
25668
25746
|
"../drizzle-orm/dist/sqlite-core/checks.js"() {
|
25669
25747
|
"use strict";
|
25670
25748
|
init_entity();
|
25671
|
-
|
25749
|
+
_a162 = entityKind;
|
25672
25750
|
CheckBuilder2 = class {
|
25673
25751
|
constructor(name2, value) {
|
25674
25752
|
__publicField(this, "brand");
|
@@ -25679,8 +25757,8 @@ var init_checks2 = __esm({
|
|
25679
25757
|
return new Check2(table4, this);
|
25680
25758
|
}
|
25681
25759
|
};
|
25682
|
-
__publicField(CheckBuilder2,
|
25683
|
-
|
25760
|
+
__publicField(CheckBuilder2, _a162, "SQLiteCheckBuilder");
|
25761
|
+
_a163 = entityKind;
|
25684
25762
|
Check2 = class {
|
25685
25763
|
constructor(table4, builder) {
|
25686
25764
|
__publicField(this, "name");
|
@@ -25690,7 +25768,7 @@ var init_checks2 = __esm({
|
|
25690
25768
|
this.value = builder.value;
|
25691
25769
|
}
|
25692
25770
|
};
|
25693
|
-
__publicField(Check2,
|
25771
|
+
__publicField(Check2, _a163, "SQLiteCheck");
|
25694
25772
|
}
|
25695
25773
|
});
|
25696
25774
|
|
@@ -25713,22 +25791,22 @@ function sqliteTableBase(name2, columns, extraConfig, schema4, baseName = name2)
|
|
25713
25791
|
}
|
25714
25792
|
return table4;
|
25715
25793
|
}
|
25716
|
-
var InlineForeignKeys2,
|
25794
|
+
var InlineForeignKeys2, _a164, _b117, _c5, _d3, _e2, SQLiteTable, sqliteTable;
|
25717
25795
|
var init_table3 = __esm({
|
25718
25796
|
"../drizzle-orm/dist/sqlite-core/table.js"() {
|
25719
25797
|
"use strict";
|
25720
25798
|
init_entity();
|
25721
25799
|
init_table();
|
25722
25800
|
InlineForeignKeys2 = Symbol.for("drizzle:SQLiteInlineForeignKeys");
|
25723
|
-
SQLiteTable = class extends (_e2 = Table2, _d3 = entityKind, _c5 = Table2.Symbol.Columns,
|
25801
|
+
SQLiteTable = class extends (_e2 = Table2, _d3 = entityKind, _c5 = Table2.Symbol.Columns, _b117 = InlineForeignKeys2, _a164 = Table2.Symbol.ExtraConfigBuilder, _e2) {
|
25724
25802
|
constructor() {
|
25725
25803
|
super(...arguments);
|
25726
25804
|
/** @internal */
|
25727
25805
|
__publicField(this, _c5);
|
25728
25806
|
/** @internal */
|
25729
|
-
__publicField(this,
|
25807
|
+
__publicField(this, _b117, []);
|
25730
25808
|
/** @internal */
|
25731
|
-
__publicField(this,
|
25809
|
+
__publicField(this, _a164);
|
25732
25810
|
}
|
25733
25811
|
};
|
25734
25812
|
__publicField(SQLiteTable, _d3, "SQLiteTable");
|
@@ -25743,13 +25821,13 @@ var init_table3 = __esm({
|
|
25743
25821
|
});
|
25744
25822
|
|
25745
25823
|
// ../drizzle-orm/dist/sqlite-core/foreign-keys.js
|
25746
|
-
var
|
25824
|
+
var _a165, ForeignKeyBuilder2, _a166, ForeignKey2;
|
25747
25825
|
var init_foreign_keys2 = __esm({
|
25748
25826
|
"../drizzle-orm/dist/sqlite-core/foreign-keys.js"() {
|
25749
25827
|
"use strict";
|
25750
25828
|
init_entity();
|
25751
25829
|
init_table3();
|
25752
|
-
|
25830
|
+
_a165 = entityKind;
|
25753
25831
|
ForeignKeyBuilder2 = class {
|
25754
25832
|
constructor(config, actions) {
|
25755
25833
|
/** @internal */
|
@@ -25780,8 +25858,8 @@ var init_foreign_keys2 = __esm({
|
|
25780
25858
|
return new ForeignKey2(table4, this);
|
25781
25859
|
}
|
25782
25860
|
};
|
25783
|
-
__publicField(ForeignKeyBuilder2,
|
25784
|
-
|
25861
|
+
__publicField(ForeignKeyBuilder2, _a165, "SQLiteForeignKeyBuilder");
|
25862
|
+
_a166 = entityKind;
|
25785
25863
|
ForeignKey2 = class {
|
25786
25864
|
constructor(table4, builder) {
|
25787
25865
|
__publicField(this, "reference");
|
@@ -25805,7 +25883,7 @@ var init_foreign_keys2 = __esm({
|
|
25805
25883
|
return name2 ?? `${chunks.join("_")}_fk`;
|
25806
25884
|
}
|
25807
25885
|
};
|
25808
|
-
__publicField(ForeignKey2,
|
25886
|
+
__publicField(ForeignKey2, _a166, "SQLiteForeignKey");
|
25809
25887
|
}
|
25810
25888
|
});
|
25811
25889
|
|
@@ -25813,13 +25891,13 @@ var init_foreign_keys2 = __esm({
|
|
25813
25891
|
function uniqueKeyName2(table4, columns) {
|
25814
25892
|
return `${table4[SQLiteTable.Symbol.Name]}_${columns.join("_")}_unique`;
|
25815
25893
|
}
|
25816
|
-
var
|
25894
|
+
var _a167, UniqueConstraintBuilder2, _a168, UniqueOnConstraintBuilder2, _a169, UniqueConstraint2;
|
25817
25895
|
var init_unique_constraint2 = __esm({
|
25818
25896
|
"../drizzle-orm/dist/sqlite-core/unique-constraint.js"() {
|
25819
25897
|
"use strict";
|
25820
25898
|
init_entity();
|
25821
25899
|
init_table3();
|
25822
|
-
|
25900
|
+
_a167 = entityKind;
|
25823
25901
|
UniqueConstraintBuilder2 = class {
|
25824
25902
|
constructor(columns, name2) {
|
25825
25903
|
/** @internal */
|
@@ -25832,8 +25910,8 @@ var init_unique_constraint2 = __esm({
|
|
25832
25910
|
return new UniqueConstraint2(table4, this.columns, this.name);
|
25833
25911
|
}
|
25834
25912
|
};
|
25835
|
-
__publicField(UniqueConstraintBuilder2,
|
25836
|
-
|
25913
|
+
__publicField(UniqueConstraintBuilder2, _a167, "SQLiteUniqueConstraintBuilder");
|
25914
|
+
_a168 = entityKind;
|
25837
25915
|
UniqueOnConstraintBuilder2 = class {
|
25838
25916
|
constructor(name2) {
|
25839
25917
|
/** @internal */
|
@@ -25844,8 +25922,8 @@ var init_unique_constraint2 = __esm({
|
|
25844
25922
|
return new UniqueConstraintBuilder2(columns, this.name);
|
25845
25923
|
}
|
25846
25924
|
};
|
25847
|
-
__publicField(UniqueOnConstraintBuilder2,
|
25848
|
-
|
25925
|
+
__publicField(UniqueOnConstraintBuilder2, _a168, "SQLiteUniqueOnConstraintBuilder");
|
25926
|
+
_a169 = entityKind;
|
25849
25927
|
UniqueConstraint2 = class {
|
25850
25928
|
constructor(table4, columns, name2) {
|
25851
25929
|
__publicField(this, "columns");
|
@@ -25858,12 +25936,12 @@ var init_unique_constraint2 = __esm({
|
|
25858
25936
|
return this.name;
|
25859
25937
|
}
|
25860
25938
|
};
|
25861
|
-
__publicField(UniqueConstraint2,
|
25939
|
+
__publicField(UniqueConstraint2, _a169, "SQLiteUniqueConstraint");
|
25862
25940
|
}
|
25863
25941
|
});
|
25864
25942
|
|
25865
25943
|
// ../drizzle-orm/dist/sqlite-core/columns/common.js
|
25866
|
-
var
|
25944
|
+
var _a170, _b118, SQLiteColumnBuilder, _a171, _b119, SQLiteColumn;
|
25867
25945
|
var init_common3 = __esm({
|
25868
25946
|
"../drizzle-orm/dist/sqlite-core/columns/common.js"() {
|
25869
25947
|
"use strict";
|
@@ -25872,7 +25950,7 @@ var init_common3 = __esm({
|
|
25872
25950
|
init_entity();
|
25873
25951
|
init_foreign_keys2();
|
25874
25952
|
init_unique_constraint2();
|
25875
|
-
SQLiteColumnBuilder = class extends (
|
25953
|
+
SQLiteColumnBuilder = class extends (_b118 = ColumnBuilder, _a170 = entityKind, _b118) {
|
25876
25954
|
constructor() {
|
25877
25955
|
super(...arguments);
|
25878
25956
|
__publicField(this, "foreignKeyConfigs", []);
|
@@ -25913,8 +25991,8 @@ var init_common3 = __esm({
|
|
25913
25991
|
});
|
25914
25992
|
}
|
25915
25993
|
};
|
25916
|
-
__publicField(SQLiteColumnBuilder,
|
25917
|
-
SQLiteColumn = class extends (
|
25994
|
+
__publicField(SQLiteColumnBuilder, _a170, "SQLiteColumnBuilder");
|
25995
|
+
SQLiteColumn = class extends (_b119 = Column2, _a171 = entityKind, _b119) {
|
25918
25996
|
constructor(table4, config) {
|
25919
25997
|
if (!config.uniqueName) {
|
25920
25998
|
config.uniqueName = uniqueKeyName2(table4, [config.name]);
|
@@ -25923,18 +26001,18 @@ var init_common3 = __esm({
|
|
25923
26001
|
this.table = table4;
|
25924
26002
|
}
|
25925
26003
|
};
|
25926
|
-
__publicField(SQLiteColumn,
|
26004
|
+
__publicField(SQLiteColumn, _a171, "SQLiteColumn");
|
25927
26005
|
}
|
25928
26006
|
});
|
25929
26007
|
|
25930
26008
|
// ../drizzle-orm/dist/sqlite-core/columns/blob.js
|
25931
|
-
var
|
26009
|
+
var _a172, _b120, SQLiteBigIntBuilder, _a173, _b121, SQLiteBigInt, _a174, _b122, SQLiteBlobJsonBuilder, _a175, _b123, SQLiteBlobJson, _a176, _b124, SQLiteBlobBufferBuilder, _a177, _b125, SQLiteBlobBuffer;
|
25932
26010
|
var init_blob = __esm({
|
25933
26011
|
"../drizzle-orm/dist/sqlite-core/columns/blob.js"() {
|
25934
26012
|
"use strict";
|
25935
26013
|
init_entity();
|
25936
26014
|
init_common3();
|
25937
|
-
SQLiteBigIntBuilder = class extends (
|
26015
|
+
SQLiteBigIntBuilder = class extends (_b120 = SQLiteColumnBuilder, _a172 = entityKind, _b120) {
|
25938
26016
|
constructor(name2) {
|
25939
26017
|
super(name2, "bigint", "SQLiteBigInt");
|
25940
26018
|
}
|
@@ -25943,8 +26021,8 @@ var init_blob = __esm({
|
|
25943
26021
|
return new SQLiteBigInt(table4, this.config);
|
25944
26022
|
}
|
25945
26023
|
};
|
25946
|
-
__publicField(SQLiteBigIntBuilder,
|
25947
|
-
SQLiteBigInt = class extends (
|
26024
|
+
__publicField(SQLiteBigIntBuilder, _a172, "SQLiteBigIntBuilder");
|
26025
|
+
SQLiteBigInt = class extends (_b121 = SQLiteColumn, _a173 = entityKind, _b121) {
|
25948
26026
|
getSQLType() {
|
25949
26027
|
return "blob";
|
25950
26028
|
}
|
@@ -25955,8 +26033,8 @@ var init_blob = __esm({
|
|
25955
26033
|
return Buffer.from(value.toString());
|
25956
26034
|
}
|
25957
26035
|
};
|
25958
|
-
__publicField(SQLiteBigInt,
|
25959
|
-
SQLiteBlobJsonBuilder = class extends (
|
26036
|
+
__publicField(SQLiteBigInt, _a173, "SQLiteBigInt");
|
26037
|
+
SQLiteBlobJsonBuilder = class extends (_b122 = SQLiteColumnBuilder, _a174 = entityKind, _b122) {
|
25960
26038
|
constructor(name2) {
|
25961
26039
|
super(name2, "json", "SQLiteBlobJson");
|
25962
26040
|
}
|
@@ -25968,8 +26046,8 @@ var init_blob = __esm({
|
|
25968
26046
|
);
|
25969
26047
|
}
|
25970
26048
|
};
|
25971
|
-
__publicField(SQLiteBlobJsonBuilder,
|
25972
|
-
SQLiteBlobJson = class extends (
|
26049
|
+
__publicField(SQLiteBlobJsonBuilder, _a174, "SQLiteBlobJsonBuilder");
|
26050
|
+
SQLiteBlobJson = class extends (_b123 = SQLiteColumn, _a175 = entityKind, _b123) {
|
25973
26051
|
getSQLType() {
|
25974
26052
|
return "blob";
|
25975
26053
|
}
|
@@ -25980,8 +26058,8 @@ var init_blob = __esm({
|
|
25980
26058
|
return Buffer.from(JSON.stringify(value));
|
25981
26059
|
}
|
25982
26060
|
};
|
25983
|
-
__publicField(SQLiteBlobJson,
|
25984
|
-
SQLiteBlobBufferBuilder = class extends (
|
26061
|
+
__publicField(SQLiteBlobJson, _a175, "SQLiteBlobJson");
|
26062
|
+
SQLiteBlobBufferBuilder = class extends (_b124 = SQLiteColumnBuilder, _a176 = entityKind, _b124) {
|
25985
26063
|
constructor(name2) {
|
25986
26064
|
super(name2, "buffer", "SQLiteBlobBuffer");
|
25987
26065
|
}
|
@@ -25990,24 +26068,24 @@ var init_blob = __esm({
|
|
25990
26068
|
return new SQLiteBlobBuffer(table4, this.config);
|
25991
26069
|
}
|
25992
26070
|
};
|
25993
|
-
__publicField(SQLiteBlobBufferBuilder,
|
25994
|
-
SQLiteBlobBuffer = class extends (
|
26071
|
+
__publicField(SQLiteBlobBufferBuilder, _a176, "SQLiteBlobBufferBuilder");
|
26072
|
+
SQLiteBlobBuffer = class extends (_b125 = SQLiteColumn, _a177 = entityKind, _b125) {
|
25995
26073
|
getSQLType() {
|
25996
26074
|
return "blob";
|
25997
26075
|
}
|
25998
26076
|
};
|
25999
|
-
__publicField(SQLiteBlobBuffer,
|
26077
|
+
__publicField(SQLiteBlobBuffer, _a177, "SQLiteBlobBuffer");
|
26000
26078
|
}
|
26001
26079
|
});
|
26002
26080
|
|
26003
26081
|
// ../drizzle-orm/dist/sqlite-core/columns/custom.js
|
26004
|
-
var
|
26082
|
+
var _a178, _b126, SQLiteCustomColumnBuilder, _a179, _b127, SQLiteCustomColumn;
|
26005
26083
|
var init_custom2 = __esm({
|
26006
26084
|
"../drizzle-orm/dist/sqlite-core/columns/custom.js"() {
|
26007
26085
|
"use strict";
|
26008
26086
|
init_entity();
|
26009
26087
|
init_common3();
|
26010
|
-
SQLiteCustomColumnBuilder = class extends (
|
26088
|
+
SQLiteCustomColumnBuilder = class extends (_b126 = SQLiteColumnBuilder, _a178 = entityKind, _b126) {
|
26011
26089
|
constructor(name2, fieldConfig, customTypeParams) {
|
26012
26090
|
super(name2, "custom", "SQLiteCustomColumn");
|
26013
26091
|
this.config.fieldConfig = fieldConfig;
|
@@ -26021,8 +26099,8 @@ var init_custom2 = __esm({
|
|
26021
26099
|
);
|
26022
26100
|
}
|
26023
26101
|
};
|
26024
|
-
__publicField(SQLiteCustomColumnBuilder,
|
26025
|
-
SQLiteCustomColumn = class extends (
|
26102
|
+
__publicField(SQLiteCustomColumnBuilder, _a178, "SQLiteCustomColumnBuilder");
|
26103
|
+
SQLiteCustomColumn = class extends (_b127 = SQLiteColumn, _a179 = entityKind, _b127) {
|
26026
26104
|
constructor(table4, config) {
|
26027
26105
|
super(table4, config);
|
26028
26106
|
__publicField(this, "sqlName");
|
@@ -26042,19 +26120,19 @@ var init_custom2 = __esm({
|
|
26042
26120
|
return typeof this.mapTo === "function" ? this.mapTo(value) : value;
|
26043
26121
|
}
|
26044
26122
|
};
|
26045
|
-
__publicField(SQLiteCustomColumn,
|
26123
|
+
__publicField(SQLiteCustomColumn, _a179, "SQLiteCustomColumn");
|
26046
26124
|
}
|
26047
26125
|
});
|
26048
26126
|
|
26049
26127
|
// ../drizzle-orm/dist/sqlite-core/columns/integer.js
|
26050
|
-
var
|
26128
|
+
var _a180, _b128, SQLiteBaseIntegerBuilder, _a181, _b129, SQLiteBaseInteger, _a182, _b130, SQLiteIntegerBuilder, _a183, _b131, SQLiteInteger, _a184, _b132, SQLiteTimestampBuilder, _a185, _b133, SQLiteTimestamp, _a186, _b134, SQLiteBooleanBuilder, _a187, _b135, SQLiteBoolean;
|
26051
26129
|
var init_integer2 = __esm({
|
26052
26130
|
"../drizzle-orm/dist/sqlite-core/columns/integer.js"() {
|
26053
26131
|
"use strict";
|
26054
26132
|
init_entity();
|
26055
26133
|
init_sql();
|
26056
26134
|
init_common3();
|
26057
|
-
SQLiteBaseIntegerBuilder = class extends (
|
26135
|
+
SQLiteBaseIntegerBuilder = class extends (_b128 = SQLiteColumnBuilder, _a180 = entityKind, _b128) {
|
26058
26136
|
constructor(name2, dataType, columnType) {
|
26059
26137
|
super(name2, dataType, columnType);
|
26060
26138
|
this.config.autoIncrement = false;
|
@@ -26067,8 +26145,8 @@ var init_integer2 = __esm({
|
|
26067
26145
|
return super.primaryKey();
|
26068
26146
|
}
|
26069
26147
|
};
|
26070
|
-
__publicField(SQLiteBaseIntegerBuilder,
|
26071
|
-
SQLiteBaseInteger = class extends (
|
26148
|
+
__publicField(SQLiteBaseIntegerBuilder, _a180, "SQLiteBaseIntegerBuilder");
|
26149
|
+
SQLiteBaseInteger = class extends (_b129 = SQLiteColumn, _a181 = entityKind, _b129) {
|
26072
26150
|
constructor() {
|
26073
26151
|
super(...arguments);
|
26074
26152
|
__publicField(this, "autoIncrement", this.config.autoIncrement);
|
@@ -26077,8 +26155,8 @@ var init_integer2 = __esm({
|
|
26077
26155
|
return "integer";
|
26078
26156
|
}
|
26079
26157
|
};
|
26080
|
-
__publicField(SQLiteBaseInteger,
|
26081
|
-
SQLiteIntegerBuilder = class extends (
|
26158
|
+
__publicField(SQLiteBaseInteger, _a181, "SQLiteBaseInteger");
|
26159
|
+
SQLiteIntegerBuilder = class extends (_b130 = SQLiteBaseIntegerBuilder, _a182 = entityKind, _b130) {
|
26082
26160
|
constructor(name2) {
|
26083
26161
|
super(name2, "number", "SQLiteInteger");
|
26084
26162
|
}
|
@@ -26089,11 +26167,11 @@ var init_integer2 = __esm({
|
|
26089
26167
|
);
|
26090
26168
|
}
|
26091
26169
|
};
|
26092
|
-
__publicField(SQLiteIntegerBuilder,
|
26093
|
-
SQLiteInteger = class extends (
|
26170
|
+
__publicField(SQLiteIntegerBuilder, _a182, "SQLiteIntegerBuilder");
|
26171
|
+
SQLiteInteger = class extends (_b131 = SQLiteBaseInteger, _a183 = entityKind, _b131) {
|
26094
26172
|
};
|
26095
|
-
__publicField(SQLiteInteger,
|
26096
|
-
SQLiteTimestampBuilder = class extends (
|
26173
|
+
__publicField(SQLiteInteger, _a183, "SQLiteInteger");
|
26174
|
+
SQLiteTimestampBuilder = class extends (_b132 = SQLiteBaseIntegerBuilder, _a184 = entityKind, _b132) {
|
26097
26175
|
constructor(name2, mode) {
|
26098
26176
|
super(name2, "date", "SQLiteTimestamp");
|
26099
26177
|
this.config.mode = mode;
|
@@ -26113,8 +26191,8 @@ var init_integer2 = __esm({
|
|
26113
26191
|
);
|
26114
26192
|
}
|
26115
26193
|
};
|
26116
|
-
__publicField(SQLiteTimestampBuilder,
|
26117
|
-
SQLiteTimestamp = class extends (
|
26194
|
+
__publicField(SQLiteTimestampBuilder, _a184, "SQLiteTimestampBuilder");
|
26195
|
+
SQLiteTimestamp = class extends (_b133 = SQLiteBaseInteger, _a185 = entityKind, _b133) {
|
26118
26196
|
constructor() {
|
26119
26197
|
super(...arguments);
|
26120
26198
|
__publicField(this, "mode", this.config.mode);
|
@@ -26133,8 +26211,8 @@ var init_integer2 = __esm({
|
|
26133
26211
|
return unix;
|
26134
26212
|
}
|
26135
26213
|
};
|
26136
|
-
__publicField(SQLiteTimestamp,
|
26137
|
-
SQLiteBooleanBuilder = class extends (
|
26214
|
+
__publicField(SQLiteTimestamp, _a185, "SQLiteTimestamp");
|
26215
|
+
SQLiteBooleanBuilder = class extends (_b134 = SQLiteBaseIntegerBuilder, _a186 = entityKind, _b134) {
|
26138
26216
|
constructor(name2, mode) {
|
26139
26217
|
super(name2, "boolean", "SQLiteBoolean");
|
26140
26218
|
this.config.mode = mode;
|
@@ -26146,8 +26224,8 @@ var init_integer2 = __esm({
|
|
26146
26224
|
);
|
26147
26225
|
}
|
26148
26226
|
};
|
26149
|
-
__publicField(SQLiteBooleanBuilder,
|
26150
|
-
SQLiteBoolean = class extends (
|
26227
|
+
__publicField(SQLiteBooleanBuilder, _a186, "SQLiteBooleanBuilder");
|
26228
|
+
SQLiteBoolean = class extends (_b135 = SQLiteBaseInteger, _a187 = entityKind, _b135) {
|
26151
26229
|
constructor() {
|
26152
26230
|
super(...arguments);
|
26153
26231
|
__publicField(this, "mode", this.config.mode);
|
@@ -26159,18 +26237,18 @@ var init_integer2 = __esm({
|
|
26159
26237
|
return value ? 1 : 0;
|
26160
26238
|
}
|
26161
26239
|
};
|
26162
|
-
__publicField(SQLiteBoolean,
|
26240
|
+
__publicField(SQLiteBoolean, _a187, "SQLiteBoolean");
|
26163
26241
|
}
|
26164
26242
|
});
|
26165
26243
|
|
26166
26244
|
// ../drizzle-orm/dist/sqlite-core/columns/numeric.js
|
26167
|
-
var
|
26245
|
+
var _a188, _b136, SQLiteNumericBuilder, _a189, _b137, SQLiteNumeric;
|
26168
26246
|
var init_numeric2 = __esm({
|
26169
26247
|
"../drizzle-orm/dist/sqlite-core/columns/numeric.js"() {
|
26170
26248
|
"use strict";
|
26171
26249
|
init_entity();
|
26172
26250
|
init_common3();
|
26173
|
-
SQLiteNumericBuilder = class extends (
|
26251
|
+
SQLiteNumericBuilder = class extends (_b136 = SQLiteColumnBuilder, _a188 = entityKind, _b136) {
|
26174
26252
|
constructor(name2) {
|
26175
26253
|
super(name2, "string", "SQLiteNumeric");
|
26176
26254
|
}
|
@@ -26182,24 +26260,24 @@ var init_numeric2 = __esm({
|
|
26182
26260
|
);
|
26183
26261
|
}
|
26184
26262
|
};
|
26185
|
-
__publicField(SQLiteNumericBuilder,
|
26186
|
-
SQLiteNumeric = class extends (
|
26263
|
+
__publicField(SQLiteNumericBuilder, _a188, "SQLiteNumericBuilder");
|
26264
|
+
SQLiteNumeric = class extends (_b137 = SQLiteColumn, _a189 = entityKind, _b137) {
|
26187
26265
|
getSQLType() {
|
26188
26266
|
return "numeric";
|
26189
26267
|
}
|
26190
26268
|
};
|
26191
|
-
__publicField(SQLiteNumeric,
|
26269
|
+
__publicField(SQLiteNumeric, _a189, "SQLiteNumeric");
|
26192
26270
|
}
|
26193
26271
|
});
|
26194
26272
|
|
26195
26273
|
// ../drizzle-orm/dist/sqlite-core/columns/real.js
|
26196
|
-
var
|
26274
|
+
var _a190, _b138, SQLiteRealBuilder, _a191, _b139, SQLiteReal;
|
26197
26275
|
var init_real2 = __esm({
|
26198
26276
|
"../drizzle-orm/dist/sqlite-core/columns/real.js"() {
|
26199
26277
|
"use strict";
|
26200
26278
|
init_entity();
|
26201
26279
|
init_common3();
|
26202
|
-
SQLiteRealBuilder = class extends (
|
26280
|
+
SQLiteRealBuilder = class extends (_b138 = SQLiteColumnBuilder, _a190 = entityKind, _b138) {
|
26203
26281
|
constructor(name2) {
|
26204
26282
|
super(name2, "number", "SQLiteReal");
|
26205
26283
|
}
|
@@ -26208,24 +26286,24 @@ var init_real2 = __esm({
|
|
26208
26286
|
return new SQLiteReal(table4, this.config);
|
26209
26287
|
}
|
26210
26288
|
};
|
26211
|
-
__publicField(SQLiteRealBuilder,
|
26212
|
-
SQLiteReal = class extends (
|
26289
|
+
__publicField(SQLiteRealBuilder, _a190, "SQLiteRealBuilder");
|
26290
|
+
SQLiteReal = class extends (_b139 = SQLiteColumn, _a191 = entityKind, _b139) {
|
26213
26291
|
getSQLType() {
|
26214
26292
|
return "real";
|
26215
26293
|
}
|
26216
26294
|
};
|
26217
|
-
__publicField(SQLiteReal,
|
26295
|
+
__publicField(SQLiteReal, _a191, "SQLiteReal");
|
26218
26296
|
}
|
26219
26297
|
});
|
26220
26298
|
|
26221
26299
|
// ../drizzle-orm/dist/sqlite-core/columns/text.js
|
26222
|
-
var
|
26300
|
+
var _a192, _b140, SQLiteTextBuilder, _a193, _b141, SQLiteText, _a194, _b142, SQLiteTextJsonBuilder, _a195, _b143, SQLiteTextJson;
|
26223
26301
|
var init_text2 = __esm({
|
26224
26302
|
"../drizzle-orm/dist/sqlite-core/columns/text.js"() {
|
26225
26303
|
"use strict";
|
26226
26304
|
init_entity();
|
26227
26305
|
init_common3();
|
26228
|
-
SQLiteTextBuilder = class extends (
|
26306
|
+
SQLiteTextBuilder = class extends (_b140 = SQLiteColumnBuilder, _a192 = entityKind, _b140) {
|
26229
26307
|
constructor(name2, config) {
|
26230
26308
|
super(name2, "string", "SQLiteText");
|
26231
26309
|
this.config.enumValues = config.enum;
|
@@ -26236,8 +26314,8 @@ var init_text2 = __esm({
|
|
26236
26314
|
return new SQLiteText(table4, this.config);
|
26237
26315
|
}
|
26238
26316
|
};
|
26239
|
-
__publicField(SQLiteTextBuilder,
|
26240
|
-
SQLiteText = class extends (
|
26317
|
+
__publicField(SQLiteTextBuilder, _a192, "SQLiteTextBuilder");
|
26318
|
+
SQLiteText = class extends (_b141 = SQLiteColumn, _a193 = entityKind, _b141) {
|
26241
26319
|
constructor(table4, config) {
|
26242
26320
|
super(table4, config);
|
26243
26321
|
__publicField(this, "enumValues", this.config.enumValues);
|
@@ -26247,8 +26325,8 @@ var init_text2 = __esm({
|
|
26247
26325
|
return `text${this.config.length ? `(${this.config.length})` : ""}`;
|
26248
26326
|
}
|
26249
26327
|
};
|
26250
|
-
__publicField(SQLiteText,
|
26251
|
-
SQLiteTextJsonBuilder = class extends (
|
26328
|
+
__publicField(SQLiteText, _a193, "SQLiteText");
|
26329
|
+
SQLiteTextJsonBuilder = class extends (_b142 = SQLiteColumnBuilder, _a194 = entityKind, _b142) {
|
26252
26330
|
constructor(name2) {
|
26253
26331
|
super(name2, "json", "SQLiteTextJson");
|
26254
26332
|
}
|
@@ -26260,8 +26338,8 @@ var init_text2 = __esm({
|
|
26260
26338
|
);
|
26261
26339
|
}
|
26262
26340
|
};
|
26263
|
-
__publicField(SQLiteTextJsonBuilder,
|
26264
|
-
SQLiteTextJson = class extends (
|
26341
|
+
__publicField(SQLiteTextJsonBuilder, _a194, "SQLiteTextJsonBuilder");
|
26342
|
+
SQLiteTextJson = class extends (_b143 = SQLiteColumn, _a195 = entityKind, _b143) {
|
26265
26343
|
getSQLType() {
|
26266
26344
|
return "text";
|
26267
26345
|
}
|
@@ -26272,7 +26350,7 @@ var init_text2 = __esm({
|
|
26272
26350
|
return JSON.stringify(value);
|
26273
26351
|
}
|
26274
26352
|
};
|
26275
|
-
__publicField(SQLiteTextJson,
|
26353
|
+
__publicField(SQLiteTextJson, _a195, "SQLiteTextJson");
|
26276
26354
|
}
|
26277
26355
|
});
|
26278
26356
|
|
@@ -26291,7 +26369,7 @@ var init_columns2 = __esm({
|
|
26291
26369
|
});
|
26292
26370
|
|
26293
26371
|
// ../drizzle-orm/dist/sqlite-core/query-builders/delete.js
|
26294
|
-
var
|
26372
|
+
var _a196, _b144, SQLiteDeleteBase;
|
26295
26373
|
var init_delete2 = __esm({
|
26296
26374
|
"../drizzle-orm/dist/sqlite-core/query-builders/delete.js"() {
|
26297
26375
|
"use strict";
|
@@ -26299,7 +26377,7 @@ var init_delete2 = __esm({
|
|
26299
26377
|
init_query_promise();
|
26300
26378
|
init_table3();
|
26301
26379
|
init_utils2();
|
26302
|
-
SQLiteDeleteBase = class extends (
|
26380
|
+
SQLiteDeleteBase = class extends (_b144 = QueryPromise, _a196 = entityKind, _b144) {
|
26303
26381
|
constructor(table4, session, dialect7, withList) {
|
26304
26382
|
super();
|
26305
26383
|
/** @internal */
|
@@ -26385,12 +26463,12 @@ var init_delete2 = __esm({
|
|
26385
26463
|
return this;
|
26386
26464
|
}
|
26387
26465
|
};
|
26388
|
-
__publicField(SQLiteDeleteBase,
|
26466
|
+
__publicField(SQLiteDeleteBase, _a196, "SQLiteDelete");
|
26389
26467
|
}
|
26390
26468
|
});
|
26391
26469
|
|
26392
26470
|
// ../drizzle-orm/dist/sqlite-core/query-builders/insert.js
|
26393
|
-
var
|
26471
|
+
var _a197, SQLiteInsertBuilder, _a198, _b145, SQLiteInsertBase;
|
26394
26472
|
var init_insert2 = __esm({
|
26395
26473
|
"../drizzle-orm/dist/sqlite-core/query-builders/insert.js"() {
|
26396
26474
|
"use strict";
|
@@ -26400,7 +26478,7 @@ var init_insert2 = __esm({
|
|
26400
26478
|
init_table3();
|
26401
26479
|
init_table();
|
26402
26480
|
init_utils2();
|
26403
|
-
|
26481
|
+
_a197 = entityKind;
|
26404
26482
|
SQLiteInsertBuilder = class {
|
26405
26483
|
constructor(table4, session, dialect7, withList) {
|
26406
26484
|
this.table = table4;
|
@@ -26425,8 +26503,8 @@ var init_insert2 = __esm({
|
|
26425
26503
|
return new SQLiteInsertBase(this.table, mappedValues, this.session, this.dialect, this.withList);
|
26426
26504
|
}
|
26427
26505
|
};
|
26428
|
-
__publicField(SQLiteInsertBuilder,
|
26429
|
-
SQLiteInsertBase = class extends (
|
26506
|
+
__publicField(SQLiteInsertBuilder, _a197, "SQLiteInsertBuilder");
|
26507
|
+
SQLiteInsertBase = class extends (_b145 = QueryPromise, _a198 = entityKind, _b145) {
|
26430
26508
|
constructor(table4, values, session, dialect7, withList) {
|
26431
26509
|
super();
|
26432
26510
|
/** @internal */
|
@@ -26553,25 +26631,25 @@ var init_insert2 = __esm({
|
|
26553
26631
|
return this;
|
26554
26632
|
}
|
26555
26633
|
};
|
26556
|
-
__publicField(SQLiteInsertBase,
|
26634
|
+
__publicField(SQLiteInsertBase, _a198, "SQLiteInsert");
|
26557
26635
|
}
|
26558
26636
|
});
|
26559
26637
|
|
26560
26638
|
// ../drizzle-orm/dist/sqlite-core/view-base.js
|
26561
|
-
var
|
26639
|
+
var _a199, _b146, SQLiteViewBase;
|
26562
26640
|
var init_view_base2 = __esm({
|
26563
26641
|
"../drizzle-orm/dist/sqlite-core/view-base.js"() {
|
26564
26642
|
"use strict";
|
26565
26643
|
init_entity();
|
26566
26644
|
init_sql();
|
26567
|
-
SQLiteViewBase = class extends (
|
26645
|
+
SQLiteViewBase = class extends (_b146 = View, _a199 = entityKind, _b146) {
|
26568
26646
|
};
|
26569
|
-
__publicField(SQLiteViewBase,
|
26647
|
+
__publicField(SQLiteViewBase, _a199, "SQLiteViewBase");
|
26570
26648
|
}
|
26571
26649
|
});
|
26572
26650
|
|
26573
26651
|
// ../drizzle-orm/dist/sqlite-core/dialect.js
|
26574
|
-
var
|
26652
|
+
var _a200, SQLiteDialect, _a201, _b147, SQLiteSyncDialect, _a202, _b148, SQLiteAsyncDialect;
|
26575
26653
|
var init_dialect2 = __esm({
|
26576
26654
|
"../drizzle-orm/dist/sqlite-core/dialect.js"() {
|
26577
26655
|
"use strict";
|
@@ -26589,7 +26667,7 @@ var init_dialect2 = __esm({
|
|
26589
26667
|
init_utils2();
|
26590
26668
|
init_view_common();
|
26591
26669
|
init_view_base2();
|
26592
|
-
|
26670
|
+
_a200 = entityKind;
|
26593
26671
|
SQLiteDialect = class {
|
26594
26672
|
escapeName(name2) {
|
26595
26673
|
return `"${name2}"`;
|
@@ -27096,8 +27174,8 @@ var init_dialect2 = __esm({
|
|
27096
27174
|
};
|
27097
27175
|
}
|
27098
27176
|
};
|
27099
|
-
__publicField(SQLiteDialect,
|
27100
|
-
SQLiteSyncDialect = class extends (
|
27177
|
+
__publicField(SQLiteDialect, _a200, "SQLiteDialect");
|
27178
|
+
SQLiteSyncDialect = class extends (_b147 = SQLiteDialect, _a201 = entityKind, _b147) {
|
27101
27179
|
migrate(migrations, session, config) {
|
27102
27180
|
const migrationsTable = config === void 0 ? "__drizzle_migrations" : typeof config === "string" ? "__drizzle_migrations" : config.migrationsTable ?? "__drizzle_migrations";
|
27103
27181
|
const migrationTableCreate = sql`
|
@@ -27131,8 +27209,8 @@ var init_dialect2 = __esm({
|
|
27131
27209
|
}
|
27132
27210
|
}
|
27133
27211
|
};
|
27134
|
-
__publicField(SQLiteSyncDialect,
|
27135
|
-
SQLiteAsyncDialect = class extends (
|
27212
|
+
__publicField(SQLiteSyncDialect, _a201, "SQLiteSyncDialect");
|
27213
|
+
SQLiteAsyncDialect = class extends (_b148 = SQLiteDialect, _a202 = entityKind, _b148) {
|
27136
27214
|
async migrate(migrations, session, config) {
|
27137
27215
|
const migrationsTable = config === void 0 ? "__drizzle_migrations" : typeof config === "string" ? "__drizzle_migrations" : config.migrationsTable ?? "__drizzle_migrations";
|
27138
27216
|
const migrationTableCreate = sql`
|
@@ -27161,7 +27239,7 @@ var init_dialect2 = __esm({
|
|
27161
27239
|
});
|
27162
27240
|
}
|
27163
27241
|
};
|
27164
|
-
__publicField(SQLiteAsyncDialect,
|
27242
|
+
__publicField(SQLiteAsyncDialect, _a202, "SQLiteAsyncDialect");
|
27165
27243
|
}
|
27166
27244
|
});
|
27167
27245
|
|
@@ -27183,7 +27261,7 @@ function createSetOperator2(type, isAll) {
|
|
27183
27261
|
return leftSelect.addSetOperators(setOperators);
|
27184
27262
|
};
|
27185
27263
|
}
|
27186
|
-
var
|
27264
|
+
var _a203, SQLiteSelectBuilder, _a204, _b149, SQLiteSelectQueryBuilderBase, _a205, _b150, SQLiteSelectBase, getSQLiteSetOperators, union2, unionAll2, intersect2, except2;
|
27187
27265
|
var init_select3 = __esm({
|
27188
27266
|
"../drizzle-orm/dist/sqlite-core/query-builders/select.js"() {
|
27189
27267
|
"use strict";
|
@@ -27197,7 +27275,7 @@ var init_select3 = __esm({
|
|
27197
27275
|
init_utils2();
|
27198
27276
|
init_view_common();
|
27199
27277
|
init_view_base2();
|
27200
|
-
|
27278
|
+
_a203 = entityKind;
|
27201
27279
|
SQLiteSelectBuilder = class {
|
27202
27280
|
constructor(config) {
|
27203
27281
|
__publicField(this, "fields");
|
@@ -27238,8 +27316,8 @@ var init_select3 = __esm({
|
|
27238
27316
|
});
|
27239
27317
|
}
|
27240
27318
|
};
|
27241
|
-
__publicField(SQLiteSelectBuilder,
|
27242
|
-
SQLiteSelectQueryBuilderBase = class extends (
|
27319
|
+
__publicField(SQLiteSelectBuilder, _a203, "SQLiteSelectBuilder");
|
27320
|
+
SQLiteSelectQueryBuilderBase = class extends (_b149 = TypedQueryBuilder, _a204 = entityKind, _b149) {
|
27243
27321
|
constructor({ table: table4, fields, isPartialSelect, session, dialect: dialect7, withList, distinct }) {
|
27244
27322
|
super();
|
27245
27323
|
__publicField(this, "_");
|
@@ -27744,8 +27822,8 @@ var init_select3 = __esm({
|
|
27744
27822
|
return this;
|
27745
27823
|
}
|
27746
27824
|
};
|
27747
|
-
__publicField(SQLiteSelectQueryBuilderBase,
|
27748
|
-
SQLiteSelectBase = class extends (
|
27825
|
+
__publicField(SQLiteSelectQueryBuilderBase, _a204, "SQLiteSelectQueryBuilder");
|
27826
|
+
SQLiteSelectBase = class extends (_b150 = SQLiteSelectQueryBuilderBase, _a205 = entityKind, _b150) {
|
27749
27827
|
constructor() {
|
27750
27828
|
super(...arguments);
|
27751
27829
|
__publicField(this, "run", (placeholderValues) => {
|
@@ -27783,7 +27861,7 @@ var init_select3 = __esm({
|
|
27783
27861
|
return this.all();
|
27784
27862
|
}
|
27785
27863
|
};
|
27786
|
-
__publicField(SQLiteSelectBase,
|
27864
|
+
__publicField(SQLiteSelectBase, _a205, "SQLiteSelect");
|
27787
27865
|
applyMixins(SQLiteSelectBase, [QueryPromise]);
|
27788
27866
|
getSQLiteSetOperators = () => ({
|
27789
27867
|
union: union2,
|
@@ -27799,7 +27877,7 @@ var init_select3 = __esm({
|
|
27799
27877
|
});
|
27800
27878
|
|
27801
27879
|
// ../drizzle-orm/dist/sqlite-core/query-builders/query-builder.js
|
27802
|
-
var
|
27880
|
+
var _a206, QueryBuilder2;
|
27803
27881
|
var init_query_builder3 = __esm({
|
27804
27882
|
"../drizzle-orm/dist/sqlite-core/query-builders/query-builder.js"() {
|
27805
27883
|
"use strict";
|
@@ -27808,7 +27886,7 @@ var init_query_builder3 = __esm({
|
|
27808
27886
|
init_dialect2();
|
27809
27887
|
init_subquery();
|
27810
27888
|
init_select3();
|
27811
|
-
|
27889
|
+
_a206 = entityKind;
|
27812
27890
|
QueryBuilder2 = class {
|
27813
27891
|
constructor() {
|
27814
27892
|
__publicField(this, "dialect");
|
@@ -27867,7 +27945,7 @@ var init_query_builder3 = __esm({
|
|
27867
27945
|
return this.dialect;
|
27868
27946
|
}
|
27869
27947
|
};
|
27870
|
-
__publicField(QueryBuilder2,
|
27948
|
+
__publicField(QueryBuilder2, _a206, "SQLiteQueryBuilder");
|
27871
27949
|
}
|
27872
27950
|
});
|
27873
27951
|
|
@@ -27879,7 +27957,7 @@ var init_select_types2 = __esm({
|
|
27879
27957
|
});
|
27880
27958
|
|
27881
27959
|
// ../drizzle-orm/dist/sqlite-core/query-builders/update.js
|
27882
|
-
var
|
27960
|
+
var _a207, SQLiteUpdateBuilder, _a208, _b151, SQLiteUpdateBase;
|
27883
27961
|
var init_update2 = __esm({
|
27884
27962
|
"../drizzle-orm/dist/sqlite-core/query-builders/update.js"() {
|
27885
27963
|
"use strict";
|
@@ -27887,7 +27965,7 @@ var init_update2 = __esm({
|
|
27887
27965
|
init_query_promise();
|
27888
27966
|
init_table3();
|
27889
27967
|
init_utils2();
|
27890
|
-
|
27968
|
+
_a207 = entityKind;
|
27891
27969
|
SQLiteUpdateBuilder = class {
|
27892
27970
|
constructor(table4, session, dialect7, withList) {
|
27893
27971
|
this.table = table4;
|
@@ -27905,8 +27983,8 @@ var init_update2 = __esm({
|
|
27905
27983
|
);
|
27906
27984
|
}
|
27907
27985
|
};
|
27908
|
-
__publicField(SQLiteUpdateBuilder,
|
27909
|
-
SQLiteUpdateBase = class extends (
|
27986
|
+
__publicField(SQLiteUpdateBuilder, _a207, "SQLiteUpdateBuilder");
|
27987
|
+
SQLiteUpdateBase = class extends (_b151 = QueryPromise, _a208 = entityKind, _b151) {
|
27910
27988
|
constructor(table4, set, session, dialect7, withList) {
|
27911
27989
|
super();
|
27912
27990
|
/** @internal */
|
@@ -27995,7 +28073,7 @@ var init_update2 = __esm({
|
|
27995
28073
|
return this;
|
27996
28074
|
}
|
27997
28075
|
};
|
27998
|
-
__publicField(SQLiteUpdateBase,
|
28076
|
+
__publicField(SQLiteUpdateBase, _a208, "SQLiteUpdate");
|
27999
28077
|
}
|
28000
28078
|
});
|
28001
28079
|
|
@@ -28013,14 +28091,14 @@ var init_query_builders2 = __esm({
|
|
28013
28091
|
});
|
28014
28092
|
|
28015
28093
|
// ../drizzle-orm/dist/sqlite-core/query-builders/query.js
|
28016
|
-
var
|
28094
|
+
var _a209, RelationalQueryBuilder2, _a210, _b152, SQLiteRelationalQuery, _a211, _b153, SQLiteSyncRelationalQuery;
|
28017
28095
|
var init_query2 = __esm({
|
28018
28096
|
"../drizzle-orm/dist/sqlite-core/query-builders/query.js"() {
|
28019
28097
|
"use strict";
|
28020
28098
|
init_entity();
|
28021
28099
|
init_query_promise();
|
28022
28100
|
init_relations();
|
28023
|
-
|
28101
|
+
_a209 = entityKind;
|
28024
28102
|
RelationalQueryBuilder2 = class {
|
28025
28103
|
constructor(mode, fullSchema, schema4, tableNamesMap, table4, tableConfig, dialect7, session) {
|
28026
28104
|
this.mode = mode;
|
@@ -28079,8 +28157,8 @@ var init_query2 = __esm({
|
|
28079
28157
|
);
|
28080
28158
|
}
|
28081
28159
|
};
|
28082
|
-
__publicField(RelationalQueryBuilder2,
|
28083
|
-
SQLiteRelationalQuery = class extends (
|
28160
|
+
__publicField(RelationalQueryBuilder2, _a209, "SQLiteAsyncRelationalQueryBuilder");
|
28161
|
+
SQLiteRelationalQuery = class extends (_b152 = QueryPromise, _a210 = entityKind, _b152) {
|
28084
28162
|
constructor(fullSchema, schema4, tableNamesMap, table4, tableConfig, dialect7, session, config, mode) {
|
28085
28163
|
super();
|
28086
28164
|
/** @internal */
|
@@ -28156,24 +28234,24 @@ var init_query2 = __esm({
|
|
28156
28234
|
return this.executeRaw();
|
28157
28235
|
}
|
28158
28236
|
};
|
28159
|
-
__publicField(SQLiteRelationalQuery,
|
28160
|
-
SQLiteSyncRelationalQuery = class extends (
|
28237
|
+
__publicField(SQLiteRelationalQuery, _a210, "SQLiteAsyncRelationalQuery");
|
28238
|
+
SQLiteSyncRelationalQuery = class extends (_b153 = SQLiteRelationalQuery, _a211 = entityKind, _b153) {
|
28161
28239
|
sync() {
|
28162
28240
|
return this.executeRaw();
|
28163
28241
|
}
|
28164
28242
|
};
|
28165
|
-
__publicField(SQLiteSyncRelationalQuery,
|
28243
|
+
__publicField(SQLiteSyncRelationalQuery, _a211, "SQLiteSyncRelationalQuery");
|
28166
28244
|
}
|
28167
28245
|
});
|
28168
28246
|
|
28169
28247
|
// ../drizzle-orm/dist/sqlite-core/query-builders/raw.js
|
28170
|
-
var
|
28248
|
+
var _a212, _b154, SQLiteRaw;
|
28171
28249
|
var init_raw2 = __esm({
|
28172
28250
|
"../drizzle-orm/dist/sqlite-core/query-builders/raw.js"() {
|
28173
28251
|
"use strict";
|
28174
28252
|
init_entity();
|
28175
28253
|
init_query_promise();
|
28176
|
-
SQLiteRaw = class extends (
|
28254
|
+
SQLiteRaw = class extends (_b154 = QueryPromise, _a212 = entityKind, _b154) {
|
28177
28255
|
constructor(execute, getSQL, action, dialect7, mapBatchResult) {
|
28178
28256
|
super();
|
28179
28257
|
/** @internal */
|
@@ -28198,12 +28276,12 @@ var init_raw2 = __esm({
|
|
28198
28276
|
return false;
|
28199
28277
|
}
|
28200
28278
|
};
|
28201
|
-
__publicField(SQLiteRaw,
|
28279
|
+
__publicField(SQLiteRaw, _a212, "SQLiteRaw");
|
28202
28280
|
}
|
28203
28281
|
});
|
28204
28282
|
|
28205
28283
|
// ../drizzle-orm/dist/sqlite-core/db.js
|
28206
|
-
var
|
28284
|
+
var _a213, BaseSQLiteDatabase;
|
28207
28285
|
var init_db2 = __esm({
|
28208
28286
|
"../drizzle-orm/dist/sqlite-core/db.js"() {
|
28209
28287
|
"use strict";
|
@@ -28213,7 +28291,7 @@ var init_db2 = __esm({
|
|
28213
28291
|
init_subquery();
|
28214
28292
|
init_query2();
|
28215
28293
|
init_raw2();
|
28216
|
-
|
28294
|
+
_a213 = entityKind;
|
28217
28295
|
BaseSQLiteDatabase = class {
|
28218
28296
|
constructor(resultKind, dialect7, session, schema4) {
|
28219
28297
|
__publicField(this, "query");
|
@@ -28491,17 +28569,17 @@ var init_db2 = __esm({
|
|
28491
28569
|
return this.session.transaction(transaction, config);
|
28492
28570
|
}
|
28493
28571
|
};
|
28494
|
-
__publicField(BaseSQLiteDatabase,
|
28572
|
+
__publicField(BaseSQLiteDatabase, _a213, "BaseSQLiteDatabase");
|
28495
28573
|
}
|
28496
28574
|
});
|
28497
28575
|
|
28498
28576
|
// ../drizzle-orm/dist/sqlite-core/indexes.js
|
28499
|
-
var
|
28577
|
+
var _a214, IndexBuilderOn2, _a215, IndexBuilder2, _a216, Index4;
|
28500
28578
|
var init_indexes2 = __esm({
|
28501
28579
|
"../drizzle-orm/dist/sqlite-core/indexes.js"() {
|
28502
28580
|
"use strict";
|
28503
28581
|
init_entity();
|
28504
|
-
|
28582
|
+
_a214 = entityKind;
|
28505
28583
|
IndexBuilderOn2 = class {
|
28506
28584
|
constructor(name2, unique) {
|
28507
28585
|
this.name = name2;
|
@@ -28511,8 +28589,8 @@ var init_indexes2 = __esm({
|
|
28511
28589
|
return new IndexBuilder2(this.name, columns, this.unique);
|
28512
28590
|
}
|
28513
28591
|
};
|
28514
|
-
__publicField(IndexBuilderOn2,
|
28515
|
-
|
28592
|
+
__publicField(IndexBuilderOn2, _a214, "SQLiteIndexBuilderOn");
|
28593
|
+
_a215 = entityKind;
|
28516
28594
|
IndexBuilder2 = class {
|
28517
28595
|
constructor(name2, columns, unique) {
|
28518
28596
|
/** @internal */
|
@@ -28536,26 +28614,26 @@ var init_indexes2 = __esm({
|
|
28536
28614
|
return new Index4(this.config, table4);
|
28537
28615
|
}
|
28538
28616
|
};
|
28539
|
-
__publicField(IndexBuilder2,
|
28540
|
-
|
28617
|
+
__publicField(IndexBuilder2, _a215, "SQLiteIndexBuilder");
|
28618
|
+
_a216 = entityKind;
|
28541
28619
|
Index4 = class {
|
28542
28620
|
constructor(config, table4) {
|
28543
28621
|
__publicField(this, "config");
|
28544
28622
|
this.config = { ...config, table: table4 };
|
28545
28623
|
}
|
28546
28624
|
};
|
28547
|
-
__publicField(Index4,
|
28625
|
+
__publicField(Index4, _a216, "SQLiteIndex");
|
28548
28626
|
}
|
28549
28627
|
});
|
28550
28628
|
|
28551
28629
|
// ../drizzle-orm/dist/sqlite-core/primary-keys.js
|
28552
|
-
var
|
28630
|
+
var _a217, PrimaryKeyBuilder2, _a218, PrimaryKey2;
|
28553
28631
|
var init_primary_keys2 = __esm({
|
28554
28632
|
"../drizzle-orm/dist/sqlite-core/primary-keys.js"() {
|
28555
28633
|
"use strict";
|
28556
28634
|
init_entity();
|
28557
28635
|
init_table3();
|
28558
|
-
|
28636
|
+
_a217 = entityKind;
|
28559
28637
|
PrimaryKeyBuilder2 = class {
|
28560
28638
|
constructor(columns, name2) {
|
28561
28639
|
/** @internal */
|
@@ -28570,8 +28648,8 @@ var init_primary_keys2 = __esm({
|
|
28570
28648
|
return new PrimaryKey2(table4, this.columns, this.name);
|
28571
28649
|
}
|
28572
28650
|
};
|
28573
|
-
__publicField(PrimaryKeyBuilder2,
|
28574
|
-
|
28651
|
+
__publicField(PrimaryKeyBuilder2, _a217, "SQLitePrimaryKeyBuilder");
|
28652
|
+
_a218 = entityKind;
|
28575
28653
|
PrimaryKey2 = class {
|
28576
28654
|
constructor(table4, columns, name2) {
|
28577
28655
|
__publicField(this, "columns");
|
@@ -28584,12 +28662,12 @@ var init_primary_keys2 = __esm({
|
|
28584
28662
|
return this.name ?? `${this.table[SQLiteTable.Symbol.Name]}_${this.columns.map((column4) => column4.name).join("_")}_pk`;
|
28585
28663
|
}
|
28586
28664
|
};
|
28587
|
-
__publicField(PrimaryKey2,
|
28665
|
+
__publicField(PrimaryKey2, _a218, "SQLitePrimaryKey");
|
28588
28666
|
}
|
28589
28667
|
});
|
28590
28668
|
|
28591
28669
|
// ../drizzle-orm/dist/sqlite-core/session.js
|
28592
|
-
var
|
28670
|
+
var _a219, _b155, ExecuteResultSync, _a220, SQLitePreparedQuery, _a221, SQLiteSession, _a222, _b156, SQLiteTransaction;
|
28593
28671
|
var init_session2 = __esm({
|
28594
28672
|
"../drizzle-orm/dist/sqlite-core/session.js"() {
|
28595
28673
|
"use strict";
|
@@ -28597,7 +28675,7 @@ var init_session2 = __esm({
|
|
28597
28675
|
init_errors();
|
28598
28676
|
init_query_promise();
|
28599
28677
|
init_db2();
|
28600
|
-
ExecuteResultSync = class extends (
|
28678
|
+
ExecuteResultSync = class extends (_b155 = QueryPromise, _a219 = entityKind, _b155) {
|
28601
28679
|
constructor(resultCb) {
|
28602
28680
|
super();
|
28603
28681
|
this.resultCb = resultCb;
|
@@ -28609,8 +28687,8 @@ var init_session2 = __esm({
|
|
28609
28687
|
return this.resultCb();
|
28610
28688
|
}
|
28611
28689
|
};
|
28612
|
-
__publicField(ExecuteResultSync,
|
28613
|
-
|
28690
|
+
__publicField(ExecuteResultSync, _a219, "ExecuteResultSync");
|
28691
|
+
_a220 = entityKind;
|
28614
28692
|
SQLitePreparedQuery = class {
|
28615
28693
|
constructor(mode, executeMethod, query) {
|
28616
28694
|
/** @internal */
|
@@ -28651,8 +28729,8 @@ var init_session2 = __esm({
|
|
28651
28729
|
}
|
28652
28730
|
}
|
28653
28731
|
};
|
28654
|
-
__publicField(SQLitePreparedQuery,
|
28655
|
-
|
28732
|
+
__publicField(SQLitePreparedQuery, _a220, "PreparedQuery");
|
28733
|
+
_a221 = entityKind;
|
28656
28734
|
SQLiteSession = class {
|
28657
28735
|
constructor(dialect7) {
|
28658
28736
|
this.dialect = dialect7;
|
@@ -28694,8 +28772,8 @@ var init_session2 = __esm({
|
|
28694
28772
|
throw new Error("Not implemented");
|
28695
28773
|
}
|
28696
28774
|
};
|
28697
|
-
__publicField(SQLiteSession,
|
28698
|
-
SQLiteTransaction = class extends (
|
28775
|
+
__publicField(SQLiteSession, _a221, "SQLiteSession");
|
28776
|
+
SQLiteTransaction = class extends (_b156 = BaseSQLiteDatabase, _a222 = entityKind, _b156) {
|
28699
28777
|
constructor(resultType, dialect7, session, schema4, nestedIndex = 0) {
|
28700
28778
|
super(resultType, dialect7, session, schema4);
|
28701
28779
|
this.schema = schema4;
|
@@ -28705,7 +28783,7 @@ var init_session2 = __esm({
|
|
28705
28783
|
throw new TransactionRollbackError();
|
28706
28784
|
}
|
28707
28785
|
};
|
28708
|
-
__publicField(SQLiteTransaction,
|
28786
|
+
__publicField(SQLiteTransaction, _a222, "SQLiteTransaction");
|
28709
28787
|
}
|
28710
28788
|
});
|
28711
28789
|
|
@@ -28776,7 +28854,7 @@ var init_utils6 = __esm({
|
|
28776
28854
|
});
|
28777
28855
|
|
28778
28856
|
// ../drizzle-orm/dist/sqlite-core/view.js
|
28779
|
-
var
|
28857
|
+
var _a223, ViewBuilderCore, _a224, _b157, ViewBuilder2, _a225, _b158, ManualViewBuilder2, _a226, _b159, _c6, SQLiteView;
|
28780
28858
|
var init_view2 = __esm({
|
28781
28859
|
"../drizzle-orm/dist/sqlite-core/view.js"() {
|
28782
28860
|
"use strict";
|
@@ -28787,15 +28865,15 @@ var init_view2 = __esm({
|
|
28787
28865
|
init_table3();
|
28788
28866
|
init_view_base2();
|
28789
28867
|
init_view_common3();
|
28790
|
-
|
28868
|
+
_a223 = entityKind;
|
28791
28869
|
ViewBuilderCore = class {
|
28792
28870
|
constructor(name2) {
|
28793
28871
|
__publicField(this, "config", {});
|
28794
28872
|
this.name = name2;
|
28795
28873
|
}
|
28796
28874
|
};
|
28797
|
-
__publicField(ViewBuilderCore,
|
28798
|
-
ViewBuilder2 = class extends (
|
28875
|
+
__publicField(ViewBuilderCore, _a223, "SQLiteViewBuilderCore");
|
28876
|
+
ViewBuilder2 = class extends (_b157 = ViewBuilderCore, _a224 = entityKind, _b157) {
|
28799
28877
|
as(qb) {
|
28800
28878
|
if (typeof qb === "function") {
|
28801
28879
|
qb = qb(new QueryBuilder2());
|
@@ -28821,8 +28899,8 @@ var init_view2 = __esm({
|
|
28821
28899
|
);
|
28822
28900
|
}
|
28823
28901
|
};
|
28824
|
-
__publicField(ViewBuilder2,
|
28825
|
-
ManualViewBuilder2 = class extends (
|
28902
|
+
__publicField(ViewBuilder2, _a224, "SQLiteViewBuilder");
|
28903
|
+
ManualViewBuilder2 = class extends (_b158 = ViewBuilderCore, _a225 = entityKind, _b158) {
|
28826
28904
|
constructor(name2, columns) {
|
28827
28905
|
super(name2);
|
28828
28906
|
__publicField(this, "columns");
|
@@ -28867,16 +28945,16 @@ var init_view2 = __esm({
|
|
28867
28945
|
);
|
28868
28946
|
}
|
28869
28947
|
};
|
28870
|
-
__publicField(ManualViewBuilder2,
|
28871
|
-
SQLiteView = class extends (_c6 = SQLiteViewBase,
|
28948
|
+
__publicField(ManualViewBuilder2, _a225, "SQLiteManualViewBuilder");
|
28949
|
+
SQLiteView = class extends (_c6 = SQLiteViewBase, _b159 = entityKind, _a226 = SQLiteViewConfig, _c6) {
|
28872
28950
|
constructor({ sqliteConfig, config }) {
|
28873
28951
|
super(config);
|
28874
28952
|
/** @internal */
|
28875
|
-
__publicField(this,
|
28953
|
+
__publicField(this, _a226);
|
28876
28954
|
this[SQLiteViewConfig] = sqliteConfig;
|
28877
28955
|
}
|
28878
28956
|
};
|
28879
|
-
__publicField(SQLiteView,
|
28957
|
+
__publicField(SQLiteView, _b159, "SQLiteView");
|
28880
28958
|
}
|
28881
28959
|
});
|
28882
28960
|
|
@@ -29389,12 +29467,12 @@ var init_alias4 = __esm({
|
|
29389
29467
|
});
|
29390
29468
|
|
29391
29469
|
// ../drizzle-orm/dist/mysql-core/checks.js
|
29392
|
-
var
|
29470
|
+
var _a227, CheckBuilder3, _a228, Check3;
|
29393
29471
|
var init_checks3 = __esm({
|
29394
29472
|
"../drizzle-orm/dist/mysql-core/checks.js"() {
|
29395
29473
|
"use strict";
|
29396
29474
|
init_entity();
|
29397
|
-
|
29475
|
+
_a227 = entityKind;
|
29398
29476
|
CheckBuilder3 = class {
|
29399
29477
|
constructor(name2, value) {
|
29400
29478
|
__publicField(this, "brand");
|
@@ -29406,8 +29484,8 @@ var init_checks3 = __esm({
|
|
29406
29484
|
return new Check3(table4, this);
|
29407
29485
|
}
|
29408
29486
|
};
|
29409
|
-
__publicField(CheckBuilder3,
|
29410
|
-
|
29487
|
+
__publicField(CheckBuilder3, _a227, "MySqlCheckBuilder");
|
29488
|
+
_a228 = entityKind;
|
29411
29489
|
Check3 = class {
|
29412
29490
|
constructor(table4, builder) {
|
29413
29491
|
__publicField(this, "name");
|
@@ -29417,7 +29495,7 @@ var init_checks3 = __esm({
|
|
29417
29495
|
this.value = builder.value;
|
29418
29496
|
}
|
29419
29497
|
};
|
29420
|
-
__publicField(Check3,
|
29498
|
+
__publicField(Check3, _a228, "MySqlCheck");
|
29421
29499
|
}
|
29422
29500
|
});
|
29423
29501
|
|
@@ -29440,22 +29518,22 @@ function mysqlTableWithSchema(name2, columns, extraConfig, schema4, baseName = n
|
|
29440
29518
|
}
|
29441
29519
|
return table4;
|
29442
29520
|
}
|
29443
|
-
var InlineForeignKeys3,
|
29521
|
+
var InlineForeignKeys3, _a229, _b160, _c7, _d4, _e3, MySqlTable, mysqlTable;
|
29444
29522
|
var init_table4 = __esm({
|
29445
29523
|
"../drizzle-orm/dist/mysql-core/table.js"() {
|
29446
29524
|
"use strict";
|
29447
29525
|
init_entity();
|
29448
29526
|
init_table();
|
29449
29527
|
InlineForeignKeys3 = Symbol.for("drizzle:MySqlInlineForeignKeys");
|
29450
|
-
MySqlTable = class extends (_e3 = Table2, _d4 = entityKind, _c7 = Table2.Symbol.Columns,
|
29528
|
+
MySqlTable = class extends (_e3 = Table2, _d4 = entityKind, _c7 = Table2.Symbol.Columns, _b160 = InlineForeignKeys3, _a229 = Table2.Symbol.ExtraConfigBuilder, _e3) {
|
29451
29529
|
constructor() {
|
29452
29530
|
super(...arguments);
|
29453
29531
|
/** @internal */
|
29454
29532
|
__publicField(this, _c7);
|
29455
29533
|
/** @internal */
|
29456
|
-
__publicField(this,
|
29534
|
+
__publicField(this, _b160, []);
|
29457
29535
|
/** @internal */
|
29458
|
-
__publicField(this,
|
29536
|
+
__publicField(this, _a229);
|
29459
29537
|
}
|
29460
29538
|
};
|
29461
29539
|
__publicField(MySqlTable, _d4, "MySqlTable");
|
@@ -29470,13 +29548,13 @@ var init_table4 = __esm({
|
|
29470
29548
|
});
|
29471
29549
|
|
29472
29550
|
// ../drizzle-orm/dist/mysql-core/foreign-keys.js
|
29473
|
-
var
|
29551
|
+
var _a230, ForeignKeyBuilder3, _a231, ForeignKey3;
|
29474
29552
|
var init_foreign_keys3 = __esm({
|
29475
29553
|
"../drizzle-orm/dist/mysql-core/foreign-keys.js"() {
|
29476
29554
|
"use strict";
|
29477
29555
|
init_entity();
|
29478
29556
|
init_table4();
|
29479
|
-
|
29557
|
+
_a230 = entityKind;
|
29480
29558
|
ForeignKeyBuilder3 = class {
|
29481
29559
|
constructor(config, actions) {
|
29482
29560
|
/** @internal */
|
@@ -29507,8 +29585,8 @@ var init_foreign_keys3 = __esm({
|
|
29507
29585
|
return new ForeignKey3(table4, this);
|
29508
29586
|
}
|
29509
29587
|
};
|
29510
|
-
__publicField(ForeignKeyBuilder3,
|
29511
|
-
|
29588
|
+
__publicField(ForeignKeyBuilder3, _a230, "MySqlForeignKeyBuilder");
|
29589
|
+
_a231 = entityKind;
|
29512
29590
|
ForeignKey3 = class {
|
29513
29591
|
constructor(table4, builder) {
|
29514
29592
|
__publicField(this, "reference");
|
@@ -29532,7 +29610,7 @@ var init_foreign_keys3 = __esm({
|
|
29532
29610
|
return name2 ?? `${chunks.join("_")}_fk`;
|
29533
29611
|
}
|
29534
29612
|
};
|
29535
|
-
__publicField(ForeignKey3,
|
29613
|
+
__publicField(ForeignKey3, _a231, "MySqlForeignKey");
|
29536
29614
|
}
|
29537
29615
|
});
|
29538
29616
|
|
@@ -29540,13 +29618,13 @@ var init_foreign_keys3 = __esm({
|
|
29540
29618
|
function uniqueKeyName3(table4, columns) {
|
29541
29619
|
return `${table4[MySqlTable.Symbol.Name]}_${columns.join("_")}_unique`;
|
29542
29620
|
}
|
29543
|
-
var
|
29621
|
+
var _a232, UniqueConstraintBuilder3, _a233, UniqueOnConstraintBuilder3, _a234, UniqueConstraint3;
|
29544
29622
|
var init_unique_constraint3 = __esm({
|
29545
29623
|
"../drizzle-orm/dist/mysql-core/unique-constraint.js"() {
|
29546
29624
|
"use strict";
|
29547
29625
|
init_entity();
|
29548
29626
|
init_table4();
|
29549
|
-
|
29627
|
+
_a232 = entityKind;
|
29550
29628
|
UniqueConstraintBuilder3 = class {
|
29551
29629
|
constructor(columns, name2) {
|
29552
29630
|
/** @internal */
|
@@ -29559,8 +29637,8 @@ var init_unique_constraint3 = __esm({
|
|
29559
29637
|
return new UniqueConstraint3(table4, this.columns, this.name);
|
29560
29638
|
}
|
29561
29639
|
};
|
29562
|
-
__publicField(UniqueConstraintBuilder3,
|
29563
|
-
|
29640
|
+
__publicField(UniqueConstraintBuilder3, _a232, "MySqlUniqueConstraintBuilder");
|
29641
|
+
_a233 = entityKind;
|
29564
29642
|
UniqueOnConstraintBuilder3 = class {
|
29565
29643
|
constructor(name2) {
|
29566
29644
|
/** @internal */
|
@@ -29571,8 +29649,8 @@ var init_unique_constraint3 = __esm({
|
|
29571
29649
|
return new UniqueConstraintBuilder3(columns, this.name);
|
29572
29650
|
}
|
29573
29651
|
};
|
29574
|
-
__publicField(UniqueOnConstraintBuilder3,
|
29575
|
-
|
29652
|
+
__publicField(UniqueOnConstraintBuilder3, _a233, "MySqlUniqueOnConstraintBuilder");
|
29653
|
+
_a234 = entityKind;
|
29576
29654
|
UniqueConstraint3 = class {
|
29577
29655
|
constructor(table4, columns, name2) {
|
29578
29656
|
__publicField(this, "columns");
|
@@ -29586,12 +29664,12 @@ var init_unique_constraint3 = __esm({
|
|
29586
29664
|
return this.name;
|
29587
29665
|
}
|
29588
29666
|
};
|
29589
|
-
__publicField(UniqueConstraint3,
|
29667
|
+
__publicField(UniqueConstraint3, _a234, "MySqlUniqueConstraint");
|
29590
29668
|
}
|
29591
29669
|
});
|
29592
29670
|
|
29593
29671
|
// ../drizzle-orm/dist/mysql-core/columns/common.js
|
29594
|
-
var
|
29672
|
+
var _a235, _b161, MySqlColumnBuilder, _a236, _b162, MySqlColumn, _a237, _b163, MySqlColumnBuilderWithAutoIncrement, _a238, _b164, MySqlColumnWithAutoIncrement;
|
29595
29673
|
var init_common4 = __esm({
|
29596
29674
|
"../drizzle-orm/dist/mysql-core/columns/common.js"() {
|
29597
29675
|
"use strict";
|
@@ -29600,7 +29678,7 @@ var init_common4 = __esm({
|
|
29600
29678
|
init_entity();
|
29601
29679
|
init_foreign_keys3();
|
29602
29680
|
init_unique_constraint3();
|
29603
|
-
MySqlColumnBuilder = class extends (
|
29681
|
+
MySqlColumnBuilder = class extends (_b161 = ColumnBuilder, _a235 = entityKind, _b161) {
|
29604
29682
|
constructor() {
|
29605
29683
|
super(...arguments);
|
29606
29684
|
__publicField(this, "foreignKeyConfigs", []);
|
@@ -29641,8 +29719,8 @@ var init_common4 = __esm({
|
|
29641
29719
|
});
|
29642
29720
|
}
|
29643
29721
|
};
|
29644
|
-
__publicField(MySqlColumnBuilder,
|
29645
|
-
MySqlColumn = class extends (
|
29722
|
+
__publicField(MySqlColumnBuilder, _a235, "MySqlColumnBuilder");
|
29723
|
+
MySqlColumn = class extends (_b162 = Column2, _a236 = entityKind, _b162) {
|
29646
29724
|
constructor(table4, config) {
|
29647
29725
|
if (!config.uniqueName) {
|
29648
29726
|
config.uniqueName = uniqueKeyName3(table4, [config.name]);
|
@@ -29651,8 +29729,8 @@ var init_common4 = __esm({
|
|
29651
29729
|
this.table = table4;
|
29652
29730
|
}
|
29653
29731
|
};
|
29654
|
-
__publicField(MySqlColumn,
|
29655
|
-
MySqlColumnBuilderWithAutoIncrement = class extends (
|
29732
|
+
__publicField(MySqlColumn, _a236, "MySqlColumn");
|
29733
|
+
MySqlColumnBuilderWithAutoIncrement = class extends (_b163 = MySqlColumnBuilder, _a237 = entityKind, _b163) {
|
29656
29734
|
constructor(name2, dataType, columnType) {
|
29657
29735
|
super(name2, dataType, columnType);
|
29658
29736
|
this.config.autoIncrement = false;
|
@@ -29663,25 +29741,25 @@ var init_common4 = __esm({
|
|
29663
29741
|
return this;
|
29664
29742
|
}
|
29665
29743
|
};
|
29666
|
-
__publicField(MySqlColumnBuilderWithAutoIncrement,
|
29667
|
-
MySqlColumnWithAutoIncrement = class extends (
|
29744
|
+
__publicField(MySqlColumnBuilderWithAutoIncrement, _a237, "MySqlColumnBuilderWithAutoIncrement");
|
29745
|
+
MySqlColumnWithAutoIncrement = class extends (_b164 = MySqlColumn, _a238 = entityKind, _b164) {
|
29668
29746
|
constructor() {
|
29669
29747
|
super(...arguments);
|
29670
29748
|
__publicField(this, "autoIncrement", this.config.autoIncrement);
|
29671
29749
|
}
|
29672
29750
|
};
|
29673
|
-
__publicField(MySqlColumnWithAutoIncrement,
|
29751
|
+
__publicField(MySqlColumnWithAutoIncrement, _a238, "MySqlColumnWithAutoIncrement");
|
29674
29752
|
}
|
29675
29753
|
});
|
29676
29754
|
|
29677
29755
|
// ../drizzle-orm/dist/mysql-core/columns/bigint.js
|
29678
|
-
var
|
29756
|
+
var _a239, _b165, MySqlBigInt53Builder, _a240, _b166, MySqlBigInt53, _a241, _b167, MySqlBigInt64Builder, _a242, _b168, MySqlBigInt64;
|
29679
29757
|
var init_bigint2 = __esm({
|
29680
29758
|
"../drizzle-orm/dist/mysql-core/columns/bigint.js"() {
|
29681
29759
|
"use strict";
|
29682
29760
|
init_entity();
|
29683
29761
|
init_common4();
|
29684
|
-
MySqlBigInt53Builder = class extends (
|
29762
|
+
MySqlBigInt53Builder = class extends (_b165 = MySqlColumnBuilderWithAutoIncrement, _a239 = entityKind, _b165) {
|
29685
29763
|
constructor(name2, unsigned = false) {
|
29686
29764
|
super(name2, "number", "MySqlBigInt53");
|
29687
29765
|
this.config.unsigned = unsigned;
|
@@ -29694,8 +29772,8 @@ var init_bigint2 = __esm({
|
|
29694
29772
|
);
|
29695
29773
|
}
|
29696
29774
|
};
|
29697
|
-
__publicField(MySqlBigInt53Builder,
|
29698
|
-
MySqlBigInt53 = class extends (
|
29775
|
+
__publicField(MySqlBigInt53Builder, _a239, "MySqlBigInt53Builder");
|
29776
|
+
MySqlBigInt53 = class extends (_b166 = MySqlColumnWithAutoIncrement, _a240 = entityKind, _b166) {
|
29699
29777
|
getSQLType() {
|
29700
29778
|
return `bigint${this.config.unsigned ? " unsigned" : ""}`;
|
29701
29779
|
}
|
@@ -29706,8 +29784,8 @@ var init_bigint2 = __esm({
|
|
29706
29784
|
return Number(value);
|
29707
29785
|
}
|
29708
29786
|
};
|
29709
|
-
__publicField(MySqlBigInt53,
|
29710
|
-
MySqlBigInt64Builder = class extends (
|
29787
|
+
__publicField(MySqlBigInt53, _a240, "MySqlBigInt53");
|
29788
|
+
MySqlBigInt64Builder = class extends (_b167 = MySqlColumnBuilderWithAutoIncrement, _a241 = entityKind, _b167) {
|
29711
29789
|
constructor(name2, unsigned = false) {
|
29712
29790
|
super(name2, "bigint", "MySqlBigInt64");
|
29713
29791
|
this.config.unsigned = unsigned;
|
@@ -29720,8 +29798,8 @@ var init_bigint2 = __esm({
|
|
29720
29798
|
);
|
29721
29799
|
}
|
29722
29800
|
};
|
29723
|
-
__publicField(MySqlBigInt64Builder,
|
29724
|
-
MySqlBigInt64 = class extends (
|
29801
|
+
__publicField(MySqlBigInt64Builder, _a241, "MySqlBigInt64Builder");
|
29802
|
+
MySqlBigInt64 = class extends (_b168 = MySqlColumnWithAutoIncrement, _a242 = entityKind, _b168) {
|
29725
29803
|
getSQLType() {
|
29726
29804
|
return `bigint${this.config.unsigned ? " unsigned" : ""}`;
|
29727
29805
|
}
|
@@ -29730,18 +29808,18 @@ var init_bigint2 = __esm({
|
|
29730
29808
|
return BigInt(value);
|
29731
29809
|
}
|
29732
29810
|
};
|
29733
|
-
__publicField(MySqlBigInt64,
|
29811
|
+
__publicField(MySqlBigInt64, _a242, "MySqlBigInt64");
|
29734
29812
|
}
|
29735
29813
|
});
|
29736
29814
|
|
29737
29815
|
// ../drizzle-orm/dist/mysql-core/columns/binary.js
|
29738
|
-
var
|
29816
|
+
var _a243, _b169, MySqlBinaryBuilder, _a244, _b170, MySqlBinary;
|
29739
29817
|
var init_binary = __esm({
|
29740
29818
|
"../drizzle-orm/dist/mysql-core/columns/binary.js"() {
|
29741
29819
|
"use strict";
|
29742
29820
|
init_entity();
|
29743
29821
|
init_common4();
|
29744
|
-
MySqlBinaryBuilder = class extends (
|
29822
|
+
MySqlBinaryBuilder = class extends (_b169 = MySqlColumnBuilder, _a243 = entityKind, _b169) {
|
29745
29823
|
constructor(name2, length) {
|
29746
29824
|
super(name2, "string", "MySqlBinary");
|
29747
29825
|
this.config.length = length;
|
@@ -29751,8 +29829,8 @@ var init_binary = __esm({
|
|
29751
29829
|
return new MySqlBinary(table4, this.config);
|
29752
29830
|
}
|
29753
29831
|
};
|
29754
|
-
__publicField(MySqlBinaryBuilder,
|
29755
|
-
MySqlBinary = class extends (
|
29832
|
+
__publicField(MySqlBinaryBuilder, _a243, "MySqlBinaryBuilder");
|
29833
|
+
MySqlBinary = class extends (_b170 = MySqlColumn, _a244 = entityKind, _b170) {
|
29756
29834
|
constructor() {
|
29757
29835
|
super(...arguments);
|
29758
29836
|
__publicField(this, "length", this.config.length);
|
@@ -29761,18 +29839,18 @@ var init_binary = __esm({
|
|
29761
29839
|
return this.length === void 0 ? `binary` : `binary(${this.length})`;
|
29762
29840
|
}
|
29763
29841
|
};
|
29764
|
-
__publicField(MySqlBinary,
|
29842
|
+
__publicField(MySqlBinary, _a244, "MySqlBinary");
|
29765
29843
|
}
|
29766
29844
|
});
|
29767
29845
|
|
29768
29846
|
// ../drizzle-orm/dist/mysql-core/columns/boolean.js
|
29769
|
-
var
|
29847
|
+
var _a245, _b171, MySqlBooleanBuilder, _a246, _b172, MySqlBoolean;
|
29770
29848
|
var init_boolean2 = __esm({
|
29771
29849
|
"../drizzle-orm/dist/mysql-core/columns/boolean.js"() {
|
29772
29850
|
"use strict";
|
29773
29851
|
init_entity();
|
29774
29852
|
init_common4();
|
29775
|
-
MySqlBooleanBuilder = class extends (
|
29853
|
+
MySqlBooleanBuilder = class extends (_b171 = MySqlColumnBuilder, _a245 = entityKind, _b171) {
|
29776
29854
|
constructor(name2) {
|
29777
29855
|
super(name2, "boolean", "MySqlBoolean");
|
29778
29856
|
}
|
@@ -29784,8 +29862,8 @@ var init_boolean2 = __esm({
|
|
29784
29862
|
);
|
29785
29863
|
}
|
29786
29864
|
};
|
29787
|
-
__publicField(MySqlBooleanBuilder,
|
29788
|
-
MySqlBoolean = class extends (
|
29865
|
+
__publicField(MySqlBooleanBuilder, _a245, "MySqlBooleanBuilder");
|
29866
|
+
MySqlBoolean = class extends (_b172 = MySqlColumn, _a246 = entityKind, _b172) {
|
29789
29867
|
getSQLType() {
|
29790
29868
|
return "boolean";
|
29791
29869
|
}
|
@@ -29796,18 +29874,18 @@ var init_boolean2 = __esm({
|
|
29796
29874
|
return value === 1;
|
29797
29875
|
}
|
29798
29876
|
};
|
29799
|
-
__publicField(MySqlBoolean,
|
29877
|
+
__publicField(MySqlBoolean, _a246, "MySqlBoolean");
|
29800
29878
|
}
|
29801
29879
|
});
|
29802
29880
|
|
29803
29881
|
// ../drizzle-orm/dist/mysql-core/columns/char.js
|
29804
|
-
var
|
29882
|
+
var _a247, _b173, MySqlCharBuilder, _a248, _b174, MySqlChar;
|
29805
29883
|
var init_char2 = __esm({
|
29806
29884
|
"../drizzle-orm/dist/mysql-core/columns/char.js"() {
|
29807
29885
|
"use strict";
|
29808
29886
|
init_entity();
|
29809
29887
|
init_common4();
|
29810
|
-
MySqlCharBuilder = class extends (
|
29888
|
+
MySqlCharBuilder = class extends (_b173 = MySqlColumnBuilder, _a247 = entityKind, _b173) {
|
29811
29889
|
constructor(name2, config) {
|
29812
29890
|
super(name2, "string", "MySqlChar");
|
29813
29891
|
this.config.length = config.length;
|
@@ -29821,8 +29899,8 @@ var init_char2 = __esm({
|
|
29821
29899
|
);
|
29822
29900
|
}
|
29823
29901
|
};
|
29824
|
-
__publicField(MySqlCharBuilder,
|
29825
|
-
MySqlChar = class extends (
|
29902
|
+
__publicField(MySqlCharBuilder, _a247, "MySqlCharBuilder");
|
29903
|
+
MySqlChar = class extends (_b174 = MySqlColumn, _a248 = entityKind, _b174) {
|
29826
29904
|
constructor() {
|
29827
29905
|
super(...arguments);
|
29828
29906
|
__publicField(this, "length", this.config.length);
|
@@ -29832,18 +29910,18 @@ var init_char2 = __esm({
|
|
29832
29910
|
return this.length === void 0 ? `char` : `char(${this.length})`;
|
29833
29911
|
}
|
29834
29912
|
};
|
29835
|
-
__publicField(MySqlChar,
|
29913
|
+
__publicField(MySqlChar, _a248, "MySqlChar");
|
29836
29914
|
}
|
29837
29915
|
});
|
29838
29916
|
|
29839
29917
|
// ../drizzle-orm/dist/mysql-core/columns/custom.js
|
29840
|
-
var
|
29918
|
+
var _a249, _b175, MySqlCustomColumnBuilder, _a250, _b176, MySqlCustomColumn;
|
29841
29919
|
var init_custom3 = __esm({
|
29842
29920
|
"../drizzle-orm/dist/mysql-core/columns/custom.js"() {
|
29843
29921
|
"use strict";
|
29844
29922
|
init_entity();
|
29845
29923
|
init_common4();
|
29846
|
-
MySqlCustomColumnBuilder = class extends (
|
29924
|
+
MySqlCustomColumnBuilder = class extends (_b175 = MySqlColumnBuilder, _a249 = entityKind, _b175) {
|
29847
29925
|
constructor(name2, fieldConfig, customTypeParams) {
|
29848
29926
|
super(name2, "custom", "MySqlCustomColumn");
|
29849
29927
|
this.config.fieldConfig = fieldConfig;
|
@@ -29857,8 +29935,8 @@ var init_custom3 = __esm({
|
|
29857
29935
|
);
|
29858
29936
|
}
|
29859
29937
|
};
|
29860
|
-
__publicField(MySqlCustomColumnBuilder,
|
29861
|
-
MySqlCustomColumn = class extends (
|
29938
|
+
__publicField(MySqlCustomColumnBuilder, _a249, "MySqlCustomColumnBuilder");
|
29939
|
+
MySqlCustomColumn = class extends (_b176 = MySqlColumn, _a250 = entityKind, _b176) {
|
29862
29940
|
constructor(table4, config) {
|
29863
29941
|
super(table4, config);
|
29864
29942
|
__publicField(this, "sqlName");
|
@@ -29878,18 +29956,18 @@ var init_custom3 = __esm({
|
|
29878
29956
|
return typeof this.mapTo === "function" ? this.mapTo(value) : value;
|
29879
29957
|
}
|
29880
29958
|
};
|
29881
|
-
__publicField(MySqlCustomColumn,
|
29959
|
+
__publicField(MySqlCustomColumn, _a250, "MySqlCustomColumn");
|
29882
29960
|
}
|
29883
29961
|
});
|
29884
29962
|
|
29885
29963
|
// ../drizzle-orm/dist/mysql-core/columns/date.js
|
29886
|
-
var
|
29964
|
+
var _a251, _b177, MySqlDateBuilder, _a252, _b178, MySqlDate, _a253, _b179, MySqlDateStringBuilder, _a254, _b180, MySqlDateString;
|
29887
29965
|
var init_date2 = __esm({
|
29888
29966
|
"../drizzle-orm/dist/mysql-core/columns/date.js"() {
|
29889
29967
|
"use strict";
|
29890
29968
|
init_entity();
|
29891
29969
|
init_common4();
|
29892
|
-
MySqlDateBuilder = class extends (
|
29970
|
+
MySqlDateBuilder = class extends (_b177 = MySqlColumnBuilder, _a251 = entityKind, _b177) {
|
29893
29971
|
constructor(name2) {
|
29894
29972
|
super(name2, "date", "MySqlDate");
|
29895
29973
|
}
|
@@ -29898,8 +29976,8 @@ var init_date2 = __esm({
|
|
29898
29976
|
return new MySqlDate(table4, this.config);
|
29899
29977
|
}
|
29900
29978
|
};
|
29901
|
-
__publicField(MySqlDateBuilder,
|
29902
|
-
MySqlDate = class extends (
|
29979
|
+
__publicField(MySqlDateBuilder, _a251, "MySqlDateBuilder");
|
29980
|
+
MySqlDate = class extends (_b178 = MySqlColumn, _a252 = entityKind, _b178) {
|
29903
29981
|
constructor(table4, config) {
|
29904
29982
|
super(table4, config);
|
29905
29983
|
}
|
@@ -29910,8 +29988,8 @@ var init_date2 = __esm({
|
|
29910
29988
|
return new Date(value);
|
29911
29989
|
}
|
29912
29990
|
};
|
29913
|
-
__publicField(MySqlDate,
|
29914
|
-
MySqlDateStringBuilder = class extends (
|
29991
|
+
__publicField(MySqlDate, _a252, "MySqlDate");
|
29992
|
+
MySqlDateStringBuilder = class extends (_b179 = MySqlColumnBuilder, _a253 = entityKind, _b179) {
|
29915
29993
|
constructor(name2) {
|
29916
29994
|
super(name2, "string", "MySqlDateString");
|
29917
29995
|
}
|
@@ -29923,8 +30001,8 @@ var init_date2 = __esm({
|
|
29923
30001
|
);
|
29924
30002
|
}
|
29925
30003
|
};
|
29926
|
-
__publicField(MySqlDateStringBuilder,
|
29927
|
-
MySqlDateString = class extends (
|
30004
|
+
__publicField(MySqlDateStringBuilder, _a253, "MySqlDateStringBuilder");
|
30005
|
+
MySqlDateString = class extends (_b180 = MySqlColumn, _a254 = entityKind, _b180) {
|
29928
30006
|
constructor(table4, config) {
|
29929
30007
|
super(table4, config);
|
29930
30008
|
}
|
@@ -29932,18 +30010,18 @@ var init_date2 = __esm({
|
|
29932
30010
|
return `date`;
|
29933
30011
|
}
|
29934
30012
|
};
|
29935
|
-
__publicField(MySqlDateString,
|
30013
|
+
__publicField(MySqlDateString, _a254, "MySqlDateString");
|
29936
30014
|
}
|
29937
30015
|
});
|
29938
30016
|
|
29939
30017
|
// ../drizzle-orm/dist/mysql-core/columns/datetime.js
|
29940
|
-
var
|
30018
|
+
var _a255, _b181, MySqlDateTimeBuilder, _a256, _b182, MySqlDateTime, _a257, _b183, MySqlDateTimeStringBuilder, _a258, _b184, MySqlDateTimeString;
|
29941
30019
|
var init_datetime = __esm({
|
29942
30020
|
"../drizzle-orm/dist/mysql-core/columns/datetime.js"() {
|
29943
30021
|
"use strict";
|
29944
30022
|
init_entity();
|
29945
30023
|
init_common4();
|
29946
|
-
MySqlDateTimeBuilder = class extends (
|
30024
|
+
MySqlDateTimeBuilder = class extends (_b181 = MySqlColumnBuilder, _a255 = entityKind, _b181) {
|
29947
30025
|
constructor(name2, config) {
|
29948
30026
|
super(name2, "date", "MySqlDateTime");
|
29949
30027
|
this.config.fsp = config?.fsp;
|
@@ -29956,8 +30034,8 @@ var init_datetime = __esm({
|
|
29956
30034
|
);
|
29957
30035
|
}
|
29958
30036
|
};
|
29959
|
-
__publicField(MySqlDateTimeBuilder,
|
29960
|
-
MySqlDateTime = class extends (
|
30037
|
+
__publicField(MySqlDateTimeBuilder, _a255, "MySqlDateTimeBuilder");
|
30038
|
+
MySqlDateTime = class extends (_b182 = MySqlColumn, _a256 = entityKind, _b182) {
|
29961
30039
|
constructor(table4, config) {
|
29962
30040
|
super(table4, config);
|
29963
30041
|
__publicField(this, "fsp");
|
@@ -29974,8 +30052,8 @@ var init_datetime = __esm({
|
|
29974
30052
|
return /* @__PURE__ */ new Date(value.replace(" ", "T") + "Z");
|
29975
30053
|
}
|
29976
30054
|
};
|
29977
|
-
__publicField(MySqlDateTime,
|
29978
|
-
MySqlDateTimeStringBuilder = class extends (
|
30055
|
+
__publicField(MySqlDateTime, _a256, "MySqlDateTime");
|
30056
|
+
MySqlDateTimeStringBuilder = class extends (_b183 = MySqlColumnBuilder, _a257 = entityKind, _b183) {
|
29979
30057
|
constructor(name2, config) {
|
29980
30058
|
super(name2, "string", "MySqlDateTimeString");
|
29981
30059
|
this.config.fsp = config?.fsp;
|
@@ -29988,8 +30066,8 @@ var init_datetime = __esm({
|
|
29988
30066
|
);
|
29989
30067
|
}
|
29990
30068
|
};
|
29991
|
-
__publicField(MySqlDateTimeStringBuilder,
|
29992
|
-
MySqlDateTimeString = class extends (
|
30069
|
+
__publicField(MySqlDateTimeStringBuilder, _a257, "MySqlDateTimeStringBuilder");
|
30070
|
+
MySqlDateTimeString = class extends (_b184 = MySqlColumn, _a258 = entityKind, _b184) {
|
29993
30071
|
constructor(table4, config) {
|
29994
30072
|
super(table4, config);
|
29995
30073
|
__publicField(this, "fsp");
|
@@ -30000,18 +30078,18 @@ var init_datetime = __esm({
|
|
30000
30078
|
return `datetime${precision}`;
|
30001
30079
|
}
|
30002
30080
|
};
|
30003
|
-
__publicField(MySqlDateTimeString,
|
30081
|
+
__publicField(MySqlDateTimeString, _a258, "MySqlDateTimeString");
|
30004
30082
|
}
|
30005
30083
|
});
|
30006
30084
|
|
30007
30085
|
// ../drizzle-orm/dist/mysql-core/columns/decimal.js
|
30008
|
-
var
|
30086
|
+
var _a259, _b185, MySqlDecimalBuilder, _a260, _b186, MySqlDecimal;
|
30009
30087
|
var init_decimal = __esm({
|
30010
30088
|
"../drizzle-orm/dist/mysql-core/columns/decimal.js"() {
|
30011
30089
|
"use strict";
|
30012
30090
|
init_entity();
|
30013
30091
|
init_common4();
|
30014
|
-
MySqlDecimalBuilder = class extends (
|
30092
|
+
MySqlDecimalBuilder = class extends (_b185 = MySqlColumnBuilderWithAutoIncrement, _a259 = entityKind, _b185) {
|
30015
30093
|
constructor(name2, precision, scale) {
|
30016
30094
|
super(name2, "string", "MySqlDecimal");
|
30017
30095
|
this.config.precision = precision;
|
@@ -30025,8 +30103,8 @@ var init_decimal = __esm({
|
|
30025
30103
|
);
|
30026
30104
|
}
|
30027
30105
|
};
|
30028
|
-
__publicField(MySqlDecimalBuilder,
|
30029
|
-
MySqlDecimal = class extends (
|
30106
|
+
__publicField(MySqlDecimalBuilder, _a259, "MySqlDecimalBuilder");
|
30107
|
+
MySqlDecimal = class extends (_b186 = MySqlColumnWithAutoIncrement, _a260 = entityKind, _b186) {
|
30030
30108
|
constructor() {
|
30031
30109
|
super(...arguments);
|
30032
30110
|
__publicField(this, "precision", this.config.precision);
|
@@ -30042,18 +30120,18 @@ var init_decimal = __esm({
|
|
30042
30120
|
}
|
30043
30121
|
}
|
30044
30122
|
};
|
30045
|
-
__publicField(MySqlDecimal,
|
30123
|
+
__publicField(MySqlDecimal, _a260, "MySqlDecimal");
|
30046
30124
|
}
|
30047
30125
|
});
|
30048
30126
|
|
30049
30127
|
// ../drizzle-orm/dist/mysql-core/columns/double.js
|
30050
|
-
var
|
30128
|
+
var _a261, _b187, MySqlDoubleBuilder, _a262, _b188, MySqlDouble;
|
30051
30129
|
var init_double = __esm({
|
30052
30130
|
"../drizzle-orm/dist/mysql-core/columns/double.js"() {
|
30053
30131
|
"use strict";
|
30054
30132
|
init_entity();
|
30055
30133
|
init_common4();
|
30056
|
-
MySqlDoubleBuilder = class extends (
|
30134
|
+
MySqlDoubleBuilder = class extends (_b187 = MySqlColumnBuilderWithAutoIncrement, _a261 = entityKind, _b187) {
|
30057
30135
|
constructor(name2, config) {
|
30058
30136
|
super(name2, "number", "MySqlDouble");
|
30059
30137
|
this.config.precision = config?.precision;
|
@@ -30064,8 +30142,8 @@ var init_double = __esm({
|
|
30064
30142
|
return new MySqlDouble(table4, this.config);
|
30065
30143
|
}
|
30066
30144
|
};
|
30067
|
-
__publicField(MySqlDoubleBuilder,
|
30068
|
-
MySqlDouble = class extends (
|
30145
|
+
__publicField(MySqlDoubleBuilder, _a261, "MySqlDoubleBuilder");
|
30146
|
+
MySqlDouble = class extends (_b188 = MySqlColumnWithAutoIncrement, _a262 = entityKind, _b188) {
|
30069
30147
|
constructor() {
|
30070
30148
|
super(...arguments);
|
30071
30149
|
__publicField(this, "precision", this.config.precision);
|
@@ -30081,18 +30159,18 @@ var init_double = __esm({
|
|
30081
30159
|
}
|
30082
30160
|
}
|
30083
30161
|
};
|
30084
|
-
__publicField(MySqlDouble,
|
30162
|
+
__publicField(MySqlDouble, _a262, "MySqlDouble");
|
30085
30163
|
}
|
30086
30164
|
});
|
30087
30165
|
|
30088
30166
|
// ../drizzle-orm/dist/mysql-core/columns/enum.js
|
30089
|
-
var
|
30167
|
+
var _a263, _b189, MySqlEnumColumnBuilder, _a264, _b190, MySqlEnumColumn;
|
30090
30168
|
var init_enum2 = __esm({
|
30091
30169
|
"../drizzle-orm/dist/mysql-core/columns/enum.js"() {
|
30092
30170
|
"use strict";
|
30093
30171
|
init_entity();
|
30094
30172
|
init_common4();
|
30095
|
-
MySqlEnumColumnBuilder = class extends (
|
30173
|
+
MySqlEnumColumnBuilder = class extends (_b189 = MySqlColumnBuilder, _a263 = entityKind, _b189) {
|
30096
30174
|
constructor(name2, values) {
|
30097
30175
|
super(name2, "string", "MySqlEnumColumn");
|
30098
30176
|
this.config.enumValues = values;
|
@@ -30105,8 +30183,8 @@ var init_enum2 = __esm({
|
|
30105
30183
|
);
|
30106
30184
|
}
|
30107
30185
|
};
|
30108
|
-
__publicField(MySqlEnumColumnBuilder,
|
30109
|
-
MySqlEnumColumn = class extends (
|
30186
|
+
__publicField(MySqlEnumColumnBuilder, _a263, "MySqlEnumColumnBuilder");
|
30187
|
+
MySqlEnumColumn = class extends (_b190 = MySqlColumn, _a264 = entityKind, _b190) {
|
30110
30188
|
constructor() {
|
30111
30189
|
super(...arguments);
|
30112
30190
|
__publicField(this, "enumValues", this.config.enumValues);
|
@@ -30115,18 +30193,18 @@ var init_enum2 = __esm({
|
|
30115
30193
|
return `enum(${this.enumValues.map((value) => `'${value}'`).join(",")})`;
|
30116
30194
|
}
|
30117
30195
|
};
|
30118
|
-
__publicField(MySqlEnumColumn,
|
30196
|
+
__publicField(MySqlEnumColumn, _a264, "MySqlEnumColumn");
|
30119
30197
|
}
|
30120
30198
|
});
|
30121
30199
|
|
30122
30200
|
// ../drizzle-orm/dist/mysql-core/columns/float.js
|
30123
|
-
var
|
30201
|
+
var _a265, _b191, MySqlFloatBuilder, _a266, _b192, MySqlFloat;
|
30124
30202
|
var init_float = __esm({
|
30125
30203
|
"../drizzle-orm/dist/mysql-core/columns/float.js"() {
|
30126
30204
|
"use strict";
|
30127
30205
|
init_entity();
|
30128
30206
|
init_common4();
|
30129
|
-
MySqlFloatBuilder = class extends (
|
30207
|
+
MySqlFloatBuilder = class extends (_b191 = MySqlColumnBuilderWithAutoIncrement, _a265 = entityKind, _b191) {
|
30130
30208
|
constructor(name2) {
|
30131
30209
|
super(name2, "number", "MySqlFloat");
|
30132
30210
|
}
|
@@ -30135,24 +30213,24 @@ var init_float = __esm({
|
|
30135
30213
|
return new MySqlFloat(table4, this.config);
|
30136
30214
|
}
|
30137
30215
|
};
|
30138
|
-
__publicField(MySqlFloatBuilder,
|
30139
|
-
MySqlFloat = class extends (
|
30216
|
+
__publicField(MySqlFloatBuilder, _a265, "MySqlFloatBuilder");
|
30217
|
+
MySqlFloat = class extends (_b192 = MySqlColumnWithAutoIncrement, _a266 = entityKind, _b192) {
|
30140
30218
|
getSQLType() {
|
30141
30219
|
return "float";
|
30142
30220
|
}
|
30143
30221
|
};
|
30144
|
-
__publicField(MySqlFloat,
|
30222
|
+
__publicField(MySqlFloat, _a266, "MySqlFloat");
|
30145
30223
|
}
|
30146
30224
|
});
|
30147
30225
|
|
30148
30226
|
// ../drizzle-orm/dist/mysql-core/columns/int.js
|
30149
|
-
var
|
30227
|
+
var _a267, _b193, MySqlIntBuilder, _a268, _b194, MySqlInt;
|
30150
30228
|
var init_int = __esm({
|
30151
30229
|
"../drizzle-orm/dist/mysql-core/columns/int.js"() {
|
30152
30230
|
"use strict";
|
30153
30231
|
init_entity();
|
30154
30232
|
init_common4();
|
30155
|
-
MySqlIntBuilder = class extends (
|
30233
|
+
MySqlIntBuilder = class extends (_b193 = MySqlColumnBuilderWithAutoIncrement, _a267 = entityKind, _b193) {
|
30156
30234
|
constructor(name2, config) {
|
30157
30235
|
super(name2, "number", "MySqlInt");
|
30158
30236
|
this.config.unsigned = config ? config.unsigned : false;
|
@@ -30162,8 +30240,8 @@ var init_int = __esm({
|
|
30162
30240
|
return new MySqlInt(table4, this.config);
|
30163
30241
|
}
|
30164
30242
|
};
|
30165
|
-
__publicField(MySqlIntBuilder,
|
30166
|
-
MySqlInt = class extends (
|
30243
|
+
__publicField(MySqlIntBuilder, _a267, "MySqlIntBuilder");
|
30244
|
+
MySqlInt = class extends (_b194 = MySqlColumnWithAutoIncrement, _a268 = entityKind, _b194) {
|
30167
30245
|
getSQLType() {
|
30168
30246
|
return `int${this.config.unsigned ? " unsigned" : ""}`;
|
30169
30247
|
}
|
@@ -30174,18 +30252,18 @@ var init_int = __esm({
|
|
30174
30252
|
return value;
|
30175
30253
|
}
|
30176
30254
|
};
|
30177
|
-
__publicField(MySqlInt,
|
30255
|
+
__publicField(MySqlInt, _a268, "MySqlInt");
|
30178
30256
|
}
|
30179
30257
|
});
|
30180
30258
|
|
30181
30259
|
// ../drizzle-orm/dist/mysql-core/columns/json.js
|
30182
|
-
var
|
30260
|
+
var _a269, _b195, MySqlJsonBuilder, _a270, _b196, MySqlJson;
|
30183
30261
|
var init_json2 = __esm({
|
30184
30262
|
"../drizzle-orm/dist/mysql-core/columns/json.js"() {
|
30185
30263
|
"use strict";
|
30186
30264
|
init_entity();
|
30187
30265
|
init_common4();
|
30188
|
-
MySqlJsonBuilder = class extends (
|
30266
|
+
MySqlJsonBuilder = class extends (_b195 = MySqlColumnBuilder, _a269 = entityKind, _b195) {
|
30189
30267
|
constructor(name2) {
|
30190
30268
|
super(name2, "json", "MySqlJson");
|
30191
30269
|
}
|
@@ -30194,8 +30272,8 @@ var init_json2 = __esm({
|
|
30194
30272
|
return new MySqlJson(table4, this.config);
|
30195
30273
|
}
|
30196
30274
|
};
|
30197
|
-
__publicField(MySqlJsonBuilder,
|
30198
|
-
MySqlJson = class extends (
|
30275
|
+
__publicField(MySqlJsonBuilder, _a269, "MySqlJsonBuilder");
|
30276
|
+
MySqlJson = class extends (_b196 = MySqlColumn, _a270 = entityKind, _b196) {
|
30199
30277
|
getSQLType() {
|
30200
30278
|
return "json";
|
30201
30279
|
}
|
@@ -30203,18 +30281,18 @@ var init_json2 = __esm({
|
|
30203
30281
|
return JSON.stringify(value);
|
30204
30282
|
}
|
30205
30283
|
};
|
30206
|
-
__publicField(MySqlJson,
|
30284
|
+
__publicField(MySqlJson, _a270, "MySqlJson");
|
30207
30285
|
}
|
30208
30286
|
});
|
30209
30287
|
|
30210
30288
|
// ../drizzle-orm/dist/mysql-core/columns/mediumint.js
|
30211
|
-
var
|
30289
|
+
var _a271, _b197, MySqlMediumIntBuilder, _a272, _b198, MySqlMediumInt;
|
30212
30290
|
var init_mediumint = __esm({
|
30213
30291
|
"../drizzle-orm/dist/mysql-core/columns/mediumint.js"() {
|
30214
30292
|
"use strict";
|
30215
30293
|
init_entity();
|
30216
30294
|
init_common4();
|
30217
|
-
MySqlMediumIntBuilder = class extends (
|
30295
|
+
MySqlMediumIntBuilder = class extends (_b197 = MySqlColumnBuilderWithAutoIncrement, _a271 = entityKind, _b197) {
|
30218
30296
|
constructor(name2, config) {
|
30219
30297
|
super(name2, "number", "MySqlMediumInt");
|
30220
30298
|
this.config.unsigned = config ? config.unsigned : false;
|
@@ -30227,8 +30305,8 @@ var init_mediumint = __esm({
|
|
30227
30305
|
);
|
30228
30306
|
}
|
30229
30307
|
};
|
30230
|
-
__publicField(MySqlMediumIntBuilder,
|
30231
|
-
MySqlMediumInt = class extends (
|
30308
|
+
__publicField(MySqlMediumIntBuilder, _a271, "MySqlMediumIntBuilder");
|
30309
|
+
MySqlMediumInt = class extends (_b198 = MySqlColumnWithAutoIncrement, _a272 = entityKind, _b198) {
|
30232
30310
|
getSQLType() {
|
30233
30311
|
return `mediumint${this.config.unsigned ? " unsigned" : ""}`;
|
30234
30312
|
}
|
@@ -30239,18 +30317,18 @@ var init_mediumint = __esm({
|
|
30239
30317
|
return value;
|
30240
30318
|
}
|
30241
30319
|
};
|
30242
|
-
__publicField(MySqlMediumInt,
|
30320
|
+
__publicField(MySqlMediumInt, _a272, "MySqlMediumInt");
|
30243
30321
|
}
|
30244
30322
|
});
|
30245
30323
|
|
30246
30324
|
// ../drizzle-orm/dist/mysql-core/columns/real.js
|
30247
|
-
var
|
30325
|
+
var _a273, _b199, MySqlRealBuilder, _a274, _b200, MySqlReal;
|
30248
30326
|
var init_real3 = __esm({
|
30249
30327
|
"../drizzle-orm/dist/mysql-core/columns/real.js"() {
|
30250
30328
|
"use strict";
|
30251
30329
|
init_entity();
|
30252
30330
|
init_common4();
|
30253
|
-
MySqlRealBuilder = class extends (
|
30331
|
+
MySqlRealBuilder = class extends (_b199 = MySqlColumnBuilderWithAutoIncrement, _a273 = entityKind, _b199) {
|
30254
30332
|
constructor(name2, config) {
|
30255
30333
|
super(name2, "number", "MySqlReal");
|
30256
30334
|
this.config.precision = config?.precision;
|
@@ -30261,8 +30339,8 @@ var init_real3 = __esm({
|
|
30261
30339
|
return new MySqlReal(table4, this.config);
|
30262
30340
|
}
|
30263
30341
|
};
|
30264
|
-
__publicField(MySqlRealBuilder,
|
30265
|
-
MySqlReal = class extends (
|
30342
|
+
__publicField(MySqlRealBuilder, _a273, "MySqlRealBuilder");
|
30343
|
+
MySqlReal = class extends (_b200 = MySqlColumnWithAutoIncrement, _a274 = entityKind, _b200) {
|
30266
30344
|
constructor() {
|
30267
30345
|
super(...arguments);
|
30268
30346
|
__publicField(this, "precision", this.config.precision);
|
@@ -30278,18 +30356,18 @@ var init_real3 = __esm({
|
|
30278
30356
|
}
|
30279
30357
|
}
|
30280
30358
|
};
|
30281
|
-
__publicField(MySqlReal,
|
30359
|
+
__publicField(MySqlReal, _a274, "MySqlReal");
|
30282
30360
|
}
|
30283
30361
|
});
|
30284
30362
|
|
30285
30363
|
// ../drizzle-orm/dist/mysql-core/columns/serial.js
|
30286
|
-
var
|
30364
|
+
var _a275, _b201, MySqlSerialBuilder, _a276, _b202, MySqlSerial;
|
30287
30365
|
var init_serial2 = __esm({
|
30288
30366
|
"../drizzle-orm/dist/mysql-core/columns/serial.js"() {
|
30289
30367
|
"use strict";
|
30290
30368
|
init_entity();
|
30291
30369
|
init_common4();
|
30292
|
-
MySqlSerialBuilder = class extends (
|
30370
|
+
MySqlSerialBuilder = class extends (_b201 = MySqlColumnBuilderWithAutoIncrement, _a275 = entityKind, _b201) {
|
30293
30371
|
constructor(name2) {
|
30294
30372
|
super(name2, "number", "MySqlSerial");
|
30295
30373
|
this.config.hasDefault = true;
|
@@ -30300,8 +30378,8 @@ var init_serial2 = __esm({
|
|
30300
30378
|
return new MySqlSerial(table4, this.config);
|
30301
30379
|
}
|
30302
30380
|
};
|
30303
|
-
__publicField(MySqlSerialBuilder,
|
30304
|
-
MySqlSerial = class extends (
|
30381
|
+
__publicField(MySqlSerialBuilder, _a275, "MySqlSerialBuilder");
|
30382
|
+
MySqlSerial = class extends (_b202 = MySqlColumnWithAutoIncrement, _a276 = entityKind, _b202) {
|
30305
30383
|
getSQLType() {
|
30306
30384
|
return "serial";
|
30307
30385
|
}
|
@@ -30312,18 +30390,18 @@ var init_serial2 = __esm({
|
|
30312
30390
|
return value;
|
30313
30391
|
}
|
30314
30392
|
};
|
30315
|
-
__publicField(MySqlSerial,
|
30393
|
+
__publicField(MySqlSerial, _a276, "MySqlSerial");
|
30316
30394
|
}
|
30317
30395
|
});
|
30318
30396
|
|
30319
30397
|
// ../drizzle-orm/dist/mysql-core/columns/smallint.js
|
30320
|
-
var
|
30398
|
+
var _a277, _b203, MySqlSmallIntBuilder, _a278, _b204, MySqlSmallInt;
|
30321
30399
|
var init_smallint2 = __esm({
|
30322
30400
|
"../drizzle-orm/dist/mysql-core/columns/smallint.js"() {
|
30323
30401
|
"use strict";
|
30324
30402
|
init_entity();
|
30325
30403
|
init_common4();
|
30326
|
-
MySqlSmallIntBuilder = class extends (
|
30404
|
+
MySqlSmallIntBuilder = class extends (_b203 = MySqlColumnBuilderWithAutoIncrement, _a277 = entityKind, _b203) {
|
30327
30405
|
constructor(name2, config) {
|
30328
30406
|
super(name2, "number", "MySqlSmallInt");
|
30329
30407
|
this.config.unsigned = config ? config.unsigned : false;
|
@@ -30336,8 +30414,8 @@ var init_smallint2 = __esm({
|
|
30336
30414
|
);
|
30337
30415
|
}
|
30338
30416
|
};
|
30339
|
-
__publicField(MySqlSmallIntBuilder,
|
30340
|
-
MySqlSmallInt = class extends (
|
30417
|
+
__publicField(MySqlSmallIntBuilder, _a277, "MySqlSmallIntBuilder");
|
30418
|
+
MySqlSmallInt = class extends (_b204 = MySqlColumnWithAutoIncrement, _a278 = entityKind, _b204) {
|
30341
30419
|
getSQLType() {
|
30342
30420
|
return `smallint${this.config.unsigned ? " unsigned" : ""}`;
|
30343
30421
|
}
|
@@ -30348,18 +30426,18 @@ var init_smallint2 = __esm({
|
|
30348
30426
|
return value;
|
30349
30427
|
}
|
30350
30428
|
};
|
30351
|
-
__publicField(MySqlSmallInt,
|
30429
|
+
__publicField(MySqlSmallInt, _a278, "MySqlSmallInt");
|
30352
30430
|
}
|
30353
30431
|
});
|
30354
30432
|
|
30355
30433
|
// ../drizzle-orm/dist/mysql-core/columns/text.js
|
30356
|
-
var
|
30434
|
+
var _a279, _b205, MySqlTextBuilder, _a280, _b206, MySqlText;
|
30357
30435
|
var init_text3 = __esm({
|
30358
30436
|
"../drizzle-orm/dist/mysql-core/columns/text.js"() {
|
30359
30437
|
"use strict";
|
30360
30438
|
init_entity();
|
30361
30439
|
init_common4();
|
30362
|
-
MySqlTextBuilder = class extends (
|
30440
|
+
MySqlTextBuilder = class extends (_b205 = MySqlColumnBuilder, _a279 = entityKind, _b205) {
|
30363
30441
|
constructor(name2, textType, config) {
|
30364
30442
|
super(name2, "string", "MySqlText");
|
30365
30443
|
this.config.textType = textType;
|
@@ -30370,8 +30448,8 @@ var init_text3 = __esm({
|
|
30370
30448
|
return new MySqlText(table4, this.config);
|
30371
30449
|
}
|
30372
30450
|
};
|
30373
|
-
__publicField(MySqlTextBuilder,
|
30374
|
-
MySqlText = class extends (
|
30451
|
+
__publicField(MySqlTextBuilder, _a279, "MySqlTextBuilder");
|
30452
|
+
MySqlText = class extends (_b206 = MySqlColumn, _a280 = entityKind, _b206) {
|
30375
30453
|
constructor() {
|
30376
30454
|
super(...arguments);
|
30377
30455
|
__publicField(this, "textType", this.config.textType);
|
@@ -30381,18 +30459,18 @@ var init_text3 = __esm({
|
|
30381
30459
|
return this.textType;
|
30382
30460
|
}
|
30383
30461
|
};
|
30384
|
-
__publicField(MySqlText,
|
30462
|
+
__publicField(MySqlText, _a280, "MySqlText");
|
30385
30463
|
}
|
30386
30464
|
});
|
30387
30465
|
|
30388
30466
|
// ../drizzle-orm/dist/mysql-core/columns/time.js
|
30389
|
-
var
|
30467
|
+
var _a281, _b207, MySqlTimeBuilder, _a282, _b208, MySqlTime;
|
30390
30468
|
var init_time2 = __esm({
|
30391
30469
|
"../drizzle-orm/dist/mysql-core/columns/time.js"() {
|
30392
30470
|
"use strict";
|
30393
30471
|
init_entity();
|
30394
30472
|
init_common4();
|
30395
|
-
MySqlTimeBuilder = class extends (
|
30473
|
+
MySqlTimeBuilder = class extends (_b207 = MySqlColumnBuilder, _a281 = entityKind, _b207) {
|
30396
30474
|
constructor(name2, config) {
|
30397
30475
|
super(name2, "string", "MySqlTime");
|
30398
30476
|
this.config.fsp = config?.fsp;
|
@@ -30402,8 +30480,8 @@ var init_time2 = __esm({
|
|
30402
30480
|
return new MySqlTime(table4, this.config);
|
30403
30481
|
}
|
30404
30482
|
};
|
30405
|
-
__publicField(MySqlTimeBuilder,
|
30406
|
-
MySqlTime = class extends (
|
30483
|
+
__publicField(MySqlTimeBuilder, _a281, "MySqlTimeBuilder");
|
30484
|
+
MySqlTime = class extends (_b208 = MySqlColumn, _a282 = entityKind, _b208) {
|
30407
30485
|
constructor() {
|
30408
30486
|
super(...arguments);
|
30409
30487
|
__publicField(this, "fsp", this.config.fsp);
|
@@ -30413,19 +30491,19 @@ var init_time2 = __esm({
|
|
30413
30491
|
return `time${precision}`;
|
30414
30492
|
}
|
30415
30493
|
};
|
30416
|
-
__publicField(MySqlTime,
|
30494
|
+
__publicField(MySqlTime, _a282, "MySqlTime");
|
30417
30495
|
}
|
30418
30496
|
});
|
30419
30497
|
|
30420
30498
|
// ../drizzle-orm/dist/mysql-core/columns/date.common.js
|
30421
|
-
var
|
30499
|
+
var _a283, _b209, MySqlDateColumnBaseBuilder, _a284, _b210, MySqlDateBaseColumn;
|
30422
30500
|
var init_date_common2 = __esm({
|
30423
30501
|
"../drizzle-orm/dist/mysql-core/columns/date.common.js"() {
|
30424
30502
|
"use strict";
|
30425
30503
|
init_entity();
|
30426
30504
|
init_sql();
|
30427
30505
|
init_common4();
|
30428
|
-
MySqlDateColumnBaseBuilder = class extends (
|
30506
|
+
MySqlDateColumnBaseBuilder = class extends (_b209 = MySqlColumnBuilder, _a283 = entityKind, _b209) {
|
30429
30507
|
defaultNow() {
|
30430
30508
|
return this.default(sql`(now())`);
|
30431
30509
|
}
|
@@ -30436,25 +30514,25 @@ var init_date_common2 = __esm({
|
|
30436
30514
|
return this;
|
30437
30515
|
}
|
30438
30516
|
};
|
30439
|
-
__publicField(MySqlDateColumnBaseBuilder,
|
30440
|
-
MySqlDateBaseColumn = class extends (
|
30517
|
+
__publicField(MySqlDateColumnBaseBuilder, _a283, "MySqlDateColumnBuilder");
|
30518
|
+
MySqlDateBaseColumn = class extends (_b210 = MySqlColumn, _a284 = entityKind, _b210) {
|
30441
30519
|
constructor() {
|
30442
30520
|
super(...arguments);
|
30443
30521
|
__publicField(this, "hasOnUpdateNow", this.config.hasOnUpdateNow);
|
30444
30522
|
}
|
30445
30523
|
};
|
30446
|
-
__publicField(MySqlDateBaseColumn,
|
30524
|
+
__publicField(MySqlDateBaseColumn, _a284, "MySqlDateColumn");
|
30447
30525
|
}
|
30448
30526
|
});
|
30449
30527
|
|
30450
30528
|
// ../drizzle-orm/dist/mysql-core/columns/timestamp.js
|
30451
|
-
var
|
30529
|
+
var _a285, _b211, MySqlTimestampBuilder, _a286, _b212, MySqlTimestamp, _a287, _b213, MySqlTimestampStringBuilder, _a288, _b214, MySqlTimestampString;
|
30452
30530
|
var init_timestamp2 = __esm({
|
30453
30531
|
"../drizzle-orm/dist/mysql-core/columns/timestamp.js"() {
|
30454
30532
|
"use strict";
|
30455
30533
|
init_entity();
|
30456
30534
|
init_date_common2();
|
30457
|
-
MySqlTimestampBuilder = class extends (
|
30535
|
+
MySqlTimestampBuilder = class extends (_b211 = MySqlDateColumnBaseBuilder, _a285 = entityKind, _b211) {
|
30458
30536
|
constructor(name2, config) {
|
30459
30537
|
super(name2, "date", "MySqlTimestamp");
|
30460
30538
|
this.config.fsp = config?.fsp;
|
@@ -30467,8 +30545,8 @@ var init_timestamp2 = __esm({
|
|
30467
30545
|
);
|
30468
30546
|
}
|
30469
30547
|
};
|
30470
|
-
__publicField(MySqlTimestampBuilder,
|
30471
|
-
MySqlTimestamp = class extends (
|
30548
|
+
__publicField(MySqlTimestampBuilder, _a285, "MySqlTimestampBuilder");
|
30549
|
+
MySqlTimestamp = class extends (_b212 = MySqlDateBaseColumn, _a286 = entityKind, _b212) {
|
30472
30550
|
constructor() {
|
30473
30551
|
super(...arguments);
|
30474
30552
|
__publicField(this, "fsp", this.config.fsp);
|
@@ -30484,8 +30562,8 @@ var init_timestamp2 = __esm({
|
|
30484
30562
|
return value.toISOString().slice(0, -1).replace("T", " ");
|
30485
30563
|
}
|
30486
30564
|
};
|
30487
|
-
__publicField(MySqlTimestamp,
|
30488
|
-
MySqlTimestampStringBuilder = class extends (
|
30565
|
+
__publicField(MySqlTimestamp, _a286, "MySqlTimestamp");
|
30566
|
+
MySqlTimestampStringBuilder = class extends (_b213 = MySqlDateColumnBaseBuilder, _a287 = entityKind, _b213) {
|
30489
30567
|
constructor(name2, config) {
|
30490
30568
|
super(name2, "string", "MySqlTimestampString");
|
30491
30569
|
this.config.fsp = config?.fsp;
|
@@ -30498,8 +30576,8 @@ var init_timestamp2 = __esm({
|
|
30498
30576
|
);
|
30499
30577
|
}
|
30500
30578
|
};
|
30501
|
-
__publicField(MySqlTimestampStringBuilder,
|
30502
|
-
MySqlTimestampString = class extends (
|
30579
|
+
__publicField(MySqlTimestampStringBuilder, _a287, "MySqlTimestampStringBuilder");
|
30580
|
+
MySqlTimestampString = class extends (_b214 = MySqlDateBaseColumn, _a288 = entityKind, _b214) {
|
30503
30581
|
constructor() {
|
30504
30582
|
super(...arguments);
|
30505
30583
|
__publicField(this, "fsp", this.config.fsp);
|
@@ -30509,18 +30587,18 @@ var init_timestamp2 = __esm({
|
|
30509
30587
|
return `timestamp${precision}`;
|
30510
30588
|
}
|
30511
30589
|
};
|
30512
|
-
__publicField(MySqlTimestampString,
|
30590
|
+
__publicField(MySqlTimestampString, _a288, "MySqlTimestampString");
|
30513
30591
|
}
|
30514
30592
|
});
|
30515
30593
|
|
30516
30594
|
// ../drizzle-orm/dist/mysql-core/columns/tinyint.js
|
30517
|
-
var
|
30595
|
+
var _a289, _b215, MySqlTinyIntBuilder, _a290, _b216, MySqlTinyInt;
|
30518
30596
|
var init_tinyint = __esm({
|
30519
30597
|
"../drizzle-orm/dist/mysql-core/columns/tinyint.js"() {
|
30520
30598
|
"use strict";
|
30521
30599
|
init_entity();
|
30522
30600
|
init_common4();
|
30523
|
-
MySqlTinyIntBuilder = class extends (
|
30601
|
+
MySqlTinyIntBuilder = class extends (_b215 = MySqlColumnBuilderWithAutoIncrement, _a289 = entityKind, _b215) {
|
30524
30602
|
constructor(name2, config) {
|
30525
30603
|
super(name2, "number", "MySqlTinyInt");
|
30526
30604
|
this.config.unsigned = config ? config.unsigned : false;
|
@@ -30533,8 +30611,8 @@ var init_tinyint = __esm({
|
|
30533
30611
|
);
|
30534
30612
|
}
|
30535
30613
|
};
|
30536
|
-
__publicField(MySqlTinyIntBuilder,
|
30537
|
-
MySqlTinyInt = class extends (
|
30614
|
+
__publicField(MySqlTinyIntBuilder, _a289, "MySqlTinyIntBuilder");
|
30615
|
+
MySqlTinyInt = class extends (_b216 = MySqlColumnWithAutoIncrement, _a290 = entityKind, _b216) {
|
30538
30616
|
getSQLType() {
|
30539
30617
|
return `tinyint${this.config.unsigned ? " unsigned" : ""}`;
|
30540
30618
|
}
|
@@ -30545,18 +30623,18 @@ var init_tinyint = __esm({
|
|
30545
30623
|
return value;
|
30546
30624
|
}
|
30547
30625
|
};
|
30548
|
-
__publicField(MySqlTinyInt,
|
30626
|
+
__publicField(MySqlTinyInt, _a290, "MySqlTinyInt");
|
30549
30627
|
}
|
30550
30628
|
});
|
30551
30629
|
|
30552
30630
|
// ../drizzle-orm/dist/mysql-core/columns/varbinary.js
|
30553
|
-
var
|
30631
|
+
var _a291, _b217, MySqlVarBinaryBuilder, _a292, _b218, MySqlVarBinary;
|
30554
30632
|
var init_varbinary = __esm({
|
30555
30633
|
"../drizzle-orm/dist/mysql-core/columns/varbinary.js"() {
|
30556
30634
|
"use strict";
|
30557
30635
|
init_entity();
|
30558
30636
|
init_common4();
|
30559
|
-
MySqlVarBinaryBuilder = class extends (
|
30637
|
+
MySqlVarBinaryBuilder = class extends (_b217 = MySqlColumnBuilder, _a291 = entityKind, _b217) {
|
30560
30638
|
/** @internal */
|
30561
30639
|
constructor(name2, config) {
|
30562
30640
|
super(name2, "string", "MySqlVarBinary");
|
@@ -30570,8 +30648,8 @@ var init_varbinary = __esm({
|
|
30570
30648
|
);
|
30571
30649
|
}
|
30572
30650
|
};
|
30573
|
-
__publicField(MySqlVarBinaryBuilder,
|
30574
|
-
MySqlVarBinary = class extends (
|
30651
|
+
__publicField(MySqlVarBinaryBuilder, _a291, "MySqlVarBinaryBuilder");
|
30652
|
+
MySqlVarBinary = class extends (_b218 = MySqlColumn, _a292 = entityKind, _b218) {
|
30575
30653
|
constructor() {
|
30576
30654
|
super(...arguments);
|
30577
30655
|
__publicField(this, "length", this.config.length);
|
@@ -30580,18 +30658,18 @@ var init_varbinary = __esm({
|
|
30580
30658
|
return this.length === void 0 ? `varbinary` : `varbinary(${this.length})`;
|
30581
30659
|
}
|
30582
30660
|
};
|
30583
|
-
__publicField(MySqlVarBinary,
|
30661
|
+
__publicField(MySqlVarBinary, _a292, "MySqlVarBinary");
|
30584
30662
|
}
|
30585
30663
|
});
|
30586
30664
|
|
30587
30665
|
// ../drizzle-orm/dist/mysql-core/columns/varchar.js
|
30588
|
-
var
|
30666
|
+
var _a293, _b219, MySqlVarCharBuilder, _a294, _b220, MySqlVarChar;
|
30589
30667
|
var init_varchar2 = __esm({
|
30590
30668
|
"../drizzle-orm/dist/mysql-core/columns/varchar.js"() {
|
30591
30669
|
"use strict";
|
30592
30670
|
init_entity();
|
30593
30671
|
init_common4();
|
30594
|
-
MySqlVarCharBuilder = class extends (
|
30672
|
+
MySqlVarCharBuilder = class extends (_b219 = MySqlColumnBuilder, _a293 = entityKind, _b219) {
|
30595
30673
|
/** @internal */
|
30596
30674
|
constructor(name2, config) {
|
30597
30675
|
super(name2, "string", "MySqlVarChar");
|
@@ -30606,8 +30684,8 @@ var init_varchar2 = __esm({
|
|
30606
30684
|
);
|
30607
30685
|
}
|
30608
30686
|
};
|
30609
|
-
__publicField(MySqlVarCharBuilder,
|
30610
|
-
MySqlVarChar = class extends (
|
30687
|
+
__publicField(MySqlVarCharBuilder, _a293, "MySqlVarCharBuilder");
|
30688
|
+
MySqlVarChar = class extends (_b220 = MySqlColumn, _a294 = entityKind, _b220) {
|
30611
30689
|
constructor() {
|
30612
30690
|
super(...arguments);
|
30613
30691
|
__publicField(this, "length", this.config.length);
|
@@ -30617,18 +30695,18 @@ var init_varchar2 = __esm({
|
|
30617
30695
|
return this.length === void 0 ? `varchar` : `varchar(${this.length})`;
|
30618
30696
|
}
|
30619
30697
|
};
|
30620
|
-
__publicField(MySqlVarChar,
|
30698
|
+
__publicField(MySqlVarChar, _a294, "MySqlVarChar");
|
30621
30699
|
}
|
30622
30700
|
});
|
30623
30701
|
|
30624
30702
|
// ../drizzle-orm/dist/mysql-core/columns/year.js
|
30625
|
-
var
|
30703
|
+
var _a295, _b221, MySqlYearBuilder, _a296, _b222, MySqlYear;
|
30626
30704
|
var init_year = __esm({
|
30627
30705
|
"../drizzle-orm/dist/mysql-core/columns/year.js"() {
|
30628
30706
|
"use strict";
|
30629
30707
|
init_entity();
|
30630
30708
|
init_common4();
|
30631
|
-
MySqlYearBuilder = class extends (
|
30709
|
+
MySqlYearBuilder = class extends (_b221 = MySqlColumnBuilder, _a295 = entityKind, _b221) {
|
30632
30710
|
constructor(name2) {
|
30633
30711
|
super(name2, "number", "MySqlYear");
|
30634
30712
|
}
|
@@ -30637,13 +30715,13 @@ var init_year = __esm({
|
|
30637
30715
|
return new MySqlYear(table4, this.config);
|
30638
30716
|
}
|
30639
30717
|
};
|
30640
|
-
__publicField(MySqlYearBuilder,
|
30641
|
-
MySqlYear = class extends (
|
30718
|
+
__publicField(MySqlYearBuilder, _a295, "MySqlYearBuilder");
|
30719
|
+
MySqlYear = class extends (_b222 = MySqlColumn, _a296 = entityKind, _b222) {
|
30642
30720
|
getSQLType() {
|
30643
30721
|
return `year`;
|
30644
30722
|
}
|
30645
30723
|
};
|
30646
|
-
__publicField(MySqlYear,
|
30724
|
+
__publicField(MySqlYear, _a296, "MySqlYear");
|
30647
30725
|
}
|
30648
30726
|
});
|
30649
30727
|
|
@@ -30680,13 +30758,13 @@ var init_columns3 = __esm({
|
|
30680
30758
|
});
|
30681
30759
|
|
30682
30760
|
// ../drizzle-orm/dist/mysql-core/query-builders/delete.js
|
30683
|
-
var
|
30761
|
+
var _a297, _b223, MySqlDeleteBase;
|
30684
30762
|
var init_delete3 = __esm({
|
30685
30763
|
"../drizzle-orm/dist/mysql-core/query-builders/delete.js"() {
|
30686
30764
|
"use strict";
|
30687
30765
|
init_entity();
|
30688
30766
|
init_query_promise();
|
30689
|
-
MySqlDeleteBase = class extends (
|
30767
|
+
MySqlDeleteBase = class extends (_b223 = QueryPromise, _a297 = entityKind, _b223) {
|
30690
30768
|
constructor(table4, session, dialect7, withList) {
|
30691
30769
|
super();
|
30692
30770
|
__publicField(this, "config");
|
@@ -30756,12 +30834,12 @@ var init_delete3 = __esm({
|
|
30756
30834
|
return this;
|
30757
30835
|
}
|
30758
30836
|
};
|
30759
|
-
__publicField(MySqlDeleteBase,
|
30837
|
+
__publicField(MySqlDeleteBase, _a297, "MySqlDelete");
|
30760
30838
|
}
|
30761
30839
|
});
|
30762
30840
|
|
30763
30841
|
// ../drizzle-orm/dist/mysql-core/query-builders/insert.js
|
30764
|
-
var
|
30842
|
+
var _a298, MySqlInsertBuilder, _a299, _b224, MySqlInsertBase;
|
30765
30843
|
var init_insert3 = __esm({
|
30766
30844
|
"../drizzle-orm/dist/mysql-core/query-builders/insert.js"() {
|
30767
30845
|
"use strict";
|
@@ -30770,7 +30848,7 @@ var init_insert3 = __esm({
|
|
30770
30848
|
init_sql();
|
30771
30849
|
init_table();
|
30772
30850
|
init_utils2();
|
30773
|
-
|
30851
|
+
_a298 = entityKind;
|
30774
30852
|
MySqlInsertBuilder = class {
|
30775
30853
|
constructor(table4, session, dialect7) {
|
30776
30854
|
__publicField(this, "shouldIgnore", false);
|
@@ -30799,8 +30877,8 @@ var init_insert3 = __esm({
|
|
30799
30877
|
return new MySqlInsertBase(this.table, mappedValues, this.shouldIgnore, this.session, this.dialect);
|
30800
30878
|
}
|
30801
30879
|
};
|
30802
|
-
__publicField(MySqlInsertBuilder,
|
30803
|
-
MySqlInsertBase = class extends (
|
30880
|
+
__publicField(MySqlInsertBuilder, _a298, "MySqlInsertBuilder");
|
30881
|
+
MySqlInsertBase = class extends (_b224 = QueryPromise, _a299 = entityKind, _b224) {
|
30804
30882
|
constructor(table4, values, ignore, session, dialect7) {
|
30805
30883
|
super();
|
30806
30884
|
__publicField(this, "config");
|
@@ -30881,25 +30959,25 @@ var init_insert3 = __esm({
|
|
30881
30959
|
return this;
|
30882
30960
|
}
|
30883
30961
|
};
|
30884
|
-
__publicField(MySqlInsertBase,
|
30962
|
+
__publicField(MySqlInsertBase, _a299, "MySqlInsert");
|
30885
30963
|
}
|
30886
30964
|
});
|
30887
30965
|
|
30888
30966
|
// ../drizzle-orm/dist/mysql-core/view-base.js
|
30889
|
-
var
|
30967
|
+
var _a300, _b225, MySqlViewBase;
|
30890
30968
|
var init_view_base3 = __esm({
|
30891
30969
|
"../drizzle-orm/dist/mysql-core/view-base.js"() {
|
30892
30970
|
"use strict";
|
30893
30971
|
init_entity();
|
30894
30972
|
init_sql();
|
30895
|
-
MySqlViewBase = class extends (
|
30973
|
+
MySqlViewBase = class extends (_b225 = View, _a300 = entityKind, _b225) {
|
30896
30974
|
};
|
30897
|
-
__publicField(MySqlViewBase,
|
30975
|
+
__publicField(MySqlViewBase, _a300, "MySqlViewBase");
|
30898
30976
|
}
|
30899
30977
|
});
|
30900
30978
|
|
30901
30979
|
// ../drizzle-orm/dist/mysql-core/dialect.js
|
30902
|
-
var
|
30980
|
+
var _a301, MySqlDialect;
|
30903
30981
|
var init_dialect3 = __esm({
|
30904
30982
|
"../drizzle-orm/dist/mysql-core/dialect.js"() {
|
30905
30983
|
"use strict";
|
@@ -30917,7 +30995,7 @@ var init_dialect3 = __esm({
|
|
30917
30995
|
init_common4();
|
30918
30996
|
init_table4();
|
30919
30997
|
init_view_base3();
|
30920
|
-
|
30998
|
+
_a301 = entityKind;
|
30921
30999
|
MySqlDialect = class {
|
30922
31000
|
async migrate(migrations, session, config) {
|
30923
31001
|
const migrationsTable = config.migrationsTable ?? "__drizzle_migrations";
|
@@ -31693,7 +31771,7 @@ var init_dialect3 = __esm({
|
|
31693
31771
|
};
|
31694
31772
|
}
|
31695
31773
|
};
|
31696
|
-
__publicField(MySqlDialect,
|
31774
|
+
__publicField(MySqlDialect, _a301, "MySqlDialect");
|
31697
31775
|
}
|
31698
31776
|
});
|
31699
31777
|
|
@@ -31715,7 +31793,7 @@ function createSetOperator3(type, isAll) {
|
|
31715
31793
|
return leftSelect.addSetOperators(setOperators);
|
31716
31794
|
};
|
31717
31795
|
}
|
31718
|
-
var
|
31796
|
+
var _a302, MySqlSelectBuilder, _a303, _b226, MySqlSelectQueryBuilderBase, _a304, _b227, MySqlSelectBase, getMySqlSetOperators, union3, unionAll3, intersect3, intersectAll2, except3, exceptAll2;
|
31719
31797
|
var init_select4 = __esm({
|
31720
31798
|
"../drizzle-orm/dist/mysql-core/query-builders/select.js"() {
|
31721
31799
|
"use strict";
|
@@ -31730,7 +31808,7 @@ var init_select4 = __esm({
|
|
31730
31808
|
init_utils2();
|
31731
31809
|
init_view_common();
|
31732
31810
|
init_view_base3();
|
31733
|
-
|
31811
|
+
_a302 = entityKind;
|
31734
31812
|
MySqlSelectBuilder = class {
|
31735
31813
|
constructor(config) {
|
31736
31814
|
__publicField(this, "fields");
|
@@ -31775,8 +31853,8 @@ var init_select4 = __esm({
|
|
31775
31853
|
);
|
31776
31854
|
}
|
31777
31855
|
};
|
31778
|
-
__publicField(MySqlSelectBuilder,
|
31779
|
-
MySqlSelectQueryBuilderBase = class extends (
|
31856
|
+
__publicField(MySqlSelectBuilder, _a302, "MySqlSelectBuilder");
|
31857
|
+
MySqlSelectQueryBuilderBase = class extends (_b226 = TypedQueryBuilder, _a303 = entityKind, _b226) {
|
31780
31858
|
constructor({ table: table4, fields, isPartialSelect, session, dialect: dialect7, withList, distinct }) {
|
31781
31859
|
super();
|
31782
31860
|
__publicField(this, "_");
|
@@ -32377,8 +32455,8 @@ var init_select4 = __esm({
|
|
32377
32455
|
return this;
|
32378
32456
|
}
|
32379
32457
|
};
|
32380
|
-
__publicField(MySqlSelectQueryBuilderBase,
|
32381
|
-
MySqlSelectBase = class extends (
|
32458
|
+
__publicField(MySqlSelectQueryBuilderBase, _a303, "MySqlSelectQueryBuilder");
|
32459
|
+
MySqlSelectBase = class extends (_b227 = MySqlSelectQueryBuilderBase, _a304 = entityKind, _b227) {
|
32382
32460
|
constructor() {
|
32383
32461
|
super(...arguments);
|
32384
32462
|
__publicField(this, "execute", (placeholderValues) => {
|
@@ -32402,7 +32480,7 @@ var init_select4 = __esm({
|
|
32402
32480
|
return query;
|
32403
32481
|
}
|
32404
32482
|
};
|
32405
|
-
__publicField(MySqlSelectBase,
|
32483
|
+
__publicField(MySqlSelectBase, _a304, "MySqlSelect");
|
32406
32484
|
applyMixins(MySqlSelectBase, [QueryPromise]);
|
32407
32485
|
getMySqlSetOperators = () => ({
|
32408
32486
|
union: union3,
|
@@ -32422,7 +32500,7 @@ var init_select4 = __esm({
|
|
32422
32500
|
});
|
32423
32501
|
|
32424
32502
|
// ../drizzle-orm/dist/mysql-core/query-builders/query-builder.js
|
32425
|
-
var
|
32503
|
+
var _a305, QueryBuilder3;
|
32426
32504
|
var init_query_builder4 = __esm({
|
32427
32505
|
"../drizzle-orm/dist/mysql-core/query-builders/query-builder.js"() {
|
32428
32506
|
"use strict";
|
@@ -32431,7 +32509,7 @@ var init_query_builder4 = __esm({
|
|
32431
32509
|
init_selection_proxy();
|
32432
32510
|
init_subquery();
|
32433
32511
|
init_select4();
|
32434
|
-
|
32512
|
+
_a305 = entityKind;
|
32435
32513
|
QueryBuilder3 = class {
|
32436
32514
|
constructor() {
|
32437
32515
|
__publicField(this, "dialect");
|
@@ -32490,7 +32568,7 @@ var init_query_builder4 = __esm({
|
|
32490
32568
|
return this.dialect;
|
32491
32569
|
}
|
32492
32570
|
};
|
32493
|
-
__publicField(QueryBuilder3,
|
32571
|
+
__publicField(QueryBuilder3, _a305, "MySqlQueryBuilder");
|
32494
32572
|
}
|
32495
32573
|
});
|
32496
32574
|
|
@@ -32502,14 +32580,14 @@ var init_select_types3 = __esm({
|
|
32502
32580
|
});
|
32503
32581
|
|
32504
32582
|
// ../drizzle-orm/dist/mysql-core/query-builders/update.js
|
32505
|
-
var
|
32583
|
+
var _a306, MySqlUpdateBuilder, _a307, _b228, MySqlUpdateBase;
|
32506
32584
|
var init_update3 = __esm({
|
32507
32585
|
"../drizzle-orm/dist/mysql-core/query-builders/update.js"() {
|
32508
32586
|
"use strict";
|
32509
32587
|
init_entity();
|
32510
32588
|
init_query_promise();
|
32511
32589
|
init_utils2();
|
32512
|
-
|
32590
|
+
_a306 = entityKind;
|
32513
32591
|
MySqlUpdateBuilder = class {
|
32514
32592
|
constructor(table4, session, dialect7, withList) {
|
32515
32593
|
this.table = table4;
|
@@ -32521,8 +32599,8 @@ var init_update3 = __esm({
|
|
32521
32599
|
return new MySqlUpdateBase(this.table, mapUpdateSet(this.table, values), this.session, this.dialect, this.withList);
|
32522
32600
|
}
|
32523
32601
|
};
|
32524
|
-
__publicField(MySqlUpdateBuilder,
|
32525
|
-
MySqlUpdateBase = class extends (
|
32602
|
+
__publicField(MySqlUpdateBuilder, _a306, "MySqlUpdateBuilder");
|
32603
|
+
MySqlUpdateBase = class extends (_b228 = QueryPromise, _a307 = entityKind, _b228) {
|
32526
32604
|
constructor(table4, set, session, dialect7, withList) {
|
32527
32605
|
super();
|
32528
32606
|
__publicField(this, "config");
|
@@ -32595,7 +32673,7 @@ var init_update3 = __esm({
|
|
32595
32673
|
return this;
|
32596
32674
|
}
|
32597
32675
|
};
|
32598
|
-
__publicField(MySqlUpdateBase,
|
32676
|
+
__publicField(MySqlUpdateBase, _a307, "MySqlUpdate");
|
32599
32677
|
}
|
32600
32678
|
});
|
32601
32679
|
|
@@ -32613,14 +32691,14 @@ var init_query_builders3 = __esm({
|
|
32613
32691
|
});
|
32614
32692
|
|
32615
32693
|
// ../drizzle-orm/dist/mysql-core/query-builders/query.js
|
32616
|
-
var
|
32694
|
+
var _a308, RelationalQueryBuilder3, _a309, _b229, MySqlRelationalQuery;
|
32617
32695
|
var init_query3 = __esm({
|
32618
32696
|
"../drizzle-orm/dist/mysql-core/query-builders/query.js"() {
|
32619
32697
|
"use strict";
|
32620
32698
|
init_entity();
|
32621
32699
|
init_query_promise();
|
32622
32700
|
init_relations();
|
32623
|
-
|
32701
|
+
_a308 = entityKind;
|
32624
32702
|
RelationalQueryBuilder3 = class {
|
32625
32703
|
constructor(fullSchema, schema4, tableNamesMap, table4, tableConfig, dialect7, session, mode) {
|
32626
32704
|
this.fullSchema = fullSchema;
|
@@ -32661,8 +32739,8 @@ var init_query3 = __esm({
|
|
32661
32739
|
);
|
32662
32740
|
}
|
32663
32741
|
};
|
32664
|
-
__publicField(RelationalQueryBuilder3,
|
32665
|
-
MySqlRelationalQuery = class extends (
|
32742
|
+
__publicField(RelationalQueryBuilder3, _a308, "MySqlRelationalQueryBuilder");
|
32743
|
+
MySqlRelationalQuery = class extends (_b229 = QueryPromise, _a309 = entityKind, _b229) {
|
32666
32744
|
constructor(fullSchema, schema4, tableNamesMap, table4, tableConfig, dialect7, session, config, queryMode, mode) {
|
32667
32745
|
super();
|
32668
32746
|
this.fullSchema = fullSchema;
|
@@ -32726,12 +32804,12 @@ var init_query3 = __esm({
|
|
32726
32804
|
return this.prepare().execute();
|
32727
32805
|
}
|
32728
32806
|
};
|
32729
|
-
__publicField(MySqlRelationalQuery,
|
32807
|
+
__publicField(MySqlRelationalQuery, _a309, "MySqlRelationalQuery");
|
32730
32808
|
}
|
32731
32809
|
});
|
32732
32810
|
|
32733
32811
|
// ../drizzle-orm/dist/mysql-core/db.js
|
32734
|
-
var
|
32812
|
+
var _a310, MySqlDatabase;
|
32735
32813
|
var init_db3 = __esm({
|
32736
32814
|
"../drizzle-orm/dist/mysql-core/db.js"() {
|
32737
32815
|
"use strict";
|
@@ -32740,7 +32818,7 @@ var init_db3 = __esm({
|
|
32740
32818
|
init_subquery();
|
32741
32819
|
init_query_builders3();
|
32742
32820
|
init_query3();
|
32743
|
-
|
32821
|
+
_a310 = entityKind;
|
32744
32822
|
MySqlDatabase = class {
|
32745
32823
|
constructor(dialect7, session, schema4, mode) {
|
32746
32824
|
__publicField(this, "query");
|
@@ -32949,17 +33027,17 @@ var init_db3 = __esm({
|
|
32949
33027
|
return this.session.transaction(transaction, config);
|
32950
33028
|
}
|
32951
33029
|
};
|
32952
|
-
__publicField(MySqlDatabase,
|
33030
|
+
__publicField(MySqlDatabase, _a310, "MySqlDatabase");
|
32953
33031
|
}
|
32954
33032
|
});
|
32955
33033
|
|
32956
33034
|
// ../drizzle-orm/dist/mysql-core/indexes.js
|
32957
|
-
var
|
33035
|
+
var _a311, IndexBuilderOn3, _a312, IndexBuilder3, _a313, Index5;
|
32958
33036
|
var init_indexes3 = __esm({
|
32959
33037
|
"../drizzle-orm/dist/mysql-core/indexes.js"() {
|
32960
33038
|
"use strict";
|
32961
33039
|
init_entity();
|
32962
|
-
|
33040
|
+
_a311 = entityKind;
|
32963
33041
|
IndexBuilderOn3 = class {
|
32964
33042
|
constructor(name2, unique) {
|
32965
33043
|
this.name = name2;
|
@@ -32969,8 +33047,8 @@ var init_indexes3 = __esm({
|
|
32969
33047
|
return new IndexBuilder3(this.name, columns, this.unique);
|
32970
33048
|
}
|
32971
33049
|
};
|
32972
|
-
__publicField(IndexBuilderOn3,
|
32973
|
-
|
33050
|
+
__publicField(IndexBuilderOn3, _a311, "MySqlIndexBuilderOn");
|
33051
|
+
_a312 = entityKind;
|
32974
33052
|
IndexBuilder3 = class {
|
32975
33053
|
constructor(name2, columns, unique) {
|
32976
33054
|
/** @internal */
|
@@ -32998,26 +33076,26 @@ var init_indexes3 = __esm({
|
|
32998
33076
|
return new Index5(this.config, table4);
|
32999
33077
|
}
|
33000
33078
|
};
|
33001
|
-
__publicField(IndexBuilder3,
|
33002
|
-
|
33079
|
+
__publicField(IndexBuilder3, _a312, "MySqlIndexBuilder");
|
33080
|
+
_a313 = entityKind;
|
33003
33081
|
Index5 = class {
|
33004
33082
|
constructor(config, table4) {
|
33005
33083
|
__publicField(this, "config");
|
33006
33084
|
this.config = { ...config, table: table4 };
|
33007
33085
|
}
|
33008
33086
|
};
|
33009
|
-
__publicField(Index5,
|
33087
|
+
__publicField(Index5, _a313, "MySqlIndex");
|
33010
33088
|
}
|
33011
33089
|
});
|
33012
33090
|
|
33013
33091
|
// ../drizzle-orm/dist/mysql-core/primary-keys.js
|
33014
|
-
var
|
33092
|
+
var _a314, PrimaryKeyBuilder3, _a315, PrimaryKey3;
|
33015
33093
|
var init_primary_keys3 = __esm({
|
33016
33094
|
"../drizzle-orm/dist/mysql-core/primary-keys.js"() {
|
33017
33095
|
"use strict";
|
33018
33096
|
init_entity();
|
33019
33097
|
init_table4();
|
33020
|
-
|
33098
|
+
_a314 = entityKind;
|
33021
33099
|
PrimaryKeyBuilder3 = class {
|
33022
33100
|
constructor(columns, name2) {
|
33023
33101
|
/** @internal */
|
@@ -33032,8 +33110,8 @@ var init_primary_keys3 = __esm({
|
|
33032
33110
|
return new PrimaryKey3(table4, this.columns, this.name);
|
33033
33111
|
}
|
33034
33112
|
};
|
33035
|
-
__publicField(PrimaryKeyBuilder3,
|
33036
|
-
|
33113
|
+
__publicField(PrimaryKeyBuilder3, _a314, "MySqlPrimaryKeyBuilder");
|
33114
|
+
_a315 = entityKind;
|
33037
33115
|
PrimaryKey3 = class {
|
33038
33116
|
constructor(table4, columns, name2) {
|
33039
33117
|
__publicField(this, "columns");
|
@@ -33046,7 +33124,7 @@ var init_primary_keys3 = __esm({
|
|
33046
33124
|
return this.name ?? `${this.table[MySqlTable.Symbol.Name]}_${this.columns.map((column4) => column4.name).join("_")}_pk`;
|
33047
33125
|
}
|
33048
33126
|
};
|
33049
|
-
__publicField(PrimaryKey3,
|
33127
|
+
__publicField(PrimaryKey3, _a315, "MySqlPrimaryKey");
|
33050
33128
|
}
|
33051
33129
|
});
|
33052
33130
|
|
@@ -33066,7 +33144,7 @@ function mysqlViewWithSchema(name2, selection, schema4) {
|
|
33066
33144
|
}
|
33067
33145
|
return new ViewBuilder3(name2, schema4);
|
33068
33146
|
}
|
33069
|
-
var
|
33147
|
+
var _a316, ViewBuilderCore2, _a317, _b230, ViewBuilder3, _a318, _b231, ManualViewBuilder3, _a319, _b232, _c8, MySqlView;
|
33070
33148
|
var init_view3 = __esm({
|
33071
33149
|
"../drizzle-orm/dist/mysql-core/view.js"() {
|
33072
33150
|
"use strict";
|
@@ -33077,7 +33155,7 @@ var init_view3 = __esm({
|
|
33077
33155
|
init_table4();
|
33078
33156
|
init_view_base3();
|
33079
33157
|
init_view_common4();
|
33080
|
-
|
33158
|
+
_a316 = entityKind;
|
33081
33159
|
ViewBuilderCore2 = class {
|
33082
33160
|
constructor(name2, schema4) {
|
33083
33161
|
__publicField(this, "config", {});
|
@@ -33101,8 +33179,8 @@ var init_view3 = __esm({
|
|
33101
33179
|
return this;
|
33102
33180
|
}
|
33103
33181
|
};
|
33104
|
-
__publicField(ViewBuilderCore2,
|
33105
|
-
ViewBuilder3 = class extends (
|
33182
|
+
__publicField(ViewBuilderCore2, _a316, "MySqlViewBuilder");
|
33183
|
+
ViewBuilder3 = class extends (_b230 = ViewBuilderCore2, _a317 = entityKind, _b230) {
|
33106
33184
|
as(qb) {
|
33107
33185
|
if (typeof qb === "function") {
|
33108
33186
|
qb = qb(new QueryBuilder3());
|
@@ -33128,8 +33206,8 @@ var init_view3 = __esm({
|
|
33128
33206
|
);
|
33129
33207
|
}
|
33130
33208
|
};
|
33131
|
-
__publicField(ViewBuilder3,
|
33132
|
-
ManualViewBuilder3 = class extends (
|
33209
|
+
__publicField(ViewBuilder3, _a317, "MySqlViewBuilder");
|
33210
|
+
ManualViewBuilder3 = class extends (_b231 = ViewBuilderCore2, _a318 = entityKind, _b231) {
|
33133
33211
|
constructor(name2, columns, schema4) {
|
33134
33212
|
super(name2, schema4);
|
33135
33213
|
__publicField(this, "columns");
|
@@ -33174,27 +33252,27 @@ var init_view3 = __esm({
|
|
33174
33252
|
);
|
33175
33253
|
}
|
33176
33254
|
};
|
33177
|
-
__publicField(ManualViewBuilder3,
|
33178
|
-
MySqlView = class extends (_c8 = MySqlViewBase,
|
33255
|
+
__publicField(ManualViewBuilder3, _a318, "MySqlManualViewBuilder");
|
33256
|
+
MySqlView = class extends (_c8 = MySqlViewBase, _b232 = entityKind, _a319 = MySqlViewConfig, _c8) {
|
33179
33257
|
constructor({ mysqlConfig, config }) {
|
33180
33258
|
super(config);
|
33181
|
-
__publicField(this,
|
33259
|
+
__publicField(this, _a319);
|
33182
33260
|
this[MySqlViewConfig] = mysqlConfig;
|
33183
33261
|
}
|
33184
33262
|
};
|
33185
|
-
__publicField(MySqlView,
|
33263
|
+
__publicField(MySqlView, _b232, "MySqlView");
|
33186
33264
|
}
|
33187
33265
|
});
|
33188
33266
|
|
33189
33267
|
// ../drizzle-orm/dist/mysql-core/schema.js
|
33190
|
-
var
|
33268
|
+
var _a320, MySqlSchema5;
|
33191
33269
|
var init_schema2 = __esm({
|
33192
33270
|
"../drizzle-orm/dist/mysql-core/schema.js"() {
|
33193
33271
|
"use strict";
|
33194
33272
|
init_entity();
|
33195
33273
|
init_table4();
|
33196
33274
|
init_view3();
|
33197
|
-
|
33275
|
+
_a320 = entityKind;
|
33198
33276
|
MySqlSchema5 = class {
|
33199
33277
|
constructor(schemaName) {
|
33200
33278
|
__publicField(this, "table", (name2, columns, extraConfig) => {
|
@@ -33206,12 +33284,12 @@ var init_schema2 = __esm({
|
|
33206
33284
|
this.schemaName = schemaName;
|
33207
33285
|
}
|
33208
33286
|
};
|
33209
|
-
__publicField(MySqlSchema5,
|
33287
|
+
__publicField(MySqlSchema5, _a320, "MySqlSchema");
|
33210
33288
|
}
|
33211
33289
|
});
|
33212
33290
|
|
33213
33291
|
// ../drizzle-orm/dist/mysql-core/session.js
|
33214
|
-
var
|
33292
|
+
var _a321, MySqlPreparedQuery, _a322, MySqlSession, _a323, _b233, MySqlTransaction;
|
33215
33293
|
var init_session3 = __esm({
|
33216
33294
|
"../drizzle-orm/dist/mysql-core/session.js"() {
|
33217
33295
|
"use strict";
|
@@ -33219,15 +33297,15 @@ var init_session3 = __esm({
|
|
33219
33297
|
init_errors();
|
33220
33298
|
init_sql();
|
33221
33299
|
init_db3();
|
33222
|
-
|
33300
|
+
_a321 = entityKind;
|
33223
33301
|
MySqlPreparedQuery = class {
|
33224
33302
|
constructor() {
|
33225
33303
|
/** @internal */
|
33226
33304
|
__publicField(this, "joinsNotNullableMap");
|
33227
33305
|
}
|
33228
33306
|
};
|
33229
|
-
__publicField(MySqlPreparedQuery,
|
33230
|
-
|
33307
|
+
__publicField(MySqlPreparedQuery, _a321, "MySqlPreparedQuery");
|
33308
|
+
_a322 = entityKind;
|
33231
33309
|
MySqlSession = class {
|
33232
33310
|
constructor(dialect7) {
|
33233
33311
|
this.dialect = dialect7;
|
@@ -33256,8 +33334,8 @@ var init_session3 = __esm({
|
|
33256
33334
|
return parts.length ? sql`start transaction ${sql.raw(parts.join(" "))}` : void 0;
|
33257
33335
|
}
|
33258
33336
|
};
|
33259
|
-
__publicField(MySqlSession,
|
33260
|
-
MySqlTransaction = class extends (
|
33337
|
+
__publicField(MySqlSession, _a322, "MySqlSession");
|
33338
|
+
MySqlTransaction = class extends (_b233 = MySqlDatabase, _a323 = entityKind, _b233) {
|
33261
33339
|
constructor(dialect7, session, schema4, nestedIndex, mode) {
|
33262
33340
|
super(dialect7, session, schema4, mode);
|
33263
33341
|
this.schema = schema4;
|
@@ -33267,7 +33345,7 @@ var init_session3 = __esm({
|
|
33267
33345
|
throw new TransactionRollbackError();
|
33268
33346
|
}
|
33269
33347
|
};
|
33270
|
-
__publicField(MySqlTransaction,
|
33348
|
+
__publicField(MySqlTransaction, _a323, "MySqlTransaction");
|
33271
33349
|
}
|
33272
33350
|
});
|
33273
33351
|
|