drizzle-kit 0.24.2-30e7661 → 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 +34 -4
- package/package.json +1 -1
package/api.js
CHANGED
@@ -3469,17 +3469,17 @@ function processCreateParams(params) {
|
|
3469
3469
|
if (errorMap2)
|
3470
3470
|
return { errorMap: errorMap2, description };
|
3471
3471
|
const customMap = (iss, ctx) => {
|
3472
|
-
var
|
3472
|
+
var _a324, _b234;
|
3473
3473
|
const { message } = params;
|
3474
3474
|
if (iss.code === "invalid_enum_value") {
|
3475
3475
|
return { message: message !== null && message !== void 0 ? message : ctx.defaultError };
|
3476
3476
|
}
|
3477
3477
|
if (typeof ctx.data === "undefined") {
|
3478
|
-
return { message: (
|
3478
|
+
return { message: (_a324 = message !== null && message !== void 0 ? message : required_error) !== null && _a324 !== void 0 ? _a324 : ctx.defaultError };
|
3479
3479
|
}
|
3480
3480
|
if (iss.code !== "invalid_type")
|
3481
3481
|
return { message: ctx.defaultError };
|
3482
|
-
return { message: (
|
3482
|
+
return { message: (_b234 = message !== null && message !== void 0 ? message : invalid_type_error) !== null && _b234 !== void 0 ? _b234 : ctx.defaultError };
|
3483
3483
|
};
|
3484
3484
|
return { errorMap: customMap, description };
|
3485
3485
|
}
|
@@ -4141,11 +4141,11 @@ var init_lib = __esm({
|
|
4141
4141
|
throw result.error;
|
4142
4142
|
}
|
4143
4143
|
safeParse(data, params) {
|
4144
|
-
var
|
4144
|
+
var _a324;
|
4145
4145
|
const ctx = {
|
4146
4146
|
common: {
|
4147
4147
|
issues: [],
|
4148
|
-
async: (
|
4148
|
+
async: (_a324 = params === null || params === void 0 ? void 0 : params.async) !== null && _a324 !== void 0 ? _a324 : false,
|
4149
4149
|
contextualErrorMap: params === null || params === void 0 ? void 0 : params.errorMap
|
4150
4150
|
},
|
4151
4151
|
path: (params === null || params === void 0 ? void 0 : params.path) || [],
|
@@ -4467,7 +4467,7 @@ var init_lib = __esm({
|
|
4467
4467
|
} else if (check.kind === "url") {
|
4468
4468
|
try {
|
4469
4469
|
new URL(input.data);
|
4470
|
-
} catch (
|
4470
|
+
} catch (_a324) {
|
4471
4471
|
ctx = this._getOrReturnCtx(input, ctx);
|
4472
4472
|
addIssueToContext(ctx, {
|
4473
4473
|
validation: "url",
|
@@ -4637,7 +4637,7 @@ var init_lib = __esm({
|
|
4637
4637
|
return this._addCheck({ kind: "ip", ...errorUtil.errToObj(options) });
|
4638
4638
|
}
|
4639
4639
|
datetime(options) {
|
4640
|
-
var
|
4640
|
+
var _a324, _b234;
|
4641
4641
|
if (typeof options === "string") {
|
4642
4642
|
return this._addCheck({
|
4643
4643
|
kind: "datetime",
|
@@ -4650,8 +4650,8 @@ var init_lib = __esm({
|
|
4650
4650
|
return this._addCheck({
|
4651
4651
|
kind: "datetime",
|
4652
4652
|
precision: typeof (options === null || options === void 0 ? void 0 : options.precision) === "undefined" ? null : options === null || options === void 0 ? void 0 : options.precision,
|
4653
|
-
offset: (
|
4654
|
-
local: (
|
4653
|
+
offset: (_a324 = options === null || options === void 0 ? void 0 : options.offset) !== null && _a324 !== void 0 ? _a324 : false,
|
4654
|
+
local: (_b234 = options === null || options === void 0 ? void 0 : options.local) !== null && _b234 !== void 0 ? _b234 : false,
|
4655
4655
|
...errorUtil.errToObj(options === null || options === void 0 ? void 0 : options.message)
|
4656
4656
|
});
|
4657
4657
|
}
|
@@ -4814,11 +4814,11 @@ var init_lib = __esm({
|
|
4814
4814
|
}
|
4815
4815
|
};
|
4816
4816
|
ZodString.create = (params) => {
|
4817
|
-
var
|
4817
|
+
var _a324;
|
4818
4818
|
return new ZodString({
|
4819
4819
|
checks: [],
|
4820
4820
|
typeName: ZodFirstPartyTypeKind.ZodString,
|
4821
|
-
coerce: (
|
4821
|
+
coerce: (_a324 = params === null || params === void 0 ? void 0 : params.coerce) !== null && _a324 !== void 0 ? _a324 : false,
|
4822
4822
|
...processCreateParams(params)
|
4823
4823
|
});
|
4824
4824
|
};
|
@@ -5211,11 +5211,11 @@ var init_lib = __esm({
|
|
5211
5211
|
}
|
5212
5212
|
};
|
5213
5213
|
ZodBigInt.create = (params) => {
|
5214
|
-
var
|
5214
|
+
var _a324;
|
5215
5215
|
return new ZodBigInt({
|
5216
5216
|
checks: [],
|
5217
5217
|
typeName: ZodFirstPartyTypeKind.ZodBigInt,
|
5218
|
-
coerce: (
|
5218
|
+
coerce: (_a324 = params === null || params === void 0 ? void 0 : params.coerce) !== null && _a324 !== void 0 ? _a324 : false,
|
5219
5219
|
...processCreateParams(params)
|
5220
5220
|
});
|
5221
5221
|
};
|
@@ -5695,8 +5695,8 @@ var init_lib = __esm({
|
|
5695
5695
|
unknownKeys: "strict",
|
5696
5696
|
...message !== void 0 ? {
|
5697
5697
|
errorMap: (issue, ctx) => {
|
5698
|
-
var
|
5699
|
-
const defaultError = (_c9 = (
|
5698
|
+
var _a324, _b234, _c9, _d5;
|
5699
|
+
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;
|
5700
5700
|
if (issue.code === "unrecognized_keys")
|
5701
5701
|
return {
|
5702
5702
|
message: (_d5 = errorUtil.errToObj(message).message) !== null && _d5 !== void 0 ? _d5 : defaultError
|
@@ -11522,7 +11522,7 @@ var init_sqlgenerator = __esm({
|
|
11522
11522
|
isPgNativeType = (it) => {
|
11523
11523
|
if (pgNativeTypes.has(it)) return true;
|
11524
11524
|
const toCheck = it.replace(/ /g, "");
|
11525
|
-
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);
|
11525
|
+
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);
|
11526
11526
|
};
|
11527
11527
|
Convertor = class {
|
11528
11528
|
};
|
@@ -18528,8 +18528,8 @@ var init_sql = __esm({
|
|
18528
18528
|
sql2.param = param2;
|
18529
18529
|
})(sql || (sql = {}));
|
18530
18530
|
((SQL2) => {
|
18531
|
-
var
|
18532
|
-
|
18531
|
+
var _a324;
|
18532
|
+
_a324 = entityKind;
|
18533
18533
|
const _Aliased = class _Aliased {
|
18534
18534
|
constructor(sql2, fieldAlias) {
|
18535
18535
|
/** @internal */
|
@@ -18545,7 +18545,7 @@ var init_sql = __esm({
|
|
18545
18545
|
return new _Aliased(this.sql, this.fieldAlias);
|
18546
18546
|
}
|
18547
18547
|
};
|
18548
|
-
__publicField(_Aliased,
|
18548
|
+
__publicField(_Aliased, _a324, "SQL.Aliased");
|
18549
18549
|
let Aliased = _Aliased;
|
18550
18550
|
SQL2.Aliased = Aliased;
|
18551
18551
|
})(SQL || (SQL = {}));
|
@@ -20562,15 +20562,91 @@ var init_utils3 = __esm({
|
|
20562
20562
|
}
|
20563
20563
|
});
|
20564
20564
|
|
20565
|
+
// ../drizzle-orm/dist/pg-core/columns/postgis_extension/geography.js
|
20566
|
+
var _a92, _b65, PgGeographyBuilder, _a93, _b66, PgGeography, _a94, _b67, PgGeographyObjectBuilder, _a95, _b68, PgGeographyObject;
|
20567
|
+
var init_geography = __esm({
|
20568
|
+
"../drizzle-orm/dist/pg-core/columns/postgis_extension/geography.js"() {
|
20569
|
+
"use strict";
|
20570
|
+
init_entity();
|
20571
|
+
init_common2();
|
20572
|
+
init_utils3();
|
20573
|
+
PgGeographyBuilder = class extends (_b65 = PgColumnBuilder, _a92 = entityKind, _b65) {
|
20574
|
+
constructor(name2, config) {
|
20575
|
+
super(name2, "array", "PgGeography");
|
20576
|
+
this.config.srid = config?.srid;
|
20577
|
+
this.config.type = config?.type;
|
20578
|
+
}
|
20579
|
+
/** @internal */
|
20580
|
+
build(table4) {
|
20581
|
+
return new PgGeography(
|
20582
|
+
table4,
|
20583
|
+
this.config
|
20584
|
+
);
|
20585
|
+
}
|
20586
|
+
};
|
20587
|
+
__publicField(PgGeographyBuilder, _a92, "PgGeographyBuilder");
|
20588
|
+
PgGeography = class extends (_b66 = PgColumn, _a93 = entityKind, _b66) {
|
20589
|
+
constructor() {
|
20590
|
+
super(...arguments);
|
20591
|
+
__publicField(this, "type", this.config.type);
|
20592
|
+
__publicField(this, "srid", this.config.srid);
|
20593
|
+
}
|
20594
|
+
getSQLType() {
|
20595
|
+
return `geography${this.type || this.srid ? `(${this.type ?? ""}${this.srid ? this.type ? `,${this.srid}` : this.srid : ""})` : ""}`;
|
20596
|
+
}
|
20597
|
+
mapFromDriverValue(value) {
|
20598
|
+
return parseEWKB(value);
|
20599
|
+
}
|
20600
|
+
mapToDriverValue(value) {
|
20601
|
+
return `point(${value[0]} ${value[1]})`;
|
20602
|
+
}
|
20603
|
+
};
|
20604
|
+
__publicField(PgGeography, _a93, "PgGeography");
|
20605
|
+
PgGeographyObjectBuilder = class extends (_b67 = PgColumnBuilder, _a94 = entityKind, _b67) {
|
20606
|
+
constructor(name2, config) {
|
20607
|
+
super(name2, "json", "PgGeographyObject");
|
20608
|
+
this.config.srid = config?.srid;
|
20609
|
+
this.config.type = config?.type;
|
20610
|
+
}
|
20611
|
+
/** @internal */
|
20612
|
+
build(table4) {
|
20613
|
+
return new PgGeographyObject(
|
20614
|
+
table4,
|
20615
|
+
this.config
|
20616
|
+
);
|
20617
|
+
}
|
20618
|
+
};
|
20619
|
+
__publicField(PgGeographyObjectBuilder, _a94, "PgGeographyObjectBuilder");
|
20620
|
+
PgGeographyObject = class extends (_b68 = PgColumn, _a95 = entityKind, _b68) {
|
20621
|
+
constructor() {
|
20622
|
+
super(...arguments);
|
20623
|
+
__publicField(this, "type", this.config.type);
|
20624
|
+
__publicField(this, "srid", this.config.srid);
|
20625
|
+
}
|
20626
|
+
getSQLType() {
|
20627
|
+
return `geography${this.type || this.srid ? `(${this.type ?? ""}${this.srid ? this.type ? `,${this.srid}` : this.srid : ""})` : ""}`;
|
20628
|
+
}
|
20629
|
+
mapFromDriverValue(value) {
|
20630
|
+
const parsed = parseEWKB(value);
|
20631
|
+
return { x: parsed[0], y: parsed[1] };
|
20632
|
+
}
|
20633
|
+
mapToDriverValue(value) {
|
20634
|
+
return `geography(${value.x} ${value.y})`;
|
20635
|
+
}
|
20636
|
+
};
|
20637
|
+
__publicField(PgGeographyObject, _a95, "PgGeographyObject");
|
20638
|
+
}
|
20639
|
+
});
|
20640
|
+
|
20565
20641
|
// ../drizzle-orm/dist/pg-core/columns/postgis_extension/geometry.js
|
20566
|
-
var
|
20642
|
+
var _a96, _b69, PgGeometryBuilder, _a97, _b70, PgGeometry, _a98, _b71, PgGeometryObjectBuilder, _a99, _b72, PgGeometryObject;
|
20567
20643
|
var init_geometry = __esm({
|
20568
20644
|
"../drizzle-orm/dist/pg-core/columns/postgis_extension/geometry.js"() {
|
20569
20645
|
"use strict";
|
20570
20646
|
init_entity();
|
20571
20647
|
init_common2();
|
20572
20648
|
init_utils3();
|
20573
|
-
PgGeometryBuilder = class extends (
|
20649
|
+
PgGeometryBuilder = class extends (_b69 = PgColumnBuilder, _a96 = entityKind, _b69) {
|
20574
20650
|
constructor(name2) {
|
20575
20651
|
super(name2, "array", "PgGeometry");
|
20576
20652
|
}
|
@@ -20582,8 +20658,8 @@ var init_geometry = __esm({
|
|
20582
20658
|
);
|
20583
20659
|
}
|
20584
20660
|
};
|
20585
|
-
__publicField(PgGeometryBuilder,
|
20586
|
-
PgGeometry = class extends (
|
20661
|
+
__publicField(PgGeometryBuilder, _a96, "PgGeometryBuilder");
|
20662
|
+
PgGeometry = class extends (_b70 = PgColumn, _a97 = entityKind, _b70) {
|
20587
20663
|
getSQLType() {
|
20588
20664
|
return "geometry(point)";
|
20589
20665
|
}
|
@@ -20594,8 +20670,8 @@ var init_geometry = __esm({
|
|
20594
20670
|
return `point(${value[0]} ${value[1]})`;
|
20595
20671
|
}
|
20596
20672
|
};
|
20597
|
-
__publicField(PgGeometry,
|
20598
|
-
PgGeometryObjectBuilder = class extends (
|
20673
|
+
__publicField(PgGeometry, _a97, "PgGeometry");
|
20674
|
+
PgGeometryObjectBuilder = class extends (_b71 = PgColumnBuilder, _a98 = entityKind, _b71) {
|
20599
20675
|
constructor(name2) {
|
20600
20676
|
super(name2, "json", "PgGeometryObject");
|
20601
20677
|
}
|
@@ -20607,8 +20683,8 @@ var init_geometry = __esm({
|
|
20607
20683
|
);
|
20608
20684
|
}
|
20609
20685
|
};
|
20610
|
-
__publicField(PgGeometryObjectBuilder,
|
20611
|
-
PgGeometryObject = class extends (
|
20686
|
+
__publicField(PgGeometryObjectBuilder, _a98, "PgGeometryObjectBuilder");
|
20687
|
+
PgGeometryObject = class extends (_b72 = PgColumn, _a99 = entityKind, _b72) {
|
20612
20688
|
getSQLType() {
|
20613
20689
|
return "geometry(point)";
|
20614
20690
|
}
|
@@ -20620,18 +20696,18 @@ var init_geometry = __esm({
|
|
20620
20696
|
return `point(${value.x} ${value.y})`;
|
20621
20697
|
}
|
20622
20698
|
};
|
20623
|
-
__publicField(PgGeometryObject,
|
20699
|
+
__publicField(PgGeometryObject, _a99, "PgGeometryObject");
|
20624
20700
|
}
|
20625
20701
|
});
|
20626
20702
|
|
20627
20703
|
// ../drizzle-orm/dist/pg-core/columns/real.js
|
20628
|
-
var
|
20704
|
+
var _a100, _b73, PgRealBuilder, _a101, _b74, PgReal;
|
20629
20705
|
var init_real = __esm({
|
20630
20706
|
"../drizzle-orm/dist/pg-core/columns/real.js"() {
|
20631
20707
|
"use strict";
|
20632
20708
|
init_entity();
|
20633
20709
|
init_common2();
|
20634
|
-
PgRealBuilder = class extends (
|
20710
|
+
PgRealBuilder = class extends (_b73 = PgColumnBuilder, _a100 = entityKind, _b73) {
|
20635
20711
|
constructor(name2, length) {
|
20636
20712
|
super(name2, "number", "PgReal");
|
20637
20713
|
this.config.length = length;
|
@@ -20641,8 +20717,8 @@ var init_real = __esm({
|
|
20641
20717
|
return new PgReal(table4, this.config);
|
20642
20718
|
}
|
20643
20719
|
};
|
20644
|
-
__publicField(PgRealBuilder,
|
20645
|
-
PgReal = class extends (
|
20720
|
+
__publicField(PgRealBuilder, _a100, "PgRealBuilder");
|
20721
|
+
PgReal = class extends (_b74 = PgColumn, _a101 = entityKind, _b74) {
|
20646
20722
|
constructor(table4, config) {
|
20647
20723
|
super(table4, config);
|
20648
20724
|
__publicField(this, "mapFromDriverValue", (value) => {
|
@@ -20656,18 +20732,18 @@ var init_real = __esm({
|
|
20656
20732
|
return "real";
|
20657
20733
|
}
|
20658
20734
|
};
|
20659
|
-
__publicField(PgReal,
|
20735
|
+
__publicField(PgReal, _a101, "PgReal");
|
20660
20736
|
}
|
20661
20737
|
});
|
20662
20738
|
|
20663
20739
|
// ../drizzle-orm/dist/pg-core/columns/serial.js
|
20664
|
-
var
|
20740
|
+
var _a102, _b75, PgSerialBuilder, _a103, _b76, PgSerial;
|
20665
20741
|
var init_serial = __esm({
|
20666
20742
|
"../drizzle-orm/dist/pg-core/columns/serial.js"() {
|
20667
20743
|
"use strict";
|
20668
20744
|
init_entity();
|
20669
20745
|
init_common2();
|
20670
|
-
PgSerialBuilder = class extends (
|
20746
|
+
PgSerialBuilder = class extends (_b75 = PgColumnBuilder, _a102 = entityKind, _b75) {
|
20671
20747
|
constructor(name2) {
|
20672
20748
|
super(name2, "number", "PgSerial");
|
20673
20749
|
this.config.hasDefault = true;
|
@@ -20678,25 +20754,25 @@ var init_serial = __esm({
|
|
20678
20754
|
return new PgSerial(table4, this.config);
|
20679
20755
|
}
|
20680
20756
|
};
|
20681
|
-
__publicField(PgSerialBuilder,
|
20682
|
-
PgSerial = class extends (
|
20757
|
+
__publicField(PgSerialBuilder, _a102, "PgSerialBuilder");
|
20758
|
+
PgSerial = class extends (_b76 = PgColumn, _a103 = entityKind, _b76) {
|
20683
20759
|
getSQLType() {
|
20684
20760
|
return "serial";
|
20685
20761
|
}
|
20686
20762
|
};
|
20687
|
-
__publicField(PgSerial,
|
20763
|
+
__publicField(PgSerial, _a103, "PgSerial");
|
20688
20764
|
}
|
20689
20765
|
});
|
20690
20766
|
|
20691
20767
|
// ../drizzle-orm/dist/pg-core/columns/smallint.js
|
20692
|
-
var
|
20768
|
+
var _a104, _b77, PgSmallIntBuilder, _a105, _b78, PgSmallInt;
|
20693
20769
|
var init_smallint = __esm({
|
20694
20770
|
"../drizzle-orm/dist/pg-core/columns/smallint.js"() {
|
20695
20771
|
"use strict";
|
20696
20772
|
init_entity();
|
20697
20773
|
init_common2();
|
20698
20774
|
init_int_common();
|
20699
|
-
PgSmallIntBuilder = class extends (
|
20775
|
+
PgSmallIntBuilder = class extends (_b77 = PgIntColumnBaseBuilder, _a104 = entityKind, _b77) {
|
20700
20776
|
constructor(name2) {
|
20701
20777
|
super(name2, "number", "PgSmallInt");
|
20702
20778
|
}
|
@@ -20705,8 +20781,8 @@ var init_smallint = __esm({
|
|
20705
20781
|
return new PgSmallInt(table4, this.config);
|
20706
20782
|
}
|
20707
20783
|
};
|
20708
|
-
__publicField(PgSmallIntBuilder,
|
20709
|
-
PgSmallInt = class extends (
|
20784
|
+
__publicField(PgSmallIntBuilder, _a104, "PgSmallIntBuilder");
|
20785
|
+
PgSmallInt = class extends (_b78 = PgColumn, _a105 = entityKind, _b78) {
|
20710
20786
|
constructor() {
|
20711
20787
|
super(...arguments);
|
20712
20788
|
__publicField(this, "mapFromDriverValue", (value) => {
|
@@ -20720,18 +20796,18 @@ var init_smallint = __esm({
|
|
20720
20796
|
return "smallint";
|
20721
20797
|
}
|
20722
20798
|
};
|
20723
|
-
__publicField(PgSmallInt,
|
20799
|
+
__publicField(PgSmallInt, _a105, "PgSmallInt");
|
20724
20800
|
}
|
20725
20801
|
});
|
20726
20802
|
|
20727
20803
|
// ../drizzle-orm/dist/pg-core/columns/smallserial.js
|
20728
|
-
var
|
20804
|
+
var _a106, _b79, PgSmallSerialBuilder, _a107, _b80, PgSmallSerial;
|
20729
20805
|
var init_smallserial = __esm({
|
20730
20806
|
"../drizzle-orm/dist/pg-core/columns/smallserial.js"() {
|
20731
20807
|
"use strict";
|
20732
20808
|
init_entity();
|
20733
20809
|
init_common2();
|
20734
|
-
PgSmallSerialBuilder = class extends (
|
20810
|
+
PgSmallSerialBuilder = class extends (_b79 = PgColumnBuilder, _a106 = entityKind, _b79) {
|
20735
20811
|
constructor(name2) {
|
20736
20812
|
super(name2, "number", "PgSmallSerial");
|
20737
20813
|
this.config.hasDefault = true;
|
@@ -20745,24 +20821,24 @@ var init_smallserial = __esm({
|
|
20745
20821
|
);
|
20746
20822
|
}
|
20747
20823
|
};
|
20748
|
-
__publicField(PgSmallSerialBuilder,
|
20749
|
-
PgSmallSerial = class extends (
|
20824
|
+
__publicField(PgSmallSerialBuilder, _a106, "PgSmallSerialBuilder");
|
20825
|
+
PgSmallSerial = class extends (_b80 = PgColumn, _a107 = entityKind, _b80) {
|
20750
20826
|
getSQLType() {
|
20751
20827
|
return "smallserial";
|
20752
20828
|
}
|
20753
20829
|
};
|
20754
|
-
__publicField(PgSmallSerial,
|
20830
|
+
__publicField(PgSmallSerial, _a107, "PgSmallSerial");
|
20755
20831
|
}
|
20756
20832
|
});
|
20757
20833
|
|
20758
20834
|
// ../drizzle-orm/dist/pg-core/columns/text.js
|
20759
|
-
var
|
20835
|
+
var _a108, _b81, PgTextBuilder, _a109, _b82, PgText;
|
20760
20836
|
var init_text = __esm({
|
20761
20837
|
"../drizzle-orm/dist/pg-core/columns/text.js"() {
|
20762
20838
|
"use strict";
|
20763
20839
|
init_entity();
|
20764
20840
|
init_common2();
|
20765
|
-
PgTextBuilder = class extends (
|
20841
|
+
PgTextBuilder = class extends (_b81 = PgColumnBuilder, _a108 = entityKind, _b81) {
|
20766
20842
|
constructor(name2, config) {
|
20767
20843
|
super(name2, "string", "PgText");
|
20768
20844
|
this.config.enumValues = config.enum;
|
@@ -20772,8 +20848,8 @@ var init_text = __esm({
|
|
20772
20848
|
return new PgText(table4, this.config);
|
20773
20849
|
}
|
20774
20850
|
};
|
20775
|
-
__publicField(PgTextBuilder,
|
20776
|
-
PgText = class extends (
|
20851
|
+
__publicField(PgTextBuilder, _a108, "PgTextBuilder");
|
20852
|
+
PgText = class extends (_b82 = PgColumn, _a109 = entityKind, _b82) {
|
20777
20853
|
constructor() {
|
20778
20854
|
super(...arguments);
|
20779
20855
|
__publicField(this, "enumValues", this.config.enumValues);
|
@@ -20782,19 +20858,19 @@ var init_text = __esm({
|
|
20782
20858
|
return "text";
|
20783
20859
|
}
|
20784
20860
|
};
|
20785
|
-
__publicField(PgText,
|
20861
|
+
__publicField(PgText, _a109, "PgText");
|
20786
20862
|
}
|
20787
20863
|
});
|
20788
20864
|
|
20789
20865
|
// ../drizzle-orm/dist/pg-core/columns/time.js
|
20790
|
-
var
|
20866
|
+
var _a110, _b83, PgTimeBuilder, _a111, _b84, PgTime;
|
20791
20867
|
var init_time = __esm({
|
20792
20868
|
"../drizzle-orm/dist/pg-core/columns/time.js"() {
|
20793
20869
|
"use strict";
|
20794
20870
|
init_entity();
|
20795
20871
|
init_common2();
|
20796
20872
|
init_date_common();
|
20797
|
-
PgTimeBuilder = class extends (
|
20873
|
+
PgTimeBuilder = class extends (_b83 = PgDateColumnBaseBuilder, _a110 = entityKind, _b83) {
|
20798
20874
|
constructor(name2, withTimezone, precision) {
|
20799
20875
|
super(name2, "string", "PgTime");
|
20800
20876
|
this.withTimezone = withTimezone;
|
@@ -20807,8 +20883,8 @@ var init_time = __esm({
|
|
20807
20883
|
return new PgTime(table4, this.config);
|
20808
20884
|
}
|
20809
20885
|
};
|
20810
|
-
__publicField(PgTimeBuilder,
|
20811
|
-
PgTime = class extends (
|
20886
|
+
__publicField(PgTimeBuilder, _a110, "PgTimeBuilder");
|
20887
|
+
PgTime = class extends (_b84 = PgColumn, _a111 = entityKind, _b84) {
|
20812
20888
|
constructor(table4, config) {
|
20813
20889
|
super(table4, config);
|
20814
20890
|
__publicField(this, "withTimezone");
|
@@ -20821,19 +20897,19 @@ var init_time = __esm({
|
|
20821
20897
|
return `time${precision}${this.withTimezone ? " with time zone" : ""}`;
|
20822
20898
|
}
|
20823
20899
|
};
|
20824
|
-
__publicField(PgTime,
|
20900
|
+
__publicField(PgTime, _a111, "PgTime");
|
20825
20901
|
}
|
20826
20902
|
});
|
20827
20903
|
|
20828
20904
|
// ../drizzle-orm/dist/pg-core/columns/timestamp.js
|
20829
|
-
var
|
20905
|
+
var _a112, _b85, PgTimestampBuilder, _a113, _b86, PgTimestamp, _a114, _b87, PgTimestampStringBuilder, _a115, _b88, PgTimestampString;
|
20830
20906
|
var init_timestamp = __esm({
|
20831
20907
|
"../drizzle-orm/dist/pg-core/columns/timestamp.js"() {
|
20832
20908
|
"use strict";
|
20833
20909
|
init_entity();
|
20834
20910
|
init_common2();
|
20835
20911
|
init_date_common();
|
20836
|
-
PgTimestampBuilder = class extends (
|
20912
|
+
PgTimestampBuilder = class extends (_b85 = PgDateColumnBaseBuilder, _a112 = entityKind, _b85) {
|
20837
20913
|
constructor(name2, withTimezone, precision) {
|
20838
20914
|
super(name2, "date", "PgTimestamp");
|
20839
20915
|
this.config.withTimezone = withTimezone;
|
@@ -20844,8 +20920,8 @@ var init_timestamp = __esm({
|
|
20844
20920
|
return new PgTimestamp(table4, this.config);
|
20845
20921
|
}
|
20846
20922
|
};
|
20847
|
-
__publicField(PgTimestampBuilder,
|
20848
|
-
PgTimestamp = class extends (
|
20923
|
+
__publicField(PgTimestampBuilder, _a112, "PgTimestampBuilder");
|
20924
|
+
PgTimestamp = class extends (_b86 = PgColumn, _a113 = entityKind, _b86) {
|
20849
20925
|
constructor(table4, config) {
|
20850
20926
|
super(table4, config);
|
20851
20927
|
__publicField(this, "withTimezone");
|
@@ -20864,8 +20940,8 @@ var init_timestamp = __esm({
|
|
20864
20940
|
return `timestamp${precision}${this.withTimezone ? " with time zone" : ""}`;
|
20865
20941
|
}
|
20866
20942
|
};
|
20867
|
-
__publicField(PgTimestamp,
|
20868
|
-
PgTimestampStringBuilder = class extends (
|
20943
|
+
__publicField(PgTimestamp, _a113, "PgTimestamp");
|
20944
|
+
PgTimestampStringBuilder = class extends (_b87 = PgDateColumnBaseBuilder, _a114 = entityKind, _b87) {
|
20869
20945
|
constructor(name2, withTimezone, precision) {
|
20870
20946
|
super(name2, "string", "PgTimestampString");
|
20871
20947
|
this.config.withTimezone = withTimezone;
|
@@ -20879,8 +20955,8 @@ var init_timestamp = __esm({
|
|
20879
20955
|
);
|
20880
20956
|
}
|
20881
20957
|
};
|
20882
|
-
__publicField(PgTimestampStringBuilder,
|
20883
|
-
PgTimestampString = class extends (
|
20958
|
+
__publicField(PgTimestampStringBuilder, _a114, "PgTimestampStringBuilder");
|
20959
|
+
PgTimestampString = class extends (_b88 = PgColumn, _a115 = entityKind, _b88) {
|
20884
20960
|
constructor(table4, config) {
|
20885
20961
|
super(table4, config);
|
20886
20962
|
__publicField(this, "withTimezone");
|
@@ -20893,19 +20969,19 @@ var init_timestamp = __esm({
|
|
20893
20969
|
return `timestamp${precision}${this.withTimezone ? " with time zone" : ""}`;
|
20894
20970
|
}
|
20895
20971
|
};
|
20896
|
-
__publicField(PgTimestampString,
|
20972
|
+
__publicField(PgTimestampString, _a115, "PgTimestampString");
|
20897
20973
|
}
|
20898
20974
|
});
|
20899
20975
|
|
20900
20976
|
// ../drizzle-orm/dist/pg-core/columns/uuid.js
|
20901
|
-
var
|
20977
|
+
var _a116, _b89, PgUUIDBuilder, _a117, _b90, PgUUID;
|
20902
20978
|
var init_uuid = __esm({
|
20903
20979
|
"../drizzle-orm/dist/pg-core/columns/uuid.js"() {
|
20904
20980
|
"use strict";
|
20905
20981
|
init_entity();
|
20906
20982
|
init_sql();
|
20907
20983
|
init_common2();
|
20908
|
-
PgUUIDBuilder = class extends (
|
20984
|
+
PgUUIDBuilder = class extends (_b89 = PgColumnBuilder, _a116 = entityKind, _b89) {
|
20909
20985
|
constructor(name2) {
|
20910
20986
|
super(name2, "string", "PgUUID");
|
20911
20987
|
}
|
@@ -20920,24 +20996,24 @@ var init_uuid = __esm({
|
|
20920
20996
|
return new PgUUID(table4, this.config);
|
20921
20997
|
}
|
20922
20998
|
};
|
20923
|
-
__publicField(PgUUIDBuilder,
|
20924
|
-
PgUUID = class extends (
|
20999
|
+
__publicField(PgUUIDBuilder, _a116, "PgUUIDBuilder");
|
21000
|
+
PgUUID = class extends (_b90 = PgColumn, _a117 = entityKind, _b90) {
|
20925
21001
|
getSQLType() {
|
20926
21002
|
return "uuid";
|
20927
21003
|
}
|
20928
21004
|
};
|
20929
|
-
__publicField(PgUUID,
|
21005
|
+
__publicField(PgUUID, _a117, "PgUUID");
|
20930
21006
|
}
|
20931
21007
|
});
|
20932
21008
|
|
20933
21009
|
// ../drizzle-orm/dist/pg-core/columns/varchar.js
|
20934
|
-
var
|
21010
|
+
var _a118, _b91, PgVarcharBuilder, _a119, _b92, PgVarchar;
|
20935
21011
|
var init_varchar = __esm({
|
20936
21012
|
"../drizzle-orm/dist/pg-core/columns/varchar.js"() {
|
20937
21013
|
"use strict";
|
20938
21014
|
init_entity();
|
20939
21015
|
init_common2();
|
20940
|
-
PgVarcharBuilder = class extends (
|
21016
|
+
PgVarcharBuilder = class extends (_b91 = PgColumnBuilder, _a118 = entityKind, _b91) {
|
20941
21017
|
constructor(name2, config) {
|
20942
21018
|
super(name2, "string", "PgVarchar");
|
20943
21019
|
this.config.length = config.length;
|
@@ -20948,8 +21024,8 @@ var init_varchar = __esm({
|
|
20948
21024
|
return new PgVarchar(table4, this.config);
|
20949
21025
|
}
|
20950
21026
|
};
|
20951
|
-
__publicField(PgVarcharBuilder,
|
20952
|
-
PgVarchar = class extends (
|
21027
|
+
__publicField(PgVarcharBuilder, _a118, "PgVarcharBuilder");
|
21028
|
+
PgVarchar = class extends (_b92 = PgColumn, _a119 = entityKind, _b92) {
|
20953
21029
|
constructor() {
|
20954
21030
|
super(...arguments);
|
20955
21031
|
__publicField(this, "length", this.config.length);
|
@@ -20959,18 +21035,18 @@ var init_varchar = __esm({
|
|
20959
21035
|
return this.length === void 0 ? `varchar` : `varchar(${this.length})`;
|
20960
21036
|
}
|
20961
21037
|
};
|
20962
|
-
__publicField(PgVarchar,
|
21038
|
+
__publicField(PgVarchar, _a119, "PgVarchar");
|
20963
21039
|
}
|
20964
21040
|
});
|
20965
21041
|
|
20966
21042
|
// ../drizzle-orm/dist/pg-core/columns/vector_extension/bit.js
|
20967
|
-
var
|
21043
|
+
var _a120, _b93, PgBinaryVectorBuilder, _a121, _b94, PgBinaryVector;
|
20968
21044
|
var init_bit = __esm({
|
20969
21045
|
"../drizzle-orm/dist/pg-core/columns/vector_extension/bit.js"() {
|
20970
21046
|
"use strict";
|
20971
21047
|
init_entity();
|
20972
21048
|
init_common2();
|
20973
|
-
PgBinaryVectorBuilder = class extends (
|
21049
|
+
PgBinaryVectorBuilder = class extends (_b93 = PgColumnBuilder, _a120 = entityKind, _b93) {
|
20974
21050
|
constructor(name2, config) {
|
20975
21051
|
super(name2, "string", "PgBinaryVector");
|
20976
21052
|
this.config.dimensions = config.dimensions;
|
@@ -20983,8 +21059,8 @@ var init_bit = __esm({
|
|
20983
21059
|
);
|
20984
21060
|
}
|
20985
21061
|
};
|
20986
|
-
__publicField(PgBinaryVectorBuilder,
|
20987
|
-
PgBinaryVector = class extends (
|
21062
|
+
__publicField(PgBinaryVectorBuilder, _a120, "PgBinaryVectorBuilder");
|
21063
|
+
PgBinaryVector = class extends (_b94 = PgColumn, _a121 = entityKind, _b94) {
|
20988
21064
|
constructor() {
|
20989
21065
|
super(...arguments);
|
20990
21066
|
__publicField(this, "dimensions", this.config.dimensions);
|
@@ -20993,18 +21069,18 @@ var init_bit = __esm({
|
|
20993
21069
|
return `bit(${this.dimensions})`;
|
20994
21070
|
}
|
20995
21071
|
};
|
20996
|
-
__publicField(PgBinaryVector,
|
21072
|
+
__publicField(PgBinaryVector, _a121, "PgBinaryVector");
|
20997
21073
|
}
|
20998
21074
|
});
|
20999
21075
|
|
21000
21076
|
// ../drizzle-orm/dist/pg-core/columns/vector_extension/halfvec.js
|
21001
|
-
var
|
21077
|
+
var _a122, _b95, PgHalfVectorBuilder, _a123, _b96, PgHalfVector;
|
21002
21078
|
var init_halfvec = __esm({
|
21003
21079
|
"../drizzle-orm/dist/pg-core/columns/vector_extension/halfvec.js"() {
|
21004
21080
|
"use strict";
|
21005
21081
|
init_entity();
|
21006
21082
|
init_common2();
|
21007
|
-
PgHalfVectorBuilder = class extends (
|
21083
|
+
PgHalfVectorBuilder = class extends (_b95 = PgColumnBuilder, _a122 = entityKind, _b95) {
|
21008
21084
|
constructor(name2, config) {
|
21009
21085
|
super(name2, "array", "PgHalfVector");
|
21010
21086
|
this.config.dimensions = config.dimensions;
|
@@ -21017,8 +21093,8 @@ var init_halfvec = __esm({
|
|
21017
21093
|
);
|
21018
21094
|
}
|
21019
21095
|
};
|
21020
|
-
__publicField(PgHalfVectorBuilder,
|
21021
|
-
PgHalfVector = class extends (
|
21096
|
+
__publicField(PgHalfVectorBuilder, _a122, "PgHalfVectorBuilder");
|
21097
|
+
PgHalfVector = class extends (_b96 = PgColumn, _a123 = entityKind, _b96) {
|
21022
21098
|
constructor() {
|
21023
21099
|
super(...arguments);
|
21024
21100
|
__publicField(this, "dimensions", this.config.dimensions);
|
@@ -21033,18 +21109,18 @@ var init_halfvec = __esm({
|
|
21033
21109
|
return value.slice(1, -1).split(",").map((v) => Number.parseFloat(v));
|
21034
21110
|
}
|
21035
21111
|
};
|
21036
|
-
__publicField(PgHalfVector,
|
21112
|
+
__publicField(PgHalfVector, _a123, "PgHalfVector");
|
21037
21113
|
}
|
21038
21114
|
});
|
21039
21115
|
|
21040
21116
|
// ../drizzle-orm/dist/pg-core/columns/vector_extension/sparsevec.js
|
21041
|
-
var
|
21117
|
+
var _a124, _b97, PgSparseVectorBuilder, _a125, _b98, PgSparseVector;
|
21042
21118
|
var init_sparsevec = __esm({
|
21043
21119
|
"../drizzle-orm/dist/pg-core/columns/vector_extension/sparsevec.js"() {
|
21044
21120
|
"use strict";
|
21045
21121
|
init_entity();
|
21046
21122
|
init_common2();
|
21047
|
-
PgSparseVectorBuilder = class extends (
|
21123
|
+
PgSparseVectorBuilder = class extends (_b97 = PgColumnBuilder, _a124 = entityKind, _b97) {
|
21048
21124
|
constructor(name2, config) {
|
21049
21125
|
super(name2, "string", "PgSparseVector");
|
21050
21126
|
this.config.dimensions = config.dimensions;
|
@@ -21057,8 +21133,8 @@ var init_sparsevec = __esm({
|
|
21057
21133
|
);
|
21058
21134
|
}
|
21059
21135
|
};
|
21060
|
-
__publicField(PgSparseVectorBuilder,
|
21061
|
-
PgSparseVector = class extends (
|
21136
|
+
__publicField(PgSparseVectorBuilder, _a124, "PgSparseVectorBuilder");
|
21137
|
+
PgSparseVector = class extends (_b98 = PgColumn, _a125 = entityKind, _b98) {
|
21062
21138
|
constructor() {
|
21063
21139
|
super(...arguments);
|
21064
21140
|
__publicField(this, "dimensions", this.config.dimensions);
|
@@ -21067,18 +21143,18 @@ var init_sparsevec = __esm({
|
|
21067
21143
|
return `sparsevec(${this.dimensions})`;
|
21068
21144
|
}
|
21069
21145
|
};
|
21070
|
-
__publicField(PgSparseVector,
|
21146
|
+
__publicField(PgSparseVector, _a125, "PgSparseVector");
|
21071
21147
|
}
|
21072
21148
|
});
|
21073
21149
|
|
21074
21150
|
// ../drizzle-orm/dist/pg-core/columns/vector_extension/vector.js
|
21075
|
-
var
|
21151
|
+
var _a126, _b99, PgVectorBuilder, _a127, _b100, PgVector;
|
21076
21152
|
var init_vector3 = __esm({
|
21077
21153
|
"../drizzle-orm/dist/pg-core/columns/vector_extension/vector.js"() {
|
21078
21154
|
"use strict";
|
21079
21155
|
init_entity();
|
21080
21156
|
init_common2();
|
21081
|
-
PgVectorBuilder = class extends (
|
21157
|
+
PgVectorBuilder = class extends (_b99 = PgColumnBuilder, _a126 = entityKind, _b99) {
|
21082
21158
|
constructor(name2, config) {
|
21083
21159
|
super(name2, "array", "PgVector");
|
21084
21160
|
this.config.dimensions = config.dimensions;
|
@@ -21088,8 +21164,8 @@ var init_vector3 = __esm({
|
|
21088
21164
|
return new PgVector(table4, this.config);
|
21089
21165
|
}
|
21090
21166
|
};
|
21091
|
-
__publicField(PgVectorBuilder,
|
21092
|
-
PgVector = class extends (
|
21167
|
+
__publicField(PgVectorBuilder, _a126, "PgVectorBuilder");
|
21168
|
+
PgVector = class extends (_b100 = PgColumn, _a127 = entityKind, _b100) {
|
21093
21169
|
constructor() {
|
21094
21170
|
super(...arguments);
|
21095
21171
|
__publicField(this, "dimensions", this.config.dimensions);
|
@@ -21104,7 +21180,7 @@ var init_vector3 = __esm({
|
|
21104
21180
|
return value.slice(1, -1).split(",").map((v) => Number.parseFloat(v));
|
21105
21181
|
}
|
21106
21182
|
};
|
21107
|
-
__publicField(PgVector,
|
21183
|
+
__publicField(PgVector, _a127, "PgVector");
|
21108
21184
|
}
|
21109
21185
|
});
|
21110
21186
|
|
@@ -21132,6 +21208,7 @@ var init_columns = __esm({
|
|
21132
21208
|
init_macaddr8();
|
21133
21209
|
init_numeric();
|
21134
21210
|
init_point();
|
21211
|
+
init_geography();
|
21135
21212
|
init_geometry();
|
21136
21213
|
init_real();
|
21137
21214
|
init_serial();
|
@@ -21150,7 +21227,7 @@ var init_columns = __esm({
|
|
21150
21227
|
});
|
21151
21228
|
|
21152
21229
|
// ../drizzle-orm/dist/pg-core/query-builders/delete.js
|
21153
|
-
var
|
21230
|
+
var _a128, _b101, PgDeleteBase;
|
21154
21231
|
var init_delete = __esm({
|
21155
21232
|
"../drizzle-orm/dist/pg-core/query-builders/delete.js"() {
|
21156
21233
|
"use strict";
|
@@ -21159,7 +21236,7 @@ var init_delete = __esm({
|
|
21159
21236
|
init_table();
|
21160
21237
|
init_tracing();
|
21161
21238
|
init_utils2();
|
21162
|
-
PgDeleteBase = class extends (
|
21239
|
+
PgDeleteBase = class extends (_b101 = QueryPromise, _a128 = entityKind, _b101) {
|
21163
21240
|
constructor(table4, session, dialect7, withList) {
|
21164
21241
|
super();
|
21165
21242
|
__publicField(this, "config");
|
@@ -21230,12 +21307,12 @@ var init_delete = __esm({
|
|
21230
21307
|
return this;
|
21231
21308
|
}
|
21232
21309
|
};
|
21233
|
-
__publicField(PgDeleteBase,
|
21310
|
+
__publicField(PgDeleteBase, _a128, "PgDelete");
|
21234
21311
|
}
|
21235
21312
|
});
|
21236
21313
|
|
21237
21314
|
// ../drizzle-orm/dist/pg-core/query-builders/insert.js
|
21238
|
-
var
|
21315
|
+
var _a129, PgInsertBuilder, _a130, _b102, PgInsertBase;
|
21239
21316
|
var init_insert = __esm({
|
21240
21317
|
"../drizzle-orm/dist/pg-core/query-builders/insert.js"() {
|
21241
21318
|
"use strict";
|
@@ -21245,7 +21322,7 @@ var init_insert = __esm({
|
|
21245
21322
|
init_table();
|
21246
21323
|
init_tracing();
|
21247
21324
|
init_utils2();
|
21248
|
-
|
21325
|
+
_a129 = entityKind;
|
21249
21326
|
PgInsertBuilder = class {
|
21250
21327
|
constructor(table4, session, dialect7, withList) {
|
21251
21328
|
this.table = table4;
|
@@ -21270,8 +21347,8 @@ var init_insert = __esm({
|
|
21270
21347
|
return new PgInsertBase(this.table, mappedValues, this.session, this.dialect, this.withList);
|
21271
21348
|
}
|
21272
21349
|
};
|
21273
|
-
__publicField(PgInsertBuilder,
|
21274
|
-
PgInsertBase = class extends (
|
21350
|
+
__publicField(PgInsertBuilder, _a129, "PgInsertBuilder");
|
21351
|
+
PgInsertBase = class extends (_b102 = QueryPromise, _a130 = entityKind, _b102) {
|
21275
21352
|
constructor(table4, values, session, dialect7, withList) {
|
21276
21353
|
super();
|
21277
21354
|
__publicField(this, "config");
|
@@ -21386,25 +21463,25 @@ var init_insert = __esm({
|
|
21386
21463
|
return this;
|
21387
21464
|
}
|
21388
21465
|
};
|
21389
|
-
__publicField(PgInsertBase,
|
21466
|
+
__publicField(PgInsertBase, _a130, "PgInsert");
|
21390
21467
|
}
|
21391
21468
|
});
|
21392
21469
|
|
21393
21470
|
// ../drizzle-orm/dist/pg-core/view-base.js
|
21394
|
-
var
|
21471
|
+
var _a131, _b103, PgViewBase;
|
21395
21472
|
var init_view_base = __esm({
|
21396
21473
|
"../drizzle-orm/dist/pg-core/view-base.js"() {
|
21397
21474
|
"use strict";
|
21398
21475
|
init_entity();
|
21399
21476
|
init_sql();
|
21400
|
-
PgViewBase = class extends (
|
21477
|
+
PgViewBase = class extends (_b103 = View, _a131 = entityKind, _b103) {
|
21401
21478
|
};
|
21402
|
-
__publicField(PgViewBase,
|
21479
|
+
__publicField(PgViewBase, _a131, "PgViewBase");
|
21403
21480
|
}
|
21404
21481
|
});
|
21405
21482
|
|
21406
21483
|
// ../drizzle-orm/dist/pg-core/dialect.js
|
21407
|
-
var
|
21484
|
+
var _a132, PgDialect;
|
21408
21485
|
var init_dialect = __esm({
|
21409
21486
|
"../drizzle-orm/dist/pg-core/dialect.js"() {
|
21410
21487
|
"use strict";
|
@@ -21422,7 +21499,7 @@ var init_dialect = __esm({
|
|
21422
21499
|
init_utils2();
|
21423
21500
|
init_view_common();
|
21424
21501
|
init_view_base();
|
21425
|
-
|
21502
|
+
_a132 = entityKind;
|
21426
21503
|
PgDialect = class {
|
21427
21504
|
async migrate(migrations, session, config) {
|
21428
21505
|
const migrationsTable = typeof config === "string" ? "__drizzle_migrations" : config.migrationsTable ?? "__drizzle_migrations";
|
@@ -22482,12 +22559,12 @@ var init_dialect = __esm({
|
|
22482
22559
|
};
|
22483
22560
|
}
|
22484
22561
|
};
|
22485
|
-
__publicField(PgDialect,
|
22562
|
+
__publicField(PgDialect, _a132, "PgDialect");
|
22486
22563
|
}
|
22487
22564
|
});
|
22488
22565
|
|
22489
22566
|
// ../drizzle-orm/dist/selection-proxy.js
|
22490
|
-
var
|
22567
|
+
var _a133, _SelectionProxyHandler, SelectionProxyHandler;
|
22491
22568
|
var init_selection_proxy = __esm({
|
22492
22569
|
"../drizzle-orm/dist/selection-proxy.js"() {
|
22493
22570
|
"use strict";
|
@@ -22497,7 +22574,7 @@ var init_selection_proxy = __esm({
|
|
22497
22574
|
init_sql();
|
22498
22575
|
init_subquery();
|
22499
22576
|
init_view_common();
|
22500
|
-
|
22577
|
+
_a133 = entityKind;
|
22501
22578
|
_SelectionProxyHandler = class _SelectionProxyHandler {
|
22502
22579
|
constructor(config) {
|
22503
22580
|
__publicField(this, "config");
|
@@ -22563,25 +22640,25 @@ var init_selection_proxy = __esm({
|
|
22563
22640
|
return new Proxy(value, new _SelectionProxyHandler(this.config));
|
22564
22641
|
}
|
22565
22642
|
};
|
22566
|
-
__publicField(_SelectionProxyHandler,
|
22643
|
+
__publicField(_SelectionProxyHandler, _a133, "SelectionProxyHandler");
|
22567
22644
|
SelectionProxyHandler = _SelectionProxyHandler;
|
22568
22645
|
}
|
22569
22646
|
});
|
22570
22647
|
|
22571
22648
|
// ../drizzle-orm/dist/query-builders/query-builder.js
|
22572
|
-
var
|
22649
|
+
var _a134, TypedQueryBuilder;
|
22573
22650
|
var init_query_builder = __esm({
|
22574
22651
|
"../drizzle-orm/dist/query-builders/query-builder.js"() {
|
22575
22652
|
"use strict";
|
22576
22653
|
init_entity();
|
22577
|
-
|
22654
|
+
_a134 = entityKind;
|
22578
22655
|
TypedQueryBuilder = class {
|
22579
22656
|
/** @internal */
|
22580
22657
|
getSelectedFields() {
|
22581
22658
|
return this._.selectedFields;
|
22582
22659
|
}
|
22583
22660
|
};
|
22584
|
-
__publicField(TypedQueryBuilder,
|
22661
|
+
__publicField(TypedQueryBuilder, _a134, "TypedQueryBuilder");
|
22585
22662
|
}
|
22586
22663
|
});
|
22587
22664
|
|
@@ -22603,7 +22680,7 @@ function createSetOperator(type, isAll) {
|
|
22603
22680
|
return leftSelect.addSetOperators(setOperators);
|
22604
22681
|
};
|
22605
22682
|
}
|
22606
|
-
var
|
22683
|
+
var _a135, PgSelectBuilder, _a136, _b104, PgSelectQueryBuilderBase, _a137, _b105, PgSelectBase, getPgSetOperators, union, unionAll, intersect, intersectAll, except, exceptAll;
|
22607
22684
|
var init_select2 = __esm({
|
22608
22685
|
"../drizzle-orm/dist/pg-core/query-builders/select.js"() {
|
22609
22686
|
"use strict";
|
@@ -22619,7 +22696,7 @@ var init_select2 = __esm({
|
|
22619
22696
|
init_utils2();
|
22620
22697
|
init_utils2();
|
22621
22698
|
init_view_common();
|
22622
|
-
|
22699
|
+
_a135 = entityKind;
|
22623
22700
|
PgSelectBuilder = class {
|
22624
22701
|
constructor(config) {
|
22625
22702
|
__publicField(this, "fields");
|
@@ -22668,8 +22745,8 @@ var init_select2 = __esm({
|
|
22668
22745
|
});
|
22669
22746
|
}
|
22670
22747
|
};
|
22671
|
-
__publicField(PgSelectBuilder,
|
22672
|
-
PgSelectQueryBuilderBase = class extends (
|
22748
|
+
__publicField(PgSelectBuilder, _a135, "PgSelectBuilder");
|
22749
|
+
PgSelectQueryBuilderBase = class extends (_b104 = TypedQueryBuilder, _a136 = entityKind, _b104) {
|
22673
22750
|
constructor({ table: table4, fields, isPartialSelect, session, dialect: dialect7, withList, distinct }) {
|
22674
22751
|
super();
|
22675
22752
|
__publicField(this, "_");
|
@@ -23269,8 +23346,8 @@ var init_select2 = __esm({
|
|
23269
23346
|
return this;
|
23270
23347
|
}
|
23271
23348
|
};
|
23272
|
-
__publicField(PgSelectQueryBuilderBase,
|
23273
|
-
PgSelectBase = class extends (
|
23349
|
+
__publicField(PgSelectQueryBuilderBase, _a136, "PgSelectQueryBuilder");
|
23350
|
+
PgSelectBase = class extends (_b105 = PgSelectQueryBuilderBase, _a137 = entityKind, _b105) {
|
23274
23351
|
constructor() {
|
23275
23352
|
super(...arguments);
|
23276
23353
|
__publicField(this, "execute", (placeholderValues) => {
|
@@ -23303,7 +23380,7 @@ var init_select2 = __esm({
|
|
23303
23380
|
return this._prepare(name2);
|
23304
23381
|
}
|
23305
23382
|
};
|
23306
|
-
__publicField(PgSelectBase,
|
23383
|
+
__publicField(PgSelectBase, _a137, "PgSelect");
|
23307
23384
|
applyMixins(PgSelectBase, [QueryPromise]);
|
23308
23385
|
getPgSetOperators = () => ({
|
23309
23386
|
union,
|
@@ -23323,7 +23400,7 @@ var init_select2 = __esm({
|
|
23323
23400
|
});
|
23324
23401
|
|
23325
23402
|
// ../drizzle-orm/dist/pg-core/query-builders/query-builder.js
|
23326
|
-
var
|
23403
|
+
var _a138, QueryBuilder;
|
23327
23404
|
var init_query_builder2 = __esm({
|
23328
23405
|
"../drizzle-orm/dist/pg-core/query-builders/query-builder.js"() {
|
23329
23406
|
"use strict";
|
@@ -23332,7 +23409,7 @@ var init_query_builder2 = __esm({
|
|
23332
23409
|
init_selection_proxy();
|
23333
23410
|
init_subquery();
|
23334
23411
|
init_select2();
|
23335
|
-
|
23412
|
+
_a138 = entityKind;
|
23336
23413
|
QueryBuilder = class {
|
23337
23414
|
constructor() {
|
23338
23415
|
__publicField(this, "dialect");
|
@@ -23410,19 +23487,19 @@ var init_query_builder2 = __esm({
|
|
23410
23487
|
return this.dialect;
|
23411
23488
|
}
|
23412
23489
|
};
|
23413
|
-
__publicField(QueryBuilder,
|
23490
|
+
__publicField(QueryBuilder, _a138, "PgQueryBuilder");
|
23414
23491
|
}
|
23415
23492
|
});
|
23416
23493
|
|
23417
23494
|
// ../drizzle-orm/dist/pg-core/query-builders/refresh-materialized-view.js
|
23418
|
-
var
|
23495
|
+
var _a139, _b106, PgRefreshMaterializedView;
|
23419
23496
|
var init_refresh_materialized_view = __esm({
|
23420
23497
|
"../drizzle-orm/dist/pg-core/query-builders/refresh-materialized-view.js"() {
|
23421
23498
|
"use strict";
|
23422
23499
|
init_entity();
|
23423
23500
|
init_query_promise();
|
23424
23501
|
init_tracing();
|
23425
|
-
PgRefreshMaterializedView = class extends (
|
23502
|
+
PgRefreshMaterializedView = class extends (_b106 = QueryPromise, _a139 = entityKind, _b106) {
|
23426
23503
|
constructor(view, session, dialect7) {
|
23427
23504
|
super();
|
23428
23505
|
__publicField(this, "config");
|
@@ -23467,7 +23544,7 @@ var init_refresh_materialized_view = __esm({
|
|
23467
23544
|
return this._prepare(name2);
|
23468
23545
|
}
|
23469
23546
|
};
|
23470
|
-
__publicField(PgRefreshMaterializedView,
|
23547
|
+
__publicField(PgRefreshMaterializedView, _a139, "PgRefreshMaterializedView");
|
23471
23548
|
}
|
23472
23549
|
});
|
23473
23550
|
|
@@ -23479,7 +23556,7 @@ var init_select_types = __esm({
|
|
23479
23556
|
});
|
23480
23557
|
|
23481
23558
|
// ../drizzle-orm/dist/pg-core/query-builders/update.js
|
23482
|
-
var
|
23559
|
+
var _a140, PgUpdateBuilder, _a141, _b107, PgUpdateBase;
|
23483
23560
|
var init_update = __esm({
|
23484
23561
|
"../drizzle-orm/dist/pg-core/query-builders/update.js"() {
|
23485
23562
|
"use strict";
|
@@ -23487,7 +23564,7 @@ var init_update = __esm({
|
|
23487
23564
|
init_query_promise();
|
23488
23565
|
init_table();
|
23489
23566
|
init_utils2();
|
23490
|
-
|
23567
|
+
_a140 = entityKind;
|
23491
23568
|
PgUpdateBuilder = class {
|
23492
23569
|
constructor(table4, session, dialect7, withList) {
|
23493
23570
|
this.table = table4;
|
@@ -23505,8 +23582,8 @@ var init_update = __esm({
|
|
23505
23582
|
);
|
23506
23583
|
}
|
23507
23584
|
};
|
23508
|
-
__publicField(PgUpdateBuilder,
|
23509
|
-
PgUpdateBase = class extends (
|
23585
|
+
__publicField(PgUpdateBuilder, _a140, "PgUpdateBuilder");
|
23586
|
+
PgUpdateBase = class extends (_b107 = QueryPromise, _a141 = entityKind, _b107) {
|
23510
23587
|
constructor(table4, set, session, dialect7, withList) {
|
23511
23588
|
super();
|
23512
23589
|
__publicField(this, "config");
|
@@ -23577,7 +23654,7 @@ var init_update = __esm({
|
|
23577
23654
|
return this;
|
23578
23655
|
}
|
23579
23656
|
};
|
23580
|
-
__publicField(PgUpdateBase,
|
23657
|
+
__publicField(PgUpdateBase, _a141, "PgUpdate");
|
23581
23658
|
}
|
23582
23659
|
});
|
23583
23660
|
|
@@ -23596,7 +23673,7 @@ var init_query_builders = __esm({
|
|
23596
23673
|
});
|
23597
23674
|
|
23598
23675
|
// ../drizzle-orm/dist/pg-core/query-builders/query.js
|
23599
|
-
var
|
23676
|
+
var _a142, RelationalQueryBuilder, _a143, _b108, PgRelationalQuery;
|
23600
23677
|
var init_query = __esm({
|
23601
23678
|
"../drizzle-orm/dist/pg-core/query-builders/query.js"() {
|
23602
23679
|
"use strict";
|
@@ -23604,7 +23681,7 @@ var init_query = __esm({
|
|
23604
23681
|
init_query_promise();
|
23605
23682
|
init_relations();
|
23606
23683
|
init_tracing();
|
23607
|
-
|
23684
|
+
_a142 = entityKind;
|
23608
23685
|
RelationalQueryBuilder = class {
|
23609
23686
|
constructor(fullSchema, schema4, tableNamesMap, table4, tableConfig, dialect7, session) {
|
23610
23687
|
this.fullSchema = fullSchema;
|
@@ -23642,8 +23719,8 @@ var init_query = __esm({
|
|
23642
23719
|
);
|
23643
23720
|
}
|
23644
23721
|
};
|
23645
|
-
__publicField(RelationalQueryBuilder,
|
23646
|
-
PgRelationalQuery = class extends (
|
23722
|
+
__publicField(RelationalQueryBuilder, _a142, "PgRelationalQueryBuilder");
|
23723
|
+
PgRelationalQuery = class extends (_b108 = QueryPromise, _a143 = entityKind, _b108) {
|
23647
23724
|
constructor(fullSchema, schema4, tableNamesMap, table4, tableConfig, dialect7, session, config, mode) {
|
23648
23725
|
super();
|
23649
23726
|
this.fullSchema = fullSchema;
|
@@ -23709,18 +23786,18 @@ var init_query = __esm({
|
|
23709
23786
|
});
|
23710
23787
|
}
|
23711
23788
|
};
|
23712
|
-
__publicField(PgRelationalQuery,
|
23789
|
+
__publicField(PgRelationalQuery, _a143, "PgRelationalQuery");
|
23713
23790
|
}
|
23714
23791
|
});
|
23715
23792
|
|
23716
23793
|
// ../drizzle-orm/dist/pg-core/query-builders/raw.js
|
23717
|
-
var
|
23794
|
+
var _a144, _b109, PgRaw;
|
23718
23795
|
var init_raw = __esm({
|
23719
23796
|
"../drizzle-orm/dist/pg-core/query-builders/raw.js"() {
|
23720
23797
|
"use strict";
|
23721
23798
|
init_entity();
|
23722
23799
|
init_query_promise();
|
23723
|
-
PgRaw = class extends (
|
23800
|
+
PgRaw = class extends (_b109 = QueryPromise, _a144 = entityKind, _b109) {
|
23724
23801
|
constructor(execute, sql2, query, mapBatchResult) {
|
23725
23802
|
super();
|
23726
23803
|
this.execute = execute;
|
@@ -23746,12 +23823,12 @@ var init_raw = __esm({
|
|
23746
23823
|
return false;
|
23747
23824
|
}
|
23748
23825
|
};
|
23749
|
-
__publicField(PgRaw,
|
23826
|
+
__publicField(PgRaw, _a144, "PgRaw");
|
23750
23827
|
}
|
23751
23828
|
});
|
23752
23829
|
|
23753
23830
|
// ../drizzle-orm/dist/pg-core/db.js
|
23754
|
-
var
|
23831
|
+
var _a145, PgDatabase;
|
23755
23832
|
var init_db = __esm({
|
23756
23833
|
"../drizzle-orm/dist/pg-core/db.js"() {
|
23757
23834
|
"use strict";
|
@@ -23762,7 +23839,7 @@ var init_db = __esm({
|
|
23762
23839
|
init_query();
|
23763
23840
|
init_raw();
|
23764
23841
|
init_refresh_materialized_view();
|
23765
|
-
|
23842
|
+
_a145 = entityKind;
|
23766
23843
|
PgDatabase = class {
|
23767
23844
|
constructor(dialect7, session, schema4) {
|
23768
23845
|
__publicField(this, "query");
|
@@ -24027,19 +24104,19 @@ var init_db = __esm({
|
|
24027
24104
|
return this.session.transaction(transaction, config);
|
24028
24105
|
}
|
24029
24106
|
};
|
24030
|
-
__publicField(PgDatabase,
|
24107
|
+
__publicField(PgDatabase, _a145, "PgDatabase");
|
24031
24108
|
}
|
24032
24109
|
});
|
24033
24110
|
|
24034
24111
|
// ../drizzle-orm/dist/pg-core/indexes.js
|
24035
|
-
var
|
24112
|
+
var _a146, IndexBuilderOn, _a147, IndexBuilder, _a148, Index2;
|
24036
24113
|
var init_indexes = __esm({
|
24037
24114
|
"../drizzle-orm/dist/pg-core/indexes.js"() {
|
24038
24115
|
"use strict";
|
24039
24116
|
init_sql();
|
24040
24117
|
init_entity();
|
24041
24118
|
init_columns();
|
24042
|
-
|
24119
|
+
_a146 = entityKind;
|
24043
24120
|
IndexBuilderOn = class {
|
24044
24121
|
constructor(unique, name2) {
|
24045
24122
|
this.unique = unique;
|
@@ -24106,8 +24183,8 @@ var init_indexes = __esm({
|
|
24106
24183
|
);
|
24107
24184
|
}
|
24108
24185
|
};
|
24109
|
-
__publicField(IndexBuilderOn,
|
24110
|
-
|
24186
|
+
__publicField(IndexBuilderOn, _a146, "PgIndexBuilderOn");
|
24187
|
+
_a147 = entityKind;
|
24111
24188
|
IndexBuilder = class {
|
24112
24189
|
constructor(columns, unique, only, name2, method = "btree") {
|
24113
24190
|
/** @internal */
|
@@ -24137,15 +24214,15 @@ var init_indexes = __esm({
|
|
24137
24214
|
return new Index2(this.config, table4);
|
24138
24215
|
}
|
24139
24216
|
};
|
24140
|
-
__publicField(IndexBuilder,
|
24141
|
-
|
24217
|
+
__publicField(IndexBuilder, _a147, "PgIndexBuilder");
|
24218
|
+
_a148 = entityKind;
|
24142
24219
|
Index2 = class {
|
24143
24220
|
constructor(config, table4) {
|
24144
24221
|
__publicField(this, "config");
|
24145
24222
|
this.config = { ...config, table: table4 };
|
24146
24223
|
}
|
24147
24224
|
};
|
24148
|
-
__publicField(Index2,
|
24225
|
+
__publicField(Index2, _a148, "PgIndex");
|
24149
24226
|
}
|
24150
24227
|
});
|
24151
24228
|
|
@@ -24156,12 +24233,12 @@ function pgSequenceWithSchema(name2, options, schema4) {
|
|
24156
24233
|
function isPgSequence(obj) {
|
24157
24234
|
return is(obj, PgSequence);
|
24158
24235
|
}
|
24159
|
-
var
|
24236
|
+
var _a149, PgSequence;
|
24160
24237
|
var init_sequence = __esm({
|
24161
24238
|
"../drizzle-orm/dist/pg-core/sequence.js"() {
|
24162
24239
|
"use strict";
|
24163
24240
|
init_entity();
|
24164
|
-
|
24241
|
+
_a149 = entityKind;
|
24165
24242
|
PgSequence = class {
|
24166
24243
|
constructor(seqName, seqOptions, schema4) {
|
24167
24244
|
this.seqName = seqName;
|
@@ -24169,7 +24246,7 @@ var init_sequence = __esm({
|
|
24169
24246
|
this.schema = schema4;
|
24170
24247
|
}
|
24171
24248
|
};
|
24172
|
-
__publicField(PgSequence,
|
24249
|
+
__publicField(PgSequence, _a149, "PgSequence");
|
24173
24250
|
}
|
24174
24251
|
});
|
24175
24252
|
|
@@ -24195,7 +24272,7 @@ function pgMaterializedViewWithSchema(name2, selection, schema4) {
|
|
24195
24272
|
}
|
24196
24273
|
return new MaterializedViewBuilder(name2, schema4);
|
24197
24274
|
}
|
24198
|
-
var
|
24275
|
+
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;
|
24199
24276
|
var init_view = __esm({
|
24200
24277
|
"../drizzle-orm/dist/pg-core/view.js"() {
|
24201
24278
|
"use strict";
|
@@ -24206,7 +24283,7 @@ var init_view = __esm({
|
|
24206
24283
|
init_table2();
|
24207
24284
|
init_view_base();
|
24208
24285
|
init_view_common2();
|
24209
|
-
|
24286
|
+
_a150 = entityKind;
|
24210
24287
|
DefaultViewBuilderCore = class {
|
24211
24288
|
constructor(name2, schema4) {
|
24212
24289
|
__publicField(this, "config", {});
|
@@ -24218,8 +24295,8 @@ var init_view = __esm({
|
|
24218
24295
|
return this;
|
24219
24296
|
}
|
24220
24297
|
};
|
24221
|
-
__publicField(DefaultViewBuilderCore,
|
24222
|
-
ViewBuilder = class extends (
|
24298
|
+
__publicField(DefaultViewBuilderCore, _a150, "PgDefaultViewBuilderCore");
|
24299
|
+
ViewBuilder = class extends (_b110 = DefaultViewBuilderCore, _a151 = entityKind, _b110) {
|
24223
24300
|
as(qb) {
|
24224
24301
|
if (typeof qb === "function") {
|
24225
24302
|
qb = qb(new QueryBuilder());
|
@@ -24245,8 +24322,8 @@ var init_view = __esm({
|
|
24245
24322
|
);
|
24246
24323
|
}
|
24247
24324
|
};
|
24248
|
-
__publicField(ViewBuilder,
|
24249
|
-
ManualViewBuilder = class extends (
|
24325
|
+
__publicField(ViewBuilder, _a151, "PgViewBuilder");
|
24326
|
+
ManualViewBuilder = class extends (_b111 = DefaultViewBuilderCore, _a152 = entityKind, _b111) {
|
24250
24327
|
constructor(name2, columns, schema4) {
|
24251
24328
|
super(name2, schema4);
|
24252
24329
|
__publicField(this, "columns");
|
@@ -24291,8 +24368,8 @@ var init_view = __esm({
|
|
24291
24368
|
);
|
24292
24369
|
}
|
24293
24370
|
};
|
24294
|
-
__publicField(ManualViewBuilder,
|
24295
|
-
|
24371
|
+
__publicField(ManualViewBuilder, _a152, "PgManualViewBuilder");
|
24372
|
+
_a153 = entityKind;
|
24296
24373
|
MaterializedViewBuilderCore = class {
|
24297
24374
|
constructor(name2, schema4) {
|
24298
24375
|
__publicField(this, "config", {});
|
@@ -24316,8 +24393,8 @@ var init_view = __esm({
|
|
24316
24393
|
return this;
|
24317
24394
|
}
|
24318
24395
|
};
|
24319
|
-
__publicField(MaterializedViewBuilderCore,
|
24320
|
-
MaterializedViewBuilder = class extends (
|
24396
|
+
__publicField(MaterializedViewBuilderCore, _a153, "PgMaterializedViewBuilderCore");
|
24397
|
+
MaterializedViewBuilder = class extends (_b112 = MaterializedViewBuilderCore, _a154 = entityKind, _b112) {
|
24321
24398
|
as(qb) {
|
24322
24399
|
if (typeof qb === "function") {
|
24323
24400
|
qb = qb(new QueryBuilder());
|
@@ -24348,8 +24425,8 @@ var init_view = __esm({
|
|
24348
24425
|
);
|
24349
24426
|
}
|
24350
24427
|
};
|
24351
|
-
__publicField(MaterializedViewBuilder,
|
24352
|
-
ManualMaterializedViewBuilder = class extends (
|
24428
|
+
__publicField(MaterializedViewBuilder, _a154, "PgMaterializedViewBuilder");
|
24429
|
+
ManualMaterializedViewBuilder = class extends (_b113 = MaterializedViewBuilderCore, _a155 = entityKind, _b113) {
|
24353
24430
|
constructor(name2, columns, schema4) {
|
24354
24431
|
super(name2, schema4);
|
24355
24432
|
__publicField(this, "columns");
|
@@ -24394,11 +24471,11 @@ var init_view = __esm({
|
|
24394
24471
|
);
|
24395
24472
|
}
|
24396
24473
|
};
|
24397
|
-
__publicField(ManualMaterializedViewBuilder,
|
24398
|
-
PgView = class extends (_c3 = PgViewBase,
|
24474
|
+
__publicField(ManualMaterializedViewBuilder, _a155, "PgManualMaterializedViewBuilder");
|
24475
|
+
PgView = class extends (_c3 = PgViewBase, _b114 = entityKind, _a156 = PgViewConfig, _c3) {
|
24399
24476
|
constructor({ pgConfig, config }) {
|
24400
24477
|
super(config);
|
24401
|
-
__publicField(this,
|
24478
|
+
__publicField(this, _a156);
|
24402
24479
|
if (pgConfig) {
|
24403
24480
|
this[PgViewConfig] = {
|
24404
24481
|
with: pgConfig.with
|
@@ -24406,12 +24483,12 @@ var init_view = __esm({
|
|
24406
24483
|
}
|
24407
24484
|
}
|
24408
24485
|
};
|
24409
|
-
__publicField(PgView,
|
24486
|
+
__publicField(PgView, _b114, "PgView");
|
24410
24487
|
PgMaterializedViewConfig = Symbol.for("drizzle:PgMaterializedViewConfig");
|
24411
|
-
PgMaterializedView = class extends (_c4 = PgViewBase,
|
24488
|
+
PgMaterializedView = class extends (_c4 = PgViewBase, _b115 = entityKind, _a157 = PgMaterializedViewConfig, _c4) {
|
24412
24489
|
constructor({ pgConfig, config }) {
|
24413
24490
|
super(config);
|
24414
|
-
__publicField(this,
|
24491
|
+
__publicField(this, _a157);
|
24415
24492
|
this[PgMaterializedViewConfig] = {
|
24416
24493
|
with: pgConfig?.with,
|
24417
24494
|
using: pgConfig?.using,
|
@@ -24420,12 +24497,12 @@ var init_view = __esm({
|
|
24420
24497
|
};
|
24421
24498
|
}
|
24422
24499
|
};
|
24423
|
-
__publicField(PgMaterializedView,
|
24500
|
+
__publicField(PgMaterializedView, _b115, "PgMaterializedView");
|
24424
24501
|
}
|
24425
24502
|
});
|
24426
24503
|
|
24427
24504
|
// ../drizzle-orm/dist/pg-core/schema.js
|
24428
|
-
var
|
24505
|
+
var _a158, PgSchema5;
|
24429
24506
|
var init_schema = __esm({
|
24430
24507
|
"../drizzle-orm/dist/pg-core/schema.js"() {
|
24431
24508
|
"use strict";
|
@@ -24435,7 +24512,7 @@ var init_schema = __esm({
|
|
24435
24512
|
init_sequence();
|
24436
24513
|
init_table2();
|
24437
24514
|
init_view();
|
24438
|
-
|
24515
|
+
_a158 = entityKind;
|
24439
24516
|
PgSchema5 = class {
|
24440
24517
|
constructor(schemaName) {
|
24441
24518
|
__publicField(this, "table", (name2, columns, extraConfig) => {
|
@@ -24462,12 +24539,12 @@ var init_schema = __esm({
|
|
24462
24539
|
return true;
|
24463
24540
|
}
|
24464
24541
|
};
|
24465
|
-
__publicField(PgSchema5,
|
24542
|
+
__publicField(PgSchema5, _a158, "PgSchema");
|
24466
24543
|
}
|
24467
24544
|
});
|
24468
24545
|
|
24469
24546
|
// ../drizzle-orm/dist/pg-core/session.js
|
24470
|
-
var
|
24547
|
+
var _a159, PgPreparedQuery, _a160, PgSession, _a161, _b116, PgTransaction;
|
24471
24548
|
var init_session = __esm({
|
24472
24549
|
"../drizzle-orm/dist/pg-core/session.js"() {
|
24473
24550
|
"use strict";
|
@@ -24476,7 +24553,7 @@ var init_session = __esm({
|
|
24476
24553
|
init_sql2();
|
24477
24554
|
init_tracing();
|
24478
24555
|
init_db();
|
24479
|
-
|
24556
|
+
_a159 = entityKind;
|
24480
24557
|
PgPreparedQuery = class {
|
24481
24558
|
constructor(query) {
|
24482
24559
|
/** @internal */
|
@@ -24490,8 +24567,8 @@ var init_session = __esm({
|
|
24490
24567
|
return response;
|
24491
24568
|
}
|
24492
24569
|
};
|
24493
|
-
__publicField(PgPreparedQuery,
|
24494
|
-
|
24570
|
+
__publicField(PgPreparedQuery, _a159, "PgPreparedQuery");
|
24571
|
+
_a160 = entityKind;
|
24495
24572
|
PgSession = class {
|
24496
24573
|
constructor(dialect7) {
|
24497
24574
|
this.dialect = dialect7;
|
@@ -24518,8 +24595,8 @@ var init_session = __esm({
|
|
24518
24595
|
).all();
|
24519
24596
|
}
|
24520
24597
|
};
|
24521
|
-
__publicField(PgSession,
|
24522
|
-
PgTransaction = class extends (
|
24598
|
+
__publicField(PgSession, _a160, "PgSession");
|
24599
|
+
PgTransaction = class extends (_b116 = PgDatabase, _a161 = entityKind, _b116) {
|
24523
24600
|
constructor(dialect7, session, schema4, nestedIndex = 0) {
|
24524
24601
|
super(dialect7, session, schema4);
|
24525
24602
|
this.schema = schema4;
|
@@ -24546,7 +24623,7 @@ var init_session = __esm({
|
|
24546
24623
|
return this.session.execute(sql`set transaction ${this.getTransactionConfigSQL(config)}`);
|
24547
24624
|
}
|
24548
24625
|
};
|
24549
|
-
__publicField(PgTransaction,
|
24626
|
+
__publicField(PgTransaction, _a161, "PgTransaction");
|
24550
24627
|
}
|
24551
24628
|
});
|
24552
24629
|
|
@@ -25367,11 +25444,12 @@ ${withStyle.errorWarning(
|
|
25367
25444
|
}
|
25368
25445
|
columnTypeMapped = columnTypeMapped.replace("character varying", "varchar").replace(" without time zone", "").replace("character", "char");
|
25369
25446
|
columnTypeMapped = trimChar(columnTypeMapped, '"');
|
25447
|
+
columnTypeMapped = columnTypeMapped.replace("geography(Point,4326)", "geography(point)");
|
25370
25448
|
columnToReturn[columnName] = {
|
25371
25449
|
name: columnName,
|
25372
25450
|
type: (
|
25373
25451
|
// filter vectors, but in future we should filter any extension that was installed by user
|
25374
|
-
columnAdditionalDT === "USER-DEFINED" && !["vector", "geometry"].includes(enumType2) ? enumType2 : columnTypeMapped
|
25452
|
+
columnAdditionalDT === "USER-DEFINED" && !["vector", "geometry", "geography"].includes(enumType2) ? enumType2 : columnTypeMapped
|
25375
25453
|
),
|
25376
25454
|
typeSchema: enumsToReturn[`${typeSchema}.${enumType2}`] !== void 0 ? enumsToReturn[`${typeSchema}.${enumType2}`].schema : void 0,
|
25377
25455
|
primaryKey: primaryKey.length === 1 && cprimaryKey.length < 2,
|
@@ -25658,12 +25736,12 @@ var init_alias3 = __esm({
|
|
25658
25736
|
});
|
25659
25737
|
|
25660
25738
|
// ../drizzle-orm/dist/sqlite-core/checks.js
|
25661
|
-
var
|
25739
|
+
var _a162, CheckBuilder2, _a163, Check2;
|
25662
25740
|
var init_checks2 = __esm({
|
25663
25741
|
"../drizzle-orm/dist/sqlite-core/checks.js"() {
|
25664
25742
|
"use strict";
|
25665
25743
|
init_entity();
|
25666
|
-
|
25744
|
+
_a162 = entityKind;
|
25667
25745
|
CheckBuilder2 = class {
|
25668
25746
|
constructor(name2, value) {
|
25669
25747
|
__publicField(this, "brand");
|
@@ -25674,8 +25752,8 @@ var init_checks2 = __esm({
|
|
25674
25752
|
return new Check2(table4, this);
|
25675
25753
|
}
|
25676
25754
|
};
|
25677
|
-
__publicField(CheckBuilder2,
|
25678
|
-
|
25755
|
+
__publicField(CheckBuilder2, _a162, "SQLiteCheckBuilder");
|
25756
|
+
_a163 = entityKind;
|
25679
25757
|
Check2 = class {
|
25680
25758
|
constructor(table4, builder) {
|
25681
25759
|
__publicField(this, "name");
|
@@ -25685,7 +25763,7 @@ var init_checks2 = __esm({
|
|
25685
25763
|
this.value = builder.value;
|
25686
25764
|
}
|
25687
25765
|
};
|
25688
|
-
__publicField(Check2,
|
25766
|
+
__publicField(Check2, _a163, "SQLiteCheck");
|
25689
25767
|
}
|
25690
25768
|
});
|
25691
25769
|
|
@@ -25708,22 +25786,22 @@ function sqliteTableBase(name2, columns, extraConfig, schema4, baseName = name2)
|
|
25708
25786
|
}
|
25709
25787
|
return table4;
|
25710
25788
|
}
|
25711
|
-
var InlineForeignKeys2,
|
25789
|
+
var InlineForeignKeys2, _a164, _b117, _c5, _d3, _e2, SQLiteTable, sqliteTable;
|
25712
25790
|
var init_table3 = __esm({
|
25713
25791
|
"../drizzle-orm/dist/sqlite-core/table.js"() {
|
25714
25792
|
"use strict";
|
25715
25793
|
init_entity();
|
25716
25794
|
init_table();
|
25717
25795
|
InlineForeignKeys2 = Symbol.for("drizzle:SQLiteInlineForeignKeys");
|
25718
|
-
SQLiteTable = class extends (_e2 = Table2, _d3 = entityKind, _c5 = Table2.Symbol.Columns,
|
25796
|
+
SQLiteTable = class extends (_e2 = Table2, _d3 = entityKind, _c5 = Table2.Symbol.Columns, _b117 = InlineForeignKeys2, _a164 = Table2.Symbol.ExtraConfigBuilder, _e2) {
|
25719
25797
|
constructor() {
|
25720
25798
|
super(...arguments);
|
25721
25799
|
/** @internal */
|
25722
25800
|
__publicField(this, _c5);
|
25723
25801
|
/** @internal */
|
25724
|
-
__publicField(this,
|
25802
|
+
__publicField(this, _b117, []);
|
25725
25803
|
/** @internal */
|
25726
|
-
__publicField(this,
|
25804
|
+
__publicField(this, _a164);
|
25727
25805
|
}
|
25728
25806
|
};
|
25729
25807
|
__publicField(SQLiteTable, _d3, "SQLiteTable");
|
@@ -25738,13 +25816,13 @@ var init_table3 = __esm({
|
|
25738
25816
|
});
|
25739
25817
|
|
25740
25818
|
// ../drizzle-orm/dist/sqlite-core/foreign-keys.js
|
25741
|
-
var
|
25819
|
+
var _a165, ForeignKeyBuilder2, _a166, ForeignKey2;
|
25742
25820
|
var init_foreign_keys2 = __esm({
|
25743
25821
|
"../drizzle-orm/dist/sqlite-core/foreign-keys.js"() {
|
25744
25822
|
"use strict";
|
25745
25823
|
init_entity();
|
25746
25824
|
init_table3();
|
25747
|
-
|
25825
|
+
_a165 = entityKind;
|
25748
25826
|
ForeignKeyBuilder2 = class {
|
25749
25827
|
constructor(config, actions) {
|
25750
25828
|
/** @internal */
|
@@ -25775,8 +25853,8 @@ var init_foreign_keys2 = __esm({
|
|
25775
25853
|
return new ForeignKey2(table4, this);
|
25776
25854
|
}
|
25777
25855
|
};
|
25778
|
-
__publicField(ForeignKeyBuilder2,
|
25779
|
-
|
25856
|
+
__publicField(ForeignKeyBuilder2, _a165, "SQLiteForeignKeyBuilder");
|
25857
|
+
_a166 = entityKind;
|
25780
25858
|
ForeignKey2 = class {
|
25781
25859
|
constructor(table4, builder) {
|
25782
25860
|
__publicField(this, "reference");
|
@@ -25800,7 +25878,7 @@ var init_foreign_keys2 = __esm({
|
|
25800
25878
|
return name2 ?? `${chunks.join("_")}_fk`;
|
25801
25879
|
}
|
25802
25880
|
};
|
25803
|
-
__publicField(ForeignKey2,
|
25881
|
+
__publicField(ForeignKey2, _a166, "SQLiteForeignKey");
|
25804
25882
|
}
|
25805
25883
|
});
|
25806
25884
|
|
@@ -25808,13 +25886,13 @@ var init_foreign_keys2 = __esm({
|
|
25808
25886
|
function uniqueKeyName2(table4, columns) {
|
25809
25887
|
return `${table4[SQLiteTable.Symbol.Name]}_${columns.join("_")}_unique`;
|
25810
25888
|
}
|
25811
|
-
var
|
25889
|
+
var _a167, UniqueConstraintBuilder2, _a168, UniqueOnConstraintBuilder2, _a169, UniqueConstraint2;
|
25812
25890
|
var init_unique_constraint2 = __esm({
|
25813
25891
|
"../drizzle-orm/dist/sqlite-core/unique-constraint.js"() {
|
25814
25892
|
"use strict";
|
25815
25893
|
init_entity();
|
25816
25894
|
init_table3();
|
25817
|
-
|
25895
|
+
_a167 = entityKind;
|
25818
25896
|
UniqueConstraintBuilder2 = class {
|
25819
25897
|
constructor(columns, name2) {
|
25820
25898
|
/** @internal */
|
@@ -25827,8 +25905,8 @@ var init_unique_constraint2 = __esm({
|
|
25827
25905
|
return new UniqueConstraint2(table4, this.columns, this.name);
|
25828
25906
|
}
|
25829
25907
|
};
|
25830
|
-
__publicField(UniqueConstraintBuilder2,
|
25831
|
-
|
25908
|
+
__publicField(UniqueConstraintBuilder2, _a167, "SQLiteUniqueConstraintBuilder");
|
25909
|
+
_a168 = entityKind;
|
25832
25910
|
UniqueOnConstraintBuilder2 = class {
|
25833
25911
|
constructor(name2) {
|
25834
25912
|
/** @internal */
|
@@ -25839,8 +25917,8 @@ var init_unique_constraint2 = __esm({
|
|
25839
25917
|
return new UniqueConstraintBuilder2(columns, this.name);
|
25840
25918
|
}
|
25841
25919
|
};
|
25842
|
-
__publicField(UniqueOnConstraintBuilder2,
|
25843
|
-
|
25920
|
+
__publicField(UniqueOnConstraintBuilder2, _a168, "SQLiteUniqueOnConstraintBuilder");
|
25921
|
+
_a169 = entityKind;
|
25844
25922
|
UniqueConstraint2 = class {
|
25845
25923
|
constructor(table4, columns, name2) {
|
25846
25924
|
__publicField(this, "columns");
|
@@ -25853,12 +25931,12 @@ var init_unique_constraint2 = __esm({
|
|
25853
25931
|
return this.name;
|
25854
25932
|
}
|
25855
25933
|
};
|
25856
|
-
__publicField(UniqueConstraint2,
|
25934
|
+
__publicField(UniqueConstraint2, _a169, "SQLiteUniqueConstraint");
|
25857
25935
|
}
|
25858
25936
|
});
|
25859
25937
|
|
25860
25938
|
// ../drizzle-orm/dist/sqlite-core/columns/common.js
|
25861
|
-
var
|
25939
|
+
var _a170, _b118, SQLiteColumnBuilder, _a171, _b119, SQLiteColumn;
|
25862
25940
|
var init_common3 = __esm({
|
25863
25941
|
"../drizzle-orm/dist/sqlite-core/columns/common.js"() {
|
25864
25942
|
"use strict";
|
@@ -25867,7 +25945,7 @@ var init_common3 = __esm({
|
|
25867
25945
|
init_entity();
|
25868
25946
|
init_foreign_keys2();
|
25869
25947
|
init_unique_constraint2();
|
25870
|
-
SQLiteColumnBuilder = class extends (
|
25948
|
+
SQLiteColumnBuilder = class extends (_b118 = ColumnBuilder, _a170 = entityKind, _b118) {
|
25871
25949
|
constructor() {
|
25872
25950
|
super(...arguments);
|
25873
25951
|
__publicField(this, "foreignKeyConfigs", []);
|
@@ -25908,8 +25986,8 @@ var init_common3 = __esm({
|
|
25908
25986
|
});
|
25909
25987
|
}
|
25910
25988
|
};
|
25911
|
-
__publicField(SQLiteColumnBuilder,
|
25912
|
-
SQLiteColumn = class extends (
|
25989
|
+
__publicField(SQLiteColumnBuilder, _a170, "SQLiteColumnBuilder");
|
25990
|
+
SQLiteColumn = class extends (_b119 = Column2, _a171 = entityKind, _b119) {
|
25913
25991
|
constructor(table4, config) {
|
25914
25992
|
if (!config.uniqueName) {
|
25915
25993
|
config.uniqueName = uniqueKeyName2(table4, [config.name]);
|
@@ -25918,18 +25996,18 @@ var init_common3 = __esm({
|
|
25918
25996
|
this.table = table4;
|
25919
25997
|
}
|
25920
25998
|
};
|
25921
|
-
__publicField(SQLiteColumn,
|
25999
|
+
__publicField(SQLiteColumn, _a171, "SQLiteColumn");
|
25922
26000
|
}
|
25923
26001
|
});
|
25924
26002
|
|
25925
26003
|
// ../drizzle-orm/dist/sqlite-core/columns/blob.js
|
25926
|
-
var
|
26004
|
+
var _a172, _b120, SQLiteBigIntBuilder, _a173, _b121, SQLiteBigInt, _a174, _b122, SQLiteBlobJsonBuilder, _a175, _b123, SQLiteBlobJson, _a176, _b124, SQLiteBlobBufferBuilder, _a177, _b125, SQLiteBlobBuffer;
|
25927
26005
|
var init_blob = __esm({
|
25928
26006
|
"../drizzle-orm/dist/sqlite-core/columns/blob.js"() {
|
25929
26007
|
"use strict";
|
25930
26008
|
init_entity();
|
25931
26009
|
init_common3();
|
25932
|
-
SQLiteBigIntBuilder = class extends (
|
26010
|
+
SQLiteBigIntBuilder = class extends (_b120 = SQLiteColumnBuilder, _a172 = entityKind, _b120) {
|
25933
26011
|
constructor(name2) {
|
25934
26012
|
super(name2, "bigint", "SQLiteBigInt");
|
25935
26013
|
}
|
@@ -25938,8 +26016,8 @@ var init_blob = __esm({
|
|
25938
26016
|
return new SQLiteBigInt(table4, this.config);
|
25939
26017
|
}
|
25940
26018
|
};
|
25941
|
-
__publicField(SQLiteBigIntBuilder,
|
25942
|
-
SQLiteBigInt = class extends (
|
26019
|
+
__publicField(SQLiteBigIntBuilder, _a172, "SQLiteBigIntBuilder");
|
26020
|
+
SQLiteBigInt = class extends (_b121 = SQLiteColumn, _a173 = entityKind, _b121) {
|
25943
26021
|
getSQLType() {
|
25944
26022
|
return "blob";
|
25945
26023
|
}
|
@@ -25950,8 +26028,8 @@ var init_blob = __esm({
|
|
25950
26028
|
return Buffer.from(value.toString());
|
25951
26029
|
}
|
25952
26030
|
};
|
25953
|
-
__publicField(SQLiteBigInt,
|
25954
|
-
SQLiteBlobJsonBuilder = class extends (
|
26031
|
+
__publicField(SQLiteBigInt, _a173, "SQLiteBigInt");
|
26032
|
+
SQLiteBlobJsonBuilder = class extends (_b122 = SQLiteColumnBuilder, _a174 = entityKind, _b122) {
|
25955
26033
|
constructor(name2) {
|
25956
26034
|
super(name2, "json", "SQLiteBlobJson");
|
25957
26035
|
}
|
@@ -25963,8 +26041,8 @@ var init_blob = __esm({
|
|
25963
26041
|
);
|
25964
26042
|
}
|
25965
26043
|
};
|
25966
|
-
__publicField(SQLiteBlobJsonBuilder,
|
25967
|
-
SQLiteBlobJson = class extends (
|
26044
|
+
__publicField(SQLiteBlobJsonBuilder, _a174, "SQLiteBlobJsonBuilder");
|
26045
|
+
SQLiteBlobJson = class extends (_b123 = SQLiteColumn, _a175 = entityKind, _b123) {
|
25968
26046
|
getSQLType() {
|
25969
26047
|
return "blob";
|
25970
26048
|
}
|
@@ -25975,8 +26053,8 @@ var init_blob = __esm({
|
|
25975
26053
|
return Buffer.from(JSON.stringify(value));
|
25976
26054
|
}
|
25977
26055
|
};
|
25978
|
-
__publicField(SQLiteBlobJson,
|
25979
|
-
SQLiteBlobBufferBuilder = class extends (
|
26056
|
+
__publicField(SQLiteBlobJson, _a175, "SQLiteBlobJson");
|
26057
|
+
SQLiteBlobBufferBuilder = class extends (_b124 = SQLiteColumnBuilder, _a176 = entityKind, _b124) {
|
25980
26058
|
constructor(name2) {
|
25981
26059
|
super(name2, "buffer", "SQLiteBlobBuffer");
|
25982
26060
|
}
|
@@ -25985,24 +26063,24 @@ var init_blob = __esm({
|
|
25985
26063
|
return new SQLiteBlobBuffer(table4, this.config);
|
25986
26064
|
}
|
25987
26065
|
};
|
25988
|
-
__publicField(SQLiteBlobBufferBuilder,
|
25989
|
-
SQLiteBlobBuffer = class extends (
|
26066
|
+
__publicField(SQLiteBlobBufferBuilder, _a176, "SQLiteBlobBufferBuilder");
|
26067
|
+
SQLiteBlobBuffer = class extends (_b125 = SQLiteColumn, _a177 = entityKind, _b125) {
|
25990
26068
|
getSQLType() {
|
25991
26069
|
return "blob";
|
25992
26070
|
}
|
25993
26071
|
};
|
25994
|
-
__publicField(SQLiteBlobBuffer,
|
26072
|
+
__publicField(SQLiteBlobBuffer, _a177, "SQLiteBlobBuffer");
|
25995
26073
|
}
|
25996
26074
|
});
|
25997
26075
|
|
25998
26076
|
// ../drizzle-orm/dist/sqlite-core/columns/custom.js
|
25999
|
-
var
|
26077
|
+
var _a178, _b126, SQLiteCustomColumnBuilder, _a179, _b127, SQLiteCustomColumn;
|
26000
26078
|
var init_custom2 = __esm({
|
26001
26079
|
"../drizzle-orm/dist/sqlite-core/columns/custom.js"() {
|
26002
26080
|
"use strict";
|
26003
26081
|
init_entity();
|
26004
26082
|
init_common3();
|
26005
|
-
SQLiteCustomColumnBuilder = class extends (
|
26083
|
+
SQLiteCustomColumnBuilder = class extends (_b126 = SQLiteColumnBuilder, _a178 = entityKind, _b126) {
|
26006
26084
|
constructor(name2, fieldConfig, customTypeParams) {
|
26007
26085
|
super(name2, "custom", "SQLiteCustomColumn");
|
26008
26086
|
this.config.fieldConfig = fieldConfig;
|
@@ -26016,8 +26094,8 @@ var init_custom2 = __esm({
|
|
26016
26094
|
);
|
26017
26095
|
}
|
26018
26096
|
};
|
26019
|
-
__publicField(SQLiteCustomColumnBuilder,
|
26020
|
-
SQLiteCustomColumn = class extends (
|
26097
|
+
__publicField(SQLiteCustomColumnBuilder, _a178, "SQLiteCustomColumnBuilder");
|
26098
|
+
SQLiteCustomColumn = class extends (_b127 = SQLiteColumn, _a179 = entityKind, _b127) {
|
26021
26099
|
constructor(table4, config) {
|
26022
26100
|
super(table4, config);
|
26023
26101
|
__publicField(this, "sqlName");
|
@@ -26037,19 +26115,19 @@ var init_custom2 = __esm({
|
|
26037
26115
|
return typeof this.mapTo === "function" ? this.mapTo(value) : value;
|
26038
26116
|
}
|
26039
26117
|
};
|
26040
|
-
__publicField(SQLiteCustomColumn,
|
26118
|
+
__publicField(SQLiteCustomColumn, _a179, "SQLiteCustomColumn");
|
26041
26119
|
}
|
26042
26120
|
});
|
26043
26121
|
|
26044
26122
|
// ../drizzle-orm/dist/sqlite-core/columns/integer.js
|
26045
|
-
var
|
26123
|
+
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;
|
26046
26124
|
var init_integer2 = __esm({
|
26047
26125
|
"../drizzle-orm/dist/sqlite-core/columns/integer.js"() {
|
26048
26126
|
"use strict";
|
26049
26127
|
init_entity();
|
26050
26128
|
init_sql();
|
26051
26129
|
init_common3();
|
26052
|
-
SQLiteBaseIntegerBuilder = class extends (
|
26130
|
+
SQLiteBaseIntegerBuilder = class extends (_b128 = SQLiteColumnBuilder, _a180 = entityKind, _b128) {
|
26053
26131
|
constructor(name2, dataType, columnType) {
|
26054
26132
|
super(name2, dataType, columnType);
|
26055
26133
|
this.config.autoIncrement = false;
|
@@ -26062,8 +26140,8 @@ var init_integer2 = __esm({
|
|
26062
26140
|
return super.primaryKey();
|
26063
26141
|
}
|
26064
26142
|
};
|
26065
|
-
__publicField(SQLiteBaseIntegerBuilder,
|
26066
|
-
SQLiteBaseInteger = class extends (
|
26143
|
+
__publicField(SQLiteBaseIntegerBuilder, _a180, "SQLiteBaseIntegerBuilder");
|
26144
|
+
SQLiteBaseInteger = class extends (_b129 = SQLiteColumn, _a181 = entityKind, _b129) {
|
26067
26145
|
constructor() {
|
26068
26146
|
super(...arguments);
|
26069
26147
|
__publicField(this, "autoIncrement", this.config.autoIncrement);
|
@@ -26072,8 +26150,8 @@ var init_integer2 = __esm({
|
|
26072
26150
|
return "integer";
|
26073
26151
|
}
|
26074
26152
|
};
|
26075
|
-
__publicField(SQLiteBaseInteger,
|
26076
|
-
SQLiteIntegerBuilder = class extends (
|
26153
|
+
__publicField(SQLiteBaseInteger, _a181, "SQLiteBaseInteger");
|
26154
|
+
SQLiteIntegerBuilder = class extends (_b130 = SQLiteBaseIntegerBuilder, _a182 = entityKind, _b130) {
|
26077
26155
|
constructor(name2) {
|
26078
26156
|
super(name2, "number", "SQLiteInteger");
|
26079
26157
|
}
|
@@ -26084,11 +26162,11 @@ var init_integer2 = __esm({
|
|
26084
26162
|
);
|
26085
26163
|
}
|
26086
26164
|
};
|
26087
|
-
__publicField(SQLiteIntegerBuilder,
|
26088
|
-
SQLiteInteger = class extends (
|
26165
|
+
__publicField(SQLiteIntegerBuilder, _a182, "SQLiteIntegerBuilder");
|
26166
|
+
SQLiteInteger = class extends (_b131 = SQLiteBaseInteger, _a183 = entityKind, _b131) {
|
26089
26167
|
};
|
26090
|
-
__publicField(SQLiteInteger,
|
26091
|
-
SQLiteTimestampBuilder = class extends (
|
26168
|
+
__publicField(SQLiteInteger, _a183, "SQLiteInteger");
|
26169
|
+
SQLiteTimestampBuilder = class extends (_b132 = SQLiteBaseIntegerBuilder, _a184 = entityKind, _b132) {
|
26092
26170
|
constructor(name2, mode) {
|
26093
26171
|
super(name2, "date", "SQLiteTimestamp");
|
26094
26172
|
this.config.mode = mode;
|
@@ -26108,8 +26186,8 @@ var init_integer2 = __esm({
|
|
26108
26186
|
);
|
26109
26187
|
}
|
26110
26188
|
};
|
26111
|
-
__publicField(SQLiteTimestampBuilder,
|
26112
|
-
SQLiteTimestamp = class extends (
|
26189
|
+
__publicField(SQLiteTimestampBuilder, _a184, "SQLiteTimestampBuilder");
|
26190
|
+
SQLiteTimestamp = class extends (_b133 = SQLiteBaseInteger, _a185 = entityKind, _b133) {
|
26113
26191
|
constructor() {
|
26114
26192
|
super(...arguments);
|
26115
26193
|
__publicField(this, "mode", this.config.mode);
|
@@ -26128,8 +26206,8 @@ var init_integer2 = __esm({
|
|
26128
26206
|
return unix;
|
26129
26207
|
}
|
26130
26208
|
};
|
26131
|
-
__publicField(SQLiteTimestamp,
|
26132
|
-
SQLiteBooleanBuilder = class extends (
|
26209
|
+
__publicField(SQLiteTimestamp, _a185, "SQLiteTimestamp");
|
26210
|
+
SQLiteBooleanBuilder = class extends (_b134 = SQLiteBaseIntegerBuilder, _a186 = entityKind, _b134) {
|
26133
26211
|
constructor(name2, mode) {
|
26134
26212
|
super(name2, "boolean", "SQLiteBoolean");
|
26135
26213
|
this.config.mode = mode;
|
@@ -26141,8 +26219,8 @@ var init_integer2 = __esm({
|
|
26141
26219
|
);
|
26142
26220
|
}
|
26143
26221
|
};
|
26144
|
-
__publicField(SQLiteBooleanBuilder,
|
26145
|
-
SQLiteBoolean = class extends (
|
26222
|
+
__publicField(SQLiteBooleanBuilder, _a186, "SQLiteBooleanBuilder");
|
26223
|
+
SQLiteBoolean = class extends (_b135 = SQLiteBaseInteger, _a187 = entityKind, _b135) {
|
26146
26224
|
constructor() {
|
26147
26225
|
super(...arguments);
|
26148
26226
|
__publicField(this, "mode", this.config.mode);
|
@@ -26154,18 +26232,18 @@ var init_integer2 = __esm({
|
|
26154
26232
|
return value ? 1 : 0;
|
26155
26233
|
}
|
26156
26234
|
};
|
26157
|
-
__publicField(SQLiteBoolean,
|
26235
|
+
__publicField(SQLiteBoolean, _a187, "SQLiteBoolean");
|
26158
26236
|
}
|
26159
26237
|
});
|
26160
26238
|
|
26161
26239
|
// ../drizzle-orm/dist/sqlite-core/columns/numeric.js
|
26162
|
-
var
|
26240
|
+
var _a188, _b136, SQLiteNumericBuilder, _a189, _b137, SQLiteNumeric;
|
26163
26241
|
var init_numeric2 = __esm({
|
26164
26242
|
"../drizzle-orm/dist/sqlite-core/columns/numeric.js"() {
|
26165
26243
|
"use strict";
|
26166
26244
|
init_entity();
|
26167
26245
|
init_common3();
|
26168
|
-
SQLiteNumericBuilder = class extends (
|
26246
|
+
SQLiteNumericBuilder = class extends (_b136 = SQLiteColumnBuilder, _a188 = entityKind, _b136) {
|
26169
26247
|
constructor(name2) {
|
26170
26248
|
super(name2, "string", "SQLiteNumeric");
|
26171
26249
|
}
|
@@ -26177,24 +26255,24 @@ var init_numeric2 = __esm({
|
|
26177
26255
|
);
|
26178
26256
|
}
|
26179
26257
|
};
|
26180
|
-
__publicField(SQLiteNumericBuilder,
|
26181
|
-
SQLiteNumeric = class extends (
|
26258
|
+
__publicField(SQLiteNumericBuilder, _a188, "SQLiteNumericBuilder");
|
26259
|
+
SQLiteNumeric = class extends (_b137 = SQLiteColumn, _a189 = entityKind, _b137) {
|
26182
26260
|
getSQLType() {
|
26183
26261
|
return "numeric";
|
26184
26262
|
}
|
26185
26263
|
};
|
26186
|
-
__publicField(SQLiteNumeric,
|
26264
|
+
__publicField(SQLiteNumeric, _a189, "SQLiteNumeric");
|
26187
26265
|
}
|
26188
26266
|
});
|
26189
26267
|
|
26190
26268
|
// ../drizzle-orm/dist/sqlite-core/columns/real.js
|
26191
|
-
var
|
26269
|
+
var _a190, _b138, SQLiteRealBuilder, _a191, _b139, SQLiteReal;
|
26192
26270
|
var init_real2 = __esm({
|
26193
26271
|
"../drizzle-orm/dist/sqlite-core/columns/real.js"() {
|
26194
26272
|
"use strict";
|
26195
26273
|
init_entity();
|
26196
26274
|
init_common3();
|
26197
|
-
SQLiteRealBuilder = class extends (
|
26275
|
+
SQLiteRealBuilder = class extends (_b138 = SQLiteColumnBuilder, _a190 = entityKind, _b138) {
|
26198
26276
|
constructor(name2) {
|
26199
26277
|
super(name2, "number", "SQLiteReal");
|
26200
26278
|
}
|
@@ -26203,24 +26281,24 @@ var init_real2 = __esm({
|
|
26203
26281
|
return new SQLiteReal(table4, this.config);
|
26204
26282
|
}
|
26205
26283
|
};
|
26206
|
-
__publicField(SQLiteRealBuilder,
|
26207
|
-
SQLiteReal = class extends (
|
26284
|
+
__publicField(SQLiteRealBuilder, _a190, "SQLiteRealBuilder");
|
26285
|
+
SQLiteReal = class extends (_b139 = SQLiteColumn, _a191 = entityKind, _b139) {
|
26208
26286
|
getSQLType() {
|
26209
26287
|
return "real";
|
26210
26288
|
}
|
26211
26289
|
};
|
26212
|
-
__publicField(SQLiteReal,
|
26290
|
+
__publicField(SQLiteReal, _a191, "SQLiteReal");
|
26213
26291
|
}
|
26214
26292
|
});
|
26215
26293
|
|
26216
26294
|
// ../drizzle-orm/dist/sqlite-core/columns/text.js
|
26217
|
-
var
|
26295
|
+
var _a192, _b140, SQLiteTextBuilder, _a193, _b141, SQLiteText, _a194, _b142, SQLiteTextJsonBuilder, _a195, _b143, SQLiteTextJson;
|
26218
26296
|
var init_text2 = __esm({
|
26219
26297
|
"../drizzle-orm/dist/sqlite-core/columns/text.js"() {
|
26220
26298
|
"use strict";
|
26221
26299
|
init_entity();
|
26222
26300
|
init_common3();
|
26223
|
-
SQLiteTextBuilder = class extends (
|
26301
|
+
SQLiteTextBuilder = class extends (_b140 = SQLiteColumnBuilder, _a192 = entityKind, _b140) {
|
26224
26302
|
constructor(name2, config) {
|
26225
26303
|
super(name2, "string", "SQLiteText");
|
26226
26304
|
this.config.enumValues = config.enum;
|
@@ -26231,8 +26309,8 @@ var init_text2 = __esm({
|
|
26231
26309
|
return new SQLiteText(table4, this.config);
|
26232
26310
|
}
|
26233
26311
|
};
|
26234
|
-
__publicField(SQLiteTextBuilder,
|
26235
|
-
SQLiteText = class extends (
|
26312
|
+
__publicField(SQLiteTextBuilder, _a192, "SQLiteTextBuilder");
|
26313
|
+
SQLiteText = class extends (_b141 = SQLiteColumn, _a193 = entityKind, _b141) {
|
26236
26314
|
constructor(table4, config) {
|
26237
26315
|
super(table4, config);
|
26238
26316
|
__publicField(this, "enumValues", this.config.enumValues);
|
@@ -26242,8 +26320,8 @@ var init_text2 = __esm({
|
|
26242
26320
|
return `text${this.config.length ? `(${this.config.length})` : ""}`;
|
26243
26321
|
}
|
26244
26322
|
};
|
26245
|
-
__publicField(SQLiteText,
|
26246
|
-
SQLiteTextJsonBuilder = class extends (
|
26323
|
+
__publicField(SQLiteText, _a193, "SQLiteText");
|
26324
|
+
SQLiteTextJsonBuilder = class extends (_b142 = SQLiteColumnBuilder, _a194 = entityKind, _b142) {
|
26247
26325
|
constructor(name2) {
|
26248
26326
|
super(name2, "json", "SQLiteTextJson");
|
26249
26327
|
}
|
@@ -26255,8 +26333,8 @@ var init_text2 = __esm({
|
|
26255
26333
|
);
|
26256
26334
|
}
|
26257
26335
|
};
|
26258
|
-
__publicField(SQLiteTextJsonBuilder,
|
26259
|
-
SQLiteTextJson = class extends (
|
26336
|
+
__publicField(SQLiteTextJsonBuilder, _a194, "SQLiteTextJsonBuilder");
|
26337
|
+
SQLiteTextJson = class extends (_b143 = SQLiteColumn, _a195 = entityKind, _b143) {
|
26260
26338
|
getSQLType() {
|
26261
26339
|
return "text";
|
26262
26340
|
}
|
@@ -26267,7 +26345,7 @@ var init_text2 = __esm({
|
|
26267
26345
|
return JSON.stringify(value);
|
26268
26346
|
}
|
26269
26347
|
};
|
26270
|
-
__publicField(SQLiteTextJson,
|
26348
|
+
__publicField(SQLiteTextJson, _a195, "SQLiteTextJson");
|
26271
26349
|
}
|
26272
26350
|
});
|
26273
26351
|
|
@@ -26286,7 +26364,7 @@ var init_columns2 = __esm({
|
|
26286
26364
|
});
|
26287
26365
|
|
26288
26366
|
// ../drizzle-orm/dist/sqlite-core/query-builders/delete.js
|
26289
|
-
var
|
26367
|
+
var _a196, _b144, SQLiteDeleteBase;
|
26290
26368
|
var init_delete2 = __esm({
|
26291
26369
|
"../drizzle-orm/dist/sqlite-core/query-builders/delete.js"() {
|
26292
26370
|
"use strict";
|
@@ -26294,7 +26372,7 @@ var init_delete2 = __esm({
|
|
26294
26372
|
init_query_promise();
|
26295
26373
|
init_table3();
|
26296
26374
|
init_utils2();
|
26297
|
-
SQLiteDeleteBase = class extends (
|
26375
|
+
SQLiteDeleteBase = class extends (_b144 = QueryPromise, _a196 = entityKind, _b144) {
|
26298
26376
|
constructor(table4, session, dialect7, withList) {
|
26299
26377
|
super();
|
26300
26378
|
/** @internal */
|
@@ -26380,12 +26458,12 @@ var init_delete2 = __esm({
|
|
26380
26458
|
return this;
|
26381
26459
|
}
|
26382
26460
|
};
|
26383
|
-
__publicField(SQLiteDeleteBase,
|
26461
|
+
__publicField(SQLiteDeleteBase, _a196, "SQLiteDelete");
|
26384
26462
|
}
|
26385
26463
|
});
|
26386
26464
|
|
26387
26465
|
// ../drizzle-orm/dist/sqlite-core/query-builders/insert.js
|
26388
|
-
var
|
26466
|
+
var _a197, SQLiteInsertBuilder, _a198, _b145, SQLiteInsertBase;
|
26389
26467
|
var init_insert2 = __esm({
|
26390
26468
|
"../drizzle-orm/dist/sqlite-core/query-builders/insert.js"() {
|
26391
26469
|
"use strict";
|
@@ -26395,7 +26473,7 @@ var init_insert2 = __esm({
|
|
26395
26473
|
init_table3();
|
26396
26474
|
init_table();
|
26397
26475
|
init_utils2();
|
26398
|
-
|
26476
|
+
_a197 = entityKind;
|
26399
26477
|
SQLiteInsertBuilder = class {
|
26400
26478
|
constructor(table4, session, dialect7, withList) {
|
26401
26479
|
this.table = table4;
|
@@ -26420,8 +26498,8 @@ var init_insert2 = __esm({
|
|
26420
26498
|
return new SQLiteInsertBase(this.table, mappedValues, this.session, this.dialect, this.withList);
|
26421
26499
|
}
|
26422
26500
|
};
|
26423
|
-
__publicField(SQLiteInsertBuilder,
|
26424
|
-
SQLiteInsertBase = class extends (
|
26501
|
+
__publicField(SQLiteInsertBuilder, _a197, "SQLiteInsertBuilder");
|
26502
|
+
SQLiteInsertBase = class extends (_b145 = QueryPromise, _a198 = entityKind, _b145) {
|
26425
26503
|
constructor(table4, values, session, dialect7, withList) {
|
26426
26504
|
super();
|
26427
26505
|
/** @internal */
|
@@ -26548,25 +26626,25 @@ var init_insert2 = __esm({
|
|
26548
26626
|
return this;
|
26549
26627
|
}
|
26550
26628
|
};
|
26551
|
-
__publicField(SQLiteInsertBase,
|
26629
|
+
__publicField(SQLiteInsertBase, _a198, "SQLiteInsert");
|
26552
26630
|
}
|
26553
26631
|
});
|
26554
26632
|
|
26555
26633
|
// ../drizzle-orm/dist/sqlite-core/view-base.js
|
26556
|
-
var
|
26634
|
+
var _a199, _b146, SQLiteViewBase;
|
26557
26635
|
var init_view_base2 = __esm({
|
26558
26636
|
"../drizzle-orm/dist/sqlite-core/view-base.js"() {
|
26559
26637
|
"use strict";
|
26560
26638
|
init_entity();
|
26561
26639
|
init_sql();
|
26562
|
-
SQLiteViewBase = class extends (
|
26640
|
+
SQLiteViewBase = class extends (_b146 = View, _a199 = entityKind, _b146) {
|
26563
26641
|
};
|
26564
|
-
__publicField(SQLiteViewBase,
|
26642
|
+
__publicField(SQLiteViewBase, _a199, "SQLiteViewBase");
|
26565
26643
|
}
|
26566
26644
|
});
|
26567
26645
|
|
26568
26646
|
// ../drizzle-orm/dist/sqlite-core/dialect.js
|
26569
|
-
var
|
26647
|
+
var _a200, SQLiteDialect, _a201, _b147, SQLiteSyncDialect, _a202, _b148, SQLiteAsyncDialect;
|
26570
26648
|
var init_dialect2 = __esm({
|
26571
26649
|
"../drizzle-orm/dist/sqlite-core/dialect.js"() {
|
26572
26650
|
"use strict";
|
@@ -26584,7 +26662,7 @@ var init_dialect2 = __esm({
|
|
26584
26662
|
init_utils2();
|
26585
26663
|
init_view_common();
|
26586
26664
|
init_view_base2();
|
26587
|
-
|
26665
|
+
_a200 = entityKind;
|
26588
26666
|
SQLiteDialect = class {
|
26589
26667
|
escapeName(name2) {
|
26590
26668
|
return `"${name2}"`;
|
@@ -27091,8 +27169,8 @@ var init_dialect2 = __esm({
|
|
27091
27169
|
};
|
27092
27170
|
}
|
27093
27171
|
};
|
27094
|
-
__publicField(SQLiteDialect,
|
27095
|
-
SQLiteSyncDialect = class extends (
|
27172
|
+
__publicField(SQLiteDialect, _a200, "SQLiteDialect");
|
27173
|
+
SQLiteSyncDialect = class extends (_b147 = SQLiteDialect, _a201 = entityKind, _b147) {
|
27096
27174
|
migrate(migrations, session, config) {
|
27097
27175
|
const migrationsTable = config === void 0 ? "__drizzle_migrations" : typeof config === "string" ? "__drizzle_migrations" : config.migrationsTable ?? "__drizzle_migrations";
|
27098
27176
|
const migrationTableCreate = sql`
|
@@ -27126,8 +27204,8 @@ var init_dialect2 = __esm({
|
|
27126
27204
|
}
|
27127
27205
|
}
|
27128
27206
|
};
|
27129
|
-
__publicField(SQLiteSyncDialect,
|
27130
|
-
SQLiteAsyncDialect = class extends (
|
27207
|
+
__publicField(SQLiteSyncDialect, _a201, "SQLiteSyncDialect");
|
27208
|
+
SQLiteAsyncDialect = class extends (_b148 = SQLiteDialect, _a202 = entityKind, _b148) {
|
27131
27209
|
async migrate(migrations, session, config) {
|
27132
27210
|
const migrationsTable = config === void 0 ? "__drizzle_migrations" : typeof config === "string" ? "__drizzle_migrations" : config.migrationsTable ?? "__drizzle_migrations";
|
27133
27211
|
const migrationTableCreate = sql`
|
@@ -27156,7 +27234,7 @@ var init_dialect2 = __esm({
|
|
27156
27234
|
});
|
27157
27235
|
}
|
27158
27236
|
};
|
27159
|
-
__publicField(SQLiteAsyncDialect,
|
27237
|
+
__publicField(SQLiteAsyncDialect, _a202, "SQLiteAsyncDialect");
|
27160
27238
|
}
|
27161
27239
|
});
|
27162
27240
|
|
@@ -27178,7 +27256,7 @@ function createSetOperator2(type, isAll) {
|
|
27178
27256
|
return leftSelect.addSetOperators(setOperators);
|
27179
27257
|
};
|
27180
27258
|
}
|
27181
|
-
var
|
27259
|
+
var _a203, SQLiteSelectBuilder, _a204, _b149, SQLiteSelectQueryBuilderBase, _a205, _b150, SQLiteSelectBase, getSQLiteSetOperators, union2, unionAll2, intersect2, except2;
|
27182
27260
|
var init_select3 = __esm({
|
27183
27261
|
"../drizzle-orm/dist/sqlite-core/query-builders/select.js"() {
|
27184
27262
|
"use strict";
|
@@ -27192,7 +27270,7 @@ var init_select3 = __esm({
|
|
27192
27270
|
init_utils2();
|
27193
27271
|
init_view_common();
|
27194
27272
|
init_view_base2();
|
27195
|
-
|
27273
|
+
_a203 = entityKind;
|
27196
27274
|
SQLiteSelectBuilder = class {
|
27197
27275
|
constructor(config) {
|
27198
27276
|
__publicField(this, "fields");
|
@@ -27233,8 +27311,8 @@ var init_select3 = __esm({
|
|
27233
27311
|
});
|
27234
27312
|
}
|
27235
27313
|
};
|
27236
|
-
__publicField(SQLiteSelectBuilder,
|
27237
|
-
SQLiteSelectQueryBuilderBase = class extends (
|
27314
|
+
__publicField(SQLiteSelectBuilder, _a203, "SQLiteSelectBuilder");
|
27315
|
+
SQLiteSelectQueryBuilderBase = class extends (_b149 = TypedQueryBuilder, _a204 = entityKind, _b149) {
|
27238
27316
|
constructor({ table: table4, fields, isPartialSelect, session, dialect: dialect7, withList, distinct }) {
|
27239
27317
|
super();
|
27240
27318
|
__publicField(this, "_");
|
@@ -27739,8 +27817,8 @@ var init_select3 = __esm({
|
|
27739
27817
|
return this;
|
27740
27818
|
}
|
27741
27819
|
};
|
27742
|
-
__publicField(SQLiteSelectQueryBuilderBase,
|
27743
|
-
SQLiteSelectBase = class extends (
|
27820
|
+
__publicField(SQLiteSelectQueryBuilderBase, _a204, "SQLiteSelectQueryBuilder");
|
27821
|
+
SQLiteSelectBase = class extends (_b150 = SQLiteSelectQueryBuilderBase, _a205 = entityKind, _b150) {
|
27744
27822
|
constructor() {
|
27745
27823
|
super(...arguments);
|
27746
27824
|
__publicField(this, "run", (placeholderValues) => {
|
@@ -27778,7 +27856,7 @@ var init_select3 = __esm({
|
|
27778
27856
|
return this.all();
|
27779
27857
|
}
|
27780
27858
|
};
|
27781
|
-
__publicField(SQLiteSelectBase,
|
27859
|
+
__publicField(SQLiteSelectBase, _a205, "SQLiteSelect");
|
27782
27860
|
applyMixins(SQLiteSelectBase, [QueryPromise]);
|
27783
27861
|
getSQLiteSetOperators = () => ({
|
27784
27862
|
union: union2,
|
@@ -27794,7 +27872,7 @@ var init_select3 = __esm({
|
|
27794
27872
|
});
|
27795
27873
|
|
27796
27874
|
// ../drizzle-orm/dist/sqlite-core/query-builders/query-builder.js
|
27797
|
-
var
|
27875
|
+
var _a206, QueryBuilder2;
|
27798
27876
|
var init_query_builder3 = __esm({
|
27799
27877
|
"../drizzle-orm/dist/sqlite-core/query-builders/query-builder.js"() {
|
27800
27878
|
"use strict";
|
@@ -27803,7 +27881,7 @@ var init_query_builder3 = __esm({
|
|
27803
27881
|
init_dialect2();
|
27804
27882
|
init_subquery();
|
27805
27883
|
init_select3();
|
27806
|
-
|
27884
|
+
_a206 = entityKind;
|
27807
27885
|
QueryBuilder2 = class {
|
27808
27886
|
constructor() {
|
27809
27887
|
__publicField(this, "dialect");
|
@@ -27862,7 +27940,7 @@ var init_query_builder3 = __esm({
|
|
27862
27940
|
return this.dialect;
|
27863
27941
|
}
|
27864
27942
|
};
|
27865
|
-
__publicField(QueryBuilder2,
|
27943
|
+
__publicField(QueryBuilder2, _a206, "SQLiteQueryBuilder");
|
27866
27944
|
}
|
27867
27945
|
});
|
27868
27946
|
|
@@ -27874,7 +27952,7 @@ var init_select_types2 = __esm({
|
|
27874
27952
|
});
|
27875
27953
|
|
27876
27954
|
// ../drizzle-orm/dist/sqlite-core/query-builders/update.js
|
27877
|
-
var
|
27955
|
+
var _a207, SQLiteUpdateBuilder, _a208, _b151, SQLiteUpdateBase;
|
27878
27956
|
var init_update2 = __esm({
|
27879
27957
|
"../drizzle-orm/dist/sqlite-core/query-builders/update.js"() {
|
27880
27958
|
"use strict";
|
@@ -27882,7 +27960,7 @@ var init_update2 = __esm({
|
|
27882
27960
|
init_query_promise();
|
27883
27961
|
init_table3();
|
27884
27962
|
init_utils2();
|
27885
|
-
|
27963
|
+
_a207 = entityKind;
|
27886
27964
|
SQLiteUpdateBuilder = class {
|
27887
27965
|
constructor(table4, session, dialect7, withList) {
|
27888
27966
|
this.table = table4;
|
@@ -27900,8 +27978,8 @@ var init_update2 = __esm({
|
|
27900
27978
|
);
|
27901
27979
|
}
|
27902
27980
|
};
|
27903
|
-
__publicField(SQLiteUpdateBuilder,
|
27904
|
-
SQLiteUpdateBase = class extends (
|
27981
|
+
__publicField(SQLiteUpdateBuilder, _a207, "SQLiteUpdateBuilder");
|
27982
|
+
SQLiteUpdateBase = class extends (_b151 = QueryPromise, _a208 = entityKind, _b151) {
|
27905
27983
|
constructor(table4, set, session, dialect7, withList) {
|
27906
27984
|
super();
|
27907
27985
|
/** @internal */
|
@@ -27990,7 +28068,7 @@ var init_update2 = __esm({
|
|
27990
28068
|
return this;
|
27991
28069
|
}
|
27992
28070
|
};
|
27993
|
-
__publicField(SQLiteUpdateBase,
|
28071
|
+
__publicField(SQLiteUpdateBase, _a208, "SQLiteUpdate");
|
27994
28072
|
}
|
27995
28073
|
});
|
27996
28074
|
|
@@ -28008,14 +28086,14 @@ var init_query_builders2 = __esm({
|
|
28008
28086
|
});
|
28009
28087
|
|
28010
28088
|
// ../drizzle-orm/dist/sqlite-core/query-builders/query.js
|
28011
|
-
var
|
28089
|
+
var _a209, RelationalQueryBuilder2, _a210, _b152, SQLiteRelationalQuery, _a211, _b153, SQLiteSyncRelationalQuery;
|
28012
28090
|
var init_query2 = __esm({
|
28013
28091
|
"../drizzle-orm/dist/sqlite-core/query-builders/query.js"() {
|
28014
28092
|
"use strict";
|
28015
28093
|
init_entity();
|
28016
28094
|
init_query_promise();
|
28017
28095
|
init_relations();
|
28018
|
-
|
28096
|
+
_a209 = entityKind;
|
28019
28097
|
RelationalQueryBuilder2 = class {
|
28020
28098
|
constructor(mode, fullSchema, schema4, tableNamesMap, table4, tableConfig, dialect7, session) {
|
28021
28099
|
this.mode = mode;
|
@@ -28074,8 +28152,8 @@ var init_query2 = __esm({
|
|
28074
28152
|
);
|
28075
28153
|
}
|
28076
28154
|
};
|
28077
|
-
__publicField(RelationalQueryBuilder2,
|
28078
|
-
SQLiteRelationalQuery = class extends (
|
28155
|
+
__publicField(RelationalQueryBuilder2, _a209, "SQLiteAsyncRelationalQueryBuilder");
|
28156
|
+
SQLiteRelationalQuery = class extends (_b152 = QueryPromise, _a210 = entityKind, _b152) {
|
28079
28157
|
constructor(fullSchema, schema4, tableNamesMap, table4, tableConfig, dialect7, session, config, mode) {
|
28080
28158
|
super();
|
28081
28159
|
/** @internal */
|
@@ -28151,24 +28229,24 @@ var init_query2 = __esm({
|
|
28151
28229
|
return this.executeRaw();
|
28152
28230
|
}
|
28153
28231
|
};
|
28154
|
-
__publicField(SQLiteRelationalQuery,
|
28155
|
-
SQLiteSyncRelationalQuery = class extends (
|
28232
|
+
__publicField(SQLiteRelationalQuery, _a210, "SQLiteAsyncRelationalQuery");
|
28233
|
+
SQLiteSyncRelationalQuery = class extends (_b153 = SQLiteRelationalQuery, _a211 = entityKind, _b153) {
|
28156
28234
|
sync() {
|
28157
28235
|
return this.executeRaw();
|
28158
28236
|
}
|
28159
28237
|
};
|
28160
|
-
__publicField(SQLiteSyncRelationalQuery,
|
28238
|
+
__publicField(SQLiteSyncRelationalQuery, _a211, "SQLiteSyncRelationalQuery");
|
28161
28239
|
}
|
28162
28240
|
});
|
28163
28241
|
|
28164
28242
|
// ../drizzle-orm/dist/sqlite-core/query-builders/raw.js
|
28165
|
-
var
|
28243
|
+
var _a212, _b154, SQLiteRaw;
|
28166
28244
|
var init_raw2 = __esm({
|
28167
28245
|
"../drizzle-orm/dist/sqlite-core/query-builders/raw.js"() {
|
28168
28246
|
"use strict";
|
28169
28247
|
init_entity();
|
28170
28248
|
init_query_promise();
|
28171
|
-
SQLiteRaw = class extends (
|
28249
|
+
SQLiteRaw = class extends (_b154 = QueryPromise, _a212 = entityKind, _b154) {
|
28172
28250
|
constructor(execute, getSQL, action, dialect7, mapBatchResult) {
|
28173
28251
|
super();
|
28174
28252
|
/** @internal */
|
@@ -28193,12 +28271,12 @@ var init_raw2 = __esm({
|
|
28193
28271
|
return false;
|
28194
28272
|
}
|
28195
28273
|
};
|
28196
|
-
__publicField(SQLiteRaw,
|
28274
|
+
__publicField(SQLiteRaw, _a212, "SQLiteRaw");
|
28197
28275
|
}
|
28198
28276
|
});
|
28199
28277
|
|
28200
28278
|
// ../drizzle-orm/dist/sqlite-core/db.js
|
28201
|
-
var
|
28279
|
+
var _a213, BaseSQLiteDatabase;
|
28202
28280
|
var init_db2 = __esm({
|
28203
28281
|
"../drizzle-orm/dist/sqlite-core/db.js"() {
|
28204
28282
|
"use strict";
|
@@ -28208,7 +28286,7 @@ var init_db2 = __esm({
|
|
28208
28286
|
init_subquery();
|
28209
28287
|
init_query2();
|
28210
28288
|
init_raw2();
|
28211
|
-
|
28289
|
+
_a213 = entityKind;
|
28212
28290
|
BaseSQLiteDatabase = class {
|
28213
28291
|
constructor(resultKind, dialect7, session, schema4) {
|
28214
28292
|
__publicField(this, "query");
|
@@ -28486,17 +28564,17 @@ var init_db2 = __esm({
|
|
28486
28564
|
return this.session.transaction(transaction, config);
|
28487
28565
|
}
|
28488
28566
|
};
|
28489
|
-
__publicField(BaseSQLiteDatabase,
|
28567
|
+
__publicField(BaseSQLiteDatabase, _a213, "BaseSQLiteDatabase");
|
28490
28568
|
}
|
28491
28569
|
});
|
28492
28570
|
|
28493
28571
|
// ../drizzle-orm/dist/sqlite-core/indexes.js
|
28494
|
-
var
|
28572
|
+
var _a214, IndexBuilderOn2, _a215, IndexBuilder2, _a216, Index4;
|
28495
28573
|
var init_indexes2 = __esm({
|
28496
28574
|
"../drizzle-orm/dist/sqlite-core/indexes.js"() {
|
28497
28575
|
"use strict";
|
28498
28576
|
init_entity();
|
28499
|
-
|
28577
|
+
_a214 = entityKind;
|
28500
28578
|
IndexBuilderOn2 = class {
|
28501
28579
|
constructor(name2, unique) {
|
28502
28580
|
this.name = name2;
|
@@ -28506,8 +28584,8 @@ var init_indexes2 = __esm({
|
|
28506
28584
|
return new IndexBuilder2(this.name, columns, this.unique);
|
28507
28585
|
}
|
28508
28586
|
};
|
28509
|
-
__publicField(IndexBuilderOn2,
|
28510
|
-
|
28587
|
+
__publicField(IndexBuilderOn2, _a214, "SQLiteIndexBuilderOn");
|
28588
|
+
_a215 = entityKind;
|
28511
28589
|
IndexBuilder2 = class {
|
28512
28590
|
constructor(name2, columns, unique) {
|
28513
28591
|
/** @internal */
|
@@ -28531,26 +28609,26 @@ var init_indexes2 = __esm({
|
|
28531
28609
|
return new Index4(this.config, table4);
|
28532
28610
|
}
|
28533
28611
|
};
|
28534
|
-
__publicField(IndexBuilder2,
|
28535
|
-
|
28612
|
+
__publicField(IndexBuilder2, _a215, "SQLiteIndexBuilder");
|
28613
|
+
_a216 = entityKind;
|
28536
28614
|
Index4 = class {
|
28537
28615
|
constructor(config, table4) {
|
28538
28616
|
__publicField(this, "config");
|
28539
28617
|
this.config = { ...config, table: table4 };
|
28540
28618
|
}
|
28541
28619
|
};
|
28542
|
-
__publicField(Index4,
|
28620
|
+
__publicField(Index4, _a216, "SQLiteIndex");
|
28543
28621
|
}
|
28544
28622
|
});
|
28545
28623
|
|
28546
28624
|
// ../drizzle-orm/dist/sqlite-core/primary-keys.js
|
28547
|
-
var
|
28625
|
+
var _a217, PrimaryKeyBuilder2, _a218, PrimaryKey2;
|
28548
28626
|
var init_primary_keys2 = __esm({
|
28549
28627
|
"../drizzle-orm/dist/sqlite-core/primary-keys.js"() {
|
28550
28628
|
"use strict";
|
28551
28629
|
init_entity();
|
28552
28630
|
init_table3();
|
28553
|
-
|
28631
|
+
_a217 = entityKind;
|
28554
28632
|
PrimaryKeyBuilder2 = class {
|
28555
28633
|
constructor(columns, name2) {
|
28556
28634
|
/** @internal */
|
@@ -28565,8 +28643,8 @@ var init_primary_keys2 = __esm({
|
|
28565
28643
|
return new PrimaryKey2(table4, this.columns, this.name);
|
28566
28644
|
}
|
28567
28645
|
};
|
28568
|
-
__publicField(PrimaryKeyBuilder2,
|
28569
|
-
|
28646
|
+
__publicField(PrimaryKeyBuilder2, _a217, "SQLitePrimaryKeyBuilder");
|
28647
|
+
_a218 = entityKind;
|
28570
28648
|
PrimaryKey2 = class {
|
28571
28649
|
constructor(table4, columns, name2) {
|
28572
28650
|
__publicField(this, "columns");
|
@@ -28579,12 +28657,12 @@ var init_primary_keys2 = __esm({
|
|
28579
28657
|
return this.name ?? `${this.table[SQLiteTable.Symbol.Name]}_${this.columns.map((column4) => column4.name).join("_")}_pk`;
|
28580
28658
|
}
|
28581
28659
|
};
|
28582
|
-
__publicField(PrimaryKey2,
|
28660
|
+
__publicField(PrimaryKey2, _a218, "SQLitePrimaryKey");
|
28583
28661
|
}
|
28584
28662
|
});
|
28585
28663
|
|
28586
28664
|
// ../drizzle-orm/dist/sqlite-core/session.js
|
28587
|
-
var
|
28665
|
+
var _a219, _b155, ExecuteResultSync, _a220, SQLitePreparedQuery, _a221, SQLiteSession, _a222, _b156, SQLiteTransaction;
|
28588
28666
|
var init_session2 = __esm({
|
28589
28667
|
"../drizzle-orm/dist/sqlite-core/session.js"() {
|
28590
28668
|
"use strict";
|
@@ -28592,7 +28670,7 @@ var init_session2 = __esm({
|
|
28592
28670
|
init_errors();
|
28593
28671
|
init_query_promise();
|
28594
28672
|
init_db2();
|
28595
|
-
ExecuteResultSync = class extends (
|
28673
|
+
ExecuteResultSync = class extends (_b155 = QueryPromise, _a219 = entityKind, _b155) {
|
28596
28674
|
constructor(resultCb) {
|
28597
28675
|
super();
|
28598
28676
|
this.resultCb = resultCb;
|
@@ -28604,8 +28682,8 @@ var init_session2 = __esm({
|
|
28604
28682
|
return this.resultCb();
|
28605
28683
|
}
|
28606
28684
|
};
|
28607
|
-
__publicField(ExecuteResultSync,
|
28608
|
-
|
28685
|
+
__publicField(ExecuteResultSync, _a219, "ExecuteResultSync");
|
28686
|
+
_a220 = entityKind;
|
28609
28687
|
SQLitePreparedQuery = class {
|
28610
28688
|
constructor(mode, executeMethod, query) {
|
28611
28689
|
/** @internal */
|
@@ -28646,8 +28724,8 @@ var init_session2 = __esm({
|
|
28646
28724
|
}
|
28647
28725
|
}
|
28648
28726
|
};
|
28649
|
-
__publicField(SQLitePreparedQuery,
|
28650
|
-
|
28727
|
+
__publicField(SQLitePreparedQuery, _a220, "PreparedQuery");
|
28728
|
+
_a221 = entityKind;
|
28651
28729
|
SQLiteSession = class {
|
28652
28730
|
constructor(dialect7) {
|
28653
28731
|
this.dialect = dialect7;
|
@@ -28689,8 +28767,8 @@ var init_session2 = __esm({
|
|
28689
28767
|
throw new Error("Not implemented");
|
28690
28768
|
}
|
28691
28769
|
};
|
28692
|
-
__publicField(SQLiteSession,
|
28693
|
-
SQLiteTransaction = class extends (
|
28770
|
+
__publicField(SQLiteSession, _a221, "SQLiteSession");
|
28771
|
+
SQLiteTransaction = class extends (_b156 = BaseSQLiteDatabase, _a222 = entityKind, _b156) {
|
28694
28772
|
constructor(resultType, dialect7, session, schema4, nestedIndex = 0) {
|
28695
28773
|
super(resultType, dialect7, session, schema4);
|
28696
28774
|
this.schema = schema4;
|
@@ -28700,7 +28778,7 @@ var init_session2 = __esm({
|
|
28700
28778
|
throw new TransactionRollbackError();
|
28701
28779
|
}
|
28702
28780
|
};
|
28703
|
-
__publicField(SQLiteTransaction,
|
28781
|
+
__publicField(SQLiteTransaction, _a222, "SQLiteTransaction");
|
28704
28782
|
}
|
28705
28783
|
});
|
28706
28784
|
|
@@ -28771,7 +28849,7 @@ var init_utils6 = __esm({
|
|
28771
28849
|
});
|
28772
28850
|
|
28773
28851
|
// ../drizzle-orm/dist/sqlite-core/view.js
|
28774
|
-
var
|
28852
|
+
var _a223, ViewBuilderCore, _a224, _b157, ViewBuilder2, _a225, _b158, ManualViewBuilder2, _a226, _b159, _c6, SQLiteView;
|
28775
28853
|
var init_view2 = __esm({
|
28776
28854
|
"../drizzle-orm/dist/sqlite-core/view.js"() {
|
28777
28855
|
"use strict";
|
@@ -28782,15 +28860,15 @@ var init_view2 = __esm({
|
|
28782
28860
|
init_table3();
|
28783
28861
|
init_view_base2();
|
28784
28862
|
init_view_common3();
|
28785
|
-
|
28863
|
+
_a223 = entityKind;
|
28786
28864
|
ViewBuilderCore = class {
|
28787
28865
|
constructor(name2) {
|
28788
28866
|
__publicField(this, "config", {});
|
28789
28867
|
this.name = name2;
|
28790
28868
|
}
|
28791
28869
|
};
|
28792
|
-
__publicField(ViewBuilderCore,
|
28793
|
-
ViewBuilder2 = class extends (
|
28870
|
+
__publicField(ViewBuilderCore, _a223, "SQLiteViewBuilderCore");
|
28871
|
+
ViewBuilder2 = class extends (_b157 = ViewBuilderCore, _a224 = entityKind, _b157) {
|
28794
28872
|
as(qb) {
|
28795
28873
|
if (typeof qb === "function") {
|
28796
28874
|
qb = qb(new QueryBuilder2());
|
@@ -28816,8 +28894,8 @@ var init_view2 = __esm({
|
|
28816
28894
|
);
|
28817
28895
|
}
|
28818
28896
|
};
|
28819
|
-
__publicField(ViewBuilder2,
|
28820
|
-
ManualViewBuilder2 = class extends (
|
28897
|
+
__publicField(ViewBuilder2, _a224, "SQLiteViewBuilder");
|
28898
|
+
ManualViewBuilder2 = class extends (_b158 = ViewBuilderCore, _a225 = entityKind, _b158) {
|
28821
28899
|
constructor(name2, columns) {
|
28822
28900
|
super(name2);
|
28823
28901
|
__publicField(this, "columns");
|
@@ -28862,16 +28940,16 @@ var init_view2 = __esm({
|
|
28862
28940
|
);
|
28863
28941
|
}
|
28864
28942
|
};
|
28865
|
-
__publicField(ManualViewBuilder2,
|
28866
|
-
SQLiteView = class extends (_c6 = SQLiteViewBase,
|
28943
|
+
__publicField(ManualViewBuilder2, _a225, "SQLiteManualViewBuilder");
|
28944
|
+
SQLiteView = class extends (_c6 = SQLiteViewBase, _b159 = entityKind, _a226 = SQLiteViewConfig, _c6) {
|
28867
28945
|
constructor({ sqliteConfig, config }) {
|
28868
28946
|
super(config);
|
28869
28947
|
/** @internal */
|
28870
|
-
__publicField(this,
|
28948
|
+
__publicField(this, _a226);
|
28871
28949
|
this[SQLiteViewConfig] = sqliteConfig;
|
28872
28950
|
}
|
28873
28951
|
};
|
28874
|
-
__publicField(SQLiteView,
|
28952
|
+
__publicField(SQLiteView, _b159, "SQLiteView");
|
28875
28953
|
}
|
28876
28954
|
});
|
28877
28955
|
|
@@ -29384,12 +29462,12 @@ var init_alias4 = __esm({
|
|
29384
29462
|
});
|
29385
29463
|
|
29386
29464
|
// ../drizzle-orm/dist/mysql-core/checks.js
|
29387
|
-
var
|
29465
|
+
var _a227, CheckBuilder3, _a228, Check3;
|
29388
29466
|
var init_checks3 = __esm({
|
29389
29467
|
"../drizzle-orm/dist/mysql-core/checks.js"() {
|
29390
29468
|
"use strict";
|
29391
29469
|
init_entity();
|
29392
|
-
|
29470
|
+
_a227 = entityKind;
|
29393
29471
|
CheckBuilder3 = class {
|
29394
29472
|
constructor(name2, value) {
|
29395
29473
|
__publicField(this, "brand");
|
@@ -29401,8 +29479,8 @@ var init_checks3 = __esm({
|
|
29401
29479
|
return new Check3(table4, this);
|
29402
29480
|
}
|
29403
29481
|
};
|
29404
|
-
__publicField(CheckBuilder3,
|
29405
|
-
|
29482
|
+
__publicField(CheckBuilder3, _a227, "MySqlCheckBuilder");
|
29483
|
+
_a228 = entityKind;
|
29406
29484
|
Check3 = class {
|
29407
29485
|
constructor(table4, builder) {
|
29408
29486
|
__publicField(this, "name");
|
@@ -29412,7 +29490,7 @@ var init_checks3 = __esm({
|
|
29412
29490
|
this.value = builder.value;
|
29413
29491
|
}
|
29414
29492
|
};
|
29415
|
-
__publicField(Check3,
|
29493
|
+
__publicField(Check3, _a228, "MySqlCheck");
|
29416
29494
|
}
|
29417
29495
|
});
|
29418
29496
|
|
@@ -29435,22 +29513,22 @@ function mysqlTableWithSchema(name2, columns, extraConfig, schema4, baseName = n
|
|
29435
29513
|
}
|
29436
29514
|
return table4;
|
29437
29515
|
}
|
29438
|
-
var InlineForeignKeys3,
|
29516
|
+
var InlineForeignKeys3, _a229, _b160, _c7, _d4, _e3, MySqlTable, mysqlTable;
|
29439
29517
|
var init_table4 = __esm({
|
29440
29518
|
"../drizzle-orm/dist/mysql-core/table.js"() {
|
29441
29519
|
"use strict";
|
29442
29520
|
init_entity();
|
29443
29521
|
init_table();
|
29444
29522
|
InlineForeignKeys3 = Symbol.for("drizzle:MySqlInlineForeignKeys");
|
29445
|
-
MySqlTable = class extends (_e3 = Table2, _d4 = entityKind, _c7 = Table2.Symbol.Columns,
|
29523
|
+
MySqlTable = class extends (_e3 = Table2, _d4 = entityKind, _c7 = Table2.Symbol.Columns, _b160 = InlineForeignKeys3, _a229 = Table2.Symbol.ExtraConfigBuilder, _e3) {
|
29446
29524
|
constructor() {
|
29447
29525
|
super(...arguments);
|
29448
29526
|
/** @internal */
|
29449
29527
|
__publicField(this, _c7);
|
29450
29528
|
/** @internal */
|
29451
|
-
__publicField(this,
|
29529
|
+
__publicField(this, _b160, []);
|
29452
29530
|
/** @internal */
|
29453
|
-
__publicField(this,
|
29531
|
+
__publicField(this, _a229);
|
29454
29532
|
}
|
29455
29533
|
};
|
29456
29534
|
__publicField(MySqlTable, _d4, "MySqlTable");
|
@@ -29465,13 +29543,13 @@ var init_table4 = __esm({
|
|
29465
29543
|
});
|
29466
29544
|
|
29467
29545
|
// ../drizzle-orm/dist/mysql-core/foreign-keys.js
|
29468
|
-
var
|
29546
|
+
var _a230, ForeignKeyBuilder3, _a231, ForeignKey3;
|
29469
29547
|
var init_foreign_keys3 = __esm({
|
29470
29548
|
"../drizzle-orm/dist/mysql-core/foreign-keys.js"() {
|
29471
29549
|
"use strict";
|
29472
29550
|
init_entity();
|
29473
29551
|
init_table4();
|
29474
|
-
|
29552
|
+
_a230 = entityKind;
|
29475
29553
|
ForeignKeyBuilder3 = class {
|
29476
29554
|
constructor(config, actions) {
|
29477
29555
|
/** @internal */
|
@@ -29502,8 +29580,8 @@ var init_foreign_keys3 = __esm({
|
|
29502
29580
|
return new ForeignKey3(table4, this);
|
29503
29581
|
}
|
29504
29582
|
};
|
29505
|
-
__publicField(ForeignKeyBuilder3,
|
29506
|
-
|
29583
|
+
__publicField(ForeignKeyBuilder3, _a230, "MySqlForeignKeyBuilder");
|
29584
|
+
_a231 = entityKind;
|
29507
29585
|
ForeignKey3 = class {
|
29508
29586
|
constructor(table4, builder) {
|
29509
29587
|
__publicField(this, "reference");
|
@@ -29527,7 +29605,7 @@ var init_foreign_keys3 = __esm({
|
|
29527
29605
|
return name2 ?? `${chunks.join("_")}_fk`;
|
29528
29606
|
}
|
29529
29607
|
};
|
29530
|
-
__publicField(ForeignKey3,
|
29608
|
+
__publicField(ForeignKey3, _a231, "MySqlForeignKey");
|
29531
29609
|
}
|
29532
29610
|
});
|
29533
29611
|
|
@@ -29535,13 +29613,13 @@ var init_foreign_keys3 = __esm({
|
|
29535
29613
|
function uniqueKeyName3(table4, columns) {
|
29536
29614
|
return `${table4[MySqlTable.Symbol.Name]}_${columns.join("_")}_unique`;
|
29537
29615
|
}
|
29538
|
-
var
|
29616
|
+
var _a232, UniqueConstraintBuilder3, _a233, UniqueOnConstraintBuilder3, _a234, UniqueConstraint3;
|
29539
29617
|
var init_unique_constraint3 = __esm({
|
29540
29618
|
"../drizzle-orm/dist/mysql-core/unique-constraint.js"() {
|
29541
29619
|
"use strict";
|
29542
29620
|
init_entity();
|
29543
29621
|
init_table4();
|
29544
|
-
|
29622
|
+
_a232 = entityKind;
|
29545
29623
|
UniqueConstraintBuilder3 = class {
|
29546
29624
|
constructor(columns, name2) {
|
29547
29625
|
/** @internal */
|
@@ -29554,8 +29632,8 @@ var init_unique_constraint3 = __esm({
|
|
29554
29632
|
return new UniqueConstraint3(table4, this.columns, this.name);
|
29555
29633
|
}
|
29556
29634
|
};
|
29557
|
-
__publicField(UniqueConstraintBuilder3,
|
29558
|
-
|
29635
|
+
__publicField(UniqueConstraintBuilder3, _a232, "MySqlUniqueConstraintBuilder");
|
29636
|
+
_a233 = entityKind;
|
29559
29637
|
UniqueOnConstraintBuilder3 = class {
|
29560
29638
|
constructor(name2) {
|
29561
29639
|
/** @internal */
|
@@ -29566,8 +29644,8 @@ var init_unique_constraint3 = __esm({
|
|
29566
29644
|
return new UniqueConstraintBuilder3(columns, this.name);
|
29567
29645
|
}
|
29568
29646
|
};
|
29569
|
-
__publicField(UniqueOnConstraintBuilder3,
|
29570
|
-
|
29647
|
+
__publicField(UniqueOnConstraintBuilder3, _a233, "MySqlUniqueOnConstraintBuilder");
|
29648
|
+
_a234 = entityKind;
|
29571
29649
|
UniqueConstraint3 = class {
|
29572
29650
|
constructor(table4, columns, name2) {
|
29573
29651
|
__publicField(this, "columns");
|
@@ -29581,12 +29659,12 @@ var init_unique_constraint3 = __esm({
|
|
29581
29659
|
return this.name;
|
29582
29660
|
}
|
29583
29661
|
};
|
29584
|
-
__publicField(UniqueConstraint3,
|
29662
|
+
__publicField(UniqueConstraint3, _a234, "MySqlUniqueConstraint");
|
29585
29663
|
}
|
29586
29664
|
});
|
29587
29665
|
|
29588
29666
|
// ../drizzle-orm/dist/mysql-core/columns/common.js
|
29589
|
-
var
|
29667
|
+
var _a235, _b161, MySqlColumnBuilder, _a236, _b162, MySqlColumn, _a237, _b163, MySqlColumnBuilderWithAutoIncrement, _a238, _b164, MySqlColumnWithAutoIncrement;
|
29590
29668
|
var init_common4 = __esm({
|
29591
29669
|
"../drizzle-orm/dist/mysql-core/columns/common.js"() {
|
29592
29670
|
"use strict";
|
@@ -29595,7 +29673,7 @@ var init_common4 = __esm({
|
|
29595
29673
|
init_entity();
|
29596
29674
|
init_foreign_keys3();
|
29597
29675
|
init_unique_constraint3();
|
29598
|
-
MySqlColumnBuilder = class extends (
|
29676
|
+
MySqlColumnBuilder = class extends (_b161 = ColumnBuilder, _a235 = entityKind, _b161) {
|
29599
29677
|
constructor() {
|
29600
29678
|
super(...arguments);
|
29601
29679
|
__publicField(this, "foreignKeyConfigs", []);
|
@@ -29636,8 +29714,8 @@ var init_common4 = __esm({
|
|
29636
29714
|
});
|
29637
29715
|
}
|
29638
29716
|
};
|
29639
|
-
__publicField(MySqlColumnBuilder,
|
29640
|
-
MySqlColumn = class extends (
|
29717
|
+
__publicField(MySqlColumnBuilder, _a235, "MySqlColumnBuilder");
|
29718
|
+
MySqlColumn = class extends (_b162 = Column2, _a236 = entityKind, _b162) {
|
29641
29719
|
constructor(table4, config) {
|
29642
29720
|
if (!config.uniqueName) {
|
29643
29721
|
config.uniqueName = uniqueKeyName3(table4, [config.name]);
|
@@ -29646,8 +29724,8 @@ var init_common4 = __esm({
|
|
29646
29724
|
this.table = table4;
|
29647
29725
|
}
|
29648
29726
|
};
|
29649
|
-
__publicField(MySqlColumn,
|
29650
|
-
MySqlColumnBuilderWithAutoIncrement = class extends (
|
29727
|
+
__publicField(MySqlColumn, _a236, "MySqlColumn");
|
29728
|
+
MySqlColumnBuilderWithAutoIncrement = class extends (_b163 = MySqlColumnBuilder, _a237 = entityKind, _b163) {
|
29651
29729
|
constructor(name2, dataType, columnType) {
|
29652
29730
|
super(name2, dataType, columnType);
|
29653
29731
|
this.config.autoIncrement = false;
|
@@ -29658,25 +29736,25 @@ var init_common4 = __esm({
|
|
29658
29736
|
return this;
|
29659
29737
|
}
|
29660
29738
|
};
|
29661
|
-
__publicField(MySqlColumnBuilderWithAutoIncrement,
|
29662
|
-
MySqlColumnWithAutoIncrement = class extends (
|
29739
|
+
__publicField(MySqlColumnBuilderWithAutoIncrement, _a237, "MySqlColumnBuilderWithAutoIncrement");
|
29740
|
+
MySqlColumnWithAutoIncrement = class extends (_b164 = MySqlColumn, _a238 = entityKind, _b164) {
|
29663
29741
|
constructor() {
|
29664
29742
|
super(...arguments);
|
29665
29743
|
__publicField(this, "autoIncrement", this.config.autoIncrement);
|
29666
29744
|
}
|
29667
29745
|
};
|
29668
|
-
__publicField(MySqlColumnWithAutoIncrement,
|
29746
|
+
__publicField(MySqlColumnWithAutoIncrement, _a238, "MySqlColumnWithAutoIncrement");
|
29669
29747
|
}
|
29670
29748
|
});
|
29671
29749
|
|
29672
29750
|
// ../drizzle-orm/dist/mysql-core/columns/bigint.js
|
29673
|
-
var
|
29751
|
+
var _a239, _b165, MySqlBigInt53Builder, _a240, _b166, MySqlBigInt53, _a241, _b167, MySqlBigInt64Builder, _a242, _b168, MySqlBigInt64;
|
29674
29752
|
var init_bigint2 = __esm({
|
29675
29753
|
"../drizzle-orm/dist/mysql-core/columns/bigint.js"() {
|
29676
29754
|
"use strict";
|
29677
29755
|
init_entity();
|
29678
29756
|
init_common4();
|
29679
|
-
MySqlBigInt53Builder = class extends (
|
29757
|
+
MySqlBigInt53Builder = class extends (_b165 = MySqlColumnBuilderWithAutoIncrement, _a239 = entityKind, _b165) {
|
29680
29758
|
constructor(name2, unsigned = false) {
|
29681
29759
|
super(name2, "number", "MySqlBigInt53");
|
29682
29760
|
this.config.unsigned = unsigned;
|
@@ -29689,8 +29767,8 @@ var init_bigint2 = __esm({
|
|
29689
29767
|
);
|
29690
29768
|
}
|
29691
29769
|
};
|
29692
|
-
__publicField(MySqlBigInt53Builder,
|
29693
|
-
MySqlBigInt53 = class extends (
|
29770
|
+
__publicField(MySqlBigInt53Builder, _a239, "MySqlBigInt53Builder");
|
29771
|
+
MySqlBigInt53 = class extends (_b166 = MySqlColumnWithAutoIncrement, _a240 = entityKind, _b166) {
|
29694
29772
|
getSQLType() {
|
29695
29773
|
return `bigint${this.config.unsigned ? " unsigned" : ""}`;
|
29696
29774
|
}
|
@@ -29701,8 +29779,8 @@ var init_bigint2 = __esm({
|
|
29701
29779
|
return Number(value);
|
29702
29780
|
}
|
29703
29781
|
};
|
29704
|
-
__publicField(MySqlBigInt53,
|
29705
|
-
MySqlBigInt64Builder = class extends (
|
29782
|
+
__publicField(MySqlBigInt53, _a240, "MySqlBigInt53");
|
29783
|
+
MySqlBigInt64Builder = class extends (_b167 = MySqlColumnBuilderWithAutoIncrement, _a241 = entityKind, _b167) {
|
29706
29784
|
constructor(name2, unsigned = false) {
|
29707
29785
|
super(name2, "bigint", "MySqlBigInt64");
|
29708
29786
|
this.config.unsigned = unsigned;
|
@@ -29715,8 +29793,8 @@ var init_bigint2 = __esm({
|
|
29715
29793
|
);
|
29716
29794
|
}
|
29717
29795
|
};
|
29718
|
-
__publicField(MySqlBigInt64Builder,
|
29719
|
-
MySqlBigInt64 = class extends (
|
29796
|
+
__publicField(MySqlBigInt64Builder, _a241, "MySqlBigInt64Builder");
|
29797
|
+
MySqlBigInt64 = class extends (_b168 = MySqlColumnWithAutoIncrement, _a242 = entityKind, _b168) {
|
29720
29798
|
getSQLType() {
|
29721
29799
|
return `bigint${this.config.unsigned ? " unsigned" : ""}`;
|
29722
29800
|
}
|
@@ -29725,18 +29803,18 @@ var init_bigint2 = __esm({
|
|
29725
29803
|
return BigInt(value);
|
29726
29804
|
}
|
29727
29805
|
};
|
29728
|
-
__publicField(MySqlBigInt64,
|
29806
|
+
__publicField(MySqlBigInt64, _a242, "MySqlBigInt64");
|
29729
29807
|
}
|
29730
29808
|
});
|
29731
29809
|
|
29732
29810
|
// ../drizzle-orm/dist/mysql-core/columns/binary.js
|
29733
|
-
var
|
29811
|
+
var _a243, _b169, MySqlBinaryBuilder, _a244, _b170, MySqlBinary;
|
29734
29812
|
var init_binary = __esm({
|
29735
29813
|
"../drizzle-orm/dist/mysql-core/columns/binary.js"() {
|
29736
29814
|
"use strict";
|
29737
29815
|
init_entity();
|
29738
29816
|
init_common4();
|
29739
|
-
MySqlBinaryBuilder = class extends (
|
29817
|
+
MySqlBinaryBuilder = class extends (_b169 = MySqlColumnBuilder, _a243 = entityKind, _b169) {
|
29740
29818
|
constructor(name2, length) {
|
29741
29819
|
super(name2, "string", "MySqlBinary");
|
29742
29820
|
this.config.length = length;
|
@@ -29746,8 +29824,8 @@ var init_binary = __esm({
|
|
29746
29824
|
return new MySqlBinary(table4, this.config);
|
29747
29825
|
}
|
29748
29826
|
};
|
29749
|
-
__publicField(MySqlBinaryBuilder,
|
29750
|
-
MySqlBinary = class extends (
|
29827
|
+
__publicField(MySqlBinaryBuilder, _a243, "MySqlBinaryBuilder");
|
29828
|
+
MySqlBinary = class extends (_b170 = MySqlColumn, _a244 = entityKind, _b170) {
|
29751
29829
|
constructor() {
|
29752
29830
|
super(...arguments);
|
29753
29831
|
__publicField(this, "length", this.config.length);
|
@@ -29756,18 +29834,18 @@ var init_binary = __esm({
|
|
29756
29834
|
return this.length === void 0 ? `binary` : `binary(${this.length})`;
|
29757
29835
|
}
|
29758
29836
|
};
|
29759
|
-
__publicField(MySqlBinary,
|
29837
|
+
__publicField(MySqlBinary, _a244, "MySqlBinary");
|
29760
29838
|
}
|
29761
29839
|
});
|
29762
29840
|
|
29763
29841
|
// ../drizzle-orm/dist/mysql-core/columns/boolean.js
|
29764
|
-
var
|
29842
|
+
var _a245, _b171, MySqlBooleanBuilder, _a246, _b172, MySqlBoolean;
|
29765
29843
|
var init_boolean2 = __esm({
|
29766
29844
|
"../drizzle-orm/dist/mysql-core/columns/boolean.js"() {
|
29767
29845
|
"use strict";
|
29768
29846
|
init_entity();
|
29769
29847
|
init_common4();
|
29770
|
-
MySqlBooleanBuilder = class extends (
|
29848
|
+
MySqlBooleanBuilder = class extends (_b171 = MySqlColumnBuilder, _a245 = entityKind, _b171) {
|
29771
29849
|
constructor(name2) {
|
29772
29850
|
super(name2, "boolean", "MySqlBoolean");
|
29773
29851
|
}
|
@@ -29779,8 +29857,8 @@ var init_boolean2 = __esm({
|
|
29779
29857
|
);
|
29780
29858
|
}
|
29781
29859
|
};
|
29782
|
-
__publicField(MySqlBooleanBuilder,
|
29783
|
-
MySqlBoolean = class extends (
|
29860
|
+
__publicField(MySqlBooleanBuilder, _a245, "MySqlBooleanBuilder");
|
29861
|
+
MySqlBoolean = class extends (_b172 = MySqlColumn, _a246 = entityKind, _b172) {
|
29784
29862
|
getSQLType() {
|
29785
29863
|
return "boolean";
|
29786
29864
|
}
|
@@ -29791,18 +29869,18 @@ var init_boolean2 = __esm({
|
|
29791
29869
|
return value === 1;
|
29792
29870
|
}
|
29793
29871
|
};
|
29794
|
-
__publicField(MySqlBoolean,
|
29872
|
+
__publicField(MySqlBoolean, _a246, "MySqlBoolean");
|
29795
29873
|
}
|
29796
29874
|
});
|
29797
29875
|
|
29798
29876
|
// ../drizzle-orm/dist/mysql-core/columns/char.js
|
29799
|
-
var
|
29877
|
+
var _a247, _b173, MySqlCharBuilder, _a248, _b174, MySqlChar;
|
29800
29878
|
var init_char2 = __esm({
|
29801
29879
|
"../drizzle-orm/dist/mysql-core/columns/char.js"() {
|
29802
29880
|
"use strict";
|
29803
29881
|
init_entity();
|
29804
29882
|
init_common4();
|
29805
|
-
MySqlCharBuilder = class extends (
|
29883
|
+
MySqlCharBuilder = class extends (_b173 = MySqlColumnBuilder, _a247 = entityKind, _b173) {
|
29806
29884
|
constructor(name2, config) {
|
29807
29885
|
super(name2, "string", "MySqlChar");
|
29808
29886
|
this.config.length = config.length;
|
@@ -29816,8 +29894,8 @@ var init_char2 = __esm({
|
|
29816
29894
|
);
|
29817
29895
|
}
|
29818
29896
|
};
|
29819
|
-
__publicField(MySqlCharBuilder,
|
29820
|
-
MySqlChar = class extends (
|
29897
|
+
__publicField(MySqlCharBuilder, _a247, "MySqlCharBuilder");
|
29898
|
+
MySqlChar = class extends (_b174 = MySqlColumn, _a248 = entityKind, _b174) {
|
29821
29899
|
constructor() {
|
29822
29900
|
super(...arguments);
|
29823
29901
|
__publicField(this, "length", this.config.length);
|
@@ -29827,18 +29905,18 @@ var init_char2 = __esm({
|
|
29827
29905
|
return this.length === void 0 ? `char` : `char(${this.length})`;
|
29828
29906
|
}
|
29829
29907
|
};
|
29830
|
-
__publicField(MySqlChar,
|
29908
|
+
__publicField(MySqlChar, _a248, "MySqlChar");
|
29831
29909
|
}
|
29832
29910
|
});
|
29833
29911
|
|
29834
29912
|
// ../drizzle-orm/dist/mysql-core/columns/custom.js
|
29835
|
-
var
|
29913
|
+
var _a249, _b175, MySqlCustomColumnBuilder, _a250, _b176, MySqlCustomColumn;
|
29836
29914
|
var init_custom3 = __esm({
|
29837
29915
|
"../drizzle-orm/dist/mysql-core/columns/custom.js"() {
|
29838
29916
|
"use strict";
|
29839
29917
|
init_entity();
|
29840
29918
|
init_common4();
|
29841
|
-
MySqlCustomColumnBuilder = class extends (
|
29919
|
+
MySqlCustomColumnBuilder = class extends (_b175 = MySqlColumnBuilder, _a249 = entityKind, _b175) {
|
29842
29920
|
constructor(name2, fieldConfig, customTypeParams) {
|
29843
29921
|
super(name2, "custom", "MySqlCustomColumn");
|
29844
29922
|
this.config.fieldConfig = fieldConfig;
|
@@ -29852,8 +29930,8 @@ var init_custom3 = __esm({
|
|
29852
29930
|
);
|
29853
29931
|
}
|
29854
29932
|
};
|
29855
|
-
__publicField(MySqlCustomColumnBuilder,
|
29856
|
-
MySqlCustomColumn = class extends (
|
29933
|
+
__publicField(MySqlCustomColumnBuilder, _a249, "MySqlCustomColumnBuilder");
|
29934
|
+
MySqlCustomColumn = class extends (_b176 = MySqlColumn, _a250 = entityKind, _b176) {
|
29857
29935
|
constructor(table4, config) {
|
29858
29936
|
super(table4, config);
|
29859
29937
|
__publicField(this, "sqlName");
|
@@ -29873,18 +29951,18 @@ var init_custom3 = __esm({
|
|
29873
29951
|
return typeof this.mapTo === "function" ? this.mapTo(value) : value;
|
29874
29952
|
}
|
29875
29953
|
};
|
29876
|
-
__publicField(MySqlCustomColumn,
|
29954
|
+
__publicField(MySqlCustomColumn, _a250, "MySqlCustomColumn");
|
29877
29955
|
}
|
29878
29956
|
});
|
29879
29957
|
|
29880
29958
|
// ../drizzle-orm/dist/mysql-core/columns/date.js
|
29881
|
-
var
|
29959
|
+
var _a251, _b177, MySqlDateBuilder, _a252, _b178, MySqlDate, _a253, _b179, MySqlDateStringBuilder, _a254, _b180, MySqlDateString;
|
29882
29960
|
var init_date2 = __esm({
|
29883
29961
|
"../drizzle-orm/dist/mysql-core/columns/date.js"() {
|
29884
29962
|
"use strict";
|
29885
29963
|
init_entity();
|
29886
29964
|
init_common4();
|
29887
|
-
MySqlDateBuilder = class extends (
|
29965
|
+
MySqlDateBuilder = class extends (_b177 = MySqlColumnBuilder, _a251 = entityKind, _b177) {
|
29888
29966
|
constructor(name2) {
|
29889
29967
|
super(name2, "date", "MySqlDate");
|
29890
29968
|
}
|
@@ -29893,8 +29971,8 @@ var init_date2 = __esm({
|
|
29893
29971
|
return new MySqlDate(table4, this.config);
|
29894
29972
|
}
|
29895
29973
|
};
|
29896
|
-
__publicField(MySqlDateBuilder,
|
29897
|
-
MySqlDate = class extends (
|
29974
|
+
__publicField(MySqlDateBuilder, _a251, "MySqlDateBuilder");
|
29975
|
+
MySqlDate = class extends (_b178 = MySqlColumn, _a252 = entityKind, _b178) {
|
29898
29976
|
constructor(table4, config) {
|
29899
29977
|
super(table4, config);
|
29900
29978
|
}
|
@@ -29905,8 +29983,8 @@ var init_date2 = __esm({
|
|
29905
29983
|
return new Date(value);
|
29906
29984
|
}
|
29907
29985
|
};
|
29908
|
-
__publicField(MySqlDate,
|
29909
|
-
MySqlDateStringBuilder = class extends (
|
29986
|
+
__publicField(MySqlDate, _a252, "MySqlDate");
|
29987
|
+
MySqlDateStringBuilder = class extends (_b179 = MySqlColumnBuilder, _a253 = entityKind, _b179) {
|
29910
29988
|
constructor(name2) {
|
29911
29989
|
super(name2, "string", "MySqlDateString");
|
29912
29990
|
}
|
@@ -29918,8 +29996,8 @@ var init_date2 = __esm({
|
|
29918
29996
|
);
|
29919
29997
|
}
|
29920
29998
|
};
|
29921
|
-
__publicField(MySqlDateStringBuilder,
|
29922
|
-
MySqlDateString = class extends (
|
29999
|
+
__publicField(MySqlDateStringBuilder, _a253, "MySqlDateStringBuilder");
|
30000
|
+
MySqlDateString = class extends (_b180 = MySqlColumn, _a254 = entityKind, _b180) {
|
29923
30001
|
constructor(table4, config) {
|
29924
30002
|
super(table4, config);
|
29925
30003
|
}
|
@@ -29927,18 +30005,18 @@ var init_date2 = __esm({
|
|
29927
30005
|
return `date`;
|
29928
30006
|
}
|
29929
30007
|
};
|
29930
|
-
__publicField(MySqlDateString,
|
30008
|
+
__publicField(MySqlDateString, _a254, "MySqlDateString");
|
29931
30009
|
}
|
29932
30010
|
});
|
29933
30011
|
|
29934
30012
|
// ../drizzle-orm/dist/mysql-core/columns/datetime.js
|
29935
|
-
var
|
30013
|
+
var _a255, _b181, MySqlDateTimeBuilder, _a256, _b182, MySqlDateTime, _a257, _b183, MySqlDateTimeStringBuilder, _a258, _b184, MySqlDateTimeString;
|
29936
30014
|
var init_datetime = __esm({
|
29937
30015
|
"../drizzle-orm/dist/mysql-core/columns/datetime.js"() {
|
29938
30016
|
"use strict";
|
29939
30017
|
init_entity();
|
29940
30018
|
init_common4();
|
29941
|
-
MySqlDateTimeBuilder = class extends (
|
30019
|
+
MySqlDateTimeBuilder = class extends (_b181 = MySqlColumnBuilder, _a255 = entityKind, _b181) {
|
29942
30020
|
constructor(name2, config) {
|
29943
30021
|
super(name2, "date", "MySqlDateTime");
|
29944
30022
|
this.config.fsp = config?.fsp;
|
@@ -29951,8 +30029,8 @@ var init_datetime = __esm({
|
|
29951
30029
|
);
|
29952
30030
|
}
|
29953
30031
|
};
|
29954
|
-
__publicField(MySqlDateTimeBuilder,
|
29955
|
-
MySqlDateTime = class extends (
|
30032
|
+
__publicField(MySqlDateTimeBuilder, _a255, "MySqlDateTimeBuilder");
|
30033
|
+
MySqlDateTime = class extends (_b182 = MySqlColumn, _a256 = entityKind, _b182) {
|
29956
30034
|
constructor(table4, config) {
|
29957
30035
|
super(table4, config);
|
29958
30036
|
__publicField(this, "fsp");
|
@@ -29969,8 +30047,8 @@ var init_datetime = __esm({
|
|
29969
30047
|
return /* @__PURE__ */ new Date(value.replace(" ", "T") + "Z");
|
29970
30048
|
}
|
29971
30049
|
};
|
29972
|
-
__publicField(MySqlDateTime,
|
29973
|
-
MySqlDateTimeStringBuilder = class extends (
|
30050
|
+
__publicField(MySqlDateTime, _a256, "MySqlDateTime");
|
30051
|
+
MySqlDateTimeStringBuilder = class extends (_b183 = MySqlColumnBuilder, _a257 = entityKind, _b183) {
|
29974
30052
|
constructor(name2, config) {
|
29975
30053
|
super(name2, "string", "MySqlDateTimeString");
|
29976
30054
|
this.config.fsp = config?.fsp;
|
@@ -29983,8 +30061,8 @@ var init_datetime = __esm({
|
|
29983
30061
|
);
|
29984
30062
|
}
|
29985
30063
|
};
|
29986
|
-
__publicField(MySqlDateTimeStringBuilder,
|
29987
|
-
MySqlDateTimeString = class extends (
|
30064
|
+
__publicField(MySqlDateTimeStringBuilder, _a257, "MySqlDateTimeStringBuilder");
|
30065
|
+
MySqlDateTimeString = class extends (_b184 = MySqlColumn, _a258 = entityKind, _b184) {
|
29988
30066
|
constructor(table4, config) {
|
29989
30067
|
super(table4, config);
|
29990
30068
|
__publicField(this, "fsp");
|
@@ -29995,18 +30073,18 @@ var init_datetime = __esm({
|
|
29995
30073
|
return `datetime${precision}`;
|
29996
30074
|
}
|
29997
30075
|
};
|
29998
|
-
__publicField(MySqlDateTimeString,
|
30076
|
+
__publicField(MySqlDateTimeString, _a258, "MySqlDateTimeString");
|
29999
30077
|
}
|
30000
30078
|
});
|
30001
30079
|
|
30002
30080
|
// ../drizzle-orm/dist/mysql-core/columns/decimal.js
|
30003
|
-
var
|
30081
|
+
var _a259, _b185, MySqlDecimalBuilder, _a260, _b186, MySqlDecimal;
|
30004
30082
|
var init_decimal = __esm({
|
30005
30083
|
"../drizzle-orm/dist/mysql-core/columns/decimal.js"() {
|
30006
30084
|
"use strict";
|
30007
30085
|
init_entity();
|
30008
30086
|
init_common4();
|
30009
|
-
MySqlDecimalBuilder = class extends (
|
30087
|
+
MySqlDecimalBuilder = class extends (_b185 = MySqlColumnBuilderWithAutoIncrement, _a259 = entityKind, _b185) {
|
30010
30088
|
constructor(name2, precision, scale) {
|
30011
30089
|
super(name2, "string", "MySqlDecimal");
|
30012
30090
|
this.config.precision = precision;
|
@@ -30020,8 +30098,8 @@ var init_decimal = __esm({
|
|
30020
30098
|
);
|
30021
30099
|
}
|
30022
30100
|
};
|
30023
|
-
__publicField(MySqlDecimalBuilder,
|
30024
|
-
MySqlDecimal = class extends (
|
30101
|
+
__publicField(MySqlDecimalBuilder, _a259, "MySqlDecimalBuilder");
|
30102
|
+
MySqlDecimal = class extends (_b186 = MySqlColumnWithAutoIncrement, _a260 = entityKind, _b186) {
|
30025
30103
|
constructor() {
|
30026
30104
|
super(...arguments);
|
30027
30105
|
__publicField(this, "precision", this.config.precision);
|
@@ -30037,18 +30115,18 @@ var init_decimal = __esm({
|
|
30037
30115
|
}
|
30038
30116
|
}
|
30039
30117
|
};
|
30040
|
-
__publicField(MySqlDecimal,
|
30118
|
+
__publicField(MySqlDecimal, _a260, "MySqlDecimal");
|
30041
30119
|
}
|
30042
30120
|
});
|
30043
30121
|
|
30044
30122
|
// ../drizzle-orm/dist/mysql-core/columns/double.js
|
30045
|
-
var
|
30123
|
+
var _a261, _b187, MySqlDoubleBuilder, _a262, _b188, MySqlDouble;
|
30046
30124
|
var init_double = __esm({
|
30047
30125
|
"../drizzle-orm/dist/mysql-core/columns/double.js"() {
|
30048
30126
|
"use strict";
|
30049
30127
|
init_entity();
|
30050
30128
|
init_common4();
|
30051
|
-
MySqlDoubleBuilder = class extends (
|
30129
|
+
MySqlDoubleBuilder = class extends (_b187 = MySqlColumnBuilderWithAutoIncrement, _a261 = entityKind, _b187) {
|
30052
30130
|
constructor(name2, config) {
|
30053
30131
|
super(name2, "number", "MySqlDouble");
|
30054
30132
|
this.config.precision = config?.precision;
|
@@ -30059,8 +30137,8 @@ var init_double = __esm({
|
|
30059
30137
|
return new MySqlDouble(table4, this.config);
|
30060
30138
|
}
|
30061
30139
|
};
|
30062
|
-
__publicField(MySqlDoubleBuilder,
|
30063
|
-
MySqlDouble = class extends (
|
30140
|
+
__publicField(MySqlDoubleBuilder, _a261, "MySqlDoubleBuilder");
|
30141
|
+
MySqlDouble = class extends (_b188 = MySqlColumnWithAutoIncrement, _a262 = entityKind, _b188) {
|
30064
30142
|
constructor() {
|
30065
30143
|
super(...arguments);
|
30066
30144
|
__publicField(this, "precision", this.config.precision);
|
@@ -30076,18 +30154,18 @@ var init_double = __esm({
|
|
30076
30154
|
}
|
30077
30155
|
}
|
30078
30156
|
};
|
30079
|
-
__publicField(MySqlDouble,
|
30157
|
+
__publicField(MySqlDouble, _a262, "MySqlDouble");
|
30080
30158
|
}
|
30081
30159
|
});
|
30082
30160
|
|
30083
30161
|
// ../drizzle-orm/dist/mysql-core/columns/enum.js
|
30084
|
-
var
|
30162
|
+
var _a263, _b189, MySqlEnumColumnBuilder, _a264, _b190, MySqlEnumColumn;
|
30085
30163
|
var init_enum2 = __esm({
|
30086
30164
|
"../drizzle-orm/dist/mysql-core/columns/enum.js"() {
|
30087
30165
|
"use strict";
|
30088
30166
|
init_entity();
|
30089
30167
|
init_common4();
|
30090
|
-
MySqlEnumColumnBuilder = class extends (
|
30168
|
+
MySqlEnumColumnBuilder = class extends (_b189 = MySqlColumnBuilder, _a263 = entityKind, _b189) {
|
30091
30169
|
constructor(name2, values) {
|
30092
30170
|
super(name2, "string", "MySqlEnumColumn");
|
30093
30171
|
this.config.enumValues = values;
|
@@ -30100,8 +30178,8 @@ var init_enum2 = __esm({
|
|
30100
30178
|
);
|
30101
30179
|
}
|
30102
30180
|
};
|
30103
|
-
__publicField(MySqlEnumColumnBuilder,
|
30104
|
-
MySqlEnumColumn = class extends (
|
30181
|
+
__publicField(MySqlEnumColumnBuilder, _a263, "MySqlEnumColumnBuilder");
|
30182
|
+
MySqlEnumColumn = class extends (_b190 = MySqlColumn, _a264 = entityKind, _b190) {
|
30105
30183
|
constructor() {
|
30106
30184
|
super(...arguments);
|
30107
30185
|
__publicField(this, "enumValues", this.config.enumValues);
|
@@ -30110,18 +30188,18 @@ var init_enum2 = __esm({
|
|
30110
30188
|
return `enum(${this.enumValues.map((value) => `'${value}'`).join(",")})`;
|
30111
30189
|
}
|
30112
30190
|
};
|
30113
|
-
__publicField(MySqlEnumColumn,
|
30191
|
+
__publicField(MySqlEnumColumn, _a264, "MySqlEnumColumn");
|
30114
30192
|
}
|
30115
30193
|
});
|
30116
30194
|
|
30117
30195
|
// ../drizzle-orm/dist/mysql-core/columns/float.js
|
30118
|
-
var
|
30196
|
+
var _a265, _b191, MySqlFloatBuilder, _a266, _b192, MySqlFloat;
|
30119
30197
|
var init_float = __esm({
|
30120
30198
|
"../drizzle-orm/dist/mysql-core/columns/float.js"() {
|
30121
30199
|
"use strict";
|
30122
30200
|
init_entity();
|
30123
30201
|
init_common4();
|
30124
|
-
MySqlFloatBuilder = class extends (
|
30202
|
+
MySqlFloatBuilder = class extends (_b191 = MySqlColumnBuilderWithAutoIncrement, _a265 = entityKind, _b191) {
|
30125
30203
|
constructor(name2) {
|
30126
30204
|
super(name2, "number", "MySqlFloat");
|
30127
30205
|
}
|
@@ -30130,24 +30208,24 @@ var init_float = __esm({
|
|
30130
30208
|
return new MySqlFloat(table4, this.config);
|
30131
30209
|
}
|
30132
30210
|
};
|
30133
|
-
__publicField(MySqlFloatBuilder,
|
30134
|
-
MySqlFloat = class extends (
|
30211
|
+
__publicField(MySqlFloatBuilder, _a265, "MySqlFloatBuilder");
|
30212
|
+
MySqlFloat = class extends (_b192 = MySqlColumnWithAutoIncrement, _a266 = entityKind, _b192) {
|
30135
30213
|
getSQLType() {
|
30136
30214
|
return "float";
|
30137
30215
|
}
|
30138
30216
|
};
|
30139
|
-
__publicField(MySqlFloat,
|
30217
|
+
__publicField(MySqlFloat, _a266, "MySqlFloat");
|
30140
30218
|
}
|
30141
30219
|
});
|
30142
30220
|
|
30143
30221
|
// ../drizzle-orm/dist/mysql-core/columns/int.js
|
30144
|
-
var
|
30222
|
+
var _a267, _b193, MySqlIntBuilder, _a268, _b194, MySqlInt;
|
30145
30223
|
var init_int = __esm({
|
30146
30224
|
"../drizzle-orm/dist/mysql-core/columns/int.js"() {
|
30147
30225
|
"use strict";
|
30148
30226
|
init_entity();
|
30149
30227
|
init_common4();
|
30150
|
-
MySqlIntBuilder = class extends (
|
30228
|
+
MySqlIntBuilder = class extends (_b193 = MySqlColumnBuilderWithAutoIncrement, _a267 = entityKind, _b193) {
|
30151
30229
|
constructor(name2, config) {
|
30152
30230
|
super(name2, "number", "MySqlInt");
|
30153
30231
|
this.config.unsigned = config ? config.unsigned : false;
|
@@ -30157,8 +30235,8 @@ var init_int = __esm({
|
|
30157
30235
|
return new MySqlInt(table4, this.config);
|
30158
30236
|
}
|
30159
30237
|
};
|
30160
|
-
__publicField(MySqlIntBuilder,
|
30161
|
-
MySqlInt = class extends (
|
30238
|
+
__publicField(MySqlIntBuilder, _a267, "MySqlIntBuilder");
|
30239
|
+
MySqlInt = class extends (_b194 = MySqlColumnWithAutoIncrement, _a268 = entityKind, _b194) {
|
30162
30240
|
getSQLType() {
|
30163
30241
|
return `int${this.config.unsigned ? " unsigned" : ""}`;
|
30164
30242
|
}
|
@@ -30169,18 +30247,18 @@ var init_int = __esm({
|
|
30169
30247
|
return value;
|
30170
30248
|
}
|
30171
30249
|
};
|
30172
|
-
__publicField(MySqlInt,
|
30250
|
+
__publicField(MySqlInt, _a268, "MySqlInt");
|
30173
30251
|
}
|
30174
30252
|
});
|
30175
30253
|
|
30176
30254
|
// ../drizzle-orm/dist/mysql-core/columns/json.js
|
30177
|
-
var
|
30255
|
+
var _a269, _b195, MySqlJsonBuilder, _a270, _b196, MySqlJson;
|
30178
30256
|
var init_json2 = __esm({
|
30179
30257
|
"../drizzle-orm/dist/mysql-core/columns/json.js"() {
|
30180
30258
|
"use strict";
|
30181
30259
|
init_entity();
|
30182
30260
|
init_common4();
|
30183
|
-
MySqlJsonBuilder = class extends (
|
30261
|
+
MySqlJsonBuilder = class extends (_b195 = MySqlColumnBuilder, _a269 = entityKind, _b195) {
|
30184
30262
|
constructor(name2) {
|
30185
30263
|
super(name2, "json", "MySqlJson");
|
30186
30264
|
}
|
@@ -30189,8 +30267,8 @@ var init_json2 = __esm({
|
|
30189
30267
|
return new MySqlJson(table4, this.config);
|
30190
30268
|
}
|
30191
30269
|
};
|
30192
|
-
__publicField(MySqlJsonBuilder,
|
30193
|
-
MySqlJson = class extends (
|
30270
|
+
__publicField(MySqlJsonBuilder, _a269, "MySqlJsonBuilder");
|
30271
|
+
MySqlJson = class extends (_b196 = MySqlColumn, _a270 = entityKind, _b196) {
|
30194
30272
|
getSQLType() {
|
30195
30273
|
return "json";
|
30196
30274
|
}
|
@@ -30198,18 +30276,18 @@ var init_json2 = __esm({
|
|
30198
30276
|
return JSON.stringify(value);
|
30199
30277
|
}
|
30200
30278
|
};
|
30201
|
-
__publicField(MySqlJson,
|
30279
|
+
__publicField(MySqlJson, _a270, "MySqlJson");
|
30202
30280
|
}
|
30203
30281
|
});
|
30204
30282
|
|
30205
30283
|
// ../drizzle-orm/dist/mysql-core/columns/mediumint.js
|
30206
|
-
var
|
30284
|
+
var _a271, _b197, MySqlMediumIntBuilder, _a272, _b198, MySqlMediumInt;
|
30207
30285
|
var init_mediumint = __esm({
|
30208
30286
|
"../drizzle-orm/dist/mysql-core/columns/mediumint.js"() {
|
30209
30287
|
"use strict";
|
30210
30288
|
init_entity();
|
30211
30289
|
init_common4();
|
30212
|
-
MySqlMediumIntBuilder = class extends (
|
30290
|
+
MySqlMediumIntBuilder = class extends (_b197 = MySqlColumnBuilderWithAutoIncrement, _a271 = entityKind, _b197) {
|
30213
30291
|
constructor(name2, config) {
|
30214
30292
|
super(name2, "number", "MySqlMediumInt");
|
30215
30293
|
this.config.unsigned = config ? config.unsigned : false;
|
@@ -30222,8 +30300,8 @@ var init_mediumint = __esm({
|
|
30222
30300
|
);
|
30223
30301
|
}
|
30224
30302
|
};
|
30225
|
-
__publicField(MySqlMediumIntBuilder,
|
30226
|
-
MySqlMediumInt = class extends (
|
30303
|
+
__publicField(MySqlMediumIntBuilder, _a271, "MySqlMediumIntBuilder");
|
30304
|
+
MySqlMediumInt = class extends (_b198 = MySqlColumnWithAutoIncrement, _a272 = entityKind, _b198) {
|
30227
30305
|
getSQLType() {
|
30228
30306
|
return `mediumint${this.config.unsigned ? " unsigned" : ""}`;
|
30229
30307
|
}
|
@@ -30234,18 +30312,18 @@ var init_mediumint = __esm({
|
|
30234
30312
|
return value;
|
30235
30313
|
}
|
30236
30314
|
};
|
30237
|
-
__publicField(MySqlMediumInt,
|
30315
|
+
__publicField(MySqlMediumInt, _a272, "MySqlMediumInt");
|
30238
30316
|
}
|
30239
30317
|
});
|
30240
30318
|
|
30241
30319
|
// ../drizzle-orm/dist/mysql-core/columns/real.js
|
30242
|
-
var
|
30320
|
+
var _a273, _b199, MySqlRealBuilder, _a274, _b200, MySqlReal;
|
30243
30321
|
var init_real3 = __esm({
|
30244
30322
|
"../drizzle-orm/dist/mysql-core/columns/real.js"() {
|
30245
30323
|
"use strict";
|
30246
30324
|
init_entity();
|
30247
30325
|
init_common4();
|
30248
|
-
MySqlRealBuilder = class extends (
|
30326
|
+
MySqlRealBuilder = class extends (_b199 = MySqlColumnBuilderWithAutoIncrement, _a273 = entityKind, _b199) {
|
30249
30327
|
constructor(name2, config) {
|
30250
30328
|
super(name2, "number", "MySqlReal");
|
30251
30329
|
this.config.precision = config?.precision;
|
@@ -30256,8 +30334,8 @@ var init_real3 = __esm({
|
|
30256
30334
|
return new MySqlReal(table4, this.config);
|
30257
30335
|
}
|
30258
30336
|
};
|
30259
|
-
__publicField(MySqlRealBuilder,
|
30260
|
-
MySqlReal = class extends (
|
30337
|
+
__publicField(MySqlRealBuilder, _a273, "MySqlRealBuilder");
|
30338
|
+
MySqlReal = class extends (_b200 = MySqlColumnWithAutoIncrement, _a274 = entityKind, _b200) {
|
30261
30339
|
constructor() {
|
30262
30340
|
super(...arguments);
|
30263
30341
|
__publicField(this, "precision", this.config.precision);
|
@@ -30273,18 +30351,18 @@ var init_real3 = __esm({
|
|
30273
30351
|
}
|
30274
30352
|
}
|
30275
30353
|
};
|
30276
|
-
__publicField(MySqlReal,
|
30354
|
+
__publicField(MySqlReal, _a274, "MySqlReal");
|
30277
30355
|
}
|
30278
30356
|
});
|
30279
30357
|
|
30280
30358
|
// ../drizzle-orm/dist/mysql-core/columns/serial.js
|
30281
|
-
var
|
30359
|
+
var _a275, _b201, MySqlSerialBuilder, _a276, _b202, MySqlSerial;
|
30282
30360
|
var init_serial2 = __esm({
|
30283
30361
|
"../drizzle-orm/dist/mysql-core/columns/serial.js"() {
|
30284
30362
|
"use strict";
|
30285
30363
|
init_entity();
|
30286
30364
|
init_common4();
|
30287
|
-
MySqlSerialBuilder = class extends (
|
30365
|
+
MySqlSerialBuilder = class extends (_b201 = MySqlColumnBuilderWithAutoIncrement, _a275 = entityKind, _b201) {
|
30288
30366
|
constructor(name2) {
|
30289
30367
|
super(name2, "number", "MySqlSerial");
|
30290
30368
|
this.config.hasDefault = true;
|
@@ -30295,8 +30373,8 @@ var init_serial2 = __esm({
|
|
30295
30373
|
return new MySqlSerial(table4, this.config);
|
30296
30374
|
}
|
30297
30375
|
};
|
30298
|
-
__publicField(MySqlSerialBuilder,
|
30299
|
-
MySqlSerial = class extends (
|
30376
|
+
__publicField(MySqlSerialBuilder, _a275, "MySqlSerialBuilder");
|
30377
|
+
MySqlSerial = class extends (_b202 = MySqlColumnWithAutoIncrement, _a276 = entityKind, _b202) {
|
30300
30378
|
getSQLType() {
|
30301
30379
|
return "serial";
|
30302
30380
|
}
|
@@ -30307,18 +30385,18 @@ var init_serial2 = __esm({
|
|
30307
30385
|
return value;
|
30308
30386
|
}
|
30309
30387
|
};
|
30310
|
-
__publicField(MySqlSerial,
|
30388
|
+
__publicField(MySqlSerial, _a276, "MySqlSerial");
|
30311
30389
|
}
|
30312
30390
|
});
|
30313
30391
|
|
30314
30392
|
// ../drizzle-orm/dist/mysql-core/columns/smallint.js
|
30315
|
-
var
|
30393
|
+
var _a277, _b203, MySqlSmallIntBuilder, _a278, _b204, MySqlSmallInt;
|
30316
30394
|
var init_smallint2 = __esm({
|
30317
30395
|
"../drizzle-orm/dist/mysql-core/columns/smallint.js"() {
|
30318
30396
|
"use strict";
|
30319
30397
|
init_entity();
|
30320
30398
|
init_common4();
|
30321
|
-
MySqlSmallIntBuilder = class extends (
|
30399
|
+
MySqlSmallIntBuilder = class extends (_b203 = MySqlColumnBuilderWithAutoIncrement, _a277 = entityKind, _b203) {
|
30322
30400
|
constructor(name2, config) {
|
30323
30401
|
super(name2, "number", "MySqlSmallInt");
|
30324
30402
|
this.config.unsigned = config ? config.unsigned : false;
|
@@ -30331,8 +30409,8 @@ var init_smallint2 = __esm({
|
|
30331
30409
|
);
|
30332
30410
|
}
|
30333
30411
|
};
|
30334
|
-
__publicField(MySqlSmallIntBuilder,
|
30335
|
-
MySqlSmallInt = class extends (
|
30412
|
+
__publicField(MySqlSmallIntBuilder, _a277, "MySqlSmallIntBuilder");
|
30413
|
+
MySqlSmallInt = class extends (_b204 = MySqlColumnWithAutoIncrement, _a278 = entityKind, _b204) {
|
30336
30414
|
getSQLType() {
|
30337
30415
|
return `smallint${this.config.unsigned ? " unsigned" : ""}`;
|
30338
30416
|
}
|
@@ -30343,18 +30421,18 @@ var init_smallint2 = __esm({
|
|
30343
30421
|
return value;
|
30344
30422
|
}
|
30345
30423
|
};
|
30346
|
-
__publicField(MySqlSmallInt,
|
30424
|
+
__publicField(MySqlSmallInt, _a278, "MySqlSmallInt");
|
30347
30425
|
}
|
30348
30426
|
});
|
30349
30427
|
|
30350
30428
|
// ../drizzle-orm/dist/mysql-core/columns/text.js
|
30351
|
-
var
|
30429
|
+
var _a279, _b205, MySqlTextBuilder, _a280, _b206, MySqlText;
|
30352
30430
|
var init_text3 = __esm({
|
30353
30431
|
"../drizzle-orm/dist/mysql-core/columns/text.js"() {
|
30354
30432
|
"use strict";
|
30355
30433
|
init_entity();
|
30356
30434
|
init_common4();
|
30357
|
-
MySqlTextBuilder = class extends (
|
30435
|
+
MySqlTextBuilder = class extends (_b205 = MySqlColumnBuilder, _a279 = entityKind, _b205) {
|
30358
30436
|
constructor(name2, textType, config) {
|
30359
30437
|
super(name2, "string", "MySqlText");
|
30360
30438
|
this.config.textType = textType;
|
@@ -30365,8 +30443,8 @@ var init_text3 = __esm({
|
|
30365
30443
|
return new MySqlText(table4, this.config);
|
30366
30444
|
}
|
30367
30445
|
};
|
30368
|
-
__publicField(MySqlTextBuilder,
|
30369
|
-
MySqlText = class extends (
|
30446
|
+
__publicField(MySqlTextBuilder, _a279, "MySqlTextBuilder");
|
30447
|
+
MySqlText = class extends (_b206 = MySqlColumn, _a280 = entityKind, _b206) {
|
30370
30448
|
constructor() {
|
30371
30449
|
super(...arguments);
|
30372
30450
|
__publicField(this, "textType", this.config.textType);
|
@@ -30376,18 +30454,18 @@ var init_text3 = __esm({
|
|
30376
30454
|
return this.textType;
|
30377
30455
|
}
|
30378
30456
|
};
|
30379
|
-
__publicField(MySqlText,
|
30457
|
+
__publicField(MySqlText, _a280, "MySqlText");
|
30380
30458
|
}
|
30381
30459
|
});
|
30382
30460
|
|
30383
30461
|
// ../drizzle-orm/dist/mysql-core/columns/time.js
|
30384
|
-
var
|
30462
|
+
var _a281, _b207, MySqlTimeBuilder, _a282, _b208, MySqlTime;
|
30385
30463
|
var init_time2 = __esm({
|
30386
30464
|
"../drizzle-orm/dist/mysql-core/columns/time.js"() {
|
30387
30465
|
"use strict";
|
30388
30466
|
init_entity();
|
30389
30467
|
init_common4();
|
30390
|
-
MySqlTimeBuilder = class extends (
|
30468
|
+
MySqlTimeBuilder = class extends (_b207 = MySqlColumnBuilder, _a281 = entityKind, _b207) {
|
30391
30469
|
constructor(name2, config) {
|
30392
30470
|
super(name2, "string", "MySqlTime");
|
30393
30471
|
this.config.fsp = config?.fsp;
|
@@ -30397,8 +30475,8 @@ var init_time2 = __esm({
|
|
30397
30475
|
return new MySqlTime(table4, this.config);
|
30398
30476
|
}
|
30399
30477
|
};
|
30400
|
-
__publicField(MySqlTimeBuilder,
|
30401
|
-
MySqlTime = class extends (
|
30478
|
+
__publicField(MySqlTimeBuilder, _a281, "MySqlTimeBuilder");
|
30479
|
+
MySqlTime = class extends (_b208 = MySqlColumn, _a282 = entityKind, _b208) {
|
30402
30480
|
constructor() {
|
30403
30481
|
super(...arguments);
|
30404
30482
|
__publicField(this, "fsp", this.config.fsp);
|
@@ -30408,19 +30486,19 @@ var init_time2 = __esm({
|
|
30408
30486
|
return `time${precision}`;
|
30409
30487
|
}
|
30410
30488
|
};
|
30411
|
-
__publicField(MySqlTime,
|
30489
|
+
__publicField(MySqlTime, _a282, "MySqlTime");
|
30412
30490
|
}
|
30413
30491
|
});
|
30414
30492
|
|
30415
30493
|
// ../drizzle-orm/dist/mysql-core/columns/date.common.js
|
30416
|
-
var
|
30494
|
+
var _a283, _b209, MySqlDateColumnBaseBuilder, _a284, _b210, MySqlDateBaseColumn;
|
30417
30495
|
var init_date_common2 = __esm({
|
30418
30496
|
"../drizzle-orm/dist/mysql-core/columns/date.common.js"() {
|
30419
30497
|
"use strict";
|
30420
30498
|
init_entity();
|
30421
30499
|
init_sql();
|
30422
30500
|
init_common4();
|
30423
|
-
MySqlDateColumnBaseBuilder = class extends (
|
30501
|
+
MySqlDateColumnBaseBuilder = class extends (_b209 = MySqlColumnBuilder, _a283 = entityKind, _b209) {
|
30424
30502
|
defaultNow() {
|
30425
30503
|
return this.default(sql`(now())`);
|
30426
30504
|
}
|
@@ -30431,25 +30509,25 @@ var init_date_common2 = __esm({
|
|
30431
30509
|
return this;
|
30432
30510
|
}
|
30433
30511
|
};
|
30434
|
-
__publicField(MySqlDateColumnBaseBuilder,
|
30435
|
-
MySqlDateBaseColumn = class extends (
|
30512
|
+
__publicField(MySqlDateColumnBaseBuilder, _a283, "MySqlDateColumnBuilder");
|
30513
|
+
MySqlDateBaseColumn = class extends (_b210 = MySqlColumn, _a284 = entityKind, _b210) {
|
30436
30514
|
constructor() {
|
30437
30515
|
super(...arguments);
|
30438
30516
|
__publicField(this, "hasOnUpdateNow", this.config.hasOnUpdateNow);
|
30439
30517
|
}
|
30440
30518
|
};
|
30441
|
-
__publicField(MySqlDateBaseColumn,
|
30519
|
+
__publicField(MySqlDateBaseColumn, _a284, "MySqlDateColumn");
|
30442
30520
|
}
|
30443
30521
|
});
|
30444
30522
|
|
30445
30523
|
// ../drizzle-orm/dist/mysql-core/columns/timestamp.js
|
30446
|
-
var
|
30524
|
+
var _a285, _b211, MySqlTimestampBuilder, _a286, _b212, MySqlTimestamp, _a287, _b213, MySqlTimestampStringBuilder, _a288, _b214, MySqlTimestampString;
|
30447
30525
|
var init_timestamp2 = __esm({
|
30448
30526
|
"../drizzle-orm/dist/mysql-core/columns/timestamp.js"() {
|
30449
30527
|
"use strict";
|
30450
30528
|
init_entity();
|
30451
30529
|
init_date_common2();
|
30452
|
-
MySqlTimestampBuilder = class extends (
|
30530
|
+
MySqlTimestampBuilder = class extends (_b211 = MySqlDateColumnBaseBuilder, _a285 = entityKind, _b211) {
|
30453
30531
|
constructor(name2, config) {
|
30454
30532
|
super(name2, "date", "MySqlTimestamp");
|
30455
30533
|
this.config.fsp = config?.fsp;
|
@@ -30462,8 +30540,8 @@ var init_timestamp2 = __esm({
|
|
30462
30540
|
);
|
30463
30541
|
}
|
30464
30542
|
};
|
30465
|
-
__publicField(MySqlTimestampBuilder,
|
30466
|
-
MySqlTimestamp = class extends (
|
30543
|
+
__publicField(MySqlTimestampBuilder, _a285, "MySqlTimestampBuilder");
|
30544
|
+
MySqlTimestamp = class extends (_b212 = MySqlDateBaseColumn, _a286 = entityKind, _b212) {
|
30467
30545
|
constructor() {
|
30468
30546
|
super(...arguments);
|
30469
30547
|
__publicField(this, "fsp", this.config.fsp);
|
@@ -30479,8 +30557,8 @@ var init_timestamp2 = __esm({
|
|
30479
30557
|
return value.toISOString().slice(0, -1).replace("T", " ");
|
30480
30558
|
}
|
30481
30559
|
};
|
30482
|
-
__publicField(MySqlTimestamp,
|
30483
|
-
MySqlTimestampStringBuilder = class extends (
|
30560
|
+
__publicField(MySqlTimestamp, _a286, "MySqlTimestamp");
|
30561
|
+
MySqlTimestampStringBuilder = class extends (_b213 = MySqlDateColumnBaseBuilder, _a287 = entityKind, _b213) {
|
30484
30562
|
constructor(name2, config) {
|
30485
30563
|
super(name2, "string", "MySqlTimestampString");
|
30486
30564
|
this.config.fsp = config?.fsp;
|
@@ -30493,8 +30571,8 @@ var init_timestamp2 = __esm({
|
|
30493
30571
|
);
|
30494
30572
|
}
|
30495
30573
|
};
|
30496
|
-
__publicField(MySqlTimestampStringBuilder,
|
30497
|
-
MySqlTimestampString = class extends (
|
30574
|
+
__publicField(MySqlTimestampStringBuilder, _a287, "MySqlTimestampStringBuilder");
|
30575
|
+
MySqlTimestampString = class extends (_b214 = MySqlDateBaseColumn, _a288 = entityKind, _b214) {
|
30498
30576
|
constructor() {
|
30499
30577
|
super(...arguments);
|
30500
30578
|
__publicField(this, "fsp", this.config.fsp);
|
@@ -30504,18 +30582,18 @@ var init_timestamp2 = __esm({
|
|
30504
30582
|
return `timestamp${precision}`;
|
30505
30583
|
}
|
30506
30584
|
};
|
30507
|
-
__publicField(MySqlTimestampString,
|
30585
|
+
__publicField(MySqlTimestampString, _a288, "MySqlTimestampString");
|
30508
30586
|
}
|
30509
30587
|
});
|
30510
30588
|
|
30511
30589
|
// ../drizzle-orm/dist/mysql-core/columns/tinyint.js
|
30512
|
-
var
|
30590
|
+
var _a289, _b215, MySqlTinyIntBuilder, _a290, _b216, MySqlTinyInt;
|
30513
30591
|
var init_tinyint = __esm({
|
30514
30592
|
"../drizzle-orm/dist/mysql-core/columns/tinyint.js"() {
|
30515
30593
|
"use strict";
|
30516
30594
|
init_entity();
|
30517
30595
|
init_common4();
|
30518
|
-
MySqlTinyIntBuilder = class extends (
|
30596
|
+
MySqlTinyIntBuilder = class extends (_b215 = MySqlColumnBuilderWithAutoIncrement, _a289 = entityKind, _b215) {
|
30519
30597
|
constructor(name2, config) {
|
30520
30598
|
super(name2, "number", "MySqlTinyInt");
|
30521
30599
|
this.config.unsigned = config ? config.unsigned : false;
|
@@ -30528,8 +30606,8 @@ var init_tinyint = __esm({
|
|
30528
30606
|
);
|
30529
30607
|
}
|
30530
30608
|
};
|
30531
|
-
__publicField(MySqlTinyIntBuilder,
|
30532
|
-
MySqlTinyInt = class extends (
|
30609
|
+
__publicField(MySqlTinyIntBuilder, _a289, "MySqlTinyIntBuilder");
|
30610
|
+
MySqlTinyInt = class extends (_b216 = MySqlColumnWithAutoIncrement, _a290 = entityKind, _b216) {
|
30533
30611
|
getSQLType() {
|
30534
30612
|
return `tinyint${this.config.unsigned ? " unsigned" : ""}`;
|
30535
30613
|
}
|
@@ -30540,18 +30618,18 @@ var init_tinyint = __esm({
|
|
30540
30618
|
return value;
|
30541
30619
|
}
|
30542
30620
|
};
|
30543
|
-
__publicField(MySqlTinyInt,
|
30621
|
+
__publicField(MySqlTinyInt, _a290, "MySqlTinyInt");
|
30544
30622
|
}
|
30545
30623
|
});
|
30546
30624
|
|
30547
30625
|
// ../drizzle-orm/dist/mysql-core/columns/varbinary.js
|
30548
|
-
var
|
30626
|
+
var _a291, _b217, MySqlVarBinaryBuilder, _a292, _b218, MySqlVarBinary;
|
30549
30627
|
var init_varbinary = __esm({
|
30550
30628
|
"../drizzle-orm/dist/mysql-core/columns/varbinary.js"() {
|
30551
30629
|
"use strict";
|
30552
30630
|
init_entity();
|
30553
30631
|
init_common4();
|
30554
|
-
MySqlVarBinaryBuilder = class extends (
|
30632
|
+
MySqlVarBinaryBuilder = class extends (_b217 = MySqlColumnBuilder, _a291 = entityKind, _b217) {
|
30555
30633
|
/** @internal */
|
30556
30634
|
constructor(name2, config) {
|
30557
30635
|
super(name2, "string", "MySqlVarBinary");
|
@@ -30565,8 +30643,8 @@ var init_varbinary = __esm({
|
|
30565
30643
|
);
|
30566
30644
|
}
|
30567
30645
|
};
|
30568
|
-
__publicField(MySqlVarBinaryBuilder,
|
30569
|
-
MySqlVarBinary = class extends (
|
30646
|
+
__publicField(MySqlVarBinaryBuilder, _a291, "MySqlVarBinaryBuilder");
|
30647
|
+
MySqlVarBinary = class extends (_b218 = MySqlColumn, _a292 = entityKind, _b218) {
|
30570
30648
|
constructor() {
|
30571
30649
|
super(...arguments);
|
30572
30650
|
__publicField(this, "length", this.config.length);
|
@@ -30575,18 +30653,18 @@ var init_varbinary = __esm({
|
|
30575
30653
|
return this.length === void 0 ? `varbinary` : `varbinary(${this.length})`;
|
30576
30654
|
}
|
30577
30655
|
};
|
30578
|
-
__publicField(MySqlVarBinary,
|
30656
|
+
__publicField(MySqlVarBinary, _a292, "MySqlVarBinary");
|
30579
30657
|
}
|
30580
30658
|
});
|
30581
30659
|
|
30582
30660
|
// ../drizzle-orm/dist/mysql-core/columns/varchar.js
|
30583
|
-
var
|
30661
|
+
var _a293, _b219, MySqlVarCharBuilder, _a294, _b220, MySqlVarChar;
|
30584
30662
|
var init_varchar2 = __esm({
|
30585
30663
|
"../drizzle-orm/dist/mysql-core/columns/varchar.js"() {
|
30586
30664
|
"use strict";
|
30587
30665
|
init_entity();
|
30588
30666
|
init_common4();
|
30589
|
-
MySqlVarCharBuilder = class extends (
|
30667
|
+
MySqlVarCharBuilder = class extends (_b219 = MySqlColumnBuilder, _a293 = entityKind, _b219) {
|
30590
30668
|
/** @internal */
|
30591
30669
|
constructor(name2, config) {
|
30592
30670
|
super(name2, "string", "MySqlVarChar");
|
@@ -30601,8 +30679,8 @@ var init_varchar2 = __esm({
|
|
30601
30679
|
);
|
30602
30680
|
}
|
30603
30681
|
};
|
30604
|
-
__publicField(MySqlVarCharBuilder,
|
30605
|
-
MySqlVarChar = class extends (
|
30682
|
+
__publicField(MySqlVarCharBuilder, _a293, "MySqlVarCharBuilder");
|
30683
|
+
MySqlVarChar = class extends (_b220 = MySqlColumn, _a294 = entityKind, _b220) {
|
30606
30684
|
constructor() {
|
30607
30685
|
super(...arguments);
|
30608
30686
|
__publicField(this, "length", this.config.length);
|
@@ -30612,18 +30690,18 @@ var init_varchar2 = __esm({
|
|
30612
30690
|
return this.length === void 0 ? `varchar` : `varchar(${this.length})`;
|
30613
30691
|
}
|
30614
30692
|
};
|
30615
|
-
__publicField(MySqlVarChar,
|
30693
|
+
__publicField(MySqlVarChar, _a294, "MySqlVarChar");
|
30616
30694
|
}
|
30617
30695
|
});
|
30618
30696
|
|
30619
30697
|
// ../drizzle-orm/dist/mysql-core/columns/year.js
|
30620
|
-
var
|
30698
|
+
var _a295, _b221, MySqlYearBuilder, _a296, _b222, MySqlYear;
|
30621
30699
|
var init_year = __esm({
|
30622
30700
|
"../drizzle-orm/dist/mysql-core/columns/year.js"() {
|
30623
30701
|
"use strict";
|
30624
30702
|
init_entity();
|
30625
30703
|
init_common4();
|
30626
|
-
MySqlYearBuilder = class extends (
|
30704
|
+
MySqlYearBuilder = class extends (_b221 = MySqlColumnBuilder, _a295 = entityKind, _b221) {
|
30627
30705
|
constructor(name2) {
|
30628
30706
|
super(name2, "number", "MySqlYear");
|
30629
30707
|
}
|
@@ -30632,13 +30710,13 @@ var init_year = __esm({
|
|
30632
30710
|
return new MySqlYear(table4, this.config);
|
30633
30711
|
}
|
30634
30712
|
};
|
30635
|
-
__publicField(MySqlYearBuilder,
|
30636
|
-
MySqlYear = class extends (
|
30713
|
+
__publicField(MySqlYearBuilder, _a295, "MySqlYearBuilder");
|
30714
|
+
MySqlYear = class extends (_b222 = MySqlColumn, _a296 = entityKind, _b222) {
|
30637
30715
|
getSQLType() {
|
30638
30716
|
return `year`;
|
30639
30717
|
}
|
30640
30718
|
};
|
30641
|
-
__publicField(MySqlYear,
|
30719
|
+
__publicField(MySqlYear, _a296, "MySqlYear");
|
30642
30720
|
}
|
30643
30721
|
});
|
30644
30722
|
|
@@ -30675,13 +30753,13 @@ var init_columns3 = __esm({
|
|
30675
30753
|
});
|
30676
30754
|
|
30677
30755
|
// ../drizzle-orm/dist/mysql-core/query-builders/delete.js
|
30678
|
-
var
|
30756
|
+
var _a297, _b223, MySqlDeleteBase;
|
30679
30757
|
var init_delete3 = __esm({
|
30680
30758
|
"../drizzle-orm/dist/mysql-core/query-builders/delete.js"() {
|
30681
30759
|
"use strict";
|
30682
30760
|
init_entity();
|
30683
30761
|
init_query_promise();
|
30684
|
-
MySqlDeleteBase = class extends (
|
30762
|
+
MySqlDeleteBase = class extends (_b223 = QueryPromise, _a297 = entityKind, _b223) {
|
30685
30763
|
constructor(table4, session, dialect7, withList) {
|
30686
30764
|
super();
|
30687
30765
|
__publicField(this, "config");
|
@@ -30751,12 +30829,12 @@ var init_delete3 = __esm({
|
|
30751
30829
|
return this;
|
30752
30830
|
}
|
30753
30831
|
};
|
30754
|
-
__publicField(MySqlDeleteBase,
|
30832
|
+
__publicField(MySqlDeleteBase, _a297, "MySqlDelete");
|
30755
30833
|
}
|
30756
30834
|
});
|
30757
30835
|
|
30758
30836
|
// ../drizzle-orm/dist/mysql-core/query-builders/insert.js
|
30759
|
-
var
|
30837
|
+
var _a298, MySqlInsertBuilder, _a299, _b224, MySqlInsertBase;
|
30760
30838
|
var init_insert3 = __esm({
|
30761
30839
|
"../drizzle-orm/dist/mysql-core/query-builders/insert.js"() {
|
30762
30840
|
"use strict";
|
@@ -30765,7 +30843,7 @@ var init_insert3 = __esm({
|
|
30765
30843
|
init_sql();
|
30766
30844
|
init_table();
|
30767
30845
|
init_utils2();
|
30768
|
-
|
30846
|
+
_a298 = entityKind;
|
30769
30847
|
MySqlInsertBuilder = class {
|
30770
30848
|
constructor(table4, session, dialect7) {
|
30771
30849
|
__publicField(this, "shouldIgnore", false);
|
@@ -30794,8 +30872,8 @@ var init_insert3 = __esm({
|
|
30794
30872
|
return new MySqlInsertBase(this.table, mappedValues, this.shouldIgnore, this.session, this.dialect);
|
30795
30873
|
}
|
30796
30874
|
};
|
30797
|
-
__publicField(MySqlInsertBuilder,
|
30798
|
-
MySqlInsertBase = class extends (
|
30875
|
+
__publicField(MySqlInsertBuilder, _a298, "MySqlInsertBuilder");
|
30876
|
+
MySqlInsertBase = class extends (_b224 = QueryPromise, _a299 = entityKind, _b224) {
|
30799
30877
|
constructor(table4, values, ignore, session, dialect7) {
|
30800
30878
|
super();
|
30801
30879
|
__publicField(this, "config");
|
@@ -30876,25 +30954,25 @@ var init_insert3 = __esm({
|
|
30876
30954
|
return this;
|
30877
30955
|
}
|
30878
30956
|
};
|
30879
|
-
__publicField(MySqlInsertBase,
|
30957
|
+
__publicField(MySqlInsertBase, _a299, "MySqlInsert");
|
30880
30958
|
}
|
30881
30959
|
});
|
30882
30960
|
|
30883
30961
|
// ../drizzle-orm/dist/mysql-core/view-base.js
|
30884
|
-
var
|
30962
|
+
var _a300, _b225, MySqlViewBase;
|
30885
30963
|
var init_view_base3 = __esm({
|
30886
30964
|
"../drizzle-orm/dist/mysql-core/view-base.js"() {
|
30887
30965
|
"use strict";
|
30888
30966
|
init_entity();
|
30889
30967
|
init_sql();
|
30890
|
-
MySqlViewBase = class extends (
|
30968
|
+
MySqlViewBase = class extends (_b225 = View, _a300 = entityKind, _b225) {
|
30891
30969
|
};
|
30892
|
-
__publicField(MySqlViewBase,
|
30970
|
+
__publicField(MySqlViewBase, _a300, "MySqlViewBase");
|
30893
30971
|
}
|
30894
30972
|
});
|
30895
30973
|
|
30896
30974
|
// ../drizzle-orm/dist/mysql-core/dialect.js
|
30897
|
-
var
|
30975
|
+
var _a301, MySqlDialect;
|
30898
30976
|
var init_dialect3 = __esm({
|
30899
30977
|
"../drizzle-orm/dist/mysql-core/dialect.js"() {
|
30900
30978
|
"use strict";
|
@@ -30912,7 +30990,7 @@ var init_dialect3 = __esm({
|
|
30912
30990
|
init_common4();
|
30913
30991
|
init_table4();
|
30914
30992
|
init_view_base3();
|
30915
|
-
|
30993
|
+
_a301 = entityKind;
|
30916
30994
|
MySqlDialect = class {
|
30917
30995
|
async migrate(migrations, session, config) {
|
30918
30996
|
const migrationsTable = config.migrationsTable ?? "__drizzle_migrations";
|
@@ -31688,7 +31766,7 @@ var init_dialect3 = __esm({
|
|
31688
31766
|
};
|
31689
31767
|
}
|
31690
31768
|
};
|
31691
|
-
__publicField(MySqlDialect,
|
31769
|
+
__publicField(MySqlDialect, _a301, "MySqlDialect");
|
31692
31770
|
}
|
31693
31771
|
});
|
31694
31772
|
|
@@ -31710,7 +31788,7 @@ function createSetOperator3(type, isAll) {
|
|
31710
31788
|
return leftSelect.addSetOperators(setOperators);
|
31711
31789
|
};
|
31712
31790
|
}
|
31713
|
-
var
|
31791
|
+
var _a302, MySqlSelectBuilder, _a303, _b226, MySqlSelectQueryBuilderBase, _a304, _b227, MySqlSelectBase, getMySqlSetOperators, union3, unionAll3, intersect3, intersectAll2, except3, exceptAll2;
|
31714
31792
|
var init_select4 = __esm({
|
31715
31793
|
"../drizzle-orm/dist/mysql-core/query-builders/select.js"() {
|
31716
31794
|
"use strict";
|
@@ -31725,7 +31803,7 @@ var init_select4 = __esm({
|
|
31725
31803
|
init_utils2();
|
31726
31804
|
init_view_common();
|
31727
31805
|
init_view_base3();
|
31728
|
-
|
31806
|
+
_a302 = entityKind;
|
31729
31807
|
MySqlSelectBuilder = class {
|
31730
31808
|
constructor(config) {
|
31731
31809
|
__publicField(this, "fields");
|
@@ -31770,8 +31848,8 @@ var init_select4 = __esm({
|
|
31770
31848
|
);
|
31771
31849
|
}
|
31772
31850
|
};
|
31773
|
-
__publicField(MySqlSelectBuilder,
|
31774
|
-
MySqlSelectQueryBuilderBase = class extends (
|
31851
|
+
__publicField(MySqlSelectBuilder, _a302, "MySqlSelectBuilder");
|
31852
|
+
MySqlSelectQueryBuilderBase = class extends (_b226 = TypedQueryBuilder, _a303 = entityKind, _b226) {
|
31775
31853
|
constructor({ table: table4, fields, isPartialSelect, session, dialect: dialect7, withList, distinct }) {
|
31776
31854
|
super();
|
31777
31855
|
__publicField(this, "_");
|
@@ -32372,8 +32450,8 @@ var init_select4 = __esm({
|
|
32372
32450
|
return this;
|
32373
32451
|
}
|
32374
32452
|
};
|
32375
|
-
__publicField(MySqlSelectQueryBuilderBase,
|
32376
|
-
MySqlSelectBase = class extends (
|
32453
|
+
__publicField(MySqlSelectQueryBuilderBase, _a303, "MySqlSelectQueryBuilder");
|
32454
|
+
MySqlSelectBase = class extends (_b227 = MySqlSelectQueryBuilderBase, _a304 = entityKind, _b227) {
|
32377
32455
|
constructor() {
|
32378
32456
|
super(...arguments);
|
32379
32457
|
__publicField(this, "execute", (placeholderValues) => {
|
@@ -32397,7 +32475,7 @@ var init_select4 = __esm({
|
|
32397
32475
|
return query;
|
32398
32476
|
}
|
32399
32477
|
};
|
32400
|
-
__publicField(MySqlSelectBase,
|
32478
|
+
__publicField(MySqlSelectBase, _a304, "MySqlSelect");
|
32401
32479
|
applyMixins(MySqlSelectBase, [QueryPromise]);
|
32402
32480
|
getMySqlSetOperators = () => ({
|
32403
32481
|
union: union3,
|
@@ -32417,7 +32495,7 @@ var init_select4 = __esm({
|
|
32417
32495
|
});
|
32418
32496
|
|
32419
32497
|
// ../drizzle-orm/dist/mysql-core/query-builders/query-builder.js
|
32420
|
-
var
|
32498
|
+
var _a305, QueryBuilder3;
|
32421
32499
|
var init_query_builder4 = __esm({
|
32422
32500
|
"../drizzle-orm/dist/mysql-core/query-builders/query-builder.js"() {
|
32423
32501
|
"use strict";
|
@@ -32426,7 +32504,7 @@ var init_query_builder4 = __esm({
|
|
32426
32504
|
init_selection_proxy();
|
32427
32505
|
init_subquery();
|
32428
32506
|
init_select4();
|
32429
|
-
|
32507
|
+
_a305 = entityKind;
|
32430
32508
|
QueryBuilder3 = class {
|
32431
32509
|
constructor() {
|
32432
32510
|
__publicField(this, "dialect");
|
@@ -32485,7 +32563,7 @@ var init_query_builder4 = __esm({
|
|
32485
32563
|
return this.dialect;
|
32486
32564
|
}
|
32487
32565
|
};
|
32488
|
-
__publicField(QueryBuilder3,
|
32566
|
+
__publicField(QueryBuilder3, _a305, "MySqlQueryBuilder");
|
32489
32567
|
}
|
32490
32568
|
});
|
32491
32569
|
|
@@ -32497,14 +32575,14 @@ var init_select_types3 = __esm({
|
|
32497
32575
|
});
|
32498
32576
|
|
32499
32577
|
// ../drizzle-orm/dist/mysql-core/query-builders/update.js
|
32500
|
-
var
|
32578
|
+
var _a306, MySqlUpdateBuilder, _a307, _b228, MySqlUpdateBase;
|
32501
32579
|
var init_update3 = __esm({
|
32502
32580
|
"../drizzle-orm/dist/mysql-core/query-builders/update.js"() {
|
32503
32581
|
"use strict";
|
32504
32582
|
init_entity();
|
32505
32583
|
init_query_promise();
|
32506
32584
|
init_utils2();
|
32507
|
-
|
32585
|
+
_a306 = entityKind;
|
32508
32586
|
MySqlUpdateBuilder = class {
|
32509
32587
|
constructor(table4, session, dialect7, withList) {
|
32510
32588
|
this.table = table4;
|
@@ -32516,8 +32594,8 @@ var init_update3 = __esm({
|
|
32516
32594
|
return new MySqlUpdateBase(this.table, mapUpdateSet(this.table, values), this.session, this.dialect, this.withList);
|
32517
32595
|
}
|
32518
32596
|
};
|
32519
|
-
__publicField(MySqlUpdateBuilder,
|
32520
|
-
MySqlUpdateBase = class extends (
|
32597
|
+
__publicField(MySqlUpdateBuilder, _a306, "MySqlUpdateBuilder");
|
32598
|
+
MySqlUpdateBase = class extends (_b228 = QueryPromise, _a307 = entityKind, _b228) {
|
32521
32599
|
constructor(table4, set, session, dialect7, withList) {
|
32522
32600
|
super();
|
32523
32601
|
__publicField(this, "config");
|
@@ -32590,7 +32668,7 @@ var init_update3 = __esm({
|
|
32590
32668
|
return this;
|
32591
32669
|
}
|
32592
32670
|
};
|
32593
|
-
__publicField(MySqlUpdateBase,
|
32671
|
+
__publicField(MySqlUpdateBase, _a307, "MySqlUpdate");
|
32594
32672
|
}
|
32595
32673
|
});
|
32596
32674
|
|
@@ -32608,14 +32686,14 @@ var init_query_builders3 = __esm({
|
|
32608
32686
|
});
|
32609
32687
|
|
32610
32688
|
// ../drizzle-orm/dist/mysql-core/query-builders/query.js
|
32611
|
-
var
|
32689
|
+
var _a308, RelationalQueryBuilder3, _a309, _b229, MySqlRelationalQuery;
|
32612
32690
|
var init_query3 = __esm({
|
32613
32691
|
"../drizzle-orm/dist/mysql-core/query-builders/query.js"() {
|
32614
32692
|
"use strict";
|
32615
32693
|
init_entity();
|
32616
32694
|
init_query_promise();
|
32617
32695
|
init_relations();
|
32618
|
-
|
32696
|
+
_a308 = entityKind;
|
32619
32697
|
RelationalQueryBuilder3 = class {
|
32620
32698
|
constructor(fullSchema, schema4, tableNamesMap, table4, tableConfig, dialect7, session, mode) {
|
32621
32699
|
this.fullSchema = fullSchema;
|
@@ -32656,8 +32734,8 @@ var init_query3 = __esm({
|
|
32656
32734
|
);
|
32657
32735
|
}
|
32658
32736
|
};
|
32659
|
-
__publicField(RelationalQueryBuilder3,
|
32660
|
-
MySqlRelationalQuery = class extends (
|
32737
|
+
__publicField(RelationalQueryBuilder3, _a308, "MySqlRelationalQueryBuilder");
|
32738
|
+
MySqlRelationalQuery = class extends (_b229 = QueryPromise, _a309 = entityKind, _b229) {
|
32661
32739
|
constructor(fullSchema, schema4, tableNamesMap, table4, tableConfig, dialect7, session, config, queryMode, mode) {
|
32662
32740
|
super();
|
32663
32741
|
this.fullSchema = fullSchema;
|
@@ -32721,12 +32799,12 @@ var init_query3 = __esm({
|
|
32721
32799
|
return this.prepare().execute();
|
32722
32800
|
}
|
32723
32801
|
};
|
32724
|
-
__publicField(MySqlRelationalQuery,
|
32802
|
+
__publicField(MySqlRelationalQuery, _a309, "MySqlRelationalQuery");
|
32725
32803
|
}
|
32726
32804
|
});
|
32727
32805
|
|
32728
32806
|
// ../drizzle-orm/dist/mysql-core/db.js
|
32729
|
-
var
|
32807
|
+
var _a310, MySqlDatabase;
|
32730
32808
|
var init_db3 = __esm({
|
32731
32809
|
"../drizzle-orm/dist/mysql-core/db.js"() {
|
32732
32810
|
"use strict";
|
@@ -32735,7 +32813,7 @@ var init_db3 = __esm({
|
|
32735
32813
|
init_subquery();
|
32736
32814
|
init_query_builders3();
|
32737
32815
|
init_query3();
|
32738
|
-
|
32816
|
+
_a310 = entityKind;
|
32739
32817
|
MySqlDatabase = class {
|
32740
32818
|
constructor(dialect7, session, schema4, mode) {
|
32741
32819
|
__publicField(this, "query");
|
@@ -32944,17 +33022,17 @@ var init_db3 = __esm({
|
|
32944
33022
|
return this.session.transaction(transaction, config);
|
32945
33023
|
}
|
32946
33024
|
};
|
32947
|
-
__publicField(MySqlDatabase,
|
33025
|
+
__publicField(MySqlDatabase, _a310, "MySqlDatabase");
|
32948
33026
|
}
|
32949
33027
|
});
|
32950
33028
|
|
32951
33029
|
// ../drizzle-orm/dist/mysql-core/indexes.js
|
32952
|
-
var
|
33030
|
+
var _a311, IndexBuilderOn3, _a312, IndexBuilder3, _a313, Index5;
|
32953
33031
|
var init_indexes3 = __esm({
|
32954
33032
|
"../drizzle-orm/dist/mysql-core/indexes.js"() {
|
32955
33033
|
"use strict";
|
32956
33034
|
init_entity();
|
32957
|
-
|
33035
|
+
_a311 = entityKind;
|
32958
33036
|
IndexBuilderOn3 = class {
|
32959
33037
|
constructor(name2, unique) {
|
32960
33038
|
this.name = name2;
|
@@ -32964,8 +33042,8 @@ var init_indexes3 = __esm({
|
|
32964
33042
|
return new IndexBuilder3(this.name, columns, this.unique);
|
32965
33043
|
}
|
32966
33044
|
};
|
32967
|
-
__publicField(IndexBuilderOn3,
|
32968
|
-
|
33045
|
+
__publicField(IndexBuilderOn3, _a311, "MySqlIndexBuilderOn");
|
33046
|
+
_a312 = entityKind;
|
32969
33047
|
IndexBuilder3 = class {
|
32970
33048
|
constructor(name2, columns, unique) {
|
32971
33049
|
/** @internal */
|
@@ -32993,26 +33071,26 @@ var init_indexes3 = __esm({
|
|
32993
33071
|
return new Index5(this.config, table4);
|
32994
33072
|
}
|
32995
33073
|
};
|
32996
|
-
__publicField(IndexBuilder3,
|
32997
|
-
|
33074
|
+
__publicField(IndexBuilder3, _a312, "MySqlIndexBuilder");
|
33075
|
+
_a313 = entityKind;
|
32998
33076
|
Index5 = class {
|
32999
33077
|
constructor(config, table4) {
|
33000
33078
|
__publicField(this, "config");
|
33001
33079
|
this.config = { ...config, table: table4 };
|
33002
33080
|
}
|
33003
33081
|
};
|
33004
|
-
__publicField(Index5,
|
33082
|
+
__publicField(Index5, _a313, "MySqlIndex");
|
33005
33083
|
}
|
33006
33084
|
});
|
33007
33085
|
|
33008
33086
|
// ../drizzle-orm/dist/mysql-core/primary-keys.js
|
33009
|
-
var
|
33087
|
+
var _a314, PrimaryKeyBuilder3, _a315, PrimaryKey3;
|
33010
33088
|
var init_primary_keys3 = __esm({
|
33011
33089
|
"../drizzle-orm/dist/mysql-core/primary-keys.js"() {
|
33012
33090
|
"use strict";
|
33013
33091
|
init_entity();
|
33014
33092
|
init_table4();
|
33015
|
-
|
33093
|
+
_a314 = entityKind;
|
33016
33094
|
PrimaryKeyBuilder3 = class {
|
33017
33095
|
constructor(columns, name2) {
|
33018
33096
|
/** @internal */
|
@@ -33027,8 +33105,8 @@ var init_primary_keys3 = __esm({
|
|
33027
33105
|
return new PrimaryKey3(table4, this.columns, this.name);
|
33028
33106
|
}
|
33029
33107
|
};
|
33030
|
-
__publicField(PrimaryKeyBuilder3,
|
33031
|
-
|
33108
|
+
__publicField(PrimaryKeyBuilder3, _a314, "MySqlPrimaryKeyBuilder");
|
33109
|
+
_a315 = entityKind;
|
33032
33110
|
PrimaryKey3 = class {
|
33033
33111
|
constructor(table4, columns, name2) {
|
33034
33112
|
__publicField(this, "columns");
|
@@ -33041,7 +33119,7 @@ var init_primary_keys3 = __esm({
|
|
33041
33119
|
return this.name ?? `${this.table[MySqlTable.Symbol.Name]}_${this.columns.map((column4) => column4.name).join("_")}_pk`;
|
33042
33120
|
}
|
33043
33121
|
};
|
33044
|
-
__publicField(PrimaryKey3,
|
33122
|
+
__publicField(PrimaryKey3, _a315, "MySqlPrimaryKey");
|
33045
33123
|
}
|
33046
33124
|
});
|
33047
33125
|
|
@@ -33061,7 +33139,7 @@ function mysqlViewWithSchema(name2, selection, schema4) {
|
|
33061
33139
|
}
|
33062
33140
|
return new ViewBuilder3(name2, schema4);
|
33063
33141
|
}
|
33064
|
-
var
|
33142
|
+
var _a316, ViewBuilderCore2, _a317, _b230, ViewBuilder3, _a318, _b231, ManualViewBuilder3, _a319, _b232, _c8, MySqlView;
|
33065
33143
|
var init_view3 = __esm({
|
33066
33144
|
"../drizzle-orm/dist/mysql-core/view.js"() {
|
33067
33145
|
"use strict";
|
@@ -33072,7 +33150,7 @@ var init_view3 = __esm({
|
|
33072
33150
|
init_table4();
|
33073
33151
|
init_view_base3();
|
33074
33152
|
init_view_common4();
|
33075
|
-
|
33153
|
+
_a316 = entityKind;
|
33076
33154
|
ViewBuilderCore2 = class {
|
33077
33155
|
constructor(name2, schema4) {
|
33078
33156
|
__publicField(this, "config", {});
|
@@ -33096,8 +33174,8 @@ var init_view3 = __esm({
|
|
33096
33174
|
return this;
|
33097
33175
|
}
|
33098
33176
|
};
|
33099
|
-
__publicField(ViewBuilderCore2,
|
33100
|
-
ViewBuilder3 = class extends (
|
33177
|
+
__publicField(ViewBuilderCore2, _a316, "MySqlViewBuilder");
|
33178
|
+
ViewBuilder3 = class extends (_b230 = ViewBuilderCore2, _a317 = entityKind, _b230) {
|
33101
33179
|
as(qb) {
|
33102
33180
|
if (typeof qb === "function") {
|
33103
33181
|
qb = qb(new QueryBuilder3());
|
@@ -33123,8 +33201,8 @@ var init_view3 = __esm({
|
|
33123
33201
|
);
|
33124
33202
|
}
|
33125
33203
|
};
|
33126
|
-
__publicField(ViewBuilder3,
|
33127
|
-
ManualViewBuilder3 = class extends (
|
33204
|
+
__publicField(ViewBuilder3, _a317, "MySqlViewBuilder");
|
33205
|
+
ManualViewBuilder3 = class extends (_b231 = ViewBuilderCore2, _a318 = entityKind, _b231) {
|
33128
33206
|
constructor(name2, columns, schema4) {
|
33129
33207
|
super(name2, schema4);
|
33130
33208
|
__publicField(this, "columns");
|
@@ -33169,27 +33247,27 @@ var init_view3 = __esm({
|
|
33169
33247
|
);
|
33170
33248
|
}
|
33171
33249
|
};
|
33172
|
-
__publicField(ManualViewBuilder3,
|
33173
|
-
MySqlView = class extends (_c8 = MySqlViewBase,
|
33250
|
+
__publicField(ManualViewBuilder3, _a318, "MySqlManualViewBuilder");
|
33251
|
+
MySqlView = class extends (_c8 = MySqlViewBase, _b232 = entityKind, _a319 = MySqlViewConfig, _c8) {
|
33174
33252
|
constructor({ mysqlConfig, config }) {
|
33175
33253
|
super(config);
|
33176
|
-
__publicField(this,
|
33254
|
+
__publicField(this, _a319);
|
33177
33255
|
this[MySqlViewConfig] = mysqlConfig;
|
33178
33256
|
}
|
33179
33257
|
};
|
33180
|
-
__publicField(MySqlView,
|
33258
|
+
__publicField(MySqlView, _b232, "MySqlView");
|
33181
33259
|
}
|
33182
33260
|
});
|
33183
33261
|
|
33184
33262
|
// ../drizzle-orm/dist/mysql-core/schema.js
|
33185
|
-
var
|
33263
|
+
var _a320, MySqlSchema5;
|
33186
33264
|
var init_schema2 = __esm({
|
33187
33265
|
"../drizzle-orm/dist/mysql-core/schema.js"() {
|
33188
33266
|
"use strict";
|
33189
33267
|
init_entity();
|
33190
33268
|
init_table4();
|
33191
33269
|
init_view3();
|
33192
|
-
|
33270
|
+
_a320 = entityKind;
|
33193
33271
|
MySqlSchema5 = class {
|
33194
33272
|
constructor(schemaName) {
|
33195
33273
|
__publicField(this, "table", (name2, columns, extraConfig) => {
|
@@ -33201,12 +33279,12 @@ var init_schema2 = __esm({
|
|
33201
33279
|
this.schemaName = schemaName;
|
33202
33280
|
}
|
33203
33281
|
};
|
33204
|
-
__publicField(MySqlSchema5,
|
33282
|
+
__publicField(MySqlSchema5, _a320, "MySqlSchema");
|
33205
33283
|
}
|
33206
33284
|
});
|
33207
33285
|
|
33208
33286
|
// ../drizzle-orm/dist/mysql-core/session.js
|
33209
|
-
var
|
33287
|
+
var _a321, MySqlPreparedQuery, _a322, MySqlSession, _a323, _b233, MySqlTransaction;
|
33210
33288
|
var init_session3 = __esm({
|
33211
33289
|
"../drizzle-orm/dist/mysql-core/session.js"() {
|
33212
33290
|
"use strict";
|
@@ -33214,15 +33292,15 @@ var init_session3 = __esm({
|
|
33214
33292
|
init_errors();
|
33215
33293
|
init_sql();
|
33216
33294
|
init_db3();
|
33217
|
-
|
33295
|
+
_a321 = entityKind;
|
33218
33296
|
MySqlPreparedQuery = class {
|
33219
33297
|
constructor() {
|
33220
33298
|
/** @internal */
|
33221
33299
|
__publicField(this, "joinsNotNullableMap");
|
33222
33300
|
}
|
33223
33301
|
};
|
33224
|
-
__publicField(MySqlPreparedQuery,
|
33225
|
-
|
33302
|
+
__publicField(MySqlPreparedQuery, _a321, "MySqlPreparedQuery");
|
33303
|
+
_a322 = entityKind;
|
33226
33304
|
MySqlSession = class {
|
33227
33305
|
constructor(dialect7) {
|
33228
33306
|
this.dialect = dialect7;
|
@@ -33251,8 +33329,8 @@ var init_session3 = __esm({
|
|
33251
33329
|
return parts.length ? sql`start transaction ${sql.raw(parts.join(" "))}` : void 0;
|
33252
33330
|
}
|
33253
33331
|
};
|
33254
|
-
__publicField(MySqlSession,
|
33255
|
-
MySqlTransaction = class extends (
|
33332
|
+
__publicField(MySqlSession, _a322, "MySqlSession");
|
33333
|
+
MySqlTransaction = class extends (_b233 = MySqlDatabase, _a323 = entityKind, _b233) {
|
33256
33334
|
constructor(dialect7, session, schema4, nestedIndex, mode) {
|
33257
33335
|
super(dialect7, session, schema4, mode);
|
33258
33336
|
this.schema = schema4;
|
@@ -33262,7 +33340,7 @@ var init_session3 = __esm({
|
|
33262
33340
|
throw new TransactionRollbackError();
|
33263
33341
|
}
|
33264
33342
|
};
|
33265
|
-
__publicField(MySqlTransaction,
|
33343
|
+
__publicField(MySqlTransaction, _a323, "MySqlTransaction");
|
33266
33344
|
}
|
33267
33345
|
});
|
33268
33346
|
|