drizzle-kit 0.24.1-3d751e8 → 0.24.1-4045fbc
Sign up to get free protection for your applications and to get access to all the features.
- package/api.js +476 -450
- package/api.mjs +476 -450
- package/bin.cjs +26 -113
- package/index.d.mts +4 -10
- package/index.d.ts +4 -10
- package/package.json +2 -2
- package/utils.js +0 -8
- package/utils.mjs +0 -7
package/api.mjs
CHANGED
@@ -3474,13 +3474,13 @@ function processCreateParams(params) {
|
|
3474
3474
|
if (errorMap2)
|
3475
3475
|
return { errorMap: errorMap2, description };
|
3476
3476
|
const customMap = (iss, ctx) => {
|
3477
|
-
var
|
3477
|
+
var _a321, _b230;
|
3478
3478
|
const { message } = params;
|
3479
3479
|
if (iss.code === "invalid_enum_value") {
|
3480
3480
|
return { message: message !== null && message !== void 0 ? message : ctx.defaultError };
|
3481
3481
|
}
|
3482
3482
|
if (typeof ctx.data === "undefined") {
|
3483
|
-
return { message: (
|
3483
|
+
return { message: (_a321 = message !== null && message !== void 0 ? message : required_error) !== null && _a321 !== void 0 ? _a321 : ctx.defaultError };
|
3484
3484
|
}
|
3485
3485
|
if (iss.code !== "invalid_type")
|
3486
3486
|
return { message: ctx.defaultError };
|
@@ -4146,11 +4146,11 @@ var init_lib = __esm({
|
|
4146
4146
|
throw result.error;
|
4147
4147
|
}
|
4148
4148
|
safeParse(data, params) {
|
4149
|
-
var
|
4149
|
+
var _a321;
|
4150
4150
|
const ctx = {
|
4151
4151
|
common: {
|
4152
4152
|
issues: [],
|
4153
|
-
async: (
|
4153
|
+
async: (_a321 = params === null || params === void 0 ? void 0 : params.async) !== null && _a321 !== void 0 ? _a321 : false,
|
4154
4154
|
contextualErrorMap: params === null || params === void 0 ? void 0 : params.errorMap
|
4155
4155
|
},
|
4156
4156
|
path: (params === null || params === void 0 ? void 0 : params.path) || [],
|
@@ -4472,7 +4472,7 @@ var init_lib = __esm({
|
|
4472
4472
|
} else if (check.kind === "url") {
|
4473
4473
|
try {
|
4474
4474
|
new URL(input.data);
|
4475
|
-
} catch (
|
4475
|
+
} catch (_a321) {
|
4476
4476
|
ctx = this._getOrReturnCtx(input, ctx);
|
4477
4477
|
addIssueToContext(ctx, {
|
4478
4478
|
validation: "url",
|
@@ -4642,7 +4642,7 @@ var init_lib = __esm({
|
|
4642
4642
|
return this._addCheck({ kind: "ip", ...errorUtil.errToObj(options) });
|
4643
4643
|
}
|
4644
4644
|
datetime(options) {
|
4645
|
-
var
|
4645
|
+
var _a321, _b230;
|
4646
4646
|
if (typeof options === "string") {
|
4647
4647
|
return this._addCheck({
|
4648
4648
|
kind: "datetime",
|
@@ -4655,7 +4655,7 @@ var init_lib = __esm({
|
|
4655
4655
|
return this._addCheck({
|
4656
4656
|
kind: "datetime",
|
4657
4657
|
precision: typeof (options === null || options === void 0 ? void 0 : options.precision) === "undefined" ? null : options === null || options === void 0 ? void 0 : options.precision,
|
4658
|
-
offset: (
|
4658
|
+
offset: (_a321 = options === null || options === void 0 ? void 0 : options.offset) !== null && _a321 !== void 0 ? _a321 : false,
|
4659
4659
|
local: (_b230 = options === null || options === void 0 ? void 0 : options.local) !== null && _b230 !== void 0 ? _b230 : false,
|
4660
4660
|
...errorUtil.errToObj(options === null || options === void 0 ? void 0 : options.message)
|
4661
4661
|
});
|
@@ -4819,11 +4819,11 @@ var init_lib = __esm({
|
|
4819
4819
|
}
|
4820
4820
|
};
|
4821
4821
|
ZodString.create = (params) => {
|
4822
|
-
var
|
4822
|
+
var _a321;
|
4823
4823
|
return new ZodString({
|
4824
4824
|
checks: [],
|
4825
4825
|
typeName: ZodFirstPartyTypeKind.ZodString,
|
4826
|
-
coerce: (
|
4826
|
+
coerce: (_a321 = params === null || params === void 0 ? void 0 : params.coerce) !== null && _a321 !== void 0 ? _a321 : false,
|
4827
4827
|
...processCreateParams(params)
|
4828
4828
|
});
|
4829
4829
|
};
|
@@ -5216,11 +5216,11 @@ var init_lib = __esm({
|
|
5216
5216
|
}
|
5217
5217
|
};
|
5218
5218
|
ZodBigInt.create = (params) => {
|
5219
|
-
var
|
5219
|
+
var _a321;
|
5220
5220
|
return new ZodBigInt({
|
5221
5221
|
checks: [],
|
5222
5222
|
typeName: ZodFirstPartyTypeKind.ZodBigInt,
|
5223
|
-
coerce: (
|
5223
|
+
coerce: (_a321 = params === null || params === void 0 ? void 0 : params.coerce) !== null && _a321 !== void 0 ? _a321 : false,
|
5224
5224
|
...processCreateParams(params)
|
5225
5225
|
});
|
5226
5226
|
};
|
@@ -5700,8 +5700,8 @@ var init_lib = __esm({
|
|
5700
5700
|
unknownKeys: "strict",
|
5701
5701
|
...message !== void 0 ? {
|
5702
5702
|
errorMap: (issue, ctx) => {
|
5703
|
-
var
|
5704
|
-
const defaultError = (_c9 = (_b230 = (
|
5703
|
+
var _a321, _b230, _c9, _d5;
|
5704
|
+
const defaultError = (_c9 = (_b230 = (_a321 = this._def).errorMap) === null || _b230 === void 0 ? void 0 : _b230.call(_a321, issue, ctx).message) !== null && _c9 !== void 0 ? _c9 : ctx.defaultError;
|
5705
5705
|
if (issue.code === "unrecognized_keys")
|
5706
5706
|
return {
|
5707
5707
|
message: (_d5 = errorUtil.errToObj(message).message) !== null && _d5 !== void 0 ? _d5 : defaultError
|
@@ -15870,7 +15870,7 @@ var init_schemaValidator = __esm({
|
|
15870
15870
|
});
|
15871
15871
|
|
15872
15872
|
// src/cli/validations/common.ts
|
15873
|
-
var sqliteDriversLiterals,
|
15873
|
+
var sqliteDriversLiterals, prefixes, prefix, sqliteDriver, postgresDriver, driver, configMigrations, configCommonSchema, casing, introspectParams, configIntrospectCliSchema, configGenerateSchema, configPushSchema;
|
15874
15874
|
var init_common = __esm({
|
15875
15875
|
"src/cli/validations/common.ts"() {
|
15876
15876
|
"use strict";
|
@@ -15882,10 +15882,6 @@ var init_common = __esm({
|
|
15882
15882
|
literalType("d1-http"),
|
15883
15883
|
literalType("expo")
|
15884
15884
|
];
|
15885
|
-
postgresqlDriversLiterals = [
|
15886
|
-
literalType("aws-data-api"),
|
15887
|
-
literalType("pglite")
|
15888
|
-
];
|
15889
15885
|
prefixes = [
|
15890
15886
|
"index",
|
15891
15887
|
"timestamp",
|
@@ -15898,7 +15894,7 @@ var init_common = __esm({
|
|
15898
15894
|
const _2 = "";
|
15899
15895
|
}
|
15900
15896
|
sqliteDriver = unionType(sqliteDriversLiterals);
|
15901
|
-
postgresDriver =
|
15897
|
+
postgresDriver = literalType("aws-data-api");
|
15902
15898
|
driver = unionType([sqliteDriver, postgresDriver]);
|
15903
15899
|
configMigrations = objectType({
|
15904
15900
|
table: stringType().optional(),
|
@@ -18533,8 +18529,8 @@ var init_sql = __esm({
|
|
18533
18529
|
sql2.param = param2;
|
18534
18530
|
})(sql || (sql = {}));
|
18535
18531
|
((SQL2) => {
|
18536
|
-
var
|
18537
|
-
|
18532
|
+
var _a321;
|
18533
|
+
_a321 = entityKind;
|
18538
18534
|
const _Aliased = class _Aliased {
|
18539
18535
|
constructor(sql2, fieldAlias) {
|
18540
18536
|
/** @internal */
|
@@ -18550,7 +18546,7 @@ var init_sql = __esm({
|
|
18550
18546
|
return new _Aliased(this.sql, this.fieldAlias);
|
18551
18547
|
}
|
18552
18548
|
};
|
18553
|
-
__publicField(_Aliased,
|
18549
|
+
__publicField(_Aliased, _a321, "SQL.Aliased");
|
18554
18550
|
let Aliased = _Aliased;
|
18555
18551
|
SQL2.Aliased = Aliased;
|
18556
18552
|
})(SQL || (SQL = {}));
|
@@ -24154,6 +24150,34 @@ var init_indexes = __esm({
|
|
24154
24150
|
}
|
24155
24151
|
});
|
24156
24152
|
|
24153
|
+
// ../drizzle-orm/dist/pg-core/policies.js
|
24154
|
+
var _a145, PgPolicy;
|
24155
|
+
var init_policies = __esm({
|
24156
|
+
"../drizzle-orm/dist/pg-core/policies.js"() {
|
24157
|
+
"use strict";
|
24158
|
+
init_entity();
|
24159
|
+
_a145 = entityKind;
|
24160
|
+
PgPolicy = class {
|
24161
|
+
constructor(name2, config) {
|
24162
|
+
__publicField(this, "as");
|
24163
|
+
__publicField(this, "for");
|
24164
|
+
__publicField(this, "to");
|
24165
|
+
__publicField(this, "using");
|
24166
|
+
__publicField(this, "withCheck");
|
24167
|
+
this.name = name2;
|
24168
|
+
if (config) {
|
24169
|
+
this.as = config.as;
|
24170
|
+
this.for = config.for;
|
24171
|
+
this.to = config.to;
|
24172
|
+
this.using = config.using;
|
24173
|
+
this.withCheck = config.withCheck;
|
24174
|
+
}
|
24175
|
+
}
|
24176
|
+
};
|
24177
|
+
__publicField(PgPolicy, _a145, "PgPolicy");
|
24178
|
+
}
|
24179
|
+
});
|
24180
|
+
|
24157
24181
|
// ../drizzle-orm/dist/pg-core/sequence.js
|
24158
24182
|
function pgSequenceWithSchema(name2, options, schema4) {
|
24159
24183
|
return new PgSequence(name2, options, schema4);
|
@@ -24161,12 +24185,12 @@ function pgSequenceWithSchema(name2, options, schema4) {
|
|
24161
24185
|
function isPgSequence(obj) {
|
24162
24186
|
return is(obj, PgSequence);
|
24163
24187
|
}
|
24164
|
-
var
|
24188
|
+
var _a146, PgSequence;
|
24165
24189
|
var init_sequence = __esm({
|
24166
24190
|
"../drizzle-orm/dist/pg-core/sequence.js"() {
|
24167
24191
|
"use strict";
|
24168
24192
|
init_entity();
|
24169
|
-
|
24193
|
+
_a146 = entityKind;
|
24170
24194
|
PgSequence = class {
|
24171
24195
|
constructor(seqName, seqOptions, schema4) {
|
24172
24196
|
this.seqName = seqName;
|
@@ -24174,7 +24198,7 @@ var init_sequence = __esm({
|
|
24174
24198
|
this.schema = schema4;
|
24175
24199
|
}
|
24176
24200
|
};
|
24177
|
-
__publicField(PgSequence,
|
24201
|
+
__publicField(PgSequence, _a146, "PgSequence");
|
24178
24202
|
}
|
24179
24203
|
});
|
24180
24204
|
|
@@ -24200,7 +24224,7 @@ function pgMaterializedViewWithSchema(name2, selection, schema4) {
|
|
24200
24224
|
}
|
24201
24225
|
return new MaterializedViewBuilder(name2, schema4);
|
24202
24226
|
}
|
24203
|
-
var
|
24227
|
+
var _a147, DefaultViewBuilderCore, _a148, _b106, ViewBuilder, _a149, _b107, ManualViewBuilder, _a150, MaterializedViewBuilderCore, _a151, _b108, MaterializedViewBuilder, _a152, _b109, ManualMaterializedViewBuilder, _a153, _b110, _c3, PgView, PgMaterializedViewConfig, _a154, _b111, _c4, PgMaterializedView;
|
24204
24228
|
var init_view = __esm({
|
24205
24229
|
"../drizzle-orm/dist/pg-core/view.js"() {
|
24206
24230
|
"use strict";
|
@@ -24211,7 +24235,7 @@ var init_view = __esm({
|
|
24211
24235
|
init_table2();
|
24212
24236
|
init_view_base();
|
24213
24237
|
init_view_common2();
|
24214
|
-
|
24238
|
+
_a147 = entityKind;
|
24215
24239
|
DefaultViewBuilderCore = class {
|
24216
24240
|
constructor(name2, schema4) {
|
24217
24241
|
__publicField(this, "config", {});
|
@@ -24223,8 +24247,8 @@ var init_view = __esm({
|
|
24223
24247
|
return this;
|
24224
24248
|
}
|
24225
24249
|
};
|
24226
|
-
__publicField(DefaultViewBuilderCore,
|
24227
|
-
ViewBuilder = class extends (_b106 = DefaultViewBuilderCore,
|
24250
|
+
__publicField(DefaultViewBuilderCore, _a147, "PgDefaultViewBuilderCore");
|
24251
|
+
ViewBuilder = class extends (_b106 = DefaultViewBuilderCore, _a148 = entityKind, _b106) {
|
24228
24252
|
as(qb) {
|
24229
24253
|
if (typeof qb === "function") {
|
24230
24254
|
qb = qb(new QueryBuilder());
|
@@ -24250,8 +24274,8 @@ var init_view = __esm({
|
|
24250
24274
|
);
|
24251
24275
|
}
|
24252
24276
|
};
|
24253
|
-
__publicField(ViewBuilder,
|
24254
|
-
ManualViewBuilder = class extends (_b107 = DefaultViewBuilderCore,
|
24277
|
+
__publicField(ViewBuilder, _a148, "PgViewBuilder");
|
24278
|
+
ManualViewBuilder = class extends (_b107 = DefaultViewBuilderCore, _a149 = entityKind, _b107) {
|
24255
24279
|
constructor(name2, columns, schema4) {
|
24256
24280
|
super(name2, schema4);
|
24257
24281
|
__publicField(this, "columns");
|
@@ -24296,8 +24320,8 @@ var init_view = __esm({
|
|
24296
24320
|
);
|
24297
24321
|
}
|
24298
24322
|
};
|
24299
|
-
__publicField(ManualViewBuilder,
|
24300
|
-
|
24323
|
+
__publicField(ManualViewBuilder, _a149, "PgManualViewBuilder");
|
24324
|
+
_a150 = entityKind;
|
24301
24325
|
MaterializedViewBuilderCore = class {
|
24302
24326
|
constructor(name2, schema4) {
|
24303
24327
|
__publicField(this, "config", {});
|
@@ -24321,8 +24345,8 @@ var init_view = __esm({
|
|
24321
24345
|
return this;
|
24322
24346
|
}
|
24323
24347
|
};
|
24324
|
-
__publicField(MaterializedViewBuilderCore,
|
24325
|
-
MaterializedViewBuilder = class extends (_b108 = MaterializedViewBuilderCore,
|
24348
|
+
__publicField(MaterializedViewBuilderCore, _a150, "PgMaterializedViewBuilderCore");
|
24349
|
+
MaterializedViewBuilder = class extends (_b108 = MaterializedViewBuilderCore, _a151 = entityKind, _b108) {
|
24326
24350
|
as(qb) {
|
24327
24351
|
if (typeof qb === "function") {
|
24328
24352
|
qb = qb(new QueryBuilder());
|
@@ -24353,8 +24377,8 @@ var init_view = __esm({
|
|
24353
24377
|
);
|
24354
24378
|
}
|
24355
24379
|
};
|
24356
|
-
__publicField(MaterializedViewBuilder,
|
24357
|
-
ManualMaterializedViewBuilder = class extends (_b109 = MaterializedViewBuilderCore,
|
24380
|
+
__publicField(MaterializedViewBuilder, _a151, "PgMaterializedViewBuilder");
|
24381
|
+
ManualMaterializedViewBuilder = class extends (_b109 = MaterializedViewBuilderCore, _a152 = entityKind, _b109) {
|
24358
24382
|
constructor(name2, columns, schema4) {
|
24359
24383
|
super(name2, schema4);
|
24360
24384
|
__publicField(this, "columns");
|
@@ -24399,11 +24423,11 @@ var init_view = __esm({
|
|
24399
24423
|
);
|
24400
24424
|
}
|
24401
24425
|
};
|
24402
|
-
__publicField(ManualMaterializedViewBuilder,
|
24403
|
-
PgView = class extends (_c3 = PgViewBase, _b110 = entityKind,
|
24426
|
+
__publicField(ManualMaterializedViewBuilder, _a152, "PgManualMaterializedViewBuilder");
|
24427
|
+
PgView = class extends (_c3 = PgViewBase, _b110 = entityKind, _a153 = PgViewConfig, _c3) {
|
24404
24428
|
constructor({ pgConfig, config }) {
|
24405
24429
|
super(config);
|
24406
|
-
__publicField(this,
|
24430
|
+
__publicField(this, _a153);
|
24407
24431
|
if (pgConfig) {
|
24408
24432
|
this[PgViewConfig] = {
|
24409
24433
|
with: pgConfig.with
|
@@ -24413,10 +24437,10 @@ var init_view = __esm({
|
|
24413
24437
|
};
|
24414
24438
|
__publicField(PgView, _b110, "PgView");
|
24415
24439
|
PgMaterializedViewConfig = Symbol.for("drizzle:PgMaterializedViewConfig");
|
24416
|
-
PgMaterializedView = class extends (_c4 = PgViewBase, _b111 = entityKind,
|
24440
|
+
PgMaterializedView = class extends (_c4 = PgViewBase, _b111 = entityKind, _a154 = PgMaterializedViewConfig, _c4) {
|
24417
24441
|
constructor({ pgConfig, config }) {
|
24418
24442
|
super(config);
|
24419
|
-
__publicField(this,
|
24443
|
+
__publicField(this, _a154);
|
24420
24444
|
this[PgMaterializedViewConfig] = {
|
24421
24445
|
with: pgConfig?.with,
|
24422
24446
|
using: pgConfig?.using,
|
@@ -24430,7 +24454,7 @@ var init_view = __esm({
|
|
24430
24454
|
});
|
24431
24455
|
|
24432
24456
|
// ../drizzle-orm/dist/pg-core/schema.js
|
24433
|
-
var
|
24457
|
+
var _a155, PgSchema5;
|
24434
24458
|
var init_schema = __esm({
|
24435
24459
|
"../drizzle-orm/dist/pg-core/schema.js"() {
|
24436
24460
|
"use strict";
|
@@ -24440,7 +24464,7 @@ var init_schema = __esm({
|
|
24440
24464
|
init_sequence();
|
24441
24465
|
init_table2();
|
24442
24466
|
init_view();
|
24443
|
-
|
24467
|
+
_a155 = entityKind;
|
24444
24468
|
PgSchema5 = class {
|
24445
24469
|
constructor(schemaName) {
|
24446
24470
|
__publicField(this, "table", (name2, columns, extraConfig) => {
|
@@ -24467,12 +24491,12 @@ var init_schema = __esm({
|
|
24467
24491
|
return true;
|
24468
24492
|
}
|
24469
24493
|
};
|
24470
|
-
__publicField(PgSchema5,
|
24494
|
+
__publicField(PgSchema5, _a155, "PgSchema");
|
24471
24495
|
}
|
24472
24496
|
});
|
24473
24497
|
|
24474
24498
|
// ../drizzle-orm/dist/pg-core/session.js
|
24475
|
-
var
|
24499
|
+
var _a156, PgPreparedQuery, _a157, PgSession, _a158, _b112, PgTransaction;
|
24476
24500
|
var init_session = __esm({
|
24477
24501
|
"../drizzle-orm/dist/pg-core/session.js"() {
|
24478
24502
|
"use strict";
|
@@ -24481,7 +24505,7 @@ var init_session = __esm({
|
|
24481
24505
|
init_sql2();
|
24482
24506
|
init_tracing();
|
24483
24507
|
init_db();
|
24484
|
-
|
24508
|
+
_a156 = entityKind;
|
24485
24509
|
PgPreparedQuery = class {
|
24486
24510
|
constructor(query) {
|
24487
24511
|
/** @internal */
|
@@ -24495,8 +24519,8 @@ var init_session = __esm({
|
|
24495
24519
|
return response;
|
24496
24520
|
}
|
24497
24521
|
};
|
24498
|
-
__publicField(PgPreparedQuery,
|
24499
|
-
|
24522
|
+
__publicField(PgPreparedQuery, _a156, "PgPreparedQuery");
|
24523
|
+
_a157 = entityKind;
|
24500
24524
|
PgSession = class {
|
24501
24525
|
constructor(dialect7) {
|
24502
24526
|
this.dialect = dialect7;
|
@@ -24523,8 +24547,8 @@ var init_session = __esm({
|
|
24523
24547
|
).all();
|
24524
24548
|
}
|
24525
24549
|
};
|
24526
|
-
__publicField(PgSession,
|
24527
|
-
PgTransaction = class extends (_b112 = PgDatabase,
|
24550
|
+
__publicField(PgSession, _a157, "PgSession");
|
24551
|
+
PgTransaction = class extends (_b112 = PgDatabase, _a158 = entityKind, _b112) {
|
24528
24552
|
constructor(dialect7, session, schema4, nestedIndex = 0) {
|
24529
24553
|
super(dialect7, session, schema4);
|
24530
24554
|
this.schema = schema4;
|
@@ -24551,7 +24575,7 @@ var init_session = __esm({
|
|
24551
24575
|
return this.session.execute(sql`set transaction ${this.getTransactionConfigSQL(config)}`);
|
24552
24576
|
}
|
24553
24577
|
};
|
24554
|
-
__publicField(PgTransaction,
|
24578
|
+
__publicField(PgTransaction, _a158, "PgTransaction");
|
24555
24579
|
}
|
24556
24580
|
});
|
24557
24581
|
|
@@ -24572,6 +24596,7 @@ function getTableConfig(table4) {
|
|
24572
24596
|
const uniqueConstraints = [];
|
24573
24597
|
const name2 = table4[Table2.Symbol.Name];
|
24574
24598
|
const schema4 = table4[Table2.Symbol.Schema];
|
24599
|
+
const policies = [];
|
24575
24600
|
const extraConfigBuilder = table4[PgTable.Symbol.ExtraConfigBuilder];
|
24576
24601
|
if (extraConfigBuilder !== void 0) {
|
24577
24602
|
const extraConfig = extraConfigBuilder(table4[Table2.Symbol.ExtraConfigColumns]);
|
@@ -24586,6 +24611,8 @@ function getTableConfig(table4) {
|
|
24586
24611
|
primaryKeys.push(builder.build(table4));
|
24587
24612
|
} else if (is(builder, ForeignKeyBuilder)) {
|
24588
24613
|
foreignKeys.push(builder.build(table4));
|
24614
|
+
} else if (is(builder, PgPolicy)) {
|
24615
|
+
policies.push(builder);
|
24589
24616
|
}
|
24590
24617
|
}
|
24591
24618
|
}
|
@@ -24597,7 +24624,8 @@ function getTableConfig(table4) {
|
|
24597
24624
|
primaryKeys,
|
24598
24625
|
uniqueConstraints,
|
24599
24626
|
name: name2,
|
24600
|
-
schema: schema4
|
24627
|
+
schema: schema4,
|
24628
|
+
policies
|
24601
24629
|
};
|
24602
24630
|
}
|
24603
24631
|
var init_utils4 = __esm({
|
@@ -24609,6 +24637,7 @@ var init_utils4 = __esm({
|
|
24609
24637
|
init_checks();
|
24610
24638
|
init_foreign_keys();
|
24611
24639
|
init_indexes();
|
24640
|
+
init_policies();
|
24612
24641
|
init_primary_keys();
|
24613
24642
|
init_unique_constraint();
|
24614
24643
|
}
|
@@ -24633,6 +24662,7 @@ var init_pg_core = __esm({
|
|
24633
24662
|
init_dialect();
|
24634
24663
|
init_foreign_keys();
|
24635
24664
|
init_indexes();
|
24665
|
+
init_policies();
|
24636
24666
|
init_primary_keys();
|
24637
24667
|
init_query_builders();
|
24638
24668
|
init_schema();
|
@@ -25663,12 +25693,12 @@ var init_alias3 = __esm({
|
|
25663
25693
|
});
|
25664
25694
|
|
25665
25695
|
// ../drizzle-orm/dist/sqlite-core/checks.js
|
25666
|
-
var
|
25696
|
+
var _a159, CheckBuilder2, _a160, Check2;
|
25667
25697
|
var init_checks2 = __esm({
|
25668
25698
|
"../drizzle-orm/dist/sqlite-core/checks.js"() {
|
25669
25699
|
"use strict";
|
25670
25700
|
init_entity();
|
25671
|
-
|
25701
|
+
_a159 = entityKind;
|
25672
25702
|
CheckBuilder2 = class {
|
25673
25703
|
constructor(name2, value) {
|
25674
25704
|
__publicField(this, "brand");
|
@@ -25679,8 +25709,8 @@ var init_checks2 = __esm({
|
|
25679
25709
|
return new Check2(table4, this);
|
25680
25710
|
}
|
25681
25711
|
};
|
25682
|
-
__publicField(CheckBuilder2,
|
25683
|
-
|
25712
|
+
__publicField(CheckBuilder2, _a159, "SQLiteCheckBuilder");
|
25713
|
+
_a160 = entityKind;
|
25684
25714
|
Check2 = class {
|
25685
25715
|
constructor(table4, builder) {
|
25686
25716
|
__publicField(this, "name");
|
@@ -25690,7 +25720,7 @@ var init_checks2 = __esm({
|
|
25690
25720
|
this.value = builder.value;
|
25691
25721
|
}
|
25692
25722
|
};
|
25693
|
-
__publicField(Check2,
|
25723
|
+
__publicField(Check2, _a160, "SQLiteCheck");
|
25694
25724
|
}
|
25695
25725
|
});
|
25696
25726
|
|
@@ -25713,14 +25743,14 @@ function sqliteTableBase(name2, columns, extraConfig, schema4, baseName = name2)
|
|
25713
25743
|
}
|
25714
25744
|
return table4;
|
25715
25745
|
}
|
25716
|
-
var InlineForeignKeys2,
|
25746
|
+
var InlineForeignKeys2, _a161, _b113, _c5, _d3, _e2, SQLiteTable, sqliteTable;
|
25717
25747
|
var init_table3 = __esm({
|
25718
25748
|
"../drizzle-orm/dist/sqlite-core/table.js"() {
|
25719
25749
|
"use strict";
|
25720
25750
|
init_entity();
|
25721
25751
|
init_table();
|
25722
25752
|
InlineForeignKeys2 = Symbol.for("drizzle:SQLiteInlineForeignKeys");
|
25723
|
-
SQLiteTable = class extends (_e2 = Table2, _d3 = entityKind, _c5 = Table2.Symbol.Columns, _b113 = InlineForeignKeys2,
|
25753
|
+
SQLiteTable = class extends (_e2 = Table2, _d3 = entityKind, _c5 = Table2.Symbol.Columns, _b113 = InlineForeignKeys2, _a161 = Table2.Symbol.ExtraConfigBuilder, _e2) {
|
25724
25754
|
constructor() {
|
25725
25755
|
super(...arguments);
|
25726
25756
|
/** @internal */
|
@@ -25728,7 +25758,7 @@ var init_table3 = __esm({
|
|
25728
25758
|
/** @internal */
|
25729
25759
|
__publicField(this, _b113, []);
|
25730
25760
|
/** @internal */
|
25731
|
-
__publicField(this,
|
25761
|
+
__publicField(this, _a161);
|
25732
25762
|
}
|
25733
25763
|
};
|
25734
25764
|
__publicField(SQLiteTable, _d3, "SQLiteTable");
|
@@ -25743,13 +25773,13 @@ var init_table3 = __esm({
|
|
25743
25773
|
});
|
25744
25774
|
|
25745
25775
|
// ../drizzle-orm/dist/sqlite-core/foreign-keys.js
|
25746
|
-
var
|
25776
|
+
var _a162, ForeignKeyBuilder2, _a163, ForeignKey2;
|
25747
25777
|
var init_foreign_keys2 = __esm({
|
25748
25778
|
"../drizzle-orm/dist/sqlite-core/foreign-keys.js"() {
|
25749
25779
|
"use strict";
|
25750
25780
|
init_entity();
|
25751
25781
|
init_table3();
|
25752
|
-
|
25782
|
+
_a162 = entityKind;
|
25753
25783
|
ForeignKeyBuilder2 = class {
|
25754
25784
|
constructor(config, actions) {
|
25755
25785
|
/** @internal */
|
@@ -25780,8 +25810,8 @@ var init_foreign_keys2 = __esm({
|
|
25780
25810
|
return new ForeignKey2(table4, this);
|
25781
25811
|
}
|
25782
25812
|
};
|
25783
|
-
__publicField(ForeignKeyBuilder2,
|
25784
|
-
|
25813
|
+
__publicField(ForeignKeyBuilder2, _a162, "SQLiteForeignKeyBuilder");
|
25814
|
+
_a163 = entityKind;
|
25785
25815
|
ForeignKey2 = class {
|
25786
25816
|
constructor(table4, builder) {
|
25787
25817
|
__publicField(this, "reference");
|
@@ -25805,7 +25835,7 @@ var init_foreign_keys2 = __esm({
|
|
25805
25835
|
return name2 ?? `${chunks.join("_")}_fk`;
|
25806
25836
|
}
|
25807
25837
|
};
|
25808
|
-
__publicField(ForeignKey2,
|
25838
|
+
__publicField(ForeignKey2, _a163, "SQLiteForeignKey");
|
25809
25839
|
}
|
25810
25840
|
});
|
25811
25841
|
|
@@ -25813,13 +25843,13 @@ var init_foreign_keys2 = __esm({
|
|
25813
25843
|
function uniqueKeyName2(table4, columns) {
|
25814
25844
|
return `${table4[SQLiteTable.Symbol.Name]}_${columns.join("_")}_unique`;
|
25815
25845
|
}
|
25816
|
-
var
|
25846
|
+
var _a164, UniqueConstraintBuilder2, _a165, UniqueOnConstraintBuilder2, _a166, UniqueConstraint2;
|
25817
25847
|
var init_unique_constraint2 = __esm({
|
25818
25848
|
"../drizzle-orm/dist/sqlite-core/unique-constraint.js"() {
|
25819
25849
|
"use strict";
|
25820
25850
|
init_entity();
|
25821
25851
|
init_table3();
|
25822
|
-
|
25852
|
+
_a164 = entityKind;
|
25823
25853
|
UniqueConstraintBuilder2 = class {
|
25824
25854
|
constructor(columns, name2) {
|
25825
25855
|
/** @internal */
|
@@ -25832,8 +25862,8 @@ var init_unique_constraint2 = __esm({
|
|
25832
25862
|
return new UniqueConstraint2(table4, this.columns, this.name);
|
25833
25863
|
}
|
25834
25864
|
};
|
25835
|
-
__publicField(UniqueConstraintBuilder2,
|
25836
|
-
|
25865
|
+
__publicField(UniqueConstraintBuilder2, _a164, "SQLiteUniqueConstraintBuilder");
|
25866
|
+
_a165 = entityKind;
|
25837
25867
|
UniqueOnConstraintBuilder2 = class {
|
25838
25868
|
constructor(name2) {
|
25839
25869
|
/** @internal */
|
@@ -25844,8 +25874,8 @@ var init_unique_constraint2 = __esm({
|
|
25844
25874
|
return new UniqueConstraintBuilder2(columns, this.name);
|
25845
25875
|
}
|
25846
25876
|
};
|
25847
|
-
__publicField(UniqueOnConstraintBuilder2,
|
25848
|
-
|
25877
|
+
__publicField(UniqueOnConstraintBuilder2, _a165, "SQLiteUniqueOnConstraintBuilder");
|
25878
|
+
_a166 = entityKind;
|
25849
25879
|
UniqueConstraint2 = class {
|
25850
25880
|
constructor(table4, columns, name2) {
|
25851
25881
|
__publicField(this, "columns");
|
@@ -25858,12 +25888,12 @@ var init_unique_constraint2 = __esm({
|
|
25858
25888
|
return this.name;
|
25859
25889
|
}
|
25860
25890
|
};
|
25861
|
-
__publicField(UniqueConstraint2,
|
25891
|
+
__publicField(UniqueConstraint2, _a166, "SQLiteUniqueConstraint");
|
25862
25892
|
}
|
25863
25893
|
});
|
25864
25894
|
|
25865
25895
|
// ../drizzle-orm/dist/sqlite-core/columns/common.js
|
25866
|
-
var
|
25896
|
+
var _a167, _b114, SQLiteColumnBuilder, _a168, _b115, SQLiteColumn;
|
25867
25897
|
var init_common3 = __esm({
|
25868
25898
|
"../drizzle-orm/dist/sqlite-core/columns/common.js"() {
|
25869
25899
|
"use strict";
|
@@ -25872,7 +25902,7 @@ var init_common3 = __esm({
|
|
25872
25902
|
init_entity();
|
25873
25903
|
init_foreign_keys2();
|
25874
25904
|
init_unique_constraint2();
|
25875
|
-
SQLiteColumnBuilder = class extends (_b114 = ColumnBuilder,
|
25905
|
+
SQLiteColumnBuilder = class extends (_b114 = ColumnBuilder, _a167 = entityKind, _b114) {
|
25876
25906
|
constructor() {
|
25877
25907
|
super(...arguments);
|
25878
25908
|
__publicField(this, "foreignKeyConfigs", []);
|
@@ -25913,8 +25943,8 @@ var init_common3 = __esm({
|
|
25913
25943
|
});
|
25914
25944
|
}
|
25915
25945
|
};
|
25916
|
-
__publicField(SQLiteColumnBuilder,
|
25917
|
-
SQLiteColumn = class extends (_b115 = Column2,
|
25946
|
+
__publicField(SQLiteColumnBuilder, _a167, "SQLiteColumnBuilder");
|
25947
|
+
SQLiteColumn = class extends (_b115 = Column2, _a168 = entityKind, _b115) {
|
25918
25948
|
constructor(table4, config) {
|
25919
25949
|
if (!config.uniqueName) {
|
25920
25950
|
config.uniqueName = uniqueKeyName2(table4, [config.name]);
|
@@ -25923,18 +25953,18 @@ var init_common3 = __esm({
|
|
25923
25953
|
this.table = table4;
|
25924
25954
|
}
|
25925
25955
|
};
|
25926
|
-
__publicField(SQLiteColumn,
|
25956
|
+
__publicField(SQLiteColumn, _a168, "SQLiteColumn");
|
25927
25957
|
}
|
25928
25958
|
});
|
25929
25959
|
|
25930
25960
|
// ../drizzle-orm/dist/sqlite-core/columns/blob.js
|
25931
|
-
var
|
25961
|
+
var _a169, _b116, SQLiteBigIntBuilder, _a170, _b117, SQLiteBigInt, _a171, _b118, SQLiteBlobJsonBuilder, _a172, _b119, SQLiteBlobJson, _a173, _b120, SQLiteBlobBufferBuilder, _a174, _b121, SQLiteBlobBuffer;
|
25932
25962
|
var init_blob = __esm({
|
25933
25963
|
"../drizzle-orm/dist/sqlite-core/columns/blob.js"() {
|
25934
25964
|
"use strict";
|
25935
25965
|
init_entity();
|
25936
25966
|
init_common3();
|
25937
|
-
SQLiteBigIntBuilder = class extends (_b116 = SQLiteColumnBuilder,
|
25967
|
+
SQLiteBigIntBuilder = class extends (_b116 = SQLiteColumnBuilder, _a169 = entityKind, _b116) {
|
25938
25968
|
constructor(name2) {
|
25939
25969
|
super(name2, "bigint", "SQLiteBigInt");
|
25940
25970
|
}
|
@@ -25943,8 +25973,8 @@ var init_blob = __esm({
|
|
25943
25973
|
return new SQLiteBigInt(table4, this.config);
|
25944
25974
|
}
|
25945
25975
|
};
|
25946
|
-
__publicField(SQLiteBigIntBuilder,
|
25947
|
-
SQLiteBigInt = class extends (_b117 = SQLiteColumn,
|
25976
|
+
__publicField(SQLiteBigIntBuilder, _a169, "SQLiteBigIntBuilder");
|
25977
|
+
SQLiteBigInt = class extends (_b117 = SQLiteColumn, _a170 = entityKind, _b117) {
|
25948
25978
|
getSQLType() {
|
25949
25979
|
return "blob";
|
25950
25980
|
}
|
@@ -25955,8 +25985,8 @@ var init_blob = __esm({
|
|
25955
25985
|
return Buffer.from(value.toString());
|
25956
25986
|
}
|
25957
25987
|
};
|
25958
|
-
__publicField(SQLiteBigInt,
|
25959
|
-
SQLiteBlobJsonBuilder = class extends (_b118 = SQLiteColumnBuilder,
|
25988
|
+
__publicField(SQLiteBigInt, _a170, "SQLiteBigInt");
|
25989
|
+
SQLiteBlobJsonBuilder = class extends (_b118 = SQLiteColumnBuilder, _a171 = entityKind, _b118) {
|
25960
25990
|
constructor(name2) {
|
25961
25991
|
super(name2, "json", "SQLiteBlobJson");
|
25962
25992
|
}
|
@@ -25968,8 +25998,8 @@ var init_blob = __esm({
|
|
25968
25998
|
);
|
25969
25999
|
}
|
25970
26000
|
};
|
25971
|
-
__publicField(SQLiteBlobJsonBuilder,
|
25972
|
-
SQLiteBlobJson = class extends (_b119 = SQLiteColumn,
|
26001
|
+
__publicField(SQLiteBlobJsonBuilder, _a171, "SQLiteBlobJsonBuilder");
|
26002
|
+
SQLiteBlobJson = class extends (_b119 = SQLiteColumn, _a172 = entityKind, _b119) {
|
25973
26003
|
getSQLType() {
|
25974
26004
|
return "blob";
|
25975
26005
|
}
|
@@ -25980,8 +26010,8 @@ var init_blob = __esm({
|
|
25980
26010
|
return Buffer.from(JSON.stringify(value));
|
25981
26011
|
}
|
25982
26012
|
};
|
25983
|
-
__publicField(SQLiteBlobJson,
|
25984
|
-
SQLiteBlobBufferBuilder = class extends (_b120 = SQLiteColumnBuilder,
|
26013
|
+
__publicField(SQLiteBlobJson, _a172, "SQLiteBlobJson");
|
26014
|
+
SQLiteBlobBufferBuilder = class extends (_b120 = SQLiteColumnBuilder, _a173 = entityKind, _b120) {
|
25985
26015
|
constructor(name2) {
|
25986
26016
|
super(name2, "buffer", "SQLiteBlobBuffer");
|
25987
26017
|
}
|
@@ -25990,24 +26020,24 @@ var init_blob = __esm({
|
|
25990
26020
|
return new SQLiteBlobBuffer(table4, this.config);
|
25991
26021
|
}
|
25992
26022
|
};
|
25993
|
-
__publicField(SQLiteBlobBufferBuilder,
|
25994
|
-
SQLiteBlobBuffer = class extends (_b121 = SQLiteColumn,
|
26023
|
+
__publicField(SQLiteBlobBufferBuilder, _a173, "SQLiteBlobBufferBuilder");
|
26024
|
+
SQLiteBlobBuffer = class extends (_b121 = SQLiteColumn, _a174 = entityKind, _b121) {
|
25995
26025
|
getSQLType() {
|
25996
26026
|
return "blob";
|
25997
26027
|
}
|
25998
26028
|
};
|
25999
|
-
__publicField(SQLiteBlobBuffer,
|
26029
|
+
__publicField(SQLiteBlobBuffer, _a174, "SQLiteBlobBuffer");
|
26000
26030
|
}
|
26001
26031
|
});
|
26002
26032
|
|
26003
26033
|
// ../drizzle-orm/dist/sqlite-core/columns/custom.js
|
26004
|
-
var
|
26034
|
+
var _a175, _b122, SQLiteCustomColumnBuilder, _a176, _b123, SQLiteCustomColumn;
|
26005
26035
|
var init_custom2 = __esm({
|
26006
26036
|
"../drizzle-orm/dist/sqlite-core/columns/custom.js"() {
|
26007
26037
|
"use strict";
|
26008
26038
|
init_entity();
|
26009
26039
|
init_common3();
|
26010
|
-
SQLiteCustomColumnBuilder = class extends (_b122 = SQLiteColumnBuilder,
|
26040
|
+
SQLiteCustomColumnBuilder = class extends (_b122 = SQLiteColumnBuilder, _a175 = entityKind, _b122) {
|
26011
26041
|
constructor(name2, fieldConfig, customTypeParams) {
|
26012
26042
|
super(name2, "custom", "SQLiteCustomColumn");
|
26013
26043
|
this.config.fieldConfig = fieldConfig;
|
@@ -26021,8 +26051,8 @@ var init_custom2 = __esm({
|
|
26021
26051
|
);
|
26022
26052
|
}
|
26023
26053
|
};
|
26024
|
-
__publicField(SQLiteCustomColumnBuilder,
|
26025
|
-
SQLiteCustomColumn = class extends (_b123 = SQLiteColumn,
|
26054
|
+
__publicField(SQLiteCustomColumnBuilder, _a175, "SQLiteCustomColumnBuilder");
|
26055
|
+
SQLiteCustomColumn = class extends (_b123 = SQLiteColumn, _a176 = entityKind, _b123) {
|
26026
26056
|
constructor(table4, config) {
|
26027
26057
|
super(table4, config);
|
26028
26058
|
__publicField(this, "sqlName");
|
@@ -26042,19 +26072,19 @@ var init_custom2 = __esm({
|
|
26042
26072
|
return typeof this.mapTo === "function" ? this.mapTo(value) : value;
|
26043
26073
|
}
|
26044
26074
|
};
|
26045
|
-
__publicField(SQLiteCustomColumn,
|
26075
|
+
__publicField(SQLiteCustomColumn, _a176, "SQLiteCustomColumn");
|
26046
26076
|
}
|
26047
26077
|
});
|
26048
26078
|
|
26049
26079
|
// ../drizzle-orm/dist/sqlite-core/columns/integer.js
|
26050
|
-
var
|
26080
|
+
var _a177, _b124, SQLiteBaseIntegerBuilder, _a178, _b125, SQLiteBaseInteger, _a179, _b126, SQLiteIntegerBuilder, _a180, _b127, SQLiteInteger, _a181, _b128, SQLiteTimestampBuilder, _a182, _b129, SQLiteTimestamp, _a183, _b130, SQLiteBooleanBuilder, _a184, _b131, SQLiteBoolean;
|
26051
26081
|
var init_integer2 = __esm({
|
26052
26082
|
"../drizzle-orm/dist/sqlite-core/columns/integer.js"() {
|
26053
26083
|
"use strict";
|
26054
26084
|
init_entity();
|
26055
26085
|
init_sql();
|
26056
26086
|
init_common3();
|
26057
|
-
SQLiteBaseIntegerBuilder = class extends (_b124 = SQLiteColumnBuilder,
|
26087
|
+
SQLiteBaseIntegerBuilder = class extends (_b124 = SQLiteColumnBuilder, _a177 = entityKind, _b124) {
|
26058
26088
|
constructor(name2, dataType, columnType) {
|
26059
26089
|
super(name2, dataType, columnType);
|
26060
26090
|
this.config.autoIncrement = false;
|
@@ -26067,8 +26097,8 @@ var init_integer2 = __esm({
|
|
26067
26097
|
return super.primaryKey();
|
26068
26098
|
}
|
26069
26099
|
};
|
26070
|
-
__publicField(SQLiteBaseIntegerBuilder,
|
26071
|
-
SQLiteBaseInteger = class extends (_b125 = SQLiteColumn,
|
26100
|
+
__publicField(SQLiteBaseIntegerBuilder, _a177, "SQLiteBaseIntegerBuilder");
|
26101
|
+
SQLiteBaseInteger = class extends (_b125 = SQLiteColumn, _a178 = entityKind, _b125) {
|
26072
26102
|
constructor() {
|
26073
26103
|
super(...arguments);
|
26074
26104
|
__publicField(this, "autoIncrement", this.config.autoIncrement);
|
@@ -26077,8 +26107,8 @@ var init_integer2 = __esm({
|
|
26077
26107
|
return "integer";
|
26078
26108
|
}
|
26079
26109
|
};
|
26080
|
-
__publicField(SQLiteBaseInteger,
|
26081
|
-
SQLiteIntegerBuilder = class extends (_b126 = SQLiteBaseIntegerBuilder,
|
26110
|
+
__publicField(SQLiteBaseInteger, _a178, "SQLiteBaseInteger");
|
26111
|
+
SQLiteIntegerBuilder = class extends (_b126 = SQLiteBaseIntegerBuilder, _a179 = entityKind, _b126) {
|
26082
26112
|
constructor(name2) {
|
26083
26113
|
super(name2, "number", "SQLiteInteger");
|
26084
26114
|
}
|
@@ -26089,11 +26119,11 @@ var init_integer2 = __esm({
|
|
26089
26119
|
);
|
26090
26120
|
}
|
26091
26121
|
};
|
26092
|
-
__publicField(SQLiteIntegerBuilder,
|
26093
|
-
SQLiteInteger = class extends (_b127 = SQLiteBaseInteger,
|
26122
|
+
__publicField(SQLiteIntegerBuilder, _a179, "SQLiteIntegerBuilder");
|
26123
|
+
SQLiteInteger = class extends (_b127 = SQLiteBaseInteger, _a180 = entityKind, _b127) {
|
26094
26124
|
};
|
26095
|
-
__publicField(SQLiteInteger,
|
26096
|
-
SQLiteTimestampBuilder = class extends (_b128 = SQLiteBaseIntegerBuilder,
|
26125
|
+
__publicField(SQLiteInteger, _a180, "SQLiteInteger");
|
26126
|
+
SQLiteTimestampBuilder = class extends (_b128 = SQLiteBaseIntegerBuilder, _a181 = entityKind, _b128) {
|
26097
26127
|
constructor(name2, mode) {
|
26098
26128
|
super(name2, "date", "SQLiteTimestamp");
|
26099
26129
|
this.config.mode = mode;
|
@@ -26113,8 +26143,8 @@ var init_integer2 = __esm({
|
|
26113
26143
|
);
|
26114
26144
|
}
|
26115
26145
|
};
|
26116
|
-
__publicField(SQLiteTimestampBuilder,
|
26117
|
-
SQLiteTimestamp = class extends (_b129 = SQLiteBaseInteger,
|
26146
|
+
__publicField(SQLiteTimestampBuilder, _a181, "SQLiteTimestampBuilder");
|
26147
|
+
SQLiteTimestamp = class extends (_b129 = SQLiteBaseInteger, _a182 = entityKind, _b129) {
|
26118
26148
|
constructor() {
|
26119
26149
|
super(...arguments);
|
26120
26150
|
__publicField(this, "mode", this.config.mode);
|
@@ -26133,8 +26163,8 @@ var init_integer2 = __esm({
|
|
26133
26163
|
return unix;
|
26134
26164
|
}
|
26135
26165
|
};
|
26136
|
-
__publicField(SQLiteTimestamp,
|
26137
|
-
SQLiteBooleanBuilder = class extends (_b130 = SQLiteBaseIntegerBuilder,
|
26166
|
+
__publicField(SQLiteTimestamp, _a182, "SQLiteTimestamp");
|
26167
|
+
SQLiteBooleanBuilder = class extends (_b130 = SQLiteBaseIntegerBuilder, _a183 = entityKind, _b130) {
|
26138
26168
|
constructor(name2, mode) {
|
26139
26169
|
super(name2, "boolean", "SQLiteBoolean");
|
26140
26170
|
this.config.mode = mode;
|
@@ -26146,8 +26176,8 @@ var init_integer2 = __esm({
|
|
26146
26176
|
);
|
26147
26177
|
}
|
26148
26178
|
};
|
26149
|
-
__publicField(SQLiteBooleanBuilder,
|
26150
|
-
SQLiteBoolean = class extends (_b131 = SQLiteBaseInteger,
|
26179
|
+
__publicField(SQLiteBooleanBuilder, _a183, "SQLiteBooleanBuilder");
|
26180
|
+
SQLiteBoolean = class extends (_b131 = SQLiteBaseInteger, _a184 = entityKind, _b131) {
|
26151
26181
|
constructor() {
|
26152
26182
|
super(...arguments);
|
26153
26183
|
__publicField(this, "mode", this.config.mode);
|
@@ -26159,18 +26189,18 @@ var init_integer2 = __esm({
|
|
26159
26189
|
return value ? 1 : 0;
|
26160
26190
|
}
|
26161
26191
|
};
|
26162
|
-
__publicField(SQLiteBoolean,
|
26192
|
+
__publicField(SQLiteBoolean, _a184, "SQLiteBoolean");
|
26163
26193
|
}
|
26164
26194
|
});
|
26165
26195
|
|
26166
26196
|
// ../drizzle-orm/dist/sqlite-core/columns/numeric.js
|
26167
|
-
var
|
26197
|
+
var _a185, _b132, SQLiteNumericBuilder, _a186, _b133, SQLiteNumeric;
|
26168
26198
|
var init_numeric2 = __esm({
|
26169
26199
|
"../drizzle-orm/dist/sqlite-core/columns/numeric.js"() {
|
26170
26200
|
"use strict";
|
26171
26201
|
init_entity();
|
26172
26202
|
init_common3();
|
26173
|
-
SQLiteNumericBuilder = class extends (_b132 = SQLiteColumnBuilder,
|
26203
|
+
SQLiteNumericBuilder = class extends (_b132 = SQLiteColumnBuilder, _a185 = entityKind, _b132) {
|
26174
26204
|
constructor(name2) {
|
26175
26205
|
super(name2, "string", "SQLiteNumeric");
|
26176
26206
|
}
|
@@ -26182,24 +26212,24 @@ var init_numeric2 = __esm({
|
|
26182
26212
|
);
|
26183
26213
|
}
|
26184
26214
|
};
|
26185
|
-
__publicField(SQLiteNumericBuilder,
|
26186
|
-
SQLiteNumeric = class extends (_b133 = SQLiteColumn,
|
26215
|
+
__publicField(SQLiteNumericBuilder, _a185, "SQLiteNumericBuilder");
|
26216
|
+
SQLiteNumeric = class extends (_b133 = SQLiteColumn, _a186 = entityKind, _b133) {
|
26187
26217
|
getSQLType() {
|
26188
26218
|
return "numeric";
|
26189
26219
|
}
|
26190
26220
|
};
|
26191
|
-
__publicField(SQLiteNumeric,
|
26221
|
+
__publicField(SQLiteNumeric, _a186, "SQLiteNumeric");
|
26192
26222
|
}
|
26193
26223
|
});
|
26194
26224
|
|
26195
26225
|
// ../drizzle-orm/dist/sqlite-core/columns/real.js
|
26196
|
-
var
|
26226
|
+
var _a187, _b134, SQLiteRealBuilder, _a188, _b135, SQLiteReal;
|
26197
26227
|
var init_real2 = __esm({
|
26198
26228
|
"../drizzle-orm/dist/sqlite-core/columns/real.js"() {
|
26199
26229
|
"use strict";
|
26200
26230
|
init_entity();
|
26201
26231
|
init_common3();
|
26202
|
-
SQLiteRealBuilder = class extends (_b134 = SQLiteColumnBuilder,
|
26232
|
+
SQLiteRealBuilder = class extends (_b134 = SQLiteColumnBuilder, _a187 = entityKind, _b134) {
|
26203
26233
|
constructor(name2) {
|
26204
26234
|
super(name2, "number", "SQLiteReal");
|
26205
26235
|
}
|
@@ -26208,24 +26238,24 @@ var init_real2 = __esm({
|
|
26208
26238
|
return new SQLiteReal(table4, this.config);
|
26209
26239
|
}
|
26210
26240
|
};
|
26211
|
-
__publicField(SQLiteRealBuilder,
|
26212
|
-
SQLiteReal = class extends (_b135 = SQLiteColumn,
|
26241
|
+
__publicField(SQLiteRealBuilder, _a187, "SQLiteRealBuilder");
|
26242
|
+
SQLiteReal = class extends (_b135 = SQLiteColumn, _a188 = entityKind, _b135) {
|
26213
26243
|
getSQLType() {
|
26214
26244
|
return "real";
|
26215
26245
|
}
|
26216
26246
|
};
|
26217
|
-
__publicField(SQLiteReal,
|
26247
|
+
__publicField(SQLiteReal, _a188, "SQLiteReal");
|
26218
26248
|
}
|
26219
26249
|
});
|
26220
26250
|
|
26221
26251
|
// ../drizzle-orm/dist/sqlite-core/columns/text.js
|
26222
|
-
var
|
26252
|
+
var _a189, _b136, SQLiteTextBuilder, _a190, _b137, SQLiteText, _a191, _b138, SQLiteTextJsonBuilder, _a192, _b139, SQLiteTextJson;
|
26223
26253
|
var init_text2 = __esm({
|
26224
26254
|
"../drizzle-orm/dist/sqlite-core/columns/text.js"() {
|
26225
26255
|
"use strict";
|
26226
26256
|
init_entity();
|
26227
26257
|
init_common3();
|
26228
|
-
SQLiteTextBuilder = class extends (_b136 = SQLiteColumnBuilder,
|
26258
|
+
SQLiteTextBuilder = class extends (_b136 = SQLiteColumnBuilder, _a189 = entityKind, _b136) {
|
26229
26259
|
constructor(name2, config) {
|
26230
26260
|
super(name2, "string", "SQLiteText");
|
26231
26261
|
this.config.enumValues = config.enum;
|
@@ -26236,8 +26266,8 @@ var init_text2 = __esm({
|
|
26236
26266
|
return new SQLiteText(table4, this.config);
|
26237
26267
|
}
|
26238
26268
|
};
|
26239
|
-
__publicField(SQLiteTextBuilder,
|
26240
|
-
SQLiteText = class extends (_b137 = SQLiteColumn,
|
26269
|
+
__publicField(SQLiteTextBuilder, _a189, "SQLiteTextBuilder");
|
26270
|
+
SQLiteText = class extends (_b137 = SQLiteColumn, _a190 = entityKind, _b137) {
|
26241
26271
|
constructor(table4, config) {
|
26242
26272
|
super(table4, config);
|
26243
26273
|
__publicField(this, "enumValues", this.config.enumValues);
|
@@ -26247,8 +26277,8 @@ var init_text2 = __esm({
|
|
26247
26277
|
return `text${this.config.length ? `(${this.config.length})` : ""}`;
|
26248
26278
|
}
|
26249
26279
|
};
|
26250
|
-
__publicField(SQLiteText,
|
26251
|
-
SQLiteTextJsonBuilder = class extends (_b138 = SQLiteColumnBuilder,
|
26280
|
+
__publicField(SQLiteText, _a190, "SQLiteText");
|
26281
|
+
SQLiteTextJsonBuilder = class extends (_b138 = SQLiteColumnBuilder, _a191 = entityKind, _b138) {
|
26252
26282
|
constructor(name2) {
|
26253
26283
|
super(name2, "json", "SQLiteTextJson");
|
26254
26284
|
}
|
@@ -26260,8 +26290,8 @@ var init_text2 = __esm({
|
|
26260
26290
|
);
|
26261
26291
|
}
|
26262
26292
|
};
|
26263
|
-
__publicField(SQLiteTextJsonBuilder,
|
26264
|
-
SQLiteTextJson = class extends (_b139 = SQLiteColumn,
|
26293
|
+
__publicField(SQLiteTextJsonBuilder, _a191, "SQLiteTextJsonBuilder");
|
26294
|
+
SQLiteTextJson = class extends (_b139 = SQLiteColumn, _a192 = entityKind, _b139) {
|
26265
26295
|
getSQLType() {
|
26266
26296
|
return "text";
|
26267
26297
|
}
|
@@ -26272,7 +26302,7 @@ var init_text2 = __esm({
|
|
26272
26302
|
return JSON.stringify(value);
|
26273
26303
|
}
|
26274
26304
|
};
|
26275
|
-
__publicField(SQLiteTextJson,
|
26305
|
+
__publicField(SQLiteTextJson, _a192, "SQLiteTextJson");
|
26276
26306
|
}
|
26277
26307
|
});
|
26278
26308
|
|
@@ -26291,7 +26321,7 @@ var init_columns2 = __esm({
|
|
26291
26321
|
});
|
26292
26322
|
|
26293
26323
|
// ../drizzle-orm/dist/sqlite-core/query-builders/delete.js
|
26294
|
-
var
|
26324
|
+
var _a193, _b140, SQLiteDeleteBase;
|
26295
26325
|
var init_delete2 = __esm({
|
26296
26326
|
"../drizzle-orm/dist/sqlite-core/query-builders/delete.js"() {
|
26297
26327
|
"use strict";
|
@@ -26299,7 +26329,7 @@ var init_delete2 = __esm({
|
|
26299
26329
|
init_query_promise();
|
26300
26330
|
init_table3();
|
26301
26331
|
init_utils2();
|
26302
|
-
SQLiteDeleteBase = class extends (_b140 = QueryPromise,
|
26332
|
+
SQLiteDeleteBase = class extends (_b140 = QueryPromise, _a193 = entityKind, _b140) {
|
26303
26333
|
constructor(table4, session, dialect7, withList) {
|
26304
26334
|
super();
|
26305
26335
|
/** @internal */
|
@@ -26385,12 +26415,12 @@ var init_delete2 = __esm({
|
|
26385
26415
|
return this;
|
26386
26416
|
}
|
26387
26417
|
};
|
26388
|
-
__publicField(SQLiteDeleteBase,
|
26418
|
+
__publicField(SQLiteDeleteBase, _a193, "SQLiteDelete");
|
26389
26419
|
}
|
26390
26420
|
});
|
26391
26421
|
|
26392
26422
|
// ../drizzle-orm/dist/sqlite-core/query-builders/insert.js
|
26393
|
-
var
|
26423
|
+
var _a194, SQLiteInsertBuilder, _a195, _b141, SQLiteInsertBase;
|
26394
26424
|
var init_insert2 = __esm({
|
26395
26425
|
"../drizzle-orm/dist/sqlite-core/query-builders/insert.js"() {
|
26396
26426
|
"use strict";
|
@@ -26400,7 +26430,7 @@ var init_insert2 = __esm({
|
|
26400
26430
|
init_table3();
|
26401
26431
|
init_table();
|
26402
26432
|
init_utils2();
|
26403
|
-
|
26433
|
+
_a194 = entityKind;
|
26404
26434
|
SQLiteInsertBuilder = class {
|
26405
26435
|
constructor(table4, session, dialect7, withList) {
|
26406
26436
|
this.table = table4;
|
@@ -26425,8 +26455,8 @@ var init_insert2 = __esm({
|
|
26425
26455
|
return new SQLiteInsertBase(this.table, mappedValues, this.session, this.dialect, this.withList);
|
26426
26456
|
}
|
26427
26457
|
};
|
26428
|
-
__publicField(SQLiteInsertBuilder,
|
26429
|
-
SQLiteInsertBase = class extends (_b141 = QueryPromise,
|
26458
|
+
__publicField(SQLiteInsertBuilder, _a194, "SQLiteInsertBuilder");
|
26459
|
+
SQLiteInsertBase = class extends (_b141 = QueryPromise, _a195 = entityKind, _b141) {
|
26430
26460
|
constructor(table4, values, session, dialect7, withList) {
|
26431
26461
|
super();
|
26432
26462
|
/** @internal */
|
@@ -26553,25 +26583,25 @@ var init_insert2 = __esm({
|
|
26553
26583
|
return this;
|
26554
26584
|
}
|
26555
26585
|
};
|
26556
|
-
__publicField(SQLiteInsertBase,
|
26586
|
+
__publicField(SQLiteInsertBase, _a195, "SQLiteInsert");
|
26557
26587
|
}
|
26558
26588
|
});
|
26559
26589
|
|
26560
26590
|
// ../drizzle-orm/dist/sqlite-core/view-base.js
|
26561
|
-
var
|
26591
|
+
var _a196, _b142, SQLiteViewBase;
|
26562
26592
|
var init_view_base2 = __esm({
|
26563
26593
|
"../drizzle-orm/dist/sqlite-core/view-base.js"() {
|
26564
26594
|
"use strict";
|
26565
26595
|
init_entity();
|
26566
26596
|
init_sql();
|
26567
|
-
SQLiteViewBase = class extends (_b142 = View,
|
26597
|
+
SQLiteViewBase = class extends (_b142 = View, _a196 = entityKind, _b142) {
|
26568
26598
|
};
|
26569
|
-
__publicField(SQLiteViewBase,
|
26599
|
+
__publicField(SQLiteViewBase, _a196, "SQLiteViewBase");
|
26570
26600
|
}
|
26571
26601
|
});
|
26572
26602
|
|
26573
26603
|
// ../drizzle-orm/dist/sqlite-core/dialect.js
|
26574
|
-
var
|
26604
|
+
var _a197, SQLiteDialect, _a198, _b143, SQLiteSyncDialect, _a199, _b144, SQLiteAsyncDialect;
|
26575
26605
|
var init_dialect2 = __esm({
|
26576
26606
|
"../drizzle-orm/dist/sqlite-core/dialect.js"() {
|
26577
26607
|
"use strict";
|
@@ -26589,7 +26619,7 @@ var init_dialect2 = __esm({
|
|
26589
26619
|
init_utils2();
|
26590
26620
|
init_view_common();
|
26591
26621
|
init_view_base2();
|
26592
|
-
|
26622
|
+
_a197 = entityKind;
|
26593
26623
|
SQLiteDialect = class {
|
26594
26624
|
escapeName(name2) {
|
26595
26625
|
return `"${name2}"`;
|
@@ -27096,8 +27126,8 @@ var init_dialect2 = __esm({
|
|
27096
27126
|
};
|
27097
27127
|
}
|
27098
27128
|
};
|
27099
|
-
__publicField(SQLiteDialect,
|
27100
|
-
SQLiteSyncDialect = class extends (_b143 = SQLiteDialect,
|
27129
|
+
__publicField(SQLiteDialect, _a197, "SQLiteDialect");
|
27130
|
+
SQLiteSyncDialect = class extends (_b143 = SQLiteDialect, _a198 = entityKind, _b143) {
|
27101
27131
|
migrate(migrations, session, config) {
|
27102
27132
|
const migrationsTable = config === void 0 ? "__drizzle_migrations" : typeof config === "string" ? "__drizzle_migrations" : config.migrationsTable ?? "__drizzle_migrations";
|
27103
27133
|
const migrationTableCreate = sql`
|
@@ -27131,8 +27161,8 @@ var init_dialect2 = __esm({
|
|
27131
27161
|
}
|
27132
27162
|
}
|
27133
27163
|
};
|
27134
|
-
__publicField(SQLiteSyncDialect,
|
27135
|
-
SQLiteAsyncDialect = class extends (_b144 = SQLiteDialect,
|
27164
|
+
__publicField(SQLiteSyncDialect, _a198, "SQLiteSyncDialect");
|
27165
|
+
SQLiteAsyncDialect = class extends (_b144 = SQLiteDialect, _a199 = entityKind, _b144) {
|
27136
27166
|
async migrate(migrations, session, config) {
|
27137
27167
|
const migrationsTable = config === void 0 ? "__drizzle_migrations" : typeof config === "string" ? "__drizzle_migrations" : config.migrationsTable ?? "__drizzle_migrations";
|
27138
27168
|
const migrationTableCreate = sql`
|
@@ -27161,7 +27191,7 @@ var init_dialect2 = __esm({
|
|
27161
27191
|
});
|
27162
27192
|
}
|
27163
27193
|
};
|
27164
|
-
__publicField(SQLiteAsyncDialect,
|
27194
|
+
__publicField(SQLiteAsyncDialect, _a199, "SQLiteAsyncDialect");
|
27165
27195
|
}
|
27166
27196
|
});
|
27167
27197
|
|
@@ -27183,7 +27213,7 @@ function createSetOperator2(type, isAll) {
|
|
27183
27213
|
return leftSelect.addSetOperators(setOperators);
|
27184
27214
|
};
|
27185
27215
|
}
|
27186
|
-
var
|
27216
|
+
var _a200, SQLiteSelectBuilder, _a201, _b145, SQLiteSelectQueryBuilderBase, _a202, _b146, SQLiteSelectBase, getSQLiteSetOperators, union2, unionAll2, intersect2, except2;
|
27187
27217
|
var init_select3 = __esm({
|
27188
27218
|
"../drizzle-orm/dist/sqlite-core/query-builders/select.js"() {
|
27189
27219
|
"use strict";
|
@@ -27197,7 +27227,7 @@ var init_select3 = __esm({
|
|
27197
27227
|
init_utils2();
|
27198
27228
|
init_view_common();
|
27199
27229
|
init_view_base2();
|
27200
|
-
|
27230
|
+
_a200 = entityKind;
|
27201
27231
|
SQLiteSelectBuilder = class {
|
27202
27232
|
constructor(config) {
|
27203
27233
|
__publicField(this, "fields");
|
@@ -27238,8 +27268,8 @@ var init_select3 = __esm({
|
|
27238
27268
|
});
|
27239
27269
|
}
|
27240
27270
|
};
|
27241
|
-
__publicField(SQLiteSelectBuilder,
|
27242
|
-
SQLiteSelectQueryBuilderBase = class extends (_b145 = TypedQueryBuilder,
|
27271
|
+
__publicField(SQLiteSelectBuilder, _a200, "SQLiteSelectBuilder");
|
27272
|
+
SQLiteSelectQueryBuilderBase = class extends (_b145 = TypedQueryBuilder, _a201 = entityKind, _b145) {
|
27243
27273
|
constructor({ table: table4, fields, isPartialSelect, session, dialect: dialect7, withList, distinct }) {
|
27244
27274
|
super();
|
27245
27275
|
__publicField(this, "_");
|
@@ -27744,8 +27774,8 @@ var init_select3 = __esm({
|
|
27744
27774
|
return this;
|
27745
27775
|
}
|
27746
27776
|
};
|
27747
|
-
__publicField(SQLiteSelectQueryBuilderBase,
|
27748
|
-
SQLiteSelectBase = class extends (_b146 = SQLiteSelectQueryBuilderBase,
|
27777
|
+
__publicField(SQLiteSelectQueryBuilderBase, _a201, "SQLiteSelectQueryBuilder");
|
27778
|
+
SQLiteSelectBase = class extends (_b146 = SQLiteSelectQueryBuilderBase, _a202 = entityKind, _b146) {
|
27749
27779
|
constructor() {
|
27750
27780
|
super(...arguments);
|
27751
27781
|
__publicField(this, "run", (placeholderValues) => {
|
@@ -27783,7 +27813,7 @@ var init_select3 = __esm({
|
|
27783
27813
|
return this.all();
|
27784
27814
|
}
|
27785
27815
|
};
|
27786
|
-
__publicField(SQLiteSelectBase,
|
27816
|
+
__publicField(SQLiteSelectBase, _a202, "SQLiteSelect");
|
27787
27817
|
applyMixins(SQLiteSelectBase, [QueryPromise]);
|
27788
27818
|
getSQLiteSetOperators = () => ({
|
27789
27819
|
union: union2,
|
@@ -27799,7 +27829,7 @@ var init_select3 = __esm({
|
|
27799
27829
|
});
|
27800
27830
|
|
27801
27831
|
// ../drizzle-orm/dist/sqlite-core/query-builders/query-builder.js
|
27802
|
-
var
|
27832
|
+
var _a203, QueryBuilder2;
|
27803
27833
|
var init_query_builder3 = __esm({
|
27804
27834
|
"../drizzle-orm/dist/sqlite-core/query-builders/query-builder.js"() {
|
27805
27835
|
"use strict";
|
@@ -27808,7 +27838,7 @@ var init_query_builder3 = __esm({
|
|
27808
27838
|
init_dialect2();
|
27809
27839
|
init_subquery();
|
27810
27840
|
init_select3();
|
27811
|
-
|
27841
|
+
_a203 = entityKind;
|
27812
27842
|
QueryBuilder2 = class {
|
27813
27843
|
constructor() {
|
27814
27844
|
__publicField(this, "dialect");
|
@@ -27867,7 +27897,7 @@ var init_query_builder3 = __esm({
|
|
27867
27897
|
return this.dialect;
|
27868
27898
|
}
|
27869
27899
|
};
|
27870
|
-
__publicField(QueryBuilder2,
|
27900
|
+
__publicField(QueryBuilder2, _a203, "SQLiteQueryBuilder");
|
27871
27901
|
}
|
27872
27902
|
});
|
27873
27903
|
|
@@ -27879,7 +27909,7 @@ var init_select_types2 = __esm({
|
|
27879
27909
|
});
|
27880
27910
|
|
27881
27911
|
// ../drizzle-orm/dist/sqlite-core/query-builders/update.js
|
27882
|
-
var
|
27912
|
+
var _a204, SQLiteUpdateBuilder, _a205, _b147, SQLiteUpdateBase;
|
27883
27913
|
var init_update2 = __esm({
|
27884
27914
|
"../drizzle-orm/dist/sqlite-core/query-builders/update.js"() {
|
27885
27915
|
"use strict";
|
@@ -27887,7 +27917,7 @@ var init_update2 = __esm({
|
|
27887
27917
|
init_query_promise();
|
27888
27918
|
init_table3();
|
27889
27919
|
init_utils2();
|
27890
|
-
|
27920
|
+
_a204 = entityKind;
|
27891
27921
|
SQLiteUpdateBuilder = class {
|
27892
27922
|
constructor(table4, session, dialect7, withList) {
|
27893
27923
|
this.table = table4;
|
@@ -27905,8 +27935,8 @@ var init_update2 = __esm({
|
|
27905
27935
|
);
|
27906
27936
|
}
|
27907
27937
|
};
|
27908
|
-
__publicField(SQLiteUpdateBuilder,
|
27909
|
-
SQLiteUpdateBase = class extends (_b147 = QueryPromise,
|
27938
|
+
__publicField(SQLiteUpdateBuilder, _a204, "SQLiteUpdateBuilder");
|
27939
|
+
SQLiteUpdateBase = class extends (_b147 = QueryPromise, _a205 = entityKind, _b147) {
|
27910
27940
|
constructor(table4, set, session, dialect7, withList) {
|
27911
27941
|
super();
|
27912
27942
|
/** @internal */
|
@@ -27995,7 +28025,7 @@ var init_update2 = __esm({
|
|
27995
28025
|
return this;
|
27996
28026
|
}
|
27997
28027
|
};
|
27998
|
-
__publicField(SQLiteUpdateBase,
|
28028
|
+
__publicField(SQLiteUpdateBase, _a205, "SQLiteUpdate");
|
27999
28029
|
}
|
28000
28030
|
});
|
28001
28031
|
|
@@ -28013,14 +28043,14 @@ var init_query_builders2 = __esm({
|
|
28013
28043
|
});
|
28014
28044
|
|
28015
28045
|
// ../drizzle-orm/dist/sqlite-core/query-builders/query.js
|
28016
|
-
var
|
28046
|
+
var _a206, RelationalQueryBuilder2, _a207, _b148, SQLiteRelationalQuery, _a208, _b149, SQLiteSyncRelationalQuery;
|
28017
28047
|
var init_query2 = __esm({
|
28018
28048
|
"../drizzle-orm/dist/sqlite-core/query-builders/query.js"() {
|
28019
28049
|
"use strict";
|
28020
28050
|
init_entity();
|
28021
28051
|
init_query_promise();
|
28022
28052
|
init_relations();
|
28023
|
-
|
28053
|
+
_a206 = entityKind;
|
28024
28054
|
RelationalQueryBuilder2 = class {
|
28025
28055
|
constructor(mode, fullSchema, schema4, tableNamesMap, table4, tableConfig, dialect7, session) {
|
28026
28056
|
this.mode = mode;
|
@@ -28079,8 +28109,8 @@ var init_query2 = __esm({
|
|
28079
28109
|
);
|
28080
28110
|
}
|
28081
28111
|
};
|
28082
|
-
__publicField(RelationalQueryBuilder2,
|
28083
|
-
SQLiteRelationalQuery = class extends (_b148 = QueryPromise,
|
28112
|
+
__publicField(RelationalQueryBuilder2, _a206, "SQLiteAsyncRelationalQueryBuilder");
|
28113
|
+
SQLiteRelationalQuery = class extends (_b148 = QueryPromise, _a207 = entityKind, _b148) {
|
28084
28114
|
constructor(fullSchema, schema4, tableNamesMap, table4, tableConfig, dialect7, session, config, mode) {
|
28085
28115
|
super();
|
28086
28116
|
/** @internal */
|
@@ -28156,24 +28186,24 @@ var init_query2 = __esm({
|
|
28156
28186
|
return this.executeRaw();
|
28157
28187
|
}
|
28158
28188
|
};
|
28159
|
-
__publicField(SQLiteRelationalQuery,
|
28160
|
-
SQLiteSyncRelationalQuery = class extends (_b149 = SQLiteRelationalQuery,
|
28189
|
+
__publicField(SQLiteRelationalQuery, _a207, "SQLiteAsyncRelationalQuery");
|
28190
|
+
SQLiteSyncRelationalQuery = class extends (_b149 = SQLiteRelationalQuery, _a208 = entityKind, _b149) {
|
28161
28191
|
sync() {
|
28162
28192
|
return this.executeRaw();
|
28163
28193
|
}
|
28164
28194
|
};
|
28165
|
-
__publicField(SQLiteSyncRelationalQuery,
|
28195
|
+
__publicField(SQLiteSyncRelationalQuery, _a208, "SQLiteSyncRelationalQuery");
|
28166
28196
|
}
|
28167
28197
|
});
|
28168
28198
|
|
28169
28199
|
// ../drizzle-orm/dist/sqlite-core/query-builders/raw.js
|
28170
|
-
var
|
28200
|
+
var _a209, _b150, SQLiteRaw;
|
28171
28201
|
var init_raw2 = __esm({
|
28172
28202
|
"../drizzle-orm/dist/sqlite-core/query-builders/raw.js"() {
|
28173
28203
|
"use strict";
|
28174
28204
|
init_entity();
|
28175
28205
|
init_query_promise();
|
28176
|
-
SQLiteRaw = class extends (_b150 = QueryPromise,
|
28206
|
+
SQLiteRaw = class extends (_b150 = QueryPromise, _a209 = entityKind, _b150) {
|
28177
28207
|
constructor(execute, getSQL, action, dialect7, mapBatchResult) {
|
28178
28208
|
super();
|
28179
28209
|
/** @internal */
|
@@ -28198,12 +28228,12 @@ var init_raw2 = __esm({
|
|
28198
28228
|
return false;
|
28199
28229
|
}
|
28200
28230
|
};
|
28201
|
-
__publicField(SQLiteRaw,
|
28231
|
+
__publicField(SQLiteRaw, _a209, "SQLiteRaw");
|
28202
28232
|
}
|
28203
28233
|
});
|
28204
28234
|
|
28205
28235
|
// ../drizzle-orm/dist/sqlite-core/db.js
|
28206
|
-
var
|
28236
|
+
var _a210, BaseSQLiteDatabase;
|
28207
28237
|
var init_db2 = __esm({
|
28208
28238
|
"../drizzle-orm/dist/sqlite-core/db.js"() {
|
28209
28239
|
"use strict";
|
@@ -28213,7 +28243,7 @@ var init_db2 = __esm({
|
|
28213
28243
|
init_subquery();
|
28214
28244
|
init_query2();
|
28215
28245
|
init_raw2();
|
28216
|
-
|
28246
|
+
_a210 = entityKind;
|
28217
28247
|
BaseSQLiteDatabase = class {
|
28218
28248
|
constructor(resultKind, dialect7, session, schema4) {
|
28219
28249
|
__publicField(this, "query");
|
@@ -28491,17 +28521,17 @@ var init_db2 = __esm({
|
|
28491
28521
|
return this.session.transaction(transaction, config);
|
28492
28522
|
}
|
28493
28523
|
};
|
28494
|
-
__publicField(BaseSQLiteDatabase,
|
28524
|
+
__publicField(BaseSQLiteDatabase, _a210, "BaseSQLiteDatabase");
|
28495
28525
|
}
|
28496
28526
|
});
|
28497
28527
|
|
28498
28528
|
// ../drizzle-orm/dist/sqlite-core/indexes.js
|
28499
|
-
var
|
28529
|
+
var _a211, IndexBuilderOn2, _a212, IndexBuilder2, _a213, Index4;
|
28500
28530
|
var init_indexes2 = __esm({
|
28501
28531
|
"../drizzle-orm/dist/sqlite-core/indexes.js"() {
|
28502
28532
|
"use strict";
|
28503
28533
|
init_entity();
|
28504
|
-
|
28534
|
+
_a211 = entityKind;
|
28505
28535
|
IndexBuilderOn2 = class {
|
28506
28536
|
constructor(name2, unique) {
|
28507
28537
|
this.name = name2;
|
@@ -28511,8 +28541,8 @@ var init_indexes2 = __esm({
|
|
28511
28541
|
return new IndexBuilder2(this.name, columns, this.unique);
|
28512
28542
|
}
|
28513
28543
|
};
|
28514
|
-
__publicField(IndexBuilderOn2,
|
28515
|
-
|
28544
|
+
__publicField(IndexBuilderOn2, _a211, "SQLiteIndexBuilderOn");
|
28545
|
+
_a212 = entityKind;
|
28516
28546
|
IndexBuilder2 = class {
|
28517
28547
|
constructor(name2, columns, unique) {
|
28518
28548
|
/** @internal */
|
@@ -28536,26 +28566,26 @@ var init_indexes2 = __esm({
|
|
28536
28566
|
return new Index4(this.config, table4);
|
28537
28567
|
}
|
28538
28568
|
};
|
28539
|
-
__publicField(IndexBuilder2,
|
28540
|
-
|
28569
|
+
__publicField(IndexBuilder2, _a212, "SQLiteIndexBuilder");
|
28570
|
+
_a213 = entityKind;
|
28541
28571
|
Index4 = class {
|
28542
28572
|
constructor(config, table4) {
|
28543
28573
|
__publicField(this, "config");
|
28544
28574
|
this.config = { ...config, table: table4 };
|
28545
28575
|
}
|
28546
28576
|
};
|
28547
|
-
__publicField(Index4,
|
28577
|
+
__publicField(Index4, _a213, "SQLiteIndex");
|
28548
28578
|
}
|
28549
28579
|
});
|
28550
28580
|
|
28551
28581
|
// ../drizzle-orm/dist/sqlite-core/primary-keys.js
|
28552
|
-
var
|
28582
|
+
var _a214, PrimaryKeyBuilder2, _a215, PrimaryKey2;
|
28553
28583
|
var init_primary_keys2 = __esm({
|
28554
28584
|
"../drizzle-orm/dist/sqlite-core/primary-keys.js"() {
|
28555
28585
|
"use strict";
|
28556
28586
|
init_entity();
|
28557
28587
|
init_table3();
|
28558
|
-
|
28588
|
+
_a214 = entityKind;
|
28559
28589
|
PrimaryKeyBuilder2 = class {
|
28560
28590
|
constructor(columns, name2) {
|
28561
28591
|
/** @internal */
|
@@ -28570,8 +28600,8 @@ var init_primary_keys2 = __esm({
|
|
28570
28600
|
return new PrimaryKey2(table4, this.columns, this.name);
|
28571
28601
|
}
|
28572
28602
|
};
|
28573
|
-
__publicField(PrimaryKeyBuilder2,
|
28574
|
-
|
28603
|
+
__publicField(PrimaryKeyBuilder2, _a214, "SQLitePrimaryKeyBuilder");
|
28604
|
+
_a215 = entityKind;
|
28575
28605
|
PrimaryKey2 = class {
|
28576
28606
|
constructor(table4, columns, name2) {
|
28577
28607
|
__publicField(this, "columns");
|
@@ -28584,12 +28614,12 @@ var init_primary_keys2 = __esm({
|
|
28584
28614
|
return this.name ?? `${this.table[SQLiteTable.Symbol.Name]}_${this.columns.map((column4) => column4.name).join("_")}_pk`;
|
28585
28615
|
}
|
28586
28616
|
};
|
28587
|
-
__publicField(PrimaryKey2,
|
28617
|
+
__publicField(PrimaryKey2, _a215, "SQLitePrimaryKey");
|
28588
28618
|
}
|
28589
28619
|
});
|
28590
28620
|
|
28591
28621
|
// ../drizzle-orm/dist/sqlite-core/session.js
|
28592
|
-
var
|
28622
|
+
var _a216, _b151, ExecuteResultSync, _a217, SQLitePreparedQuery, _a218, SQLiteSession, _a219, _b152, SQLiteTransaction;
|
28593
28623
|
var init_session2 = __esm({
|
28594
28624
|
"../drizzle-orm/dist/sqlite-core/session.js"() {
|
28595
28625
|
"use strict";
|
@@ -28597,7 +28627,7 @@ var init_session2 = __esm({
|
|
28597
28627
|
init_errors();
|
28598
28628
|
init_query_promise();
|
28599
28629
|
init_db2();
|
28600
|
-
ExecuteResultSync = class extends (_b151 = QueryPromise,
|
28630
|
+
ExecuteResultSync = class extends (_b151 = QueryPromise, _a216 = entityKind, _b151) {
|
28601
28631
|
constructor(resultCb) {
|
28602
28632
|
super();
|
28603
28633
|
this.resultCb = resultCb;
|
@@ -28609,8 +28639,8 @@ var init_session2 = __esm({
|
|
28609
28639
|
return this.resultCb();
|
28610
28640
|
}
|
28611
28641
|
};
|
28612
|
-
__publicField(ExecuteResultSync,
|
28613
|
-
|
28642
|
+
__publicField(ExecuteResultSync, _a216, "ExecuteResultSync");
|
28643
|
+
_a217 = entityKind;
|
28614
28644
|
SQLitePreparedQuery = class {
|
28615
28645
|
constructor(mode, executeMethod, query) {
|
28616
28646
|
/** @internal */
|
@@ -28651,8 +28681,8 @@ var init_session2 = __esm({
|
|
28651
28681
|
}
|
28652
28682
|
}
|
28653
28683
|
};
|
28654
|
-
__publicField(SQLitePreparedQuery,
|
28655
|
-
|
28684
|
+
__publicField(SQLitePreparedQuery, _a217, "PreparedQuery");
|
28685
|
+
_a218 = entityKind;
|
28656
28686
|
SQLiteSession = class {
|
28657
28687
|
constructor(dialect7) {
|
28658
28688
|
this.dialect = dialect7;
|
@@ -28694,8 +28724,8 @@ var init_session2 = __esm({
|
|
28694
28724
|
throw new Error("Not implemented");
|
28695
28725
|
}
|
28696
28726
|
};
|
28697
|
-
__publicField(SQLiteSession,
|
28698
|
-
SQLiteTransaction = class extends (_b152 = BaseSQLiteDatabase,
|
28727
|
+
__publicField(SQLiteSession, _a218, "SQLiteSession");
|
28728
|
+
SQLiteTransaction = class extends (_b152 = BaseSQLiteDatabase, _a219 = entityKind, _b152) {
|
28699
28729
|
constructor(resultType, dialect7, session, schema4, nestedIndex = 0) {
|
28700
28730
|
super(resultType, dialect7, session, schema4);
|
28701
28731
|
this.schema = schema4;
|
@@ -28705,7 +28735,7 @@ var init_session2 = __esm({
|
|
28705
28735
|
throw new TransactionRollbackError();
|
28706
28736
|
}
|
28707
28737
|
};
|
28708
|
-
__publicField(SQLiteTransaction,
|
28738
|
+
__publicField(SQLiteTransaction, _a219, "SQLiteTransaction");
|
28709
28739
|
}
|
28710
28740
|
});
|
28711
28741
|
|
@@ -28776,7 +28806,7 @@ var init_utils6 = __esm({
|
|
28776
28806
|
});
|
28777
28807
|
|
28778
28808
|
// ../drizzle-orm/dist/sqlite-core/view.js
|
28779
|
-
var
|
28809
|
+
var _a220, ViewBuilderCore, _a221, _b153, ViewBuilder2, _a222, _b154, ManualViewBuilder2, _a223, _b155, _c6, SQLiteView;
|
28780
28810
|
var init_view2 = __esm({
|
28781
28811
|
"../drizzle-orm/dist/sqlite-core/view.js"() {
|
28782
28812
|
"use strict";
|
@@ -28787,15 +28817,15 @@ var init_view2 = __esm({
|
|
28787
28817
|
init_table3();
|
28788
28818
|
init_view_base2();
|
28789
28819
|
init_view_common3();
|
28790
|
-
|
28820
|
+
_a220 = entityKind;
|
28791
28821
|
ViewBuilderCore = class {
|
28792
28822
|
constructor(name2) {
|
28793
28823
|
__publicField(this, "config", {});
|
28794
28824
|
this.name = name2;
|
28795
28825
|
}
|
28796
28826
|
};
|
28797
|
-
__publicField(ViewBuilderCore,
|
28798
|
-
ViewBuilder2 = class extends (_b153 = ViewBuilderCore,
|
28827
|
+
__publicField(ViewBuilderCore, _a220, "SQLiteViewBuilderCore");
|
28828
|
+
ViewBuilder2 = class extends (_b153 = ViewBuilderCore, _a221 = entityKind, _b153) {
|
28799
28829
|
as(qb) {
|
28800
28830
|
if (typeof qb === "function") {
|
28801
28831
|
qb = qb(new QueryBuilder2());
|
@@ -28821,8 +28851,8 @@ var init_view2 = __esm({
|
|
28821
28851
|
);
|
28822
28852
|
}
|
28823
28853
|
};
|
28824
|
-
__publicField(ViewBuilder2,
|
28825
|
-
ManualViewBuilder2 = class extends (_b154 = ViewBuilderCore,
|
28854
|
+
__publicField(ViewBuilder2, _a221, "SQLiteViewBuilder");
|
28855
|
+
ManualViewBuilder2 = class extends (_b154 = ViewBuilderCore, _a222 = entityKind, _b154) {
|
28826
28856
|
constructor(name2, columns) {
|
28827
28857
|
super(name2);
|
28828
28858
|
__publicField(this, "columns");
|
@@ -28867,12 +28897,12 @@ var init_view2 = __esm({
|
|
28867
28897
|
);
|
28868
28898
|
}
|
28869
28899
|
};
|
28870
|
-
__publicField(ManualViewBuilder2,
|
28871
|
-
SQLiteView = class extends (_c6 = SQLiteViewBase, _b155 = entityKind,
|
28900
|
+
__publicField(ManualViewBuilder2, _a222, "SQLiteManualViewBuilder");
|
28901
|
+
SQLiteView = class extends (_c6 = SQLiteViewBase, _b155 = entityKind, _a223 = SQLiteViewConfig, _c6) {
|
28872
28902
|
constructor({ sqliteConfig, config }) {
|
28873
28903
|
super(config);
|
28874
28904
|
/** @internal */
|
28875
|
-
__publicField(this,
|
28905
|
+
__publicField(this, _a223);
|
28876
28906
|
this[SQLiteViewConfig] = sqliteConfig;
|
28877
28907
|
}
|
28878
28908
|
};
|
@@ -29389,12 +29419,12 @@ var init_alias4 = __esm({
|
|
29389
29419
|
});
|
29390
29420
|
|
29391
29421
|
// ../drizzle-orm/dist/mysql-core/checks.js
|
29392
|
-
var
|
29422
|
+
var _a224, CheckBuilder3, _a225, Check3;
|
29393
29423
|
var init_checks3 = __esm({
|
29394
29424
|
"../drizzle-orm/dist/mysql-core/checks.js"() {
|
29395
29425
|
"use strict";
|
29396
29426
|
init_entity();
|
29397
|
-
|
29427
|
+
_a224 = entityKind;
|
29398
29428
|
CheckBuilder3 = class {
|
29399
29429
|
constructor(name2, value) {
|
29400
29430
|
__publicField(this, "brand");
|
@@ -29406,8 +29436,8 @@ var init_checks3 = __esm({
|
|
29406
29436
|
return new Check3(table4, this);
|
29407
29437
|
}
|
29408
29438
|
};
|
29409
|
-
__publicField(CheckBuilder3,
|
29410
|
-
|
29439
|
+
__publicField(CheckBuilder3, _a224, "MySqlCheckBuilder");
|
29440
|
+
_a225 = entityKind;
|
29411
29441
|
Check3 = class {
|
29412
29442
|
constructor(table4, builder) {
|
29413
29443
|
__publicField(this, "name");
|
@@ -29417,7 +29447,7 @@ var init_checks3 = __esm({
|
|
29417
29447
|
this.value = builder.value;
|
29418
29448
|
}
|
29419
29449
|
};
|
29420
|
-
__publicField(Check3,
|
29450
|
+
__publicField(Check3, _a225, "MySqlCheck");
|
29421
29451
|
}
|
29422
29452
|
});
|
29423
29453
|
|
@@ -29440,14 +29470,14 @@ function mysqlTableWithSchema(name2, columns, extraConfig, schema4, baseName = n
|
|
29440
29470
|
}
|
29441
29471
|
return table4;
|
29442
29472
|
}
|
29443
|
-
var InlineForeignKeys3,
|
29473
|
+
var InlineForeignKeys3, _a226, _b156, _c7, _d4, _e3, MySqlTable, mysqlTable;
|
29444
29474
|
var init_table4 = __esm({
|
29445
29475
|
"../drizzle-orm/dist/mysql-core/table.js"() {
|
29446
29476
|
"use strict";
|
29447
29477
|
init_entity();
|
29448
29478
|
init_table();
|
29449
29479
|
InlineForeignKeys3 = Symbol.for("drizzle:MySqlInlineForeignKeys");
|
29450
|
-
MySqlTable = class extends (_e3 = Table2, _d4 = entityKind, _c7 = Table2.Symbol.Columns, _b156 = InlineForeignKeys3,
|
29480
|
+
MySqlTable = class extends (_e3 = Table2, _d4 = entityKind, _c7 = Table2.Symbol.Columns, _b156 = InlineForeignKeys3, _a226 = Table2.Symbol.ExtraConfigBuilder, _e3) {
|
29451
29481
|
constructor() {
|
29452
29482
|
super(...arguments);
|
29453
29483
|
/** @internal */
|
@@ -29455,7 +29485,7 @@ var init_table4 = __esm({
|
|
29455
29485
|
/** @internal */
|
29456
29486
|
__publicField(this, _b156, []);
|
29457
29487
|
/** @internal */
|
29458
|
-
__publicField(this,
|
29488
|
+
__publicField(this, _a226);
|
29459
29489
|
}
|
29460
29490
|
};
|
29461
29491
|
__publicField(MySqlTable, _d4, "MySqlTable");
|
@@ -29470,13 +29500,13 @@ var init_table4 = __esm({
|
|
29470
29500
|
});
|
29471
29501
|
|
29472
29502
|
// ../drizzle-orm/dist/mysql-core/foreign-keys.js
|
29473
|
-
var
|
29503
|
+
var _a227, ForeignKeyBuilder3, _a228, ForeignKey3;
|
29474
29504
|
var init_foreign_keys3 = __esm({
|
29475
29505
|
"../drizzle-orm/dist/mysql-core/foreign-keys.js"() {
|
29476
29506
|
"use strict";
|
29477
29507
|
init_entity();
|
29478
29508
|
init_table4();
|
29479
|
-
|
29509
|
+
_a227 = entityKind;
|
29480
29510
|
ForeignKeyBuilder3 = class {
|
29481
29511
|
constructor(config, actions) {
|
29482
29512
|
/** @internal */
|
@@ -29507,8 +29537,8 @@ var init_foreign_keys3 = __esm({
|
|
29507
29537
|
return new ForeignKey3(table4, this);
|
29508
29538
|
}
|
29509
29539
|
};
|
29510
|
-
__publicField(ForeignKeyBuilder3,
|
29511
|
-
|
29540
|
+
__publicField(ForeignKeyBuilder3, _a227, "MySqlForeignKeyBuilder");
|
29541
|
+
_a228 = entityKind;
|
29512
29542
|
ForeignKey3 = class {
|
29513
29543
|
constructor(table4, builder) {
|
29514
29544
|
__publicField(this, "reference");
|
@@ -29532,7 +29562,7 @@ var init_foreign_keys3 = __esm({
|
|
29532
29562
|
return name2 ?? `${chunks.join("_")}_fk`;
|
29533
29563
|
}
|
29534
29564
|
};
|
29535
|
-
__publicField(ForeignKey3,
|
29565
|
+
__publicField(ForeignKey3, _a228, "MySqlForeignKey");
|
29536
29566
|
}
|
29537
29567
|
});
|
29538
29568
|
|
@@ -29540,13 +29570,13 @@ var init_foreign_keys3 = __esm({
|
|
29540
29570
|
function uniqueKeyName3(table4, columns) {
|
29541
29571
|
return `${table4[MySqlTable.Symbol.Name]}_${columns.join("_")}_unique`;
|
29542
29572
|
}
|
29543
|
-
var
|
29573
|
+
var _a229, UniqueConstraintBuilder3, _a230, UniqueOnConstraintBuilder3, _a231, UniqueConstraint3;
|
29544
29574
|
var init_unique_constraint3 = __esm({
|
29545
29575
|
"../drizzle-orm/dist/mysql-core/unique-constraint.js"() {
|
29546
29576
|
"use strict";
|
29547
29577
|
init_entity();
|
29548
29578
|
init_table4();
|
29549
|
-
|
29579
|
+
_a229 = entityKind;
|
29550
29580
|
UniqueConstraintBuilder3 = class {
|
29551
29581
|
constructor(columns, name2) {
|
29552
29582
|
/** @internal */
|
@@ -29559,8 +29589,8 @@ var init_unique_constraint3 = __esm({
|
|
29559
29589
|
return new UniqueConstraint3(table4, this.columns, this.name);
|
29560
29590
|
}
|
29561
29591
|
};
|
29562
|
-
__publicField(UniqueConstraintBuilder3,
|
29563
|
-
|
29592
|
+
__publicField(UniqueConstraintBuilder3, _a229, "MySqlUniqueConstraintBuilder");
|
29593
|
+
_a230 = entityKind;
|
29564
29594
|
UniqueOnConstraintBuilder3 = class {
|
29565
29595
|
constructor(name2) {
|
29566
29596
|
/** @internal */
|
@@ -29571,8 +29601,8 @@ var init_unique_constraint3 = __esm({
|
|
29571
29601
|
return new UniqueConstraintBuilder3(columns, this.name);
|
29572
29602
|
}
|
29573
29603
|
};
|
29574
|
-
__publicField(UniqueOnConstraintBuilder3,
|
29575
|
-
|
29604
|
+
__publicField(UniqueOnConstraintBuilder3, _a230, "MySqlUniqueOnConstraintBuilder");
|
29605
|
+
_a231 = entityKind;
|
29576
29606
|
UniqueConstraint3 = class {
|
29577
29607
|
constructor(table4, columns, name2) {
|
29578
29608
|
__publicField(this, "columns");
|
@@ -29586,12 +29616,12 @@ var init_unique_constraint3 = __esm({
|
|
29586
29616
|
return this.name;
|
29587
29617
|
}
|
29588
29618
|
};
|
29589
|
-
__publicField(UniqueConstraint3,
|
29619
|
+
__publicField(UniqueConstraint3, _a231, "MySqlUniqueConstraint");
|
29590
29620
|
}
|
29591
29621
|
});
|
29592
29622
|
|
29593
29623
|
// ../drizzle-orm/dist/mysql-core/columns/common.js
|
29594
|
-
var
|
29624
|
+
var _a232, _b157, MySqlColumnBuilder, _a233, _b158, MySqlColumn, _a234, _b159, MySqlColumnBuilderWithAutoIncrement, _a235, _b160, MySqlColumnWithAutoIncrement;
|
29595
29625
|
var init_common4 = __esm({
|
29596
29626
|
"../drizzle-orm/dist/mysql-core/columns/common.js"() {
|
29597
29627
|
"use strict";
|
@@ -29600,7 +29630,7 @@ var init_common4 = __esm({
|
|
29600
29630
|
init_entity();
|
29601
29631
|
init_foreign_keys3();
|
29602
29632
|
init_unique_constraint3();
|
29603
|
-
MySqlColumnBuilder = class extends (_b157 = ColumnBuilder,
|
29633
|
+
MySqlColumnBuilder = class extends (_b157 = ColumnBuilder, _a232 = entityKind, _b157) {
|
29604
29634
|
constructor() {
|
29605
29635
|
super(...arguments);
|
29606
29636
|
__publicField(this, "foreignKeyConfigs", []);
|
@@ -29641,8 +29671,8 @@ var init_common4 = __esm({
|
|
29641
29671
|
});
|
29642
29672
|
}
|
29643
29673
|
};
|
29644
|
-
__publicField(MySqlColumnBuilder,
|
29645
|
-
MySqlColumn = class extends (_b158 = Column2,
|
29674
|
+
__publicField(MySqlColumnBuilder, _a232, "MySqlColumnBuilder");
|
29675
|
+
MySqlColumn = class extends (_b158 = Column2, _a233 = entityKind, _b158) {
|
29646
29676
|
constructor(table4, config) {
|
29647
29677
|
if (!config.uniqueName) {
|
29648
29678
|
config.uniqueName = uniqueKeyName3(table4, [config.name]);
|
@@ -29651,8 +29681,8 @@ var init_common4 = __esm({
|
|
29651
29681
|
this.table = table4;
|
29652
29682
|
}
|
29653
29683
|
};
|
29654
|
-
__publicField(MySqlColumn,
|
29655
|
-
MySqlColumnBuilderWithAutoIncrement = class extends (_b159 = MySqlColumnBuilder,
|
29684
|
+
__publicField(MySqlColumn, _a233, "MySqlColumn");
|
29685
|
+
MySqlColumnBuilderWithAutoIncrement = class extends (_b159 = MySqlColumnBuilder, _a234 = entityKind, _b159) {
|
29656
29686
|
constructor(name2, dataType, columnType) {
|
29657
29687
|
super(name2, dataType, columnType);
|
29658
29688
|
this.config.autoIncrement = false;
|
@@ -29663,25 +29693,25 @@ var init_common4 = __esm({
|
|
29663
29693
|
return this;
|
29664
29694
|
}
|
29665
29695
|
};
|
29666
|
-
__publicField(MySqlColumnBuilderWithAutoIncrement,
|
29667
|
-
MySqlColumnWithAutoIncrement = class extends (_b160 = MySqlColumn,
|
29696
|
+
__publicField(MySqlColumnBuilderWithAutoIncrement, _a234, "MySqlColumnBuilderWithAutoIncrement");
|
29697
|
+
MySqlColumnWithAutoIncrement = class extends (_b160 = MySqlColumn, _a235 = entityKind, _b160) {
|
29668
29698
|
constructor() {
|
29669
29699
|
super(...arguments);
|
29670
29700
|
__publicField(this, "autoIncrement", this.config.autoIncrement);
|
29671
29701
|
}
|
29672
29702
|
};
|
29673
|
-
__publicField(MySqlColumnWithAutoIncrement,
|
29703
|
+
__publicField(MySqlColumnWithAutoIncrement, _a235, "MySqlColumnWithAutoIncrement");
|
29674
29704
|
}
|
29675
29705
|
});
|
29676
29706
|
|
29677
29707
|
// ../drizzle-orm/dist/mysql-core/columns/bigint.js
|
29678
|
-
var
|
29708
|
+
var _a236, _b161, MySqlBigInt53Builder, _a237, _b162, MySqlBigInt53, _a238, _b163, MySqlBigInt64Builder, _a239, _b164, MySqlBigInt64;
|
29679
29709
|
var init_bigint2 = __esm({
|
29680
29710
|
"../drizzle-orm/dist/mysql-core/columns/bigint.js"() {
|
29681
29711
|
"use strict";
|
29682
29712
|
init_entity();
|
29683
29713
|
init_common4();
|
29684
|
-
MySqlBigInt53Builder = class extends (_b161 = MySqlColumnBuilderWithAutoIncrement,
|
29714
|
+
MySqlBigInt53Builder = class extends (_b161 = MySqlColumnBuilderWithAutoIncrement, _a236 = entityKind, _b161) {
|
29685
29715
|
constructor(name2, unsigned = false) {
|
29686
29716
|
super(name2, "number", "MySqlBigInt53");
|
29687
29717
|
this.config.unsigned = unsigned;
|
@@ -29694,8 +29724,8 @@ var init_bigint2 = __esm({
|
|
29694
29724
|
);
|
29695
29725
|
}
|
29696
29726
|
};
|
29697
|
-
__publicField(MySqlBigInt53Builder,
|
29698
|
-
MySqlBigInt53 = class extends (_b162 = MySqlColumnWithAutoIncrement,
|
29727
|
+
__publicField(MySqlBigInt53Builder, _a236, "MySqlBigInt53Builder");
|
29728
|
+
MySqlBigInt53 = class extends (_b162 = MySqlColumnWithAutoIncrement, _a237 = entityKind, _b162) {
|
29699
29729
|
getSQLType() {
|
29700
29730
|
return `bigint${this.config.unsigned ? " unsigned" : ""}`;
|
29701
29731
|
}
|
@@ -29706,8 +29736,8 @@ var init_bigint2 = __esm({
|
|
29706
29736
|
return Number(value);
|
29707
29737
|
}
|
29708
29738
|
};
|
29709
|
-
__publicField(MySqlBigInt53,
|
29710
|
-
MySqlBigInt64Builder = class extends (_b163 = MySqlColumnBuilderWithAutoIncrement,
|
29739
|
+
__publicField(MySqlBigInt53, _a237, "MySqlBigInt53");
|
29740
|
+
MySqlBigInt64Builder = class extends (_b163 = MySqlColumnBuilderWithAutoIncrement, _a238 = entityKind, _b163) {
|
29711
29741
|
constructor(name2, unsigned = false) {
|
29712
29742
|
super(name2, "bigint", "MySqlBigInt64");
|
29713
29743
|
this.config.unsigned = unsigned;
|
@@ -29720,8 +29750,8 @@ var init_bigint2 = __esm({
|
|
29720
29750
|
);
|
29721
29751
|
}
|
29722
29752
|
};
|
29723
|
-
__publicField(MySqlBigInt64Builder,
|
29724
|
-
MySqlBigInt64 = class extends (_b164 = MySqlColumnWithAutoIncrement,
|
29753
|
+
__publicField(MySqlBigInt64Builder, _a238, "MySqlBigInt64Builder");
|
29754
|
+
MySqlBigInt64 = class extends (_b164 = MySqlColumnWithAutoIncrement, _a239 = entityKind, _b164) {
|
29725
29755
|
getSQLType() {
|
29726
29756
|
return `bigint${this.config.unsigned ? " unsigned" : ""}`;
|
29727
29757
|
}
|
@@ -29730,18 +29760,18 @@ var init_bigint2 = __esm({
|
|
29730
29760
|
return BigInt(value);
|
29731
29761
|
}
|
29732
29762
|
};
|
29733
|
-
__publicField(MySqlBigInt64,
|
29763
|
+
__publicField(MySqlBigInt64, _a239, "MySqlBigInt64");
|
29734
29764
|
}
|
29735
29765
|
});
|
29736
29766
|
|
29737
29767
|
// ../drizzle-orm/dist/mysql-core/columns/binary.js
|
29738
|
-
var
|
29768
|
+
var _a240, _b165, MySqlBinaryBuilder, _a241, _b166, MySqlBinary;
|
29739
29769
|
var init_binary = __esm({
|
29740
29770
|
"../drizzle-orm/dist/mysql-core/columns/binary.js"() {
|
29741
29771
|
"use strict";
|
29742
29772
|
init_entity();
|
29743
29773
|
init_common4();
|
29744
|
-
MySqlBinaryBuilder = class extends (_b165 = MySqlColumnBuilder,
|
29774
|
+
MySqlBinaryBuilder = class extends (_b165 = MySqlColumnBuilder, _a240 = entityKind, _b165) {
|
29745
29775
|
constructor(name2, length) {
|
29746
29776
|
super(name2, "string", "MySqlBinary");
|
29747
29777
|
this.config.length = length;
|
@@ -29751,8 +29781,8 @@ var init_binary = __esm({
|
|
29751
29781
|
return new MySqlBinary(table4, this.config);
|
29752
29782
|
}
|
29753
29783
|
};
|
29754
|
-
__publicField(MySqlBinaryBuilder,
|
29755
|
-
MySqlBinary = class extends (_b166 = MySqlColumn,
|
29784
|
+
__publicField(MySqlBinaryBuilder, _a240, "MySqlBinaryBuilder");
|
29785
|
+
MySqlBinary = class extends (_b166 = MySqlColumn, _a241 = entityKind, _b166) {
|
29756
29786
|
constructor() {
|
29757
29787
|
super(...arguments);
|
29758
29788
|
__publicField(this, "length", this.config.length);
|
@@ -29761,18 +29791,18 @@ var init_binary = __esm({
|
|
29761
29791
|
return this.length === void 0 ? `binary` : `binary(${this.length})`;
|
29762
29792
|
}
|
29763
29793
|
};
|
29764
|
-
__publicField(MySqlBinary,
|
29794
|
+
__publicField(MySqlBinary, _a241, "MySqlBinary");
|
29765
29795
|
}
|
29766
29796
|
});
|
29767
29797
|
|
29768
29798
|
// ../drizzle-orm/dist/mysql-core/columns/boolean.js
|
29769
|
-
var
|
29799
|
+
var _a242, _b167, MySqlBooleanBuilder, _a243, _b168, MySqlBoolean;
|
29770
29800
|
var init_boolean2 = __esm({
|
29771
29801
|
"../drizzle-orm/dist/mysql-core/columns/boolean.js"() {
|
29772
29802
|
"use strict";
|
29773
29803
|
init_entity();
|
29774
29804
|
init_common4();
|
29775
|
-
MySqlBooleanBuilder = class extends (_b167 = MySqlColumnBuilder,
|
29805
|
+
MySqlBooleanBuilder = class extends (_b167 = MySqlColumnBuilder, _a242 = entityKind, _b167) {
|
29776
29806
|
constructor(name2) {
|
29777
29807
|
super(name2, "boolean", "MySqlBoolean");
|
29778
29808
|
}
|
@@ -29784,8 +29814,8 @@ var init_boolean2 = __esm({
|
|
29784
29814
|
);
|
29785
29815
|
}
|
29786
29816
|
};
|
29787
|
-
__publicField(MySqlBooleanBuilder,
|
29788
|
-
MySqlBoolean = class extends (_b168 = MySqlColumn,
|
29817
|
+
__publicField(MySqlBooleanBuilder, _a242, "MySqlBooleanBuilder");
|
29818
|
+
MySqlBoolean = class extends (_b168 = MySqlColumn, _a243 = entityKind, _b168) {
|
29789
29819
|
getSQLType() {
|
29790
29820
|
return "boolean";
|
29791
29821
|
}
|
@@ -29796,18 +29826,18 @@ var init_boolean2 = __esm({
|
|
29796
29826
|
return value === 1;
|
29797
29827
|
}
|
29798
29828
|
};
|
29799
|
-
__publicField(MySqlBoolean,
|
29829
|
+
__publicField(MySqlBoolean, _a243, "MySqlBoolean");
|
29800
29830
|
}
|
29801
29831
|
});
|
29802
29832
|
|
29803
29833
|
// ../drizzle-orm/dist/mysql-core/columns/char.js
|
29804
|
-
var
|
29834
|
+
var _a244, _b169, MySqlCharBuilder, _a245, _b170, MySqlChar;
|
29805
29835
|
var init_char2 = __esm({
|
29806
29836
|
"../drizzle-orm/dist/mysql-core/columns/char.js"() {
|
29807
29837
|
"use strict";
|
29808
29838
|
init_entity();
|
29809
29839
|
init_common4();
|
29810
|
-
MySqlCharBuilder = class extends (_b169 = MySqlColumnBuilder,
|
29840
|
+
MySqlCharBuilder = class extends (_b169 = MySqlColumnBuilder, _a244 = entityKind, _b169) {
|
29811
29841
|
constructor(name2, config) {
|
29812
29842
|
super(name2, "string", "MySqlChar");
|
29813
29843
|
this.config.length = config.length;
|
@@ -29821,8 +29851,8 @@ var init_char2 = __esm({
|
|
29821
29851
|
);
|
29822
29852
|
}
|
29823
29853
|
};
|
29824
|
-
__publicField(MySqlCharBuilder,
|
29825
|
-
MySqlChar = class extends (_b170 = MySqlColumn,
|
29854
|
+
__publicField(MySqlCharBuilder, _a244, "MySqlCharBuilder");
|
29855
|
+
MySqlChar = class extends (_b170 = MySqlColumn, _a245 = entityKind, _b170) {
|
29826
29856
|
constructor() {
|
29827
29857
|
super(...arguments);
|
29828
29858
|
__publicField(this, "length", this.config.length);
|
@@ -29832,18 +29862,18 @@ var init_char2 = __esm({
|
|
29832
29862
|
return this.length === void 0 ? `char` : `char(${this.length})`;
|
29833
29863
|
}
|
29834
29864
|
};
|
29835
|
-
__publicField(MySqlChar,
|
29865
|
+
__publicField(MySqlChar, _a245, "MySqlChar");
|
29836
29866
|
}
|
29837
29867
|
});
|
29838
29868
|
|
29839
29869
|
// ../drizzle-orm/dist/mysql-core/columns/custom.js
|
29840
|
-
var
|
29870
|
+
var _a246, _b171, MySqlCustomColumnBuilder, _a247, _b172, MySqlCustomColumn;
|
29841
29871
|
var init_custom3 = __esm({
|
29842
29872
|
"../drizzle-orm/dist/mysql-core/columns/custom.js"() {
|
29843
29873
|
"use strict";
|
29844
29874
|
init_entity();
|
29845
29875
|
init_common4();
|
29846
|
-
MySqlCustomColumnBuilder = class extends (_b171 = MySqlColumnBuilder,
|
29876
|
+
MySqlCustomColumnBuilder = class extends (_b171 = MySqlColumnBuilder, _a246 = entityKind, _b171) {
|
29847
29877
|
constructor(name2, fieldConfig, customTypeParams) {
|
29848
29878
|
super(name2, "custom", "MySqlCustomColumn");
|
29849
29879
|
this.config.fieldConfig = fieldConfig;
|
@@ -29857,8 +29887,8 @@ var init_custom3 = __esm({
|
|
29857
29887
|
);
|
29858
29888
|
}
|
29859
29889
|
};
|
29860
|
-
__publicField(MySqlCustomColumnBuilder,
|
29861
|
-
MySqlCustomColumn = class extends (_b172 = MySqlColumn,
|
29890
|
+
__publicField(MySqlCustomColumnBuilder, _a246, "MySqlCustomColumnBuilder");
|
29891
|
+
MySqlCustomColumn = class extends (_b172 = MySqlColumn, _a247 = entityKind, _b172) {
|
29862
29892
|
constructor(table4, config) {
|
29863
29893
|
super(table4, config);
|
29864
29894
|
__publicField(this, "sqlName");
|
@@ -29878,18 +29908,18 @@ var init_custom3 = __esm({
|
|
29878
29908
|
return typeof this.mapTo === "function" ? this.mapTo(value) : value;
|
29879
29909
|
}
|
29880
29910
|
};
|
29881
|
-
__publicField(MySqlCustomColumn,
|
29911
|
+
__publicField(MySqlCustomColumn, _a247, "MySqlCustomColumn");
|
29882
29912
|
}
|
29883
29913
|
});
|
29884
29914
|
|
29885
29915
|
// ../drizzle-orm/dist/mysql-core/columns/date.js
|
29886
|
-
var
|
29916
|
+
var _a248, _b173, MySqlDateBuilder, _a249, _b174, MySqlDate, _a250, _b175, MySqlDateStringBuilder, _a251, _b176, MySqlDateString;
|
29887
29917
|
var init_date2 = __esm({
|
29888
29918
|
"../drizzle-orm/dist/mysql-core/columns/date.js"() {
|
29889
29919
|
"use strict";
|
29890
29920
|
init_entity();
|
29891
29921
|
init_common4();
|
29892
|
-
MySqlDateBuilder = class extends (_b173 = MySqlColumnBuilder,
|
29922
|
+
MySqlDateBuilder = class extends (_b173 = MySqlColumnBuilder, _a248 = entityKind, _b173) {
|
29893
29923
|
constructor(name2) {
|
29894
29924
|
super(name2, "date", "MySqlDate");
|
29895
29925
|
}
|
@@ -29898,8 +29928,8 @@ var init_date2 = __esm({
|
|
29898
29928
|
return new MySqlDate(table4, this.config);
|
29899
29929
|
}
|
29900
29930
|
};
|
29901
|
-
__publicField(MySqlDateBuilder,
|
29902
|
-
MySqlDate = class extends (_b174 = MySqlColumn,
|
29931
|
+
__publicField(MySqlDateBuilder, _a248, "MySqlDateBuilder");
|
29932
|
+
MySqlDate = class extends (_b174 = MySqlColumn, _a249 = entityKind, _b174) {
|
29903
29933
|
constructor(table4, config) {
|
29904
29934
|
super(table4, config);
|
29905
29935
|
}
|
@@ -29910,8 +29940,8 @@ var init_date2 = __esm({
|
|
29910
29940
|
return new Date(value);
|
29911
29941
|
}
|
29912
29942
|
};
|
29913
|
-
__publicField(MySqlDate,
|
29914
|
-
MySqlDateStringBuilder = class extends (_b175 = MySqlColumnBuilder,
|
29943
|
+
__publicField(MySqlDate, _a249, "MySqlDate");
|
29944
|
+
MySqlDateStringBuilder = class extends (_b175 = MySqlColumnBuilder, _a250 = entityKind, _b175) {
|
29915
29945
|
constructor(name2) {
|
29916
29946
|
super(name2, "string", "MySqlDateString");
|
29917
29947
|
}
|
@@ -29923,8 +29953,8 @@ var init_date2 = __esm({
|
|
29923
29953
|
);
|
29924
29954
|
}
|
29925
29955
|
};
|
29926
|
-
__publicField(MySqlDateStringBuilder,
|
29927
|
-
MySqlDateString = class extends (_b176 = MySqlColumn,
|
29956
|
+
__publicField(MySqlDateStringBuilder, _a250, "MySqlDateStringBuilder");
|
29957
|
+
MySqlDateString = class extends (_b176 = MySqlColumn, _a251 = entityKind, _b176) {
|
29928
29958
|
constructor(table4, config) {
|
29929
29959
|
super(table4, config);
|
29930
29960
|
}
|
@@ -29932,18 +29962,18 @@ var init_date2 = __esm({
|
|
29932
29962
|
return `date`;
|
29933
29963
|
}
|
29934
29964
|
};
|
29935
|
-
__publicField(MySqlDateString,
|
29965
|
+
__publicField(MySqlDateString, _a251, "MySqlDateString");
|
29936
29966
|
}
|
29937
29967
|
});
|
29938
29968
|
|
29939
29969
|
// ../drizzle-orm/dist/mysql-core/columns/datetime.js
|
29940
|
-
var
|
29970
|
+
var _a252, _b177, MySqlDateTimeBuilder, _a253, _b178, MySqlDateTime, _a254, _b179, MySqlDateTimeStringBuilder, _a255, _b180, MySqlDateTimeString;
|
29941
29971
|
var init_datetime = __esm({
|
29942
29972
|
"../drizzle-orm/dist/mysql-core/columns/datetime.js"() {
|
29943
29973
|
"use strict";
|
29944
29974
|
init_entity();
|
29945
29975
|
init_common4();
|
29946
|
-
MySqlDateTimeBuilder = class extends (_b177 = MySqlColumnBuilder,
|
29976
|
+
MySqlDateTimeBuilder = class extends (_b177 = MySqlColumnBuilder, _a252 = entityKind, _b177) {
|
29947
29977
|
constructor(name2, config) {
|
29948
29978
|
super(name2, "date", "MySqlDateTime");
|
29949
29979
|
this.config.fsp = config?.fsp;
|
@@ -29956,8 +29986,8 @@ var init_datetime = __esm({
|
|
29956
29986
|
);
|
29957
29987
|
}
|
29958
29988
|
};
|
29959
|
-
__publicField(MySqlDateTimeBuilder,
|
29960
|
-
MySqlDateTime = class extends (_b178 = MySqlColumn,
|
29989
|
+
__publicField(MySqlDateTimeBuilder, _a252, "MySqlDateTimeBuilder");
|
29990
|
+
MySqlDateTime = class extends (_b178 = MySqlColumn, _a253 = entityKind, _b178) {
|
29961
29991
|
constructor(table4, config) {
|
29962
29992
|
super(table4, config);
|
29963
29993
|
__publicField(this, "fsp");
|
@@ -29974,8 +30004,8 @@ var init_datetime = __esm({
|
|
29974
30004
|
return /* @__PURE__ */ new Date(value.replace(" ", "T") + "Z");
|
29975
30005
|
}
|
29976
30006
|
};
|
29977
|
-
__publicField(MySqlDateTime,
|
29978
|
-
MySqlDateTimeStringBuilder = class extends (_b179 = MySqlColumnBuilder,
|
30007
|
+
__publicField(MySqlDateTime, _a253, "MySqlDateTime");
|
30008
|
+
MySqlDateTimeStringBuilder = class extends (_b179 = MySqlColumnBuilder, _a254 = entityKind, _b179) {
|
29979
30009
|
constructor(name2, config) {
|
29980
30010
|
super(name2, "string", "MySqlDateTimeString");
|
29981
30011
|
this.config.fsp = config?.fsp;
|
@@ -29988,8 +30018,8 @@ var init_datetime = __esm({
|
|
29988
30018
|
);
|
29989
30019
|
}
|
29990
30020
|
};
|
29991
|
-
__publicField(MySqlDateTimeStringBuilder,
|
29992
|
-
MySqlDateTimeString = class extends (_b180 = MySqlColumn,
|
30021
|
+
__publicField(MySqlDateTimeStringBuilder, _a254, "MySqlDateTimeStringBuilder");
|
30022
|
+
MySqlDateTimeString = class extends (_b180 = MySqlColumn, _a255 = entityKind, _b180) {
|
29993
30023
|
constructor(table4, config) {
|
29994
30024
|
super(table4, config);
|
29995
30025
|
__publicField(this, "fsp");
|
@@ -30000,18 +30030,18 @@ var init_datetime = __esm({
|
|
30000
30030
|
return `datetime${precision}`;
|
30001
30031
|
}
|
30002
30032
|
};
|
30003
|
-
__publicField(MySqlDateTimeString,
|
30033
|
+
__publicField(MySqlDateTimeString, _a255, "MySqlDateTimeString");
|
30004
30034
|
}
|
30005
30035
|
});
|
30006
30036
|
|
30007
30037
|
// ../drizzle-orm/dist/mysql-core/columns/decimal.js
|
30008
|
-
var
|
30038
|
+
var _a256, _b181, MySqlDecimalBuilder, _a257, _b182, MySqlDecimal;
|
30009
30039
|
var init_decimal = __esm({
|
30010
30040
|
"../drizzle-orm/dist/mysql-core/columns/decimal.js"() {
|
30011
30041
|
"use strict";
|
30012
30042
|
init_entity();
|
30013
30043
|
init_common4();
|
30014
|
-
MySqlDecimalBuilder = class extends (_b181 = MySqlColumnBuilderWithAutoIncrement,
|
30044
|
+
MySqlDecimalBuilder = class extends (_b181 = MySqlColumnBuilderWithAutoIncrement, _a256 = entityKind, _b181) {
|
30015
30045
|
constructor(name2, precision, scale) {
|
30016
30046
|
super(name2, "string", "MySqlDecimal");
|
30017
30047
|
this.config.precision = precision;
|
@@ -30025,8 +30055,8 @@ var init_decimal = __esm({
|
|
30025
30055
|
);
|
30026
30056
|
}
|
30027
30057
|
};
|
30028
|
-
__publicField(MySqlDecimalBuilder,
|
30029
|
-
MySqlDecimal = class extends (_b182 = MySqlColumnWithAutoIncrement,
|
30058
|
+
__publicField(MySqlDecimalBuilder, _a256, "MySqlDecimalBuilder");
|
30059
|
+
MySqlDecimal = class extends (_b182 = MySqlColumnWithAutoIncrement, _a257 = entityKind, _b182) {
|
30030
30060
|
constructor() {
|
30031
30061
|
super(...arguments);
|
30032
30062
|
__publicField(this, "precision", this.config.precision);
|
@@ -30042,18 +30072,18 @@ var init_decimal = __esm({
|
|
30042
30072
|
}
|
30043
30073
|
}
|
30044
30074
|
};
|
30045
|
-
__publicField(MySqlDecimal,
|
30075
|
+
__publicField(MySqlDecimal, _a257, "MySqlDecimal");
|
30046
30076
|
}
|
30047
30077
|
});
|
30048
30078
|
|
30049
30079
|
// ../drizzle-orm/dist/mysql-core/columns/double.js
|
30050
|
-
var
|
30080
|
+
var _a258, _b183, MySqlDoubleBuilder, _a259, _b184, MySqlDouble;
|
30051
30081
|
var init_double = __esm({
|
30052
30082
|
"../drizzle-orm/dist/mysql-core/columns/double.js"() {
|
30053
30083
|
"use strict";
|
30054
30084
|
init_entity();
|
30055
30085
|
init_common4();
|
30056
|
-
MySqlDoubleBuilder = class extends (_b183 = MySqlColumnBuilderWithAutoIncrement,
|
30086
|
+
MySqlDoubleBuilder = class extends (_b183 = MySqlColumnBuilderWithAutoIncrement, _a258 = entityKind, _b183) {
|
30057
30087
|
constructor(name2, config) {
|
30058
30088
|
super(name2, "number", "MySqlDouble");
|
30059
30089
|
this.config.precision = config?.precision;
|
@@ -30064,8 +30094,8 @@ var init_double = __esm({
|
|
30064
30094
|
return new MySqlDouble(table4, this.config);
|
30065
30095
|
}
|
30066
30096
|
};
|
30067
|
-
__publicField(MySqlDoubleBuilder,
|
30068
|
-
MySqlDouble = class extends (_b184 = MySqlColumnWithAutoIncrement,
|
30097
|
+
__publicField(MySqlDoubleBuilder, _a258, "MySqlDoubleBuilder");
|
30098
|
+
MySqlDouble = class extends (_b184 = MySqlColumnWithAutoIncrement, _a259 = entityKind, _b184) {
|
30069
30099
|
constructor() {
|
30070
30100
|
super(...arguments);
|
30071
30101
|
__publicField(this, "precision", this.config.precision);
|
@@ -30081,18 +30111,18 @@ var init_double = __esm({
|
|
30081
30111
|
}
|
30082
30112
|
}
|
30083
30113
|
};
|
30084
|
-
__publicField(MySqlDouble,
|
30114
|
+
__publicField(MySqlDouble, _a259, "MySqlDouble");
|
30085
30115
|
}
|
30086
30116
|
});
|
30087
30117
|
|
30088
30118
|
// ../drizzle-orm/dist/mysql-core/columns/enum.js
|
30089
|
-
var
|
30119
|
+
var _a260, _b185, MySqlEnumColumnBuilder, _a261, _b186, MySqlEnumColumn;
|
30090
30120
|
var init_enum2 = __esm({
|
30091
30121
|
"../drizzle-orm/dist/mysql-core/columns/enum.js"() {
|
30092
30122
|
"use strict";
|
30093
30123
|
init_entity();
|
30094
30124
|
init_common4();
|
30095
|
-
MySqlEnumColumnBuilder = class extends (_b185 = MySqlColumnBuilder,
|
30125
|
+
MySqlEnumColumnBuilder = class extends (_b185 = MySqlColumnBuilder, _a260 = entityKind, _b185) {
|
30096
30126
|
constructor(name2, values) {
|
30097
30127
|
super(name2, "string", "MySqlEnumColumn");
|
30098
30128
|
this.config.enumValues = values;
|
@@ -30105,8 +30135,8 @@ var init_enum2 = __esm({
|
|
30105
30135
|
);
|
30106
30136
|
}
|
30107
30137
|
};
|
30108
|
-
__publicField(MySqlEnumColumnBuilder,
|
30109
|
-
MySqlEnumColumn = class extends (_b186 = MySqlColumn,
|
30138
|
+
__publicField(MySqlEnumColumnBuilder, _a260, "MySqlEnumColumnBuilder");
|
30139
|
+
MySqlEnumColumn = class extends (_b186 = MySqlColumn, _a261 = entityKind, _b186) {
|
30110
30140
|
constructor() {
|
30111
30141
|
super(...arguments);
|
30112
30142
|
__publicField(this, "enumValues", this.config.enumValues);
|
@@ -30115,18 +30145,18 @@ var init_enum2 = __esm({
|
|
30115
30145
|
return `enum(${this.enumValues.map((value) => `'${value}'`).join(",")})`;
|
30116
30146
|
}
|
30117
30147
|
};
|
30118
|
-
__publicField(MySqlEnumColumn,
|
30148
|
+
__publicField(MySqlEnumColumn, _a261, "MySqlEnumColumn");
|
30119
30149
|
}
|
30120
30150
|
});
|
30121
30151
|
|
30122
30152
|
// ../drizzle-orm/dist/mysql-core/columns/float.js
|
30123
|
-
var
|
30153
|
+
var _a262, _b187, MySqlFloatBuilder, _a263, _b188, MySqlFloat;
|
30124
30154
|
var init_float = __esm({
|
30125
30155
|
"../drizzle-orm/dist/mysql-core/columns/float.js"() {
|
30126
30156
|
"use strict";
|
30127
30157
|
init_entity();
|
30128
30158
|
init_common4();
|
30129
|
-
MySqlFloatBuilder = class extends (_b187 = MySqlColumnBuilderWithAutoIncrement,
|
30159
|
+
MySqlFloatBuilder = class extends (_b187 = MySqlColumnBuilderWithAutoIncrement, _a262 = entityKind, _b187) {
|
30130
30160
|
constructor(name2) {
|
30131
30161
|
super(name2, "number", "MySqlFloat");
|
30132
30162
|
}
|
@@ -30135,24 +30165,24 @@ var init_float = __esm({
|
|
30135
30165
|
return new MySqlFloat(table4, this.config);
|
30136
30166
|
}
|
30137
30167
|
};
|
30138
|
-
__publicField(MySqlFloatBuilder,
|
30139
|
-
MySqlFloat = class extends (_b188 = MySqlColumnWithAutoIncrement,
|
30168
|
+
__publicField(MySqlFloatBuilder, _a262, "MySqlFloatBuilder");
|
30169
|
+
MySqlFloat = class extends (_b188 = MySqlColumnWithAutoIncrement, _a263 = entityKind, _b188) {
|
30140
30170
|
getSQLType() {
|
30141
30171
|
return "float";
|
30142
30172
|
}
|
30143
30173
|
};
|
30144
|
-
__publicField(MySqlFloat,
|
30174
|
+
__publicField(MySqlFloat, _a263, "MySqlFloat");
|
30145
30175
|
}
|
30146
30176
|
});
|
30147
30177
|
|
30148
30178
|
// ../drizzle-orm/dist/mysql-core/columns/int.js
|
30149
|
-
var
|
30179
|
+
var _a264, _b189, MySqlIntBuilder, _a265, _b190, MySqlInt;
|
30150
30180
|
var init_int = __esm({
|
30151
30181
|
"../drizzle-orm/dist/mysql-core/columns/int.js"() {
|
30152
30182
|
"use strict";
|
30153
30183
|
init_entity();
|
30154
30184
|
init_common4();
|
30155
|
-
MySqlIntBuilder = class extends (_b189 = MySqlColumnBuilderWithAutoIncrement,
|
30185
|
+
MySqlIntBuilder = class extends (_b189 = MySqlColumnBuilderWithAutoIncrement, _a264 = entityKind, _b189) {
|
30156
30186
|
constructor(name2, config) {
|
30157
30187
|
super(name2, "number", "MySqlInt");
|
30158
30188
|
this.config.unsigned = config ? config.unsigned : false;
|
@@ -30162,8 +30192,8 @@ var init_int = __esm({
|
|
30162
30192
|
return new MySqlInt(table4, this.config);
|
30163
30193
|
}
|
30164
30194
|
};
|
30165
|
-
__publicField(MySqlIntBuilder,
|
30166
|
-
MySqlInt = class extends (_b190 = MySqlColumnWithAutoIncrement,
|
30195
|
+
__publicField(MySqlIntBuilder, _a264, "MySqlIntBuilder");
|
30196
|
+
MySqlInt = class extends (_b190 = MySqlColumnWithAutoIncrement, _a265 = entityKind, _b190) {
|
30167
30197
|
getSQLType() {
|
30168
30198
|
return `int${this.config.unsigned ? " unsigned" : ""}`;
|
30169
30199
|
}
|
@@ -30174,18 +30204,18 @@ var init_int = __esm({
|
|
30174
30204
|
return value;
|
30175
30205
|
}
|
30176
30206
|
};
|
30177
|
-
__publicField(MySqlInt,
|
30207
|
+
__publicField(MySqlInt, _a265, "MySqlInt");
|
30178
30208
|
}
|
30179
30209
|
});
|
30180
30210
|
|
30181
30211
|
// ../drizzle-orm/dist/mysql-core/columns/json.js
|
30182
|
-
var
|
30212
|
+
var _a266, _b191, MySqlJsonBuilder, _a267, _b192, MySqlJson;
|
30183
30213
|
var init_json2 = __esm({
|
30184
30214
|
"../drizzle-orm/dist/mysql-core/columns/json.js"() {
|
30185
30215
|
"use strict";
|
30186
30216
|
init_entity();
|
30187
30217
|
init_common4();
|
30188
|
-
MySqlJsonBuilder = class extends (_b191 = MySqlColumnBuilder,
|
30218
|
+
MySqlJsonBuilder = class extends (_b191 = MySqlColumnBuilder, _a266 = entityKind, _b191) {
|
30189
30219
|
constructor(name2) {
|
30190
30220
|
super(name2, "json", "MySqlJson");
|
30191
30221
|
}
|
@@ -30194,8 +30224,8 @@ var init_json2 = __esm({
|
|
30194
30224
|
return new MySqlJson(table4, this.config);
|
30195
30225
|
}
|
30196
30226
|
};
|
30197
|
-
__publicField(MySqlJsonBuilder,
|
30198
|
-
MySqlJson = class extends (_b192 = MySqlColumn,
|
30227
|
+
__publicField(MySqlJsonBuilder, _a266, "MySqlJsonBuilder");
|
30228
|
+
MySqlJson = class extends (_b192 = MySqlColumn, _a267 = entityKind, _b192) {
|
30199
30229
|
getSQLType() {
|
30200
30230
|
return "json";
|
30201
30231
|
}
|
@@ -30203,18 +30233,18 @@ var init_json2 = __esm({
|
|
30203
30233
|
return JSON.stringify(value);
|
30204
30234
|
}
|
30205
30235
|
};
|
30206
|
-
__publicField(MySqlJson,
|
30236
|
+
__publicField(MySqlJson, _a267, "MySqlJson");
|
30207
30237
|
}
|
30208
30238
|
});
|
30209
30239
|
|
30210
30240
|
// ../drizzle-orm/dist/mysql-core/columns/mediumint.js
|
30211
|
-
var
|
30241
|
+
var _a268, _b193, MySqlMediumIntBuilder, _a269, _b194, MySqlMediumInt;
|
30212
30242
|
var init_mediumint = __esm({
|
30213
30243
|
"../drizzle-orm/dist/mysql-core/columns/mediumint.js"() {
|
30214
30244
|
"use strict";
|
30215
30245
|
init_entity();
|
30216
30246
|
init_common4();
|
30217
|
-
MySqlMediumIntBuilder = class extends (_b193 = MySqlColumnBuilderWithAutoIncrement,
|
30247
|
+
MySqlMediumIntBuilder = class extends (_b193 = MySqlColumnBuilderWithAutoIncrement, _a268 = entityKind, _b193) {
|
30218
30248
|
constructor(name2, config) {
|
30219
30249
|
super(name2, "number", "MySqlMediumInt");
|
30220
30250
|
this.config.unsigned = config ? config.unsigned : false;
|
@@ -30227,8 +30257,8 @@ var init_mediumint = __esm({
|
|
30227
30257
|
);
|
30228
30258
|
}
|
30229
30259
|
};
|
30230
|
-
__publicField(MySqlMediumIntBuilder,
|
30231
|
-
MySqlMediumInt = class extends (_b194 = MySqlColumnWithAutoIncrement,
|
30260
|
+
__publicField(MySqlMediumIntBuilder, _a268, "MySqlMediumIntBuilder");
|
30261
|
+
MySqlMediumInt = class extends (_b194 = MySqlColumnWithAutoIncrement, _a269 = entityKind, _b194) {
|
30232
30262
|
getSQLType() {
|
30233
30263
|
return `mediumint${this.config.unsigned ? " unsigned" : ""}`;
|
30234
30264
|
}
|
@@ -30239,18 +30269,18 @@ var init_mediumint = __esm({
|
|
30239
30269
|
return value;
|
30240
30270
|
}
|
30241
30271
|
};
|
30242
|
-
__publicField(MySqlMediumInt,
|
30272
|
+
__publicField(MySqlMediumInt, _a269, "MySqlMediumInt");
|
30243
30273
|
}
|
30244
30274
|
});
|
30245
30275
|
|
30246
30276
|
// ../drizzle-orm/dist/mysql-core/columns/real.js
|
30247
|
-
var
|
30277
|
+
var _a270, _b195, MySqlRealBuilder, _a271, _b196, MySqlReal;
|
30248
30278
|
var init_real3 = __esm({
|
30249
30279
|
"../drizzle-orm/dist/mysql-core/columns/real.js"() {
|
30250
30280
|
"use strict";
|
30251
30281
|
init_entity();
|
30252
30282
|
init_common4();
|
30253
|
-
MySqlRealBuilder = class extends (_b195 = MySqlColumnBuilderWithAutoIncrement,
|
30283
|
+
MySqlRealBuilder = class extends (_b195 = MySqlColumnBuilderWithAutoIncrement, _a270 = entityKind, _b195) {
|
30254
30284
|
constructor(name2, config) {
|
30255
30285
|
super(name2, "number", "MySqlReal");
|
30256
30286
|
this.config.precision = config?.precision;
|
@@ -30261,8 +30291,8 @@ var init_real3 = __esm({
|
|
30261
30291
|
return new MySqlReal(table4, this.config);
|
30262
30292
|
}
|
30263
30293
|
};
|
30264
|
-
__publicField(MySqlRealBuilder,
|
30265
|
-
MySqlReal = class extends (_b196 = MySqlColumnWithAutoIncrement,
|
30294
|
+
__publicField(MySqlRealBuilder, _a270, "MySqlRealBuilder");
|
30295
|
+
MySqlReal = class extends (_b196 = MySqlColumnWithAutoIncrement, _a271 = entityKind, _b196) {
|
30266
30296
|
constructor() {
|
30267
30297
|
super(...arguments);
|
30268
30298
|
__publicField(this, "precision", this.config.precision);
|
@@ -30278,18 +30308,18 @@ var init_real3 = __esm({
|
|
30278
30308
|
}
|
30279
30309
|
}
|
30280
30310
|
};
|
30281
|
-
__publicField(MySqlReal,
|
30311
|
+
__publicField(MySqlReal, _a271, "MySqlReal");
|
30282
30312
|
}
|
30283
30313
|
});
|
30284
30314
|
|
30285
30315
|
// ../drizzle-orm/dist/mysql-core/columns/serial.js
|
30286
|
-
var
|
30316
|
+
var _a272, _b197, MySqlSerialBuilder, _a273, _b198, MySqlSerial;
|
30287
30317
|
var init_serial2 = __esm({
|
30288
30318
|
"../drizzle-orm/dist/mysql-core/columns/serial.js"() {
|
30289
30319
|
"use strict";
|
30290
30320
|
init_entity();
|
30291
30321
|
init_common4();
|
30292
|
-
MySqlSerialBuilder = class extends (_b197 = MySqlColumnBuilderWithAutoIncrement,
|
30322
|
+
MySqlSerialBuilder = class extends (_b197 = MySqlColumnBuilderWithAutoIncrement, _a272 = entityKind, _b197) {
|
30293
30323
|
constructor(name2) {
|
30294
30324
|
super(name2, "number", "MySqlSerial");
|
30295
30325
|
this.config.hasDefault = true;
|
@@ -30300,8 +30330,8 @@ var init_serial2 = __esm({
|
|
30300
30330
|
return new MySqlSerial(table4, this.config);
|
30301
30331
|
}
|
30302
30332
|
};
|
30303
|
-
__publicField(MySqlSerialBuilder,
|
30304
|
-
MySqlSerial = class extends (_b198 = MySqlColumnWithAutoIncrement,
|
30333
|
+
__publicField(MySqlSerialBuilder, _a272, "MySqlSerialBuilder");
|
30334
|
+
MySqlSerial = class extends (_b198 = MySqlColumnWithAutoIncrement, _a273 = entityKind, _b198) {
|
30305
30335
|
getSQLType() {
|
30306
30336
|
return "serial";
|
30307
30337
|
}
|
@@ -30312,18 +30342,18 @@ var init_serial2 = __esm({
|
|
30312
30342
|
return value;
|
30313
30343
|
}
|
30314
30344
|
};
|
30315
|
-
__publicField(MySqlSerial,
|
30345
|
+
__publicField(MySqlSerial, _a273, "MySqlSerial");
|
30316
30346
|
}
|
30317
30347
|
});
|
30318
30348
|
|
30319
30349
|
// ../drizzle-orm/dist/mysql-core/columns/smallint.js
|
30320
|
-
var
|
30350
|
+
var _a274, _b199, MySqlSmallIntBuilder, _a275, _b200, MySqlSmallInt;
|
30321
30351
|
var init_smallint2 = __esm({
|
30322
30352
|
"../drizzle-orm/dist/mysql-core/columns/smallint.js"() {
|
30323
30353
|
"use strict";
|
30324
30354
|
init_entity();
|
30325
30355
|
init_common4();
|
30326
|
-
MySqlSmallIntBuilder = class extends (_b199 = MySqlColumnBuilderWithAutoIncrement,
|
30356
|
+
MySqlSmallIntBuilder = class extends (_b199 = MySqlColumnBuilderWithAutoIncrement, _a274 = entityKind, _b199) {
|
30327
30357
|
constructor(name2, config) {
|
30328
30358
|
super(name2, "number", "MySqlSmallInt");
|
30329
30359
|
this.config.unsigned = config ? config.unsigned : false;
|
@@ -30336,8 +30366,8 @@ var init_smallint2 = __esm({
|
|
30336
30366
|
);
|
30337
30367
|
}
|
30338
30368
|
};
|
30339
|
-
__publicField(MySqlSmallIntBuilder,
|
30340
|
-
MySqlSmallInt = class extends (_b200 = MySqlColumnWithAutoIncrement,
|
30369
|
+
__publicField(MySqlSmallIntBuilder, _a274, "MySqlSmallIntBuilder");
|
30370
|
+
MySqlSmallInt = class extends (_b200 = MySqlColumnWithAutoIncrement, _a275 = entityKind, _b200) {
|
30341
30371
|
getSQLType() {
|
30342
30372
|
return `smallint${this.config.unsigned ? " unsigned" : ""}`;
|
30343
30373
|
}
|
@@ -30348,18 +30378,18 @@ var init_smallint2 = __esm({
|
|
30348
30378
|
return value;
|
30349
30379
|
}
|
30350
30380
|
};
|
30351
|
-
__publicField(MySqlSmallInt,
|
30381
|
+
__publicField(MySqlSmallInt, _a275, "MySqlSmallInt");
|
30352
30382
|
}
|
30353
30383
|
});
|
30354
30384
|
|
30355
30385
|
// ../drizzle-orm/dist/mysql-core/columns/text.js
|
30356
|
-
var
|
30386
|
+
var _a276, _b201, MySqlTextBuilder, _a277, _b202, MySqlText;
|
30357
30387
|
var init_text3 = __esm({
|
30358
30388
|
"../drizzle-orm/dist/mysql-core/columns/text.js"() {
|
30359
30389
|
"use strict";
|
30360
30390
|
init_entity();
|
30361
30391
|
init_common4();
|
30362
|
-
MySqlTextBuilder = class extends (_b201 = MySqlColumnBuilder,
|
30392
|
+
MySqlTextBuilder = class extends (_b201 = MySqlColumnBuilder, _a276 = entityKind, _b201) {
|
30363
30393
|
constructor(name2, textType, config) {
|
30364
30394
|
super(name2, "string", "MySqlText");
|
30365
30395
|
this.config.textType = textType;
|
@@ -30370,8 +30400,8 @@ var init_text3 = __esm({
|
|
30370
30400
|
return new MySqlText(table4, this.config);
|
30371
30401
|
}
|
30372
30402
|
};
|
30373
|
-
__publicField(MySqlTextBuilder,
|
30374
|
-
MySqlText = class extends (_b202 = MySqlColumn,
|
30403
|
+
__publicField(MySqlTextBuilder, _a276, "MySqlTextBuilder");
|
30404
|
+
MySqlText = class extends (_b202 = MySqlColumn, _a277 = entityKind, _b202) {
|
30375
30405
|
constructor() {
|
30376
30406
|
super(...arguments);
|
30377
30407
|
__publicField(this, "textType", this.config.textType);
|
@@ -30381,18 +30411,18 @@ var init_text3 = __esm({
|
|
30381
30411
|
return this.textType;
|
30382
30412
|
}
|
30383
30413
|
};
|
30384
|
-
__publicField(MySqlText,
|
30414
|
+
__publicField(MySqlText, _a277, "MySqlText");
|
30385
30415
|
}
|
30386
30416
|
});
|
30387
30417
|
|
30388
30418
|
// ../drizzle-orm/dist/mysql-core/columns/time.js
|
30389
|
-
var
|
30419
|
+
var _a278, _b203, MySqlTimeBuilder, _a279, _b204, MySqlTime;
|
30390
30420
|
var init_time2 = __esm({
|
30391
30421
|
"../drizzle-orm/dist/mysql-core/columns/time.js"() {
|
30392
30422
|
"use strict";
|
30393
30423
|
init_entity();
|
30394
30424
|
init_common4();
|
30395
|
-
MySqlTimeBuilder = class extends (_b203 = MySqlColumnBuilder,
|
30425
|
+
MySqlTimeBuilder = class extends (_b203 = MySqlColumnBuilder, _a278 = entityKind, _b203) {
|
30396
30426
|
constructor(name2, config) {
|
30397
30427
|
super(name2, "string", "MySqlTime");
|
30398
30428
|
this.config.fsp = config?.fsp;
|
@@ -30402,8 +30432,8 @@ var init_time2 = __esm({
|
|
30402
30432
|
return new MySqlTime(table4, this.config);
|
30403
30433
|
}
|
30404
30434
|
};
|
30405
|
-
__publicField(MySqlTimeBuilder,
|
30406
|
-
MySqlTime = class extends (_b204 = MySqlColumn,
|
30435
|
+
__publicField(MySqlTimeBuilder, _a278, "MySqlTimeBuilder");
|
30436
|
+
MySqlTime = class extends (_b204 = MySqlColumn, _a279 = entityKind, _b204) {
|
30407
30437
|
constructor() {
|
30408
30438
|
super(...arguments);
|
30409
30439
|
__publicField(this, "fsp", this.config.fsp);
|
@@ -30413,19 +30443,19 @@ var init_time2 = __esm({
|
|
30413
30443
|
return `time${precision}`;
|
30414
30444
|
}
|
30415
30445
|
};
|
30416
|
-
__publicField(MySqlTime,
|
30446
|
+
__publicField(MySqlTime, _a279, "MySqlTime");
|
30417
30447
|
}
|
30418
30448
|
});
|
30419
30449
|
|
30420
30450
|
// ../drizzle-orm/dist/mysql-core/columns/date.common.js
|
30421
|
-
var
|
30451
|
+
var _a280, _b205, MySqlDateColumnBaseBuilder, _a281, _b206, MySqlDateBaseColumn;
|
30422
30452
|
var init_date_common2 = __esm({
|
30423
30453
|
"../drizzle-orm/dist/mysql-core/columns/date.common.js"() {
|
30424
30454
|
"use strict";
|
30425
30455
|
init_entity();
|
30426
30456
|
init_sql();
|
30427
30457
|
init_common4();
|
30428
|
-
MySqlDateColumnBaseBuilder = class extends (_b205 = MySqlColumnBuilder,
|
30458
|
+
MySqlDateColumnBaseBuilder = class extends (_b205 = MySqlColumnBuilder, _a280 = entityKind, _b205) {
|
30429
30459
|
defaultNow() {
|
30430
30460
|
return this.default(sql`(now())`);
|
30431
30461
|
}
|
@@ -30436,25 +30466,25 @@ var init_date_common2 = __esm({
|
|
30436
30466
|
return this;
|
30437
30467
|
}
|
30438
30468
|
};
|
30439
|
-
__publicField(MySqlDateColumnBaseBuilder,
|
30440
|
-
MySqlDateBaseColumn = class extends (_b206 = MySqlColumn,
|
30469
|
+
__publicField(MySqlDateColumnBaseBuilder, _a280, "MySqlDateColumnBuilder");
|
30470
|
+
MySqlDateBaseColumn = class extends (_b206 = MySqlColumn, _a281 = entityKind, _b206) {
|
30441
30471
|
constructor() {
|
30442
30472
|
super(...arguments);
|
30443
30473
|
__publicField(this, "hasOnUpdateNow", this.config.hasOnUpdateNow);
|
30444
30474
|
}
|
30445
30475
|
};
|
30446
|
-
__publicField(MySqlDateBaseColumn,
|
30476
|
+
__publicField(MySqlDateBaseColumn, _a281, "MySqlDateColumn");
|
30447
30477
|
}
|
30448
30478
|
});
|
30449
30479
|
|
30450
30480
|
// ../drizzle-orm/dist/mysql-core/columns/timestamp.js
|
30451
|
-
var
|
30481
|
+
var _a282, _b207, MySqlTimestampBuilder, _a283, _b208, MySqlTimestamp, _a284, _b209, MySqlTimestampStringBuilder, _a285, _b210, MySqlTimestampString;
|
30452
30482
|
var init_timestamp2 = __esm({
|
30453
30483
|
"../drizzle-orm/dist/mysql-core/columns/timestamp.js"() {
|
30454
30484
|
"use strict";
|
30455
30485
|
init_entity();
|
30456
30486
|
init_date_common2();
|
30457
|
-
MySqlTimestampBuilder = class extends (_b207 = MySqlDateColumnBaseBuilder,
|
30487
|
+
MySqlTimestampBuilder = class extends (_b207 = MySqlDateColumnBaseBuilder, _a282 = entityKind, _b207) {
|
30458
30488
|
constructor(name2, config) {
|
30459
30489
|
super(name2, "date", "MySqlTimestamp");
|
30460
30490
|
this.config.fsp = config?.fsp;
|
@@ -30467,8 +30497,8 @@ var init_timestamp2 = __esm({
|
|
30467
30497
|
);
|
30468
30498
|
}
|
30469
30499
|
};
|
30470
|
-
__publicField(MySqlTimestampBuilder,
|
30471
|
-
MySqlTimestamp = class extends (_b208 = MySqlDateBaseColumn,
|
30500
|
+
__publicField(MySqlTimestampBuilder, _a282, "MySqlTimestampBuilder");
|
30501
|
+
MySqlTimestamp = class extends (_b208 = MySqlDateBaseColumn, _a283 = entityKind, _b208) {
|
30472
30502
|
constructor() {
|
30473
30503
|
super(...arguments);
|
30474
30504
|
__publicField(this, "fsp", this.config.fsp);
|
@@ -30484,8 +30514,8 @@ var init_timestamp2 = __esm({
|
|
30484
30514
|
return value.toISOString().slice(0, -1).replace("T", " ");
|
30485
30515
|
}
|
30486
30516
|
};
|
30487
|
-
__publicField(MySqlTimestamp,
|
30488
|
-
MySqlTimestampStringBuilder = class extends (_b209 = MySqlDateColumnBaseBuilder,
|
30517
|
+
__publicField(MySqlTimestamp, _a283, "MySqlTimestamp");
|
30518
|
+
MySqlTimestampStringBuilder = class extends (_b209 = MySqlDateColumnBaseBuilder, _a284 = entityKind, _b209) {
|
30489
30519
|
constructor(name2, config) {
|
30490
30520
|
super(name2, "string", "MySqlTimestampString");
|
30491
30521
|
this.config.fsp = config?.fsp;
|
@@ -30498,8 +30528,8 @@ var init_timestamp2 = __esm({
|
|
30498
30528
|
);
|
30499
30529
|
}
|
30500
30530
|
};
|
30501
|
-
__publicField(MySqlTimestampStringBuilder,
|
30502
|
-
MySqlTimestampString = class extends (_b210 = MySqlDateBaseColumn,
|
30531
|
+
__publicField(MySqlTimestampStringBuilder, _a284, "MySqlTimestampStringBuilder");
|
30532
|
+
MySqlTimestampString = class extends (_b210 = MySqlDateBaseColumn, _a285 = entityKind, _b210) {
|
30503
30533
|
constructor() {
|
30504
30534
|
super(...arguments);
|
30505
30535
|
__publicField(this, "fsp", this.config.fsp);
|
@@ -30509,18 +30539,18 @@ var init_timestamp2 = __esm({
|
|
30509
30539
|
return `timestamp${precision}`;
|
30510
30540
|
}
|
30511
30541
|
};
|
30512
|
-
__publicField(MySqlTimestampString,
|
30542
|
+
__publicField(MySqlTimestampString, _a285, "MySqlTimestampString");
|
30513
30543
|
}
|
30514
30544
|
});
|
30515
30545
|
|
30516
30546
|
// ../drizzle-orm/dist/mysql-core/columns/tinyint.js
|
30517
|
-
var
|
30547
|
+
var _a286, _b211, MySqlTinyIntBuilder, _a287, _b212, MySqlTinyInt;
|
30518
30548
|
var init_tinyint = __esm({
|
30519
30549
|
"../drizzle-orm/dist/mysql-core/columns/tinyint.js"() {
|
30520
30550
|
"use strict";
|
30521
30551
|
init_entity();
|
30522
30552
|
init_common4();
|
30523
|
-
MySqlTinyIntBuilder = class extends (_b211 = MySqlColumnBuilderWithAutoIncrement,
|
30553
|
+
MySqlTinyIntBuilder = class extends (_b211 = MySqlColumnBuilderWithAutoIncrement, _a286 = entityKind, _b211) {
|
30524
30554
|
constructor(name2, config) {
|
30525
30555
|
super(name2, "number", "MySqlTinyInt");
|
30526
30556
|
this.config.unsigned = config ? config.unsigned : false;
|
@@ -30533,8 +30563,8 @@ var init_tinyint = __esm({
|
|
30533
30563
|
);
|
30534
30564
|
}
|
30535
30565
|
};
|
30536
|
-
__publicField(MySqlTinyIntBuilder,
|
30537
|
-
MySqlTinyInt = class extends (_b212 = MySqlColumnWithAutoIncrement,
|
30566
|
+
__publicField(MySqlTinyIntBuilder, _a286, "MySqlTinyIntBuilder");
|
30567
|
+
MySqlTinyInt = class extends (_b212 = MySqlColumnWithAutoIncrement, _a287 = entityKind, _b212) {
|
30538
30568
|
getSQLType() {
|
30539
30569
|
return `tinyint${this.config.unsigned ? " unsigned" : ""}`;
|
30540
30570
|
}
|
@@ -30545,18 +30575,18 @@ var init_tinyint = __esm({
|
|
30545
30575
|
return value;
|
30546
30576
|
}
|
30547
30577
|
};
|
30548
|
-
__publicField(MySqlTinyInt,
|
30578
|
+
__publicField(MySqlTinyInt, _a287, "MySqlTinyInt");
|
30549
30579
|
}
|
30550
30580
|
});
|
30551
30581
|
|
30552
30582
|
// ../drizzle-orm/dist/mysql-core/columns/varbinary.js
|
30553
|
-
var
|
30583
|
+
var _a288, _b213, MySqlVarBinaryBuilder, _a289, _b214, MySqlVarBinary;
|
30554
30584
|
var init_varbinary = __esm({
|
30555
30585
|
"../drizzle-orm/dist/mysql-core/columns/varbinary.js"() {
|
30556
30586
|
"use strict";
|
30557
30587
|
init_entity();
|
30558
30588
|
init_common4();
|
30559
|
-
MySqlVarBinaryBuilder = class extends (_b213 = MySqlColumnBuilder,
|
30589
|
+
MySqlVarBinaryBuilder = class extends (_b213 = MySqlColumnBuilder, _a288 = entityKind, _b213) {
|
30560
30590
|
/** @internal */
|
30561
30591
|
constructor(name2, config) {
|
30562
30592
|
super(name2, "string", "MySqlVarBinary");
|
@@ -30570,8 +30600,8 @@ var init_varbinary = __esm({
|
|
30570
30600
|
);
|
30571
30601
|
}
|
30572
30602
|
};
|
30573
|
-
__publicField(MySqlVarBinaryBuilder,
|
30574
|
-
MySqlVarBinary = class extends (_b214 = MySqlColumn,
|
30603
|
+
__publicField(MySqlVarBinaryBuilder, _a288, "MySqlVarBinaryBuilder");
|
30604
|
+
MySqlVarBinary = class extends (_b214 = MySqlColumn, _a289 = entityKind, _b214) {
|
30575
30605
|
constructor() {
|
30576
30606
|
super(...arguments);
|
30577
30607
|
__publicField(this, "length", this.config.length);
|
@@ -30580,18 +30610,18 @@ var init_varbinary = __esm({
|
|
30580
30610
|
return this.length === void 0 ? `varbinary` : `varbinary(${this.length})`;
|
30581
30611
|
}
|
30582
30612
|
};
|
30583
|
-
__publicField(MySqlVarBinary,
|
30613
|
+
__publicField(MySqlVarBinary, _a289, "MySqlVarBinary");
|
30584
30614
|
}
|
30585
30615
|
});
|
30586
30616
|
|
30587
30617
|
// ../drizzle-orm/dist/mysql-core/columns/varchar.js
|
30588
|
-
var
|
30618
|
+
var _a290, _b215, MySqlVarCharBuilder, _a291, _b216, MySqlVarChar;
|
30589
30619
|
var init_varchar2 = __esm({
|
30590
30620
|
"../drizzle-orm/dist/mysql-core/columns/varchar.js"() {
|
30591
30621
|
"use strict";
|
30592
30622
|
init_entity();
|
30593
30623
|
init_common4();
|
30594
|
-
MySqlVarCharBuilder = class extends (_b215 = MySqlColumnBuilder,
|
30624
|
+
MySqlVarCharBuilder = class extends (_b215 = MySqlColumnBuilder, _a290 = entityKind, _b215) {
|
30595
30625
|
/** @internal */
|
30596
30626
|
constructor(name2, config) {
|
30597
30627
|
super(name2, "string", "MySqlVarChar");
|
@@ -30606,8 +30636,8 @@ var init_varchar2 = __esm({
|
|
30606
30636
|
);
|
30607
30637
|
}
|
30608
30638
|
};
|
30609
|
-
__publicField(MySqlVarCharBuilder,
|
30610
|
-
MySqlVarChar = class extends (_b216 = MySqlColumn,
|
30639
|
+
__publicField(MySqlVarCharBuilder, _a290, "MySqlVarCharBuilder");
|
30640
|
+
MySqlVarChar = class extends (_b216 = MySqlColumn, _a291 = entityKind, _b216) {
|
30611
30641
|
constructor() {
|
30612
30642
|
super(...arguments);
|
30613
30643
|
__publicField(this, "length", this.config.length);
|
@@ -30617,18 +30647,18 @@ var init_varchar2 = __esm({
|
|
30617
30647
|
return this.length === void 0 ? `varchar` : `varchar(${this.length})`;
|
30618
30648
|
}
|
30619
30649
|
};
|
30620
|
-
__publicField(MySqlVarChar,
|
30650
|
+
__publicField(MySqlVarChar, _a291, "MySqlVarChar");
|
30621
30651
|
}
|
30622
30652
|
});
|
30623
30653
|
|
30624
30654
|
// ../drizzle-orm/dist/mysql-core/columns/year.js
|
30625
|
-
var
|
30655
|
+
var _a292, _b217, MySqlYearBuilder, _a293, _b218, MySqlYear;
|
30626
30656
|
var init_year = __esm({
|
30627
30657
|
"../drizzle-orm/dist/mysql-core/columns/year.js"() {
|
30628
30658
|
"use strict";
|
30629
30659
|
init_entity();
|
30630
30660
|
init_common4();
|
30631
|
-
MySqlYearBuilder = class extends (_b217 = MySqlColumnBuilder,
|
30661
|
+
MySqlYearBuilder = class extends (_b217 = MySqlColumnBuilder, _a292 = entityKind, _b217) {
|
30632
30662
|
constructor(name2) {
|
30633
30663
|
super(name2, "number", "MySqlYear");
|
30634
30664
|
}
|
@@ -30637,13 +30667,13 @@ var init_year = __esm({
|
|
30637
30667
|
return new MySqlYear(table4, this.config);
|
30638
30668
|
}
|
30639
30669
|
};
|
30640
|
-
__publicField(MySqlYearBuilder,
|
30641
|
-
MySqlYear = class extends (_b218 = MySqlColumn,
|
30670
|
+
__publicField(MySqlYearBuilder, _a292, "MySqlYearBuilder");
|
30671
|
+
MySqlYear = class extends (_b218 = MySqlColumn, _a293 = entityKind, _b218) {
|
30642
30672
|
getSQLType() {
|
30643
30673
|
return `year`;
|
30644
30674
|
}
|
30645
30675
|
};
|
30646
|
-
__publicField(MySqlYear,
|
30676
|
+
__publicField(MySqlYear, _a293, "MySqlYear");
|
30647
30677
|
}
|
30648
30678
|
});
|
30649
30679
|
|
@@ -30680,13 +30710,13 @@ var init_columns3 = __esm({
|
|
30680
30710
|
});
|
30681
30711
|
|
30682
30712
|
// ../drizzle-orm/dist/mysql-core/query-builders/delete.js
|
30683
|
-
var
|
30713
|
+
var _a294, _b219, MySqlDeleteBase;
|
30684
30714
|
var init_delete3 = __esm({
|
30685
30715
|
"../drizzle-orm/dist/mysql-core/query-builders/delete.js"() {
|
30686
30716
|
"use strict";
|
30687
30717
|
init_entity();
|
30688
30718
|
init_query_promise();
|
30689
|
-
MySqlDeleteBase = class extends (_b219 = QueryPromise,
|
30719
|
+
MySqlDeleteBase = class extends (_b219 = QueryPromise, _a294 = entityKind, _b219) {
|
30690
30720
|
constructor(table4, session, dialect7, withList) {
|
30691
30721
|
super();
|
30692
30722
|
__publicField(this, "config");
|
@@ -30756,12 +30786,12 @@ var init_delete3 = __esm({
|
|
30756
30786
|
return this;
|
30757
30787
|
}
|
30758
30788
|
};
|
30759
|
-
__publicField(MySqlDeleteBase,
|
30789
|
+
__publicField(MySqlDeleteBase, _a294, "MySqlDelete");
|
30760
30790
|
}
|
30761
30791
|
});
|
30762
30792
|
|
30763
30793
|
// ../drizzle-orm/dist/mysql-core/query-builders/insert.js
|
30764
|
-
var
|
30794
|
+
var _a295, MySqlInsertBuilder, _a296, _b220, MySqlInsertBase;
|
30765
30795
|
var init_insert3 = __esm({
|
30766
30796
|
"../drizzle-orm/dist/mysql-core/query-builders/insert.js"() {
|
30767
30797
|
"use strict";
|
@@ -30770,7 +30800,7 @@ var init_insert3 = __esm({
|
|
30770
30800
|
init_sql();
|
30771
30801
|
init_table();
|
30772
30802
|
init_utils2();
|
30773
|
-
|
30803
|
+
_a295 = entityKind;
|
30774
30804
|
MySqlInsertBuilder = class {
|
30775
30805
|
constructor(table4, session, dialect7) {
|
30776
30806
|
__publicField(this, "shouldIgnore", false);
|
@@ -30799,8 +30829,8 @@ var init_insert3 = __esm({
|
|
30799
30829
|
return new MySqlInsertBase(this.table, mappedValues, this.shouldIgnore, this.session, this.dialect);
|
30800
30830
|
}
|
30801
30831
|
};
|
30802
|
-
__publicField(MySqlInsertBuilder,
|
30803
|
-
MySqlInsertBase = class extends (_b220 = QueryPromise,
|
30832
|
+
__publicField(MySqlInsertBuilder, _a295, "MySqlInsertBuilder");
|
30833
|
+
MySqlInsertBase = class extends (_b220 = QueryPromise, _a296 = entityKind, _b220) {
|
30804
30834
|
constructor(table4, values, ignore, session, dialect7) {
|
30805
30835
|
super();
|
30806
30836
|
__publicField(this, "config");
|
@@ -30881,25 +30911,25 @@ var init_insert3 = __esm({
|
|
30881
30911
|
return this;
|
30882
30912
|
}
|
30883
30913
|
};
|
30884
|
-
__publicField(MySqlInsertBase,
|
30914
|
+
__publicField(MySqlInsertBase, _a296, "MySqlInsert");
|
30885
30915
|
}
|
30886
30916
|
});
|
30887
30917
|
|
30888
30918
|
// ../drizzle-orm/dist/mysql-core/view-base.js
|
30889
|
-
var
|
30919
|
+
var _a297, _b221, MySqlViewBase;
|
30890
30920
|
var init_view_base3 = __esm({
|
30891
30921
|
"../drizzle-orm/dist/mysql-core/view-base.js"() {
|
30892
30922
|
"use strict";
|
30893
30923
|
init_entity();
|
30894
30924
|
init_sql();
|
30895
|
-
MySqlViewBase = class extends (_b221 = View,
|
30925
|
+
MySqlViewBase = class extends (_b221 = View, _a297 = entityKind, _b221) {
|
30896
30926
|
};
|
30897
|
-
__publicField(MySqlViewBase,
|
30927
|
+
__publicField(MySqlViewBase, _a297, "MySqlViewBase");
|
30898
30928
|
}
|
30899
30929
|
});
|
30900
30930
|
|
30901
30931
|
// ../drizzle-orm/dist/mysql-core/dialect.js
|
30902
|
-
var
|
30932
|
+
var _a298, MySqlDialect;
|
30903
30933
|
var init_dialect3 = __esm({
|
30904
30934
|
"../drizzle-orm/dist/mysql-core/dialect.js"() {
|
30905
30935
|
"use strict";
|
@@ -30917,7 +30947,7 @@ var init_dialect3 = __esm({
|
|
30917
30947
|
init_common4();
|
30918
30948
|
init_table4();
|
30919
30949
|
init_view_base3();
|
30920
|
-
|
30950
|
+
_a298 = entityKind;
|
30921
30951
|
MySqlDialect = class {
|
30922
30952
|
async migrate(migrations, session, config) {
|
30923
30953
|
const migrationsTable = config.migrationsTable ?? "__drizzle_migrations";
|
@@ -31693,7 +31723,7 @@ var init_dialect3 = __esm({
|
|
31693
31723
|
};
|
31694
31724
|
}
|
31695
31725
|
};
|
31696
|
-
__publicField(MySqlDialect,
|
31726
|
+
__publicField(MySqlDialect, _a298, "MySqlDialect");
|
31697
31727
|
}
|
31698
31728
|
});
|
31699
31729
|
|
@@ -31715,7 +31745,7 @@ function createSetOperator3(type, isAll) {
|
|
31715
31745
|
return leftSelect.addSetOperators(setOperators);
|
31716
31746
|
};
|
31717
31747
|
}
|
31718
|
-
var
|
31748
|
+
var _a299, MySqlSelectBuilder, _a300, _b222, MySqlSelectQueryBuilderBase, _a301, _b223, MySqlSelectBase, getMySqlSetOperators, union3, unionAll3, intersect3, intersectAll2, except3, exceptAll2;
|
31719
31749
|
var init_select4 = __esm({
|
31720
31750
|
"../drizzle-orm/dist/mysql-core/query-builders/select.js"() {
|
31721
31751
|
"use strict";
|
@@ -31730,7 +31760,7 @@ var init_select4 = __esm({
|
|
31730
31760
|
init_utils2();
|
31731
31761
|
init_view_common();
|
31732
31762
|
init_view_base3();
|
31733
|
-
|
31763
|
+
_a299 = entityKind;
|
31734
31764
|
MySqlSelectBuilder = class {
|
31735
31765
|
constructor(config) {
|
31736
31766
|
__publicField(this, "fields");
|
@@ -31775,8 +31805,8 @@ var init_select4 = __esm({
|
|
31775
31805
|
);
|
31776
31806
|
}
|
31777
31807
|
};
|
31778
|
-
__publicField(MySqlSelectBuilder,
|
31779
|
-
MySqlSelectQueryBuilderBase = class extends (_b222 = TypedQueryBuilder,
|
31808
|
+
__publicField(MySqlSelectBuilder, _a299, "MySqlSelectBuilder");
|
31809
|
+
MySqlSelectQueryBuilderBase = class extends (_b222 = TypedQueryBuilder, _a300 = entityKind, _b222) {
|
31780
31810
|
constructor({ table: table4, fields, isPartialSelect, session, dialect: dialect7, withList, distinct }) {
|
31781
31811
|
super();
|
31782
31812
|
__publicField(this, "_");
|
@@ -32377,8 +32407,8 @@ var init_select4 = __esm({
|
|
32377
32407
|
return this;
|
32378
32408
|
}
|
32379
32409
|
};
|
32380
|
-
__publicField(MySqlSelectQueryBuilderBase,
|
32381
|
-
MySqlSelectBase = class extends (_b223 = MySqlSelectQueryBuilderBase,
|
32410
|
+
__publicField(MySqlSelectQueryBuilderBase, _a300, "MySqlSelectQueryBuilder");
|
32411
|
+
MySqlSelectBase = class extends (_b223 = MySqlSelectQueryBuilderBase, _a301 = entityKind, _b223) {
|
32382
32412
|
constructor() {
|
32383
32413
|
super(...arguments);
|
32384
32414
|
__publicField(this, "execute", (placeholderValues) => {
|
@@ -32402,7 +32432,7 @@ var init_select4 = __esm({
|
|
32402
32432
|
return query;
|
32403
32433
|
}
|
32404
32434
|
};
|
32405
|
-
__publicField(MySqlSelectBase,
|
32435
|
+
__publicField(MySqlSelectBase, _a301, "MySqlSelect");
|
32406
32436
|
applyMixins(MySqlSelectBase, [QueryPromise]);
|
32407
32437
|
getMySqlSetOperators = () => ({
|
32408
32438
|
union: union3,
|
@@ -32422,7 +32452,7 @@ var init_select4 = __esm({
|
|
32422
32452
|
});
|
32423
32453
|
|
32424
32454
|
// ../drizzle-orm/dist/mysql-core/query-builders/query-builder.js
|
32425
|
-
var
|
32455
|
+
var _a302, QueryBuilder3;
|
32426
32456
|
var init_query_builder4 = __esm({
|
32427
32457
|
"../drizzle-orm/dist/mysql-core/query-builders/query-builder.js"() {
|
32428
32458
|
"use strict";
|
@@ -32431,7 +32461,7 @@ var init_query_builder4 = __esm({
|
|
32431
32461
|
init_selection_proxy();
|
32432
32462
|
init_subquery();
|
32433
32463
|
init_select4();
|
32434
|
-
|
32464
|
+
_a302 = entityKind;
|
32435
32465
|
QueryBuilder3 = class {
|
32436
32466
|
constructor() {
|
32437
32467
|
__publicField(this, "dialect");
|
@@ -32490,7 +32520,7 @@ var init_query_builder4 = __esm({
|
|
32490
32520
|
return this.dialect;
|
32491
32521
|
}
|
32492
32522
|
};
|
32493
|
-
__publicField(QueryBuilder3,
|
32523
|
+
__publicField(QueryBuilder3, _a302, "MySqlQueryBuilder");
|
32494
32524
|
}
|
32495
32525
|
});
|
32496
32526
|
|
@@ -32502,14 +32532,14 @@ var init_select_types3 = __esm({
|
|
32502
32532
|
});
|
32503
32533
|
|
32504
32534
|
// ../drizzle-orm/dist/mysql-core/query-builders/update.js
|
32505
|
-
var
|
32535
|
+
var _a303, MySqlUpdateBuilder, _a304, _b224, MySqlUpdateBase;
|
32506
32536
|
var init_update3 = __esm({
|
32507
32537
|
"../drizzle-orm/dist/mysql-core/query-builders/update.js"() {
|
32508
32538
|
"use strict";
|
32509
32539
|
init_entity();
|
32510
32540
|
init_query_promise();
|
32511
32541
|
init_utils2();
|
32512
|
-
|
32542
|
+
_a303 = entityKind;
|
32513
32543
|
MySqlUpdateBuilder = class {
|
32514
32544
|
constructor(table4, session, dialect7, withList) {
|
32515
32545
|
this.table = table4;
|
@@ -32521,8 +32551,8 @@ var init_update3 = __esm({
|
|
32521
32551
|
return new MySqlUpdateBase(this.table, mapUpdateSet(this.table, values), this.session, this.dialect, this.withList);
|
32522
32552
|
}
|
32523
32553
|
};
|
32524
|
-
__publicField(MySqlUpdateBuilder,
|
32525
|
-
MySqlUpdateBase = class extends (_b224 = QueryPromise,
|
32554
|
+
__publicField(MySqlUpdateBuilder, _a303, "MySqlUpdateBuilder");
|
32555
|
+
MySqlUpdateBase = class extends (_b224 = QueryPromise, _a304 = entityKind, _b224) {
|
32526
32556
|
constructor(table4, set, session, dialect7, withList) {
|
32527
32557
|
super();
|
32528
32558
|
__publicField(this, "config");
|
@@ -32595,7 +32625,7 @@ var init_update3 = __esm({
|
|
32595
32625
|
return this;
|
32596
32626
|
}
|
32597
32627
|
};
|
32598
|
-
__publicField(MySqlUpdateBase,
|
32628
|
+
__publicField(MySqlUpdateBase, _a304, "MySqlUpdate");
|
32599
32629
|
}
|
32600
32630
|
});
|
32601
32631
|
|
@@ -32613,14 +32643,14 @@ var init_query_builders3 = __esm({
|
|
32613
32643
|
});
|
32614
32644
|
|
32615
32645
|
// ../drizzle-orm/dist/mysql-core/query-builders/query.js
|
32616
|
-
var
|
32646
|
+
var _a305, RelationalQueryBuilder3, _a306, _b225, MySqlRelationalQuery;
|
32617
32647
|
var init_query3 = __esm({
|
32618
32648
|
"../drizzle-orm/dist/mysql-core/query-builders/query.js"() {
|
32619
32649
|
"use strict";
|
32620
32650
|
init_entity();
|
32621
32651
|
init_query_promise();
|
32622
32652
|
init_relations();
|
32623
|
-
|
32653
|
+
_a305 = entityKind;
|
32624
32654
|
RelationalQueryBuilder3 = class {
|
32625
32655
|
constructor(fullSchema, schema4, tableNamesMap, table4, tableConfig, dialect7, session, mode) {
|
32626
32656
|
this.fullSchema = fullSchema;
|
@@ -32661,8 +32691,8 @@ var init_query3 = __esm({
|
|
32661
32691
|
);
|
32662
32692
|
}
|
32663
32693
|
};
|
32664
|
-
__publicField(RelationalQueryBuilder3,
|
32665
|
-
MySqlRelationalQuery = class extends (_b225 = QueryPromise,
|
32694
|
+
__publicField(RelationalQueryBuilder3, _a305, "MySqlRelationalQueryBuilder");
|
32695
|
+
MySqlRelationalQuery = class extends (_b225 = QueryPromise, _a306 = entityKind, _b225) {
|
32666
32696
|
constructor(fullSchema, schema4, tableNamesMap, table4, tableConfig, dialect7, session, config, queryMode, mode) {
|
32667
32697
|
super();
|
32668
32698
|
this.fullSchema = fullSchema;
|
@@ -32726,12 +32756,12 @@ var init_query3 = __esm({
|
|
32726
32756
|
return this.prepare().execute();
|
32727
32757
|
}
|
32728
32758
|
};
|
32729
|
-
__publicField(MySqlRelationalQuery,
|
32759
|
+
__publicField(MySqlRelationalQuery, _a306, "MySqlRelationalQuery");
|
32730
32760
|
}
|
32731
32761
|
});
|
32732
32762
|
|
32733
32763
|
// ../drizzle-orm/dist/mysql-core/db.js
|
32734
|
-
var
|
32764
|
+
var _a307, MySqlDatabase;
|
32735
32765
|
var init_db3 = __esm({
|
32736
32766
|
"../drizzle-orm/dist/mysql-core/db.js"() {
|
32737
32767
|
"use strict";
|
@@ -32740,7 +32770,7 @@ var init_db3 = __esm({
|
|
32740
32770
|
init_subquery();
|
32741
32771
|
init_query_builders3();
|
32742
32772
|
init_query3();
|
32743
|
-
|
32773
|
+
_a307 = entityKind;
|
32744
32774
|
MySqlDatabase = class {
|
32745
32775
|
constructor(dialect7, session, schema4, mode) {
|
32746
32776
|
__publicField(this, "query");
|
@@ -32949,17 +32979,17 @@ var init_db3 = __esm({
|
|
32949
32979
|
return this.session.transaction(transaction, config);
|
32950
32980
|
}
|
32951
32981
|
};
|
32952
|
-
__publicField(MySqlDatabase,
|
32982
|
+
__publicField(MySqlDatabase, _a307, "MySqlDatabase");
|
32953
32983
|
}
|
32954
32984
|
});
|
32955
32985
|
|
32956
32986
|
// ../drizzle-orm/dist/mysql-core/indexes.js
|
32957
|
-
var
|
32987
|
+
var _a308, IndexBuilderOn3, _a309, IndexBuilder3, _a310, Index5;
|
32958
32988
|
var init_indexes3 = __esm({
|
32959
32989
|
"../drizzle-orm/dist/mysql-core/indexes.js"() {
|
32960
32990
|
"use strict";
|
32961
32991
|
init_entity();
|
32962
|
-
|
32992
|
+
_a308 = entityKind;
|
32963
32993
|
IndexBuilderOn3 = class {
|
32964
32994
|
constructor(name2, unique) {
|
32965
32995
|
this.name = name2;
|
@@ -32969,8 +32999,8 @@ var init_indexes3 = __esm({
|
|
32969
32999
|
return new IndexBuilder3(this.name, columns, this.unique);
|
32970
33000
|
}
|
32971
33001
|
};
|
32972
|
-
__publicField(IndexBuilderOn3,
|
32973
|
-
|
33002
|
+
__publicField(IndexBuilderOn3, _a308, "MySqlIndexBuilderOn");
|
33003
|
+
_a309 = entityKind;
|
32974
33004
|
IndexBuilder3 = class {
|
32975
33005
|
constructor(name2, columns, unique) {
|
32976
33006
|
/** @internal */
|
@@ -32998,26 +33028,26 @@ var init_indexes3 = __esm({
|
|
32998
33028
|
return new Index5(this.config, table4);
|
32999
33029
|
}
|
33000
33030
|
};
|
33001
|
-
__publicField(IndexBuilder3,
|
33002
|
-
|
33031
|
+
__publicField(IndexBuilder3, _a309, "MySqlIndexBuilder");
|
33032
|
+
_a310 = entityKind;
|
33003
33033
|
Index5 = class {
|
33004
33034
|
constructor(config, table4) {
|
33005
33035
|
__publicField(this, "config");
|
33006
33036
|
this.config = { ...config, table: table4 };
|
33007
33037
|
}
|
33008
33038
|
};
|
33009
|
-
__publicField(Index5,
|
33039
|
+
__publicField(Index5, _a310, "MySqlIndex");
|
33010
33040
|
}
|
33011
33041
|
});
|
33012
33042
|
|
33013
33043
|
// ../drizzle-orm/dist/mysql-core/primary-keys.js
|
33014
|
-
var
|
33044
|
+
var _a311, PrimaryKeyBuilder3, _a312, PrimaryKey3;
|
33015
33045
|
var init_primary_keys3 = __esm({
|
33016
33046
|
"../drizzle-orm/dist/mysql-core/primary-keys.js"() {
|
33017
33047
|
"use strict";
|
33018
33048
|
init_entity();
|
33019
33049
|
init_table4();
|
33020
|
-
|
33050
|
+
_a311 = entityKind;
|
33021
33051
|
PrimaryKeyBuilder3 = class {
|
33022
33052
|
constructor(columns, name2) {
|
33023
33053
|
/** @internal */
|
@@ -33032,8 +33062,8 @@ var init_primary_keys3 = __esm({
|
|
33032
33062
|
return new PrimaryKey3(table4, this.columns, this.name);
|
33033
33063
|
}
|
33034
33064
|
};
|
33035
|
-
__publicField(PrimaryKeyBuilder3,
|
33036
|
-
|
33065
|
+
__publicField(PrimaryKeyBuilder3, _a311, "MySqlPrimaryKeyBuilder");
|
33066
|
+
_a312 = entityKind;
|
33037
33067
|
PrimaryKey3 = class {
|
33038
33068
|
constructor(table4, columns, name2) {
|
33039
33069
|
__publicField(this, "columns");
|
@@ -33046,7 +33076,7 @@ var init_primary_keys3 = __esm({
|
|
33046
33076
|
return this.name ?? `${this.table[MySqlTable.Symbol.Name]}_${this.columns.map((column4) => column4.name).join("_")}_pk`;
|
33047
33077
|
}
|
33048
33078
|
};
|
33049
|
-
__publicField(PrimaryKey3,
|
33079
|
+
__publicField(PrimaryKey3, _a312, "MySqlPrimaryKey");
|
33050
33080
|
}
|
33051
33081
|
});
|
33052
33082
|
|
@@ -33066,7 +33096,7 @@ function mysqlViewWithSchema(name2, selection, schema4) {
|
|
33066
33096
|
}
|
33067
33097
|
return new ViewBuilder3(name2, schema4);
|
33068
33098
|
}
|
33069
|
-
var
|
33099
|
+
var _a313, ViewBuilderCore2, _a314, _b226, ViewBuilder3, _a315, _b227, ManualViewBuilder3, _a316, _b228, _c8, MySqlView;
|
33070
33100
|
var init_view3 = __esm({
|
33071
33101
|
"../drizzle-orm/dist/mysql-core/view.js"() {
|
33072
33102
|
"use strict";
|
@@ -33077,7 +33107,7 @@ var init_view3 = __esm({
|
|
33077
33107
|
init_table4();
|
33078
33108
|
init_view_base3();
|
33079
33109
|
init_view_common4();
|
33080
|
-
|
33110
|
+
_a313 = entityKind;
|
33081
33111
|
ViewBuilderCore2 = class {
|
33082
33112
|
constructor(name2, schema4) {
|
33083
33113
|
__publicField(this, "config", {});
|
@@ -33101,8 +33131,8 @@ var init_view3 = __esm({
|
|
33101
33131
|
return this;
|
33102
33132
|
}
|
33103
33133
|
};
|
33104
|
-
__publicField(ViewBuilderCore2,
|
33105
|
-
ViewBuilder3 = class extends (_b226 = ViewBuilderCore2,
|
33134
|
+
__publicField(ViewBuilderCore2, _a313, "MySqlViewBuilder");
|
33135
|
+
ViewBuilder3 = class extends (_b226 = ViewBuilderCore2, _a314 = entityKind, _b226) {
|
33106
33136
|
as(qb) {
|
33107
33137
|
if (typeof qb === "function") {
|
33108
33138
|
qb = qb(new QueryBuilder3());
|
@@ -33128,8 +33158,8 @@ var init_view3 = __esm({
|
|
33128
33158
|
);
|
33129
33159
|
}
|
33130
33160
|
};
|
33131
|
-
__publicField(ViewBuilder3,
|
33132
|
-
ManualViewBuilder3 = class extends (_b227 = ViewBuilderCore2,
|
33161
|
+
__publicField(ViewBuilder3, _a314, "MySqlViewBuilder");
|
33162
|
+
ManualViewBuilder3 = class extends (_b227 = ViewBuilderCore2, _a315 = entityKind, _b227) {
|
33133
33163
|
constructor(name2, columns, schema4) {
|
33134
33164
|
super(name2, schema4);
|
33135
33165
|
__publicField(this, "columns");
|
@@ -33174,11 +33204,11 @@ var init_view3 = __esm({
|
|
33174
33204
|
);
|
33175
33205
|
}
|
33176
33206
|
};
|
33177
|
-
__publicField(ManualViewBuilder3,
|
33178
|
-
MySqlView = class extends (_c8 = MySqlViewBase, _b228 = entityKind,
|
33207
|
+
__publicField(ManualViewBuilder3, _a315, "MySqlManualViewBuilder");
|
33208
|
+
MySqlView = class extends (_c8 = MySqlViewBase, _b228 = entityKind, _a316 = MySqlViewConfig, _c8) {
|
33179
33209
|
constructor({ mysqlConfig, config }) {
|
33180
33210
|
super(config);
|
33181
|
-
__publicField(this,
|
33211
|
+
__publicField(this, _a316);
|
33182
33212
|
this[MySqlViewConfig] = mysqlConfig;
|
33183
33213
|
}
|
33184
33214
|
};
|
@@ -33187,14 +33217,14 @@ var init_view3 = __esm({
|
|
33187
33217
|
});
|
33188
33218
|
|
33189
33219
|
// ../drizzle-orm/dist/mysql-core/schema.js
|
33190
|
-
var
|
33220
|
+
var _a317, MySqlSchema5;
|
33191
33221
|
var init_schema2 = __esm({
|
33192
33222
|
"../drizzle-orm/dist/mysql-core/schema.js"() {
|
33193
33223
|
"use strict";
|
33194
33224
|
init_entity();
|
33195
33225
|
init_table4();
|
33196
33226
|
init_view3();
|
33197
|
-
|
33227
|
+
_a317 = entityKind;
|
33198
33228
|
MySqlSchema5 = class {
|
33199
33229
|
constructor(schemaName) {
|
33200
33230
|
__publicField(this, "table", (name2, columns, extraConfig) => {
|
@@ -33206,12 +33236,12 @@ var init_schema2 = __esm({
|
|
33206
33236
|
this.schemaName = schemaName;
|
33207
33237
|
}
|
33208
33238
|
};
|
33209
|
-
__publicField(MySqlSchema5,
|
33239
|
+
__publicField(MySqlSchema5, _a317, "MySqlSchema");
|
33210
33240
|
}
|
33211
33241
|
});
|
33212
33242
|
|
33213
33243
|
// ../drizzle-orm/dist/mysql-core/session.js
|
33214
|
-
var
|
33244
|
+
var _a318, MySqlPreparedQuery, _a319, MySqlSession, _a320, _b229, MySqlTransaction;
|
33215
33245
|
var init_session3 = __esm({
|
33216
33246
|
"../drizzle-orm/dist/mysql-core/session.js"() {
|
33217
33247
|
"use strict";
|
@@ -33219,15 +33249,15 @@ var init_session3 = __esm({
|
|
33219
33249
|
init_errors();
|
33220
33250
|
init_sql();
|
33221
33251
|
init_db3();
|
33222
|
-
|
33252
|
+
_a318 = entityKind;
|
33223
33253
|
MySqlPreparedQuery = class {
|
33224
33254
|
constructor() {
|
33225
33255
|
/** @internal */
|
33226
33256
|
__publicField(this, "joinsNotNullableMap");
|
33227
33257
|
}
|
33228
33258
|
};
|
33229
|
-
__publicField(MySqlPreparedQuery,
|
33230
|
-
|
33259
|
+
__publicField(MySqlPreparedQuery, _a318, "MySqlPreparedQuery");
|
33260
|
+
_a319 = entityKind;
|
33231
33261
|
MySqlSession = class {
|
33232
33262
|
constructor(dialect7) {
|
33233
33263
|
this.dialect = dialect7;
|
@@ -33256,8 +33286,8 @@ var init_session3 = __esm({
|
|
33256
33286
|
return parts.length ? sql`start transaction ${sql.raw(parts.join(" "))}` : void 0;
|
33257
33287
|
}
|
33258
33288
|
};
|
33259
|
-
__publicField(MySqlSession,
|
33260
|
-
MySqlTransaction = class extends (_b229 = MySqlDatabase,
|
33289
|
+
__publicField(MySqlSession, _a319, "MySqlSession");
|
33290
|
+
MySqlTransaction = class extends (_b229 = MySqlDatabase, _a320 = entityKind, _b229) {
|
33261
33291
|
constructor(dialect7, session, schema4, nestedIndex, mode) {
|
33262
33292
|
super(dialect7, session, schema4, mode);
|
33263
33293
|
this.schema = schema4;
|
@@ -33267,7 +33297,7 @@ var init_session3 = __esm({
|
|
33267
33297
|
throw new TransactionRollbackError();
|
33268
33298
|
}
|
33269
33299
|
};
|
33270
|
-
__publicField(MySqlTransaction,
|
33300
|
+
__publicField(MySqlTransaction, _a320, "MySqlTransaction");
|
33271
33301
|
}
|
33272
33302
|
});
|
33273
33303
|
|
@@ -34037,10 +34067,6 @@ var init_postgres = __esm({
|
|
34037
34067
|
database: stringType().min(1),
|
34038
34068
|
secretArn: stringType().min(1),
|
34039
34069
|
resourceArn: stringType().min(1)
|
34040
|
-
}),
|
34041
|
-
objectType({
|
34042
|
-
driver: literalType("pglite"),
|
34043
|
-
url: stringType().min(1)
|
34044
34070
|
})
|
34045
34071
|
]);
|
34046
34072
|
}
|