drizzle-kit 0.24.1-0ced1ab → 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 +2709 -8867
- package/index.d.mts +4 -10
- package/index.d.ts +4 -10
- package/package.json +1 -1
- package/utils.js +0 -8
- package/utils.mjs +0 -7
package/api.js
CHANGED
@@ -3469,13 +3469,13 @@ function processCreateParams(params) {
|
|
3469
3469
|
if (errorMap2)
|
3470
3470
|
return { errorMap: errorMap2, description };
|
3471
3471
|
const customMap = (iss, ctx) => {
|
3472
|
-
var
|
3472
|
+
var _a321, _b230;
|
3473
3473
|
const { message } = params;
|
3474
3474
|
if (iss.code === "invalid_enum_value") {
|
3475
3475
|
return { message: message !== null && message !== void 0 ? message : ctx.defaultError };
|
3476
3476
|
}
|
3477
3477
|
if (typeof ctx.data === "undefined") {
|
3478
|
-
return { message: (
|
3478
|
+
return { message: (_a321 = message !== null && message !== void 0 ? message : required_error) !== null && _a321 !== void 0 ? _a321 : ctx.defaultError };
|
3479
3479
|
}
|
3480
3480
|
if (iss.code !== "invalid_type")
|
3481
3481
|
return { message: ctx.defaultError };
|
@@ -4141,11 +4141,11 @@ var init_lib = __esm({
|
|
4141
4141
|
throw result.error;
|
4142
4142
|
}
|
4143
4143
|
safeParse(data, params) {
|
4144
|
-
var
|
4144
|
+
var _a321;
|
4145
4145
|
const ctx = {
|
4146
4146
|
common: {
|
4147
4147
|
issues: [],
|
4148
|
-
async: (
|
4148
|
+
async: (_a321 = params === null || params === void 0 ? void 0 : params.async) !== null && _a321 !== void 0 ? _a321 : false,
|
4149
4149
|
contextualErrorMap: params === null || params === void 0 ? void 0 : params.errorMap
|
4150
4150
|
},
|
4151
4151
|
path: (params === null || params === void 0 ? void 0 : params.path) || [],
|
@@ -4467,7 +4467,7 @@ var init_lib = __esm({
|
|
4467
4467
|
} else if (check.kind === "url") {
|
4468
4468
|
try {
|
4469
4469
|
new URL(input.data);
|
4470
|
-
} catch (
|
4470
|
+
} catch (_a321) {
|
4471
4471
|
ctx = this._getOrReturnCtx(input, ctx);
|
4472
4472
|
addIssueToContext(ctx, {
|
4473
4473
|
validation: "url",
|
@@ -4637,7 +4637,7 @@ var init_lib = __esm({
|
|
4637
4637
|
return this._addCheck({ kind: "ip", ...errorUtil.errToObj(options) });
|
4638
4638
|
}
|
4639
4639
|
datetime(options) {
|
4640
|
-
var
|
4640
|
+
var _a321, _b230;
|
4641
4641
|
if (typeof options === "string") {
|
4642
4642
|
return this._addCheck({
|
4643
4643
|
kind: "datetime",
|
@@ -4650,7 +4650,7 @@ var init_lib = __esm({
|
|
4650
4650
|
return this._addCheck({
|
4651
4651
|
kind: "datetime",
|
4652
4652
|
precision: typeof (options === null || options === void 0 ? void 0 : options.precision) === "undefined" ? null : options === null || options === void 0 ? void 0 : options.precision,
|
4653
|
-
offset: (
|
4653
|
+
offset: (_a321 = options === null || options === void 0 ? void 0 : options.offset) !== null && _a321 !== void 0 ? _a321 : false,
|
4654
4654
|
local: (_b230 = options === null || options === void 0 ? void 0 : options.local) !== null && _b230 !== void 0 ? _b230 : false,
|
4655
4655
|
...errorUtil.errToObj(options === null || options === void 0 ? void 0 : options.message)
|
4656
4656
|
});
|
@@ -4814,11 +4814,11 @@ var init_lib = __esm({
|
|
4814
4814
|
}
|
4815
4815
|
};
|
4816
4816
|
ZodString.create = (params) => {
|
4817
|
-
var
|
4817
|
+
var _a321;
|
4818
4818
|
return new ZodString({
|
4819
4819
|
checks: [],
|
4820
4820
|
typeName: ZodFirstPartyTypeKind.ZodString,
|
4821
|
-
coerce: (
|
4821
|
+
coerce: (_a321 = params === null || params === void 0 ? void 0 : params.coerce) !== null && _a321 !== void 0 ? _a321 : false,
|
4822
4822
|
...processCreateParams(params)
|
4823
4823
|
});
|
4824
4824
|
};
|
@@ -5211,11 +5211,11 @@ var init_lib = __esm({
|
|
5211
5211
|
}
|
5212
5212
|
};
|
5213
5213
|
ZodBigInt.create = (params) => {
|
5214
|
-
var
|
5214
|
+
var _a321;
|
5215
5215
|
return new ZodBigInt({
|
5216
5216
|
checks: [],
|
5217
5217
|
typeName: ZodFirstPartyTypeKind.ZodBigInt,
|
5218
|
-
coerce: (
|
5218
|
+
coerce: (_a321 = params === null || params === void 0 ? void 0 : params.coerce) !== null && _a321 !== void 0 ? _a321 : false,
|
5219
5219
|
...processCreateParams(params)
|
5220
5220
|
});
|
5221
5221
|
};
|
@@ -5695,8 +5695,8 @@ var init_lib = __esm({
|
|
5695
5695
|
unknownKeys: "strict",
|
5696
5696
|
...message !== void 0 ? {
|
5697
5697
|
errorMap: (issue, ctx) => {
|
5698
|
-
var
|
5699
|
-
const defaultError = (_c9 = (_b230 = (
|
5698
|
+
var _a321, _b230, _c9, _d5;
|
5699
|
+
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;
|
5700
5700
|
if (issue.code === "unrecognized_keys")
|
5701
5701
|
return {
|
5702
5702
|
message: (_d5 = errorUtil.errToObj(message).message) !== null && _d5 !== void 0 ? _d5 : defaultError
|
@@ -15865,7 +15865,7 @@ var init_schemaValidator = __esm({
|
|
15865
15865
|
});
|
15866
15866
|
|
15867
15867
|
// src/cli/validations/common.ts
|
15868
|
-
var sqliteDriversLiterals,
|
15868
|
+
var sqliteDriversLiterals, prefixes, prefix, sqliteDriver, postgresDriver, driver, configMigrations, configCommonSchema, casing, introspectParams, configIntrospectCliSchema, configGenerateSchema, configPushSchema;
|
15869
15869
|
var init_common = __esm({
|
15870
15870
|
"src/cli/validations/common.ts"() {
|
15871
15871
|
"use strict";
|
@@ -15877,10 +15877,6 @@ var init_common = __esm({
|
|
15877
15877
|
literalType("d1-http"),
|
15878
15878
|
literalType("expo")
|
15879
15879
|
];
|
15880
|
-
postgresqlDriversLiterals = [
|
15881
|
-
literalType("aws-data-api"),
|
15882
|
-
literalType("pglite")
|
15883
|
-
];
|
15884
15880
|
prefixes = [
|
15885
15881
|
"index",
|
15886
15882
|
"timestamp",
|
@@ -15893,7 +15889,7 @@ var init_common = __esm({
|
|
15893
15889
|
const _2 = "";
|
15894
15890
|
}
|
15895
15891
|
sqliteDriver = unionType(sqliteDriversLiterals);
|
15896
|
-
postgresDriver =
|
15892
|
+
postgresDriver = literalType("aws-data-api");
|
15897
15893
|
driver = unionType([sqliteDriver, postgresDriver]);
|
15898
15894
|
configMigrations = objectType({
|
15899
15895
|
table: stringType().optional(),
|
@@ -18528,8 +18524,8 @@ var init_sql = __esm({
|
|
18528
18524
|
sql2.param = param2;
|
18529
18525
|
})(sql || (sql = {}));
|
18530
18526
|
((SQL2) => {
|
18531
|
-
var
|
18532
|
-
|
18527
|
+
var _a321;
|
18528
|
+
_a321 = entityKind;
|
18533
18529
|
const _Aliased = class _Aliased {
|
18534
18530
|
constructor(sql2, fieldAlias) {
|
18535
18531
|
/** @internal */
|
@@ -18545,7 +18541,7 @@ var init_sql = __esm({
|
|
18545
18541
|
return new _Aliased(this.sql, this.fieldAlias);
|
18546
18542
|
}
|
18547
18543
|
};
|
18548
|
-
__publicField(_Aliased,
|
18544
|
+
__publicField(_Aliased, _a321, "SQL.Aliased");
|
18549
18545
|
let Aliased = _Aliased;
|
18550
18546
|
SQL2.Aliased = Aliased;
|
18551
18547
|
})(SQL || (SQL = {}));
|
@@ -24149,6 +24145,34 @@ var init_indexes = __esm({
|
|
24149
24145
|
}
|
24150
24146
|
});
|
24151
24147
|
|
24148
|
+
// ../drizzle-orm/dist/pg-core/policies.js
|
24149
|
+
var _a145, PgPolicy;
|
24150
|
+
var init_policies = __esm({
|
24151
|
+
"../drizzle-orm/dist/pg-core/policies.js"() {
|
24152
|
+
"use strict";
|
24153
|
+
init_entity();
|
24154
|
+
_a145 = entityKind;
|
24155
|
+
PgPolicy = class {
|
24156
|
+
constructor(name2, config) {
|
24157
|
+
__publicField(this, "as");
|
24158
|
+
__publicField(this, "for");
|
24159
|
+
__publicField(this, "to");
|
24160
|
+
__publicField(this, "using");
|
24161
|
+
__publicField(this, "withCheck");
|
24162
|
+
this.name = name2;
|
24163
|
+
if (config) {
|
24164
|
+
this.as = config.as;
|
24165
|
+
this.for = config.for;
|
24166
|
+
this.to = config.to;
|
24167
|
+
this.using = config.using;
|
24168
|
+
this.withCheck = config.withCheck;
|
24169
|
+
}
|
24170
|
+
}
|
24171
|
+
};
|
24172
|
+
__publicField(PgPolicy, _a145, "PgPolicy");
|
24173
|
+
}
|
24174
|
+
});
|
24175
|
+
|
24152
24176
|
// ../drizzle-orm/dist/pg-core/sequence.js
|
24153
24177
|
function pgSequenceWithSchema(name2, options, schema4) {
|
24154
24178
|
return new PgSequence(name2, options, schema4);
|
@@ -24156,12 +24180,12 @@ function pgSequenceWithSchema(name2, options, schema4) {
|
|
24156
24180
|
function isPgSequence(obj) {
|
24157
24181
|
return is(obj, PgSequence);
|
24158
24182
|
}
|
24159
|
-
var
|
24183
|
+
var _a146, PgSequence;
|
24160
24184
|
var init_sequence = __esm({
|
24161
24185
|
"../drizzle-orm/dist/pg-core/sequence.js"() {
|
24162
24186
|
"use strict";
|
24163
24187
|
init_entity();
|
24164
|
-
|
24188
|
+
_a146 = entityKind;
|
24165
24189
|
PgSequence = class {
|
24166
24190
|
constructor(seqName, seqOptions, schema4) {
|
24167
24191
|
this.seqName = seqName;
|
@@ -24169,7 +24193,7 @@ var init_sequence = __esm({
|
|
24169
24193
|
this.schema = schema4;
|
24170
24194
|
}
|
24171
24195
|
};
|
24172
|
-
__publicField(PgSequence,
|
24196
|
+
__publicField(PgSequence, _a146, "PgSequence");
|
24173
24197
|
}
|
24174
24198
|
});
|
24175
24199
|
|
@@ -24195,7 +24219,7 @@ function pgMaterializedViewWithSchema(name2, selection, schema4) {
|
|
24195
24219
|
}
|
24196
24220
|
return new MaterializedViewBuilder(name2, schema4);
|
24197
24221
|
}
|
24198
|
-
var
|
24222
|
+
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;
|
24199
24223
|
var init_view = __esm({
|
24200
24224
|
"../drizzle-orm/dist/pg-core/view.js"() {
|
24201
24225
|
"use strict";
|
@@ -24206,7 +24230,7 @@ var init_view = __esm({
|
|
24206
24230
|
init_table2();
|
24207
24231
|
init_view_base();
|
24208
24232
|
init_view_common2();
|
24209
|
-
|
24233
|
+
_a147 = entityKind;
|
24210
24234
|
DefaultViewBuilderCore = class {
|
24211
24235
|
constructor(name2, schema4) {
|
24212
24236
|
__publicField(this, "config", {});
|
@@ -24218,8 +24242,8 @@ var init_view = __esm({
|
|
24218
24242
|
return this;
|
24219
24243
|
}
|
24220
24244
|
};
|
24221
|
-
__publicField(DefaultViewBuilderCore,
|
24222
|
-
ViewBuilder = class extends (_b106 = DefaultViewBuilderCore,
|
24245
|
+
__publicField(DefaultViewBuilderCore, _a147, "PgDefaultViewBuilderCore");
|
24246
|
+
ViewBuilder = class extends (_b106 = DefaultViewBuilderCore, _a148 = entityKind, _b106) {
|
24223
24247
|
as(qb) {
|
24224
24248
|
if (typeof qb === "function") {
|
24225
24249
|
qb = qb(new QueryBuilder());
|
@@ -24245,8 +24269,8 @@ var init_view = __esm({
|
|
24245
24269
|
);
|
24246
24270
|
}
|
24247
24271
|
};
|
24248
|
-
__publicField(ViewBuilder,
|
24249
|
-
ManualViewBuilder = class extends (_b107 = DefaultViewBuilderCore,
|
24272
|
+
__publicField(ViewBuilder, _a148, "PgViewBuilder");
|
24273
|
+
ManualViewBuilder = class extends (_b107 = DefaultViewBuilderCore, _a149 = entityKind, _b107) {
|
24250
24274
|
constructor(name2, columns, schema4) {
|
24251
24275
|
super(name2, schema4);
|
24252
24276
|
__publicField(this, "columns");
|
@@ -24291,8 +24315,8 @@ var init_view = __esm({
|
|
24291
24315
|
);
|
24292
24316
|
}
|
24293
24317
|
};
|
24294
|
-
__publicField(ManualViewBuilder,
|
24295
|
-
|
24318
|
+
__publicField(ManualViewBuilder, _a149, "PgManualViewBuilder");
|
24319
|
+
_a150 = entityKind;
|
24296
24320
|
MaterializedViewBuilderCore = class {
|
24297
24321
|
constructor(name2, schema4) {
|
24298
24322
|
__publicField(this, "config", {});
|
@@ -24316,8 +24340,8 @@ var init_view = __esm({
|
|
24316
24340
|
return this;
|
24317
24341
|
}
|
24318
24342
|
};
|
24319
|
-
__publicField(MaterializedViewBuilderCore,
|
24320
|
-
MaterializedViewBuilder = class extends (_b108 = MaterializedViewBuilderCore,
|
24343
|
+
__publicField(MaterializedViewBuilderCore, _a150, "PgMaterializedViewBuilderCore");
|
24344
|
+
MaterializedViewBuilder = class extends (_b108 = MaterializedViewBuilderCore, _a151 = entityKind, _b108) {
|
24321
24345
|
as(qb) {
|
24322
24346
|
if (typeof qb === "function") {
|
24323
24347
|
qb = qb(new QueryBuilder());
|
@@ -24348,8 +24372,8 @@ var init_view = __esm({
|
|
24348
24372
|
);
|
24349
24373
|
}
|
24350
24374
|
};
|
24351
|
-
__publicField(MaterializedViewBuilder,
|
24352
|
-
ManualMaterializedViewBuilder = class extends (_b109 = MaterializedViewBuilderCore,
|
24375
|
+
__publicField(MaterializedViewBuilder, _a151, "PgMaterializedViewBuilder");
|
24376
|
+
ManualMaterializedViewBuilder = class extends (_b109 = MaterializedViewBuilderCore, _a152 = entityKind, _b109) {
|
24353
24377
|
constructor(name2, columns, schema4) {
|
24354
24378
|
super(name2, schema4);
|
24355
24379
|
__publicField(this, "columns");
|
@@ -24394,11 +24418,11 @@ var init_view = __esm({
|
|
24394
24418
|
);
|
24395
24419
|
}
|
24396
24420
|
};
|
24397
|
-
__publicField(ManualMaterializedViewBuilder,
|
24398
|
-
PgView = class extends (_c3 = PgViewBase, _b110 = entityKind,
|
24421
|
+
__publicField(ManualMaterializedViewBuilder, _a152, "PgManualMaterializedViewBuilder");
|
24422
|
+
PgView = class extends (_c3 = PgViewBase, _b110 = entityKind, _a153 = PgViewConfig, _c3) {
|
24399
24423
|
constructor({ pgConfig, config }) {
|
24400
24424
|
super(config);
|
24401
|
-
__publicField(this,
|
24425
|
+
__publicField(this, _a153);
|
24402
24426
|
if (pgConfig) {
|
24403
24427
|
this[PgViewConfig] = {
|
24404
24428
|
with: pgConfig.with
|
@@ -24408,10 +24432,10 @@ var init_view = __esm({
|
|
24408
24432
|
};
|
24409
24433
|
__publicField(PgView, _b110, "PgView");
|
24410
24434
|
PgMaterializedViewConfig = Symbol.for("drizzle:PgMaterializedViewConfig");
|
24411
|
-
PgMaterializedView = class extends (_c4 = PgViewBase, _b111 = entityKind,
|
24435
|
+
PgMaterializedView = class extends (_c4 = PgViewBase, _b111 = entityKind, _a154 = PgMaterializedViewConfig, _c4) {
|
24412
24436
|
constructor({ pgConfig, config }) {
|
24413
24437
|
super(config);
|
24414
|
-
__publicField(this,
|
24438
|
+
__publicField(this, _a154);
|
24415
24439
|
this[PgMaterializedViewConfig] = {
|
24416
24440
|
with: pgConfig?.with,
|
24417
24441
|
using: pgConfig?.using,
|
@@ -24425,7 +24449,7 @@ var init_view = __esm({
|
|
24425
24449
|
});
|
24426
24450
|
|
24427
24451
|
// ../drizzle-orm/dist/pg-core/schema.js
|
24428
|
-
var
|
24452
|
+
var _a155, PgSchema5;
|
24429
24453
|
var init_schema = __esm({
|
24430
24454
|
"../drizzle-orm/dist/pg-core/schema.js"() {
|
24431
24455
|
"use strict";
|
@@ -24435,7 +24459,7 @@ var init_schema = __esm({
|
|
24435
24459
|
init_sequence();
|
24436
24460
|
init_table2();
|
24437
24461
|
init_view();
|
24438
|
-
|
24462
|
+
_a155 = entityKind;
|
24439
24463
|
PgSchema5 = class {
|
24440
24464
|
constructor(schemaName) {
|
24441
24465
|
__publicField(this, "table", (name2, columns, extraConfig) => {
|
@@ -24462,12 +24486,12 @@ var init_schema = __esm({
|
|
24462
24486
|
return true;
|
24463
24487
|
}
|
24464
24488
|
};
|
24465
|
-
__publicField(PgSchema5,
|
24489
|
+
__publicField(PgSchema5, _a155, "PgSchema");
|
24466
24490
|
}
|
24467
24491
|
});
|
24468
24492
|
|
24469
24493
|
// ../drizzle-orm/dist/pg-core/session.js
|
24470
|
-
var
|
24494
|
+
var _a156, PgPreparedQuery, _a157, PgSession, _a158, _b112, PgTransaction;
|
24471
24495
|
var init_session = __esm({
|
24472
24496
|
"../drizzle-orm/dist/pg-core/session.js"() {
|
24473
24497
|
"use strict";
|
@@ -24476,7 +24500,7 @@ var init_session = __esm({
|
|
24476
24500
|
init_sql2();
|
24477
24501
|
init_tracing();
|
24478
24502
|
init_db();
|
24479
|
-
|
24503
|
+
_a156 = entityKind;
|
24480
24504
|
PgPreparedQuery = class {
|
24481
24505
|
constructor(query) {
|
24482
24506
|
/** @internal */
|
@@ -24490,8 +24514,8 @@ var init_session = __esm({
|
|
24490
24514
|
return response;
|
24491
24515
|
}
|
24492
24516
|
};
|
24493
|
-
__publicField(PgPreparedQuery,
|
24494
|
-
|
24517
|
+
__publicField(PgPreparedQuery, _a156, "PgPreparedQuery");
|
24518
|
+
_a157 = entityKind;
|
24495
24519
|
PgSession = class {
|
24496
24520
|
constructor(dialect7) {
|
24497
24521
|
this.dialect = dialect7;
|
@@ -24518,8 +24542,8 @@ var init_session = __esm({
|
|
24518
24542
|
).all();
|
24519
24543
|
}
|
24520
24544
|
};
|
24521
|
-
__publicField(PgSession,
|
24522
|
-
PgTransaction = class extends (_b112 = PgDatabase,
|
24545
|
+
__publicField(PgSession, _a157, "PgSession");
|
24546
|
+
PgTransaction = class extends (_b112 = PgDatabase, _a158 = entityKind, _b112) {
|
24523
24547
|
constructor(dialect7, session, schema4, nestedIndex = 0) {
|
24524
24548
|
super(dialect7, session, schema4);
|
24525
24549
|
this.schema = schema4;
|
@@ -24546,7 +24570,7 @@ var init_session = __esm({
|
|
24546
24570
|
return this.session.execute(sql`set transaction ${this.getTransactionConfigSQL(config)}`);
|
24547
24571
|
}
|
24548
24572
|
};
|
24549
|
-
__publicField(PgTransaction,
|
24573
|
+
__publicField(PgTransaction, _a158, "PgTransaction");
|
24550
24574
|
}
|
24551
24575
|
});
|
24552
24576
|
|
@@ -24567,6 +24591,7 @@ function getTableConfig(table4) {
|
|
24567
24591
|
const uniqueConstraints = [];
|
24568
24592
|
const name2 = table4[Table2.Symbol.Name];
|
24569
24593
|
const schema4 = table4[Table2.Symbol.Schema];
|
24594
|
+
const policies = [];
|
24570
24595
|
const extraConfigBuilder = table4[PgTable.Symbol.ExtraConfigBuilder];
|
24571
24596
|
if (extraConfigBuilder !== void 0) {
|
24572
24597
|
const extraConfig = extraConfigBuilder(table4[Table2.Symbol.ExtraConfigColumns]);
|
@@ -24581,6 +24606,8 @@ function getTableConfig(table4) {
|
|
24581
24606
|
primaryKeys.push(builder.build(table4));
|
24582
24607
|
} else if (is(builder, ForeignKeyBuilder)) {
|
24583
24608
|
foreignKeys.push(builder.build(table4));
|
24609
|
+
} else if (is(builder, PgPolicy)) {
|
24610
|
+
policies.push(builder);
|
24584
24611
|
}
|
24585
24612
|
}
|
24586
24613
|
}
|
@@ -24592,7 +24619,8 @@ function getTableConfig(table4) {
|
|
24592
24619
|
primaryKeys,
|
24593
24620
|
uniqueConstraints,
|
24594
24621
|
name: name2,
|
24595
|
-
schema: schema4
|
24622
|
+
schema: schema4,
|
24623
|
+
policies
|
24596
24624
|
};
|
24597
24625
|
}
|
24598
24626
|
var init_utils4 = __esm({
|
@@ -24604,6 +24632,7 @@ var init_utils4 = __esm({
|
|
24604
24632
|
init_checks();
|
24605
24633
|
init_foreign_keys();
|
24606
24634
|
init_indexes();
|
24635
|
+
init_policies();
|
24607
24636
|
init_primary_keys();
|
24608
24637
|
init_unique_constraint();
|
24609
24638
|
}
|
@@ -24628,6 +24657,7 @@ var init_pg_core = __esm({
|
|
24628
24657
|
init_dialect();
|
24629
24658
|
init_foreign_keys();
|
24630
24659
|
init_indexes();
|
24660
|
+
init_policies();
|
24631
24661
|
init_primary_keys();
|
24632
24662
|
init_query_builders();
|
24633
24663
|
init_schema();
|
@@ -25658,12 +25688,12 @@ var init_alias3 = __esm({
|
|
25658
25688
|
});
|
25659
25689
|
|
25660
25690
|
// ../drizzle-orm/dist/sqlite-core/checks.js
|
25661
|
-
var
|
25691
|
+
var _a159, CheckBuilder2, _a160, Check2;
|
25662
25692
|
var init_checks2 = __esm({
|
25663
25693
|
"../drizzle-orm/dist/sqlite-core/checks.js"() {
|
25664
25694
|
"use strict";
|
25665
25695
|
init_entity();
|
25666
|
-
|
25696
|
+
_a159 = entityKind;
|
25667
25697
|
CheckBuilder2 = class {
|
25668
25698
|
constructor(name2, value) {
|
25669
25699
|
__publicField(this, "brand");
|
@@ -25674,8 +25704,8 @@ var init_checks2 = __esm({
|
|
25674
25704
|
return new Check2(table4, this);
|
25675
25705
|
}
|
25676
25706
|
};
|
25677
|
-
__publicField(CheckBuilder2,
|
25678
|
-
|
25707
|
+
__publicField(CheckBuilder2, _a159, "SQLiteCheckBuilder");
|
25708
|
+
_a160 = entityKind;
|
25679
25709
|
Check2 = class {
|
25680
25710
|
constructor(table4, builder) {
|
25681
25711
|
__publicField(this, "name");
|
@@ -25685,7 +25715,7 @@ var init_checks2 = __esm({
|
|
25685
25715
|
this.value = builder.value;
|
25686
25716
|
}
|
25687
25717
|
};
|
25688
|
-
__publicField(Check2,
|
25718
|
+
__publicField(Check2, _a160, "SQLiteCheck");
|
25689
25719
|
}
|
25690
25720
|
});
|
25691
25721
|
|
@@ -25708,14 +25738,14 @@ function sqliteTableBase(name2, columns, extraConfig, schema4, baseName = name2)
|
|
25708
25738
|
}
|
25709
25739
|
return table4;
|
25710
25740
|
}
|
25711
|
-
var InlineForeignKeys2,
|
25741
|
+
var InlineForeignKeys2, _a161, _b113, _c5, _d3, _e2, SQLiteTable, sqliteTable;
|
25712
25742
|
var init_table3 = __esm({
|
25713
25743
|
"../drizzle-orm/dist/sqlite-core/table.js"() {
|
25714
25744
|
"use strict";
|
25715
25745
|
init_entity();
|
25716
25746
|
init_table();
|
25717
25747
|
InlineForeignKeys2 = Symbol.for("drizzle:SQLiteInlineForeignKeys");
|
25718
|
-
SQLiteTable = class extends (_e2 = Table2, _d3 = entityKind, _c5 = Table2.Symbol.Columns, _b113 = InlineForeignKeys2,
|
25748
|
+
SQLiteTable = class extends (_e2 = Table2, _d3 = entityKind, _c5 = Table2.Symbol.Columns, _b113 = InlineForeignKeys2, _a161 = Table2.Symbol.ExtraConfigBuilder, _e2) {
|
25719
25749
|
constructor() {
|
25720
25750
|
super(...arguments);
|
25721
25751
|
/** @internal */
|
@@ -25723,7 +25753,7 @@ var init_table3 = __esm({
|
|
25723
25753
|
/** @internal */
|
25724
25754
|
__publicField(this, _b113, []);
|
25725
25755
|
/** @internal */
|
25726
|
-
__publicField(this,
|
25756
|
+
__publicField(this, _a161);
|
25727
25757
|
}
|
25728
25758
|
};
|
25729
25759
|
__publicField(SQLiteTable, _d3, "SQLiteTable");
|
@@ -25738,13 +25768,13 @@ var init_table3 = __esm({
|
|
25738
25768
|
});
|
25739
25769
|
|
25740
25770
|
// ../drizzle-orm/dist/sqlite-core/foreign-keys.js
|
25741
|
-
var
|
25771
|
+
var _a162, ForeignKeyBuilder2, _a163, ForeignKey2;
|
25742
25772
|
var init_foreign_keys2 = __esm({
|
25743
25773
|
"../drizzle-orm/dist/sqlite-core/foreign-keys.js"() {
|
25744
25774
|
"use strict";
|
25745
25775
|
init_entity();
|
25746
25776
|
init_table3();
|
25747
|
-
|
25777
|
+
_a162 = entityKind;
|
25748
25778
|
ForeignKeyBuilder2 = class {
|
25749
25779
|
constructor(config, actions) {
|
25750
25780
|
/** @internal */
|
@@ -25775,8 +25805,8 @@ var init_foreign_keys2 = __esm({
|
|
25775
25805
|
return new ForeignKey2(table4, this);
|
25776
25806
|
}
|
25777
25807
|
};
|
25778
|
-
__publicField(ForeignKeyBuilder2,
|
25779
|
-
|
25808
|
+
__publicField(ForeignKeyBuilder2, _a162, "SQLiteForeignKeyBuilder");
|
25809
|
+
_a163 = entityKind;
|
25780
25810
|
ForeignKey2 = class {
|
25781
25811
|
constructor(table4, builder) {
|
25782
25812
|
__publicField(this, "reference");
|
@@ -25800,7 +25830,7 @@ var init_foreign_keys2 = __esm({
|
|
25800
25830
|
return name2 ?? `${chunks.join("_")}_fk`;
|
25801
25831
|
}
|
25802
25832
|
};
|
25803
|
-
__publicField(ForeignKey2,
|
25833
|
+
__publicField(ForeignKey2, _a163, "SQLiteForeignKey");
|
25804
25834
|
}
|
25805
25835
|
});
|
25806
25836
|
|
@@ -25808,13 +25838,13 @@ var init_foreign_keys2 = __esm({
|
|
25808
25838
|
function uniqueKeyName2(table4, columns) {
|
25809
25839
|
return `${table4[SQLiteTable.Symbol.Name]}_${columns.join("_")}_unique`;
|
25810
25840
|
}
|
25811
|
-
var
|
25841
|
+
var _a164, UniqueConstraintBuilder2, _a165, UniqueOnConstraintBuilder2, _a166, UniqueConstraint2;
|
25812
25842
|
var init_unique_constraint2 = __esm({
|
25813
25843
|
"../drizzle-orm/dist/sqlite-core/unique-constraint.js"() {
|
25814
25844
|
"use strict";
|
25815
25845
|
init_entity();
|
25816
25846
|
init_table3();
|
25817
|
-
|
25847
|
+
_a164 = entityKind;
|
25818
25848
|
UniqueConstraintBuilder2 = class {
|
25819
25849
|
constructor(columns, name2) {
|
25820
25850
|
/** @internal */
|
@@ -25827,8 +25857,8 @@ var init_unique_constraint2 = __esm({
|
|
25827
25857
|
return new UniqueConstraint2(table4, this.columns, this.name);
|
25828
25858
|
}
|
25829
25859
|
};
|
25830
|
-
__publicField(UniqueConstraintBuilder2,
|
25831
|
-
|
25860
|
+
__publicField(UniqueConstraintBuilder2, _a164, "SQLiteUniqueConstraintBuilder");
|
25861
|
+
_a165 = entityKind;
|
25832
25862
|
UniqueOnConstraintBuilder2 = class {
|
25833
25863
|
constructor(name2) {
|
25834
25864
|
/** @internal */
|
@@ -25839,8 +25869,8 @@ var init_unique_constraint2 = __esm({
|
|
25839
25869
|
return new UniqueConstraintBuilder2(columns, this.name);
|
25840
25870
|
}
|
25841
25871
|
};
|
25842
|
-
__publicField(UniqueOnConstraintBuilder2,
|
25843
|
-
|
25872
|
+
__publicField(UniqueOnConstraintBuilder2, _a165, "SQLiteUniqueOnConstraintBuilder");
|
25873
|
+
_a166 = entityKind;
|
25844
25874
|
UniqueConstraint2 = class {
|
25845
25875
|
constructor(table4, columns, name2) {
|
25846
25876
|
__publicField(this, "columns");
|
@@ -25853,12 +25883,12 @@ var init_unique_constraint2 = __esm({
|
|
25853
25883
|
return this.name;
|
25854
25884
|
}
|
25855
25885
|
};
|
25856
|
-
__publicField(UniqueConstraint2,
|
25886
|
+
__publicField(UniqueConstraint2, _a166, "SQLiteUniqueConstraint");
|
25857
25887
|
}
|
25858
25888
|
});
|
25859
25889
|
|
25860
25890
|
// ../drizzle-orm/dist/sqlite-core/columns/common.js
|
25861
|
-
var
|
25891
|
+
var _a167, _b114, SQLiteColumnBuilder, _a168, _b115, SQLiteColumn;
|
25862
25892
|
var init_common3 = __esm({
|
25863
25893
|
"../drizzle-orm/dist/sqlite-core/columns/common.js"() {
|
25864
25894
|
"use strict";
|
@@ -25867,7 +25897,7 @@ var init_common3 = __esm({
|
|
25867
25897
|
init_entity();
|
25868
25898
|
init_foreign_keys2();
|
25869
25899
|
init_unique_constraint2();
|
25870
|
-
SQLiteColumnBuilder = class extends (_b114 = ColumnBuilder,
|
25900
|
+
SQLiteColumnBuilder = class extends (_b114 = ColumnBuilder, _a167 = entityKind, _b114) {
|
25871
25901
|
constructor() {
|
25872
25902
|
super(...arguments);
|
25873
25903
|
__publicField(this, "foreignKeyConfigs", []);
|
@@ -25908,8 +25938,8 @@ var init_common3 = __esm({
|
|
25908
25938
|
});
|
25909
25939
|
}
|
25910
25940
|
};
|
25911
|
-
__publicField(SQLiteColumnBuilder,
|
25912
|
-
SQLiteColumn = class extends (_b115 = Column2,
|
25941
|
+
__publicField(SQLiteColumnBuilder, _a167, "SQLiteColumnBuilder");
|
25942
|
+
SQLiteColumn = class extends (_b115 = Column2, _a168 = entityKind, _b115) {
|
25913
25943
|
constructor(table4, config) {
|
25914
25944
|
if (!config.uniqueName) {
|
25915
25945
|
config.uniqueName = uniqueKeyName2(table4, [config.name]);
|
@@ -25918,18 +25948,18 @@ var init_common3 = __esm({
|
|
25918
25948
|
this.table = table4;
|
25919
25949
|
}
|
25920
25950
|
};
|
25921
|
-
__publicField(SQLiteColumn,
|
25951
|
+
__publicField(SQLiteColumn, _a168, "SQLiteColumn");
|
25922
25952
|
}
|
25923
25953
|
});
|
25924
25954
|
|
25925
25955
|
// ../drizzle-orm/dist/sqlite-core/columns/blob.js
|
25926
|
-
var
|
25956
|
+
var _a169, _b116, SQLiteBigIntBuilder, _a170, _b117, SQLiteBigInt, _a171, _b118, SQLiteBlobJsonBuilder, _a172, _b119, SQLiteBlobJson, _a173, _b120, SQLiteBlobBufferBuilder, _a174, _b121, SQLiteBlobBuffer;
|
25927
25957
|
var init_blob = __esm({
|
25928
25958
|
"../drizzle-orm/dist/sqlite-core/columns/blob.js"() {
|
25929
25959
|
"use strict";
|
25930
25960
|
init_entity();
|
25931
25961
|
init_common3();
|
25932
|
-
SQLiteBigIntBuilder = class extends (_b116 = SQLiteColumnBuilder,
|
25962
|
+
SQLiteBigIntBuilder = class extends (_b116 = SQLiteColumnBuilder, _a169 = entityKind, _b116) {
|
25933
25963
|
constructor(name2) {
|
25934
25964
|
super(name2, "bigint", "SQLiteBigInt");
|
25935
25965
|
}
|
@@ -25938,8 +25968,8 @@ var init_blob = __esm({
|
|
25938
25968
|
return new SQLiteBigInt(table4, this.config);
|
25939
25969
|
}
|
25940
25970
|
};
|
25941
|
-
__publicField(SQLiteBigIntBuilder,
|
25942
|
-
SQLiteBigInt = class extends (_b117 = SQLiteColumn,
|
25971
|
+
__publicField(SQLiteBigIntBuilder, _a169, "SQLiteBigIntBuilder");
|
25972
|
+
SQLiteBigInt = class extends (_b117 = SQLiteColumn, _a170 = entityKind, _b117) {
|
25943
25973
|
getSQLType() {
|
25944
25974
|
return "blob";
|
25945
25975
|
}
|
@@ -25950,8 +25980,8 @@ var init_blob = __esm({
|
|
25950
25980
|
return Buffer.from(value.toString());
|
25951
25981
|
}
|
25952
25982
|
};
|
25953
|
-
__publicField(SQLiteBigInt,
|
25954
|
-
SQLiteBlobJsonBuilder = class extends (_b118 = SQLiteColumnBuilder,
|
25983
|
+
__publicField(SQLiteBigInt, _a170, "SQLiteBigInt");
|
25984
|
+
SQLiteBlobJsonBuilder = class extends (_b118 = SQLiteColumnBuilder, _a171 = entityKind, _b118) {
|
25955
25985
|
constructor(name2) {
|
25956
25986
|
super(name2, "json", "SQLiteBlobJson");
|
25957
25987
|
}
|
@@ -25963,8 +25993,8 @@ var init_blob = __esm({
|
|
25963
25993
|
);
|
25964
25994
|
}
|
25965
25995
|
};
|
25966
|
-
__publicField(SQLiteBlobJsonBuilder,
|
25967
|
-
SQLiteBlobJson = class extends (_b119 = SQLiteColumn,
|
25996
|
+
__publicField(SQLiteBlobJsonBuilder, _a171, "SQLiteBlobJsonBuilder");
|
25997
|
+
SQLiteBlobJson = class extends (_b119 = SQLiteColumn, _a172 = entityKind, _b119) {
|
25968
25998
|
getSQLType() {
|
25969
25999
|
return "blob";
|
25970
26000
|
}
|
@@ -25975,8 +26005,8 @@ var init_blob = __esm({
|
|
25975
26005
|
return Buffer.from(JSON.stringify(value));
|
25976
26006
|
}
|
25977
26007
|
};
|
25978
|
-
__publicField(SQLiteBlobJson,
|
25979
|
-
SQLiteBlobBufferBuilder = class extends (_b120 = SQLiteColumnBuilder,
|
26008
|
+
__publicField(SQLiteBlobJson, _a172, "SQLiteBlobJson");
|
26009
|
+
SQLiteBlobBufferBuilder = class extends (_b120 = SQLiteColumnBuilder, _a173 = entityKind, _b120) {
|
25980
26010
|
constructor(name2) {
|
25981
26011
|
super(name2, "buffer", "SQLiteBlobBuffer");
|
25982
26012
|
}
|
@@ -25985,24 +26015,24 @@ var init_blob = __esm({
|
|
25985
26015
|
return new SQLiteBlobBuffer(table4, this.config);
|
25986
26016
|
}
|
25987
26017
|
};
|
25988
|
-
__publicField(SQLiteBlobBufferBuilder,
|
25989
|
-
SQLiteBlobBuffer = class extends (_b121 = SQLiteColumn,
|
26018
|
+
__publicField(SQLiteBlobBufferBuilder, _a173, "SQLiteBlobBufferBuilder");
|
26019
|
+
SQLiteBlobBuffer = class extends (_b121 = SQLiteColumn, _a174 = entityKind, _b121) {
|
25990
26020
|
getSQLType() {
|
25991
26021
|
return "blob";
|
25992
26022
|
}
|
25993
26023
|
};
|
25994
|
-
__publicField(SQLiteBlobBuffer,
|
26024
|
+
__publicField(SQLiteBlobBuffer, _a174, "SQLiteBlobBuffer");
|
25995
26025
|
}
|
25996
26026
|
});
|
25997
26027
|
|
25998
26028
|
// ../drizzle-orm/dist/sqlite-core/columns/custom.js
|
25999
|
-
var
|
26029
|
+
var _a175, _b122, SQLiteCustomColumnBuilder, _a176, _b123, SQLiteCustomColumn;
|
26000
26030
|
var init_custom2 = __esm({
|
26001
26031
|
"../drizzle-orm/dist/sqlite-core/columns/custom.js"() {
|
26002
26032
|
"use strict";
|
26003
26033
|
init_entity();
|
26004
26034
|
init_common3();
|
26005
|
-
SQLiteCustomColumnBuilder = class extends (_b122 = SQLiteColumnBuilder,
|
26035
|
+
SQLiteCustomColumnBuilder = class extends (_b122 = SQLiteColumnBuilder, _a175 = entityKind, _b122) {
|
26006
26036
|
constructor(name2, fieldConfig, customTypeParams) {
|
26007
26037
|
super(name2, "custom", "SQLiteCustomColumn");
|
26008
26038
|
this.config.fieldConfig = fieldConfig;
|
@@ -26016,8 +26046,8 @@ var init_custom2 = __esm({
|
|
26016
26046
|
);
|
26017
26047
|
}
|
26018
26048
|
};
|
26019
|
-
__publicField(SQLiteCustomColumnBuilder,
|
26020
|
-
SQLiteCustomColumn = class extends (_b123 = SQLiteColumn,
|
26049
|
+
__publicField(SQLiteCustomColumnBuilder, _a175, "SQLiteCustomColumnBuilder");
|
26050
|
+
SQLiteCustomColumn = class extends (_b123 = SQLiteColumn, _a176 = entityKind, _b123) {
|
26021
26051
|
constructor(table4, config) {
|
26022
26052
|
super(table4, config);
|
26023
26053
|
__publicField(this, "sqlName");
|
@@ -26037,19 +26067,19 @@ var init_custom2 = __esm({
|
|
26037
26067
|
return typeof this.mapTo === "function" ? this.mapTo(value) : value;
|
26038
26068
|
}
|
26039
26069
|
};
|
26040
|
-
__publicField(SQLiteCustomColumn,
|
26070
|
+
__publicField(SQLiteCustomColumn, _a176, "SQLiteCustomColumn");
|
26041
26071
|
}
|
26042
26072
|
});
|
26043
26073
|
|
26044
26074
|
// ../drizzle-orm/dist/sqlite-core/columns/integer.js
|
26045
|
-
var
|
26075
|
+
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;
|
26046
26076
|
var init_integer2 = __esm({
|
26047
26077
|
"../drizzle-orm/dist/sqlite-core/columns/integer.js"() {
|
26048
26078
|
"use strict";
|
26049
26079
|
init_entity();
|
26050
26080
|
init_sql();
|
26051
26081
|
init_common3();
|
26052
|
-
SQLiteBaseIntegerBuilder = class extends (_b124 = SQLiteColumnBuilder,
|
26082
|
+
SQLiteBaseIntegerBuilder = class extends (_b124 = SQLiteColumnBuilder, _a177 = entityKind, _b124) {
|
26053
26083
|
constructor(name2, dataType, columnType) {
|
26054
26084
|
super(name2, dataType, columnType);
|
26055
26085
|
this.config.autoIncrement = false;
|
@@ -26062,8 +26092,8 @@ var init_integer2 = __esm({
|
|
26062
26092
|
return super.primaryKey();
|
26063
26093
|
}
|
26064
26094
|
};
|
26065
|
-
__publicField(SQLiteBaseIntegerBuilder,
|
26066
|
-
SQLiteBaseInteger = class extends (_b125 = SQLiteColumn,
|
26095
|
+
__publicField(SQLiteBaseIntegerBuilder, _a177, "SQLiteBaseIntegerBuilder");
|
26096
|
+
SQLiteBaseInteger = class extends (_b125 = SQLiteColumn, _a178 = entityKind, _b125) {
|
26067
26097
|
constructor() {
|
26068
26098
|
super(...arguments);
|
26069
26099
|
__publicField(this, "autoIncrement", this.config.autoIncrement);
|
@@ -26072,8 +26102,8 @@ var init_integer2 = __esm({
|
|
26072
26102
|
return "integer";
|
26073
26103
|
}
|
26074
26104
|
};
|
26075
|
-
__publicField(SQLiteBaseInteger,
|
26076
|
-
SQLiteIntegerBuilder = class extends (_b126 = SQLiteBaseIntegerBuilder,
|
26105
|
+
__publicField(SQLiteBaseInteger, _a178, "SQLiteBaseInteger");
|
26106
|
+
SQLiteIntegerBuilder = class extends (_b126 = SQLiteBaseIntegerBuilder, _a179 = entityKind, _b126) {
|
26077
26107
|
constructor(name2) {
|
26078
26108
|
super(name2, "number", "SQLiteInteger");
|
26079
26109
|
}
|
@@ -26084,11 +26114,11 @@ var init_integer2 = __esm({
|
|
26084
26114
|
);
|
26085
26115
|
}
|
26086
26116
|
};
|
26087
|
-
__publicField(SQLiteIntegerBuilder,
|
26088
|
-
SQLiteInteger = class extends (_b127 = SQLiteBaseInteger,
|
26117
|
+
__publicField(SQLiteIntegerBuilder, _a179, "SQLiteIntegerBuilder");
|
26118
|
+
SQLiteInteger = class extends (_b127 = SQLiteBaseInteger, _a180 = entityKind, _b127) {
|
26089
26119
|
};
|
26090
|
-
__publicField(SQLiteInteger,
|
26091
|
-
SQLiteTimestampBuilder = class extends (_b128 = SQLiteBaseIntegerBuilder,
|
26120
|
+
__publicField(SQLiteInteger, _a180, "SQLiteInteger");
|
26121
|
+
SQLiteTimestampBuilder = class extends (_b128 = SQLiteBaseIntegerBuilder, _a181 = entityKind, _b128) {
|
26092
26122
|
constructor(name2, mode) {
|
26093
26123
|
super(name2, "date", "SQLiteTimestamp");
|
26094
26124
|
this.config.mode = mode;
|
@@ -26108,8 +26138,8 @@ var init_integer2 = __esm({
|
|
26108
26138
|
);
|
26109
26139
|
}
|
26110
26140
|
};
|
26111
|
-
__publicField(SQLiteTimestampBuilder,
|
26112
|
-
SQLiteTimestamp = class extends (_b129 = SQLiteBaseInteger,
|
26141
|
+
__publicField(SQLiteTimestampBuilder, _a181, "SQLiteTimestampBuilder");
|
26142
|
+
SQLiteTimestamp = class extends (_b129 = SQLiteBaseInteger, _a182 = entityKind, _b129) {
|
26113
26143
|
constructor() {
|
26114
26144
|
super(...arguments);
|
26115
26145
|
__publicField(this, "mode", this.config.mode);
|
@@ -26128,8 +26158,8 @@ var init_integer2 = __esm({
|
|
26128
26158
|
return unix;
|
26129
26159
|
}
|
26130
26160
|
};
|
26131
|
-
__publicField(SQLiteTimestamp,
|
26132
|
-
SQLiteBooleanBuilder = class extends (_b130 = SQLiteBaseIntegerBuilder,
|
26161
|
+
__publicField(SQLiteTimestamp, _a182, "SQLiteTimestamp");
|
26162
|
+
SQLiteBooleanBuilder = class extends (_b130 = SQLiteBaseIntegerBuilder, _a183 = entityKind, _b130) {
|
26133
26163
|
constructor(name2, mode) {
|
26134
26164
|
super(name2, "boolean", "SQLiteBoolean");
|
26135
26165
|
this.config.mode = mode;
|
@@ -26141,8 +26171,8 @@ var init_integer2 = __esm({
|
|
26141
26171
|
);
|
26142
26172
|
}
|
26143
26173
|
};
|
26144
|
-
__publicField(SQLiteBooleanBuilder,
|
26145
|
-
SQLiteBoolean = class extends (_b131 = SQLiteBaseInteger,
|
26174
|
+
__publicField(SQLiteBooleanBuilder, _a183, "SQLiteBooleanBuilder");
|
26175
|
+
SQLiteBoolean = class extends (_b131 = SQLiteBaseInteger, _a184 = entityKind, _b131) {
|
26146
26176
|
constructor() {
|
26147
26177
|
super(...arguments);
|
26148
26178
|
__publicField(this, "mode", this.config.mode);
|
@@ -26154,18 +26184,18 @@ var init_integer2 = __esm({
|
|
26154
26184
|
return value ? 1 : 0;
|
26155
26185
|
}
|
26156
26186
|
};
|
26157
|
-
__publicField(SQLiteBoolean,
|
26187
|
+
__publicField(SQLiteBoolean, _a184, "SQLiteBoolean");
|
26158
26188
|
}
|
26159
26189
|
});
|
26160
26190
|
|
26161
26191
|
// ../drizzle-orm/dist/sqlite-core/columns/numeric.js
|
26162
|
-
var
|
26192
|
+
var _a185, _b132, SQLiteNumericBuilder, _a186, _b133, SQLiteNumeric;
|
26163
26193
|
var init_numeric2 = __esm({
|
26164
26194
|
"../drizzle-orm/dist/sqlite-core/columns/numeric.js"() {
|
26165
26195
|
"use strict";
|
26166
26196
|
init_entity();
|
26167
26197
|
init_common3();
|
26168
|
-
SQLiteNumericBuilder = class extends (_b132 = SQLiteColumnBuilder,
|
26198
|
+
SQLiteNumericBuilder = class extends (_b132 = SQLiteColumnBuilder, _a185 = entityKind, _b132) {
|
26169
26199
|
constructor(name2) {
|
26170
26200
|
super(name2, "string", "SQLiteNumeric");
|
26171
26201
|
}
|
@@ -26177,24 +26207,24 @@ var init_numeric2 = __esm({
|
|
26177
26207
|
);
|
26178
26208
|
}
|
26179
26209
|
};
|
26180
|
-
__publicField(SQLiteNumericBuilder,
|
26181
|
-
SQLiteNumeric = class extends (_b133 = SQLiteColumn,
|
26210
|
+
__publicField(SQLiteNumericBuilder, _a185, "SQLiteNumericBuilder");
|
26211
|
+
SQLiteNumeric = class extends (_b133 = SQLiteColumn, _a186 = entityKind, _b133) {
|
26182
26212
|
getSQLType() {
|
26183
26213
|
return "numeric";
|
26184
26214
|
}
|
26185
26215
|
};
|
26186
|
-
__publicField(SQLiteNumeric,
|
26216
|
+
__publicField(SQLiteNumeric, _a186, "SQLiteNumeric");
|
26187
26217
|
}
|
26188
26218
|
});
|
26189
26219
|
|
26190
26220
|
// ../drizzle-orm/dist/sqlite-core/columns/real.js
|
26191
|
-
var
|
26221
|
+
var _a187, _b134, SQLiteRealBuilder, _a188, _b135, SQLiteReal;
|
26192
26222
|
var init_real2 = __esm({
|
26193
26223
|
"../drizzle-orm/dist/sqlite-core/columns/real.js"() {
|
26194
26224
|
"use strict";
|
26195
26225
|
init_entity();
|
26196
26226
|
init_common3();
|
26197
|
-
SQLiteRealBuilder = class extends (_b134 = SQLiteColumnBuilder,
|
26227
|
+
SQLiteRealBuilder = class extends (_b134 = SQLiteColumnBuilder, _a187 = entityKind, _b134) {
|
26198
26228
|
constructor(name2) {
|
26199
26229
|
super(name2, "number", "SQLiteReal");
|
26200
26230
|
}
|
@@ -26203,24 +26233,24 @@ var init_real2 = __esm({
|
|
26203
26233
|
return new SQLiteReal(table4, this.config);
|
26204
26234
|
}
|
26205
26235
|
};
|
26206
|
-
__publicField(SQLiteRealBuilder,
|
26207
|
-
SQLiteReal = class extends (_b135 = SQLiteColumn,
|
26236
|
+
__publicField(SQLiteRealBuilder, _a187, "SQLiteRealBuilder");
|
26237
|
+
SQLiteReal = class extends (_b135 = SQLiteColumn, _a188 = entityKind, _b135) {
|
26208
26238
|
getSQLType() {
|
26209
26239
|
return "real";
|
26210
26240
|
}
|
26211
26241
|
};
|
26212
|
-
__publicField(SQLiteReal,
|
26242
|
+
__publicField(SQLiteReal, _a188, "SQLiteReal");
|
26213
26243
|
}
|
26214
26244
|
});
|
26215
26245
|
|
26216
26246
|
// ../drizzle-orm/dist/sqlite-core/columns/text.js
|
26217
|
-
var
|
26247
|
+
var _a189, _b136, SQLiteTextBuilder, _a190, _b137, SQLiteText, _a191, _b138, SQLiteTextJsonBuilder, _a192, _b139, SQLiteTextJson;
|
26218
26248
|
var init_text2 = __esm({
|
26219
26249
|
"../drizzle-orm/dist/sqlite-core/columns/text.js"() {
|
26220
26250
|
"use strict";
|
26221
26251
|
init_entity();
|
26222
26252
|
init_common3();
|
26223
|
-
SQLiteTextBuilder = class extends (_b136 = SQLiteColumnBuilder,
|
26253
|
+
SQLiteTextBuilder = class extends (_b136 = SQLiteColumnBuilder, _a189 = entityKind, _b136) {
|
26224
26254
|
constructor(name2, config) {
|
26225
26255
|
super(name2, "string", "SQLiteText");
|
26226
26256
|
this.config.enumValues = config.enum;
|
@@ -26231,8 +26261,8 @@ var init_text2 = __esm({
|
|
26231
26261
|
return new SQLiteText(table4, this.config);
|
26232
26262
|
}
|
26233
26263
|
};
|
26234
|
-
__publicField(SQLiteTextBuilder,
|
26235
|
-
SQLiteText = class extends (_b137 = SQLiteColumn,
|
26264
|
+
__publicField(SQLiteTextBuilder, _a189, "SQLiteTextBuilder");
|
26265
|
+
SQLiteText = class extends (_b137 = SQLiteColumn, _a190 = entityKind, _b137) {
|
26236
26266
|
constructor(table4, config) {
|
26237
26267
|
super(table4, config);
|
26238
26268
|
__publicField(this, "enumValues", this.config.enumValues);
|
@@ -26242,8 +26272,8 @@ var init_text2 = __esm({
|
|
26242
26272
|
return `text${this.config.length ? `(${this.config.length})` : ""}`;
|
26243
26273
|
}
|
26244
26274
|
};
|
26245
|
-
__publicField(SQLiteText,
|
26246
|
-
SQLiteTextJsonBuilder = class extends (_b138 = SQLiteColumnBuilder,
|
26275
|
+
__publicField(SQLiteText, _a190, "SQLiteText");
|
26276
|
+
SQLiteTextJsonBuilder = class extends (_b138 = SQLiteColumnBuilder, _a191 = entityKind, _b138) {
|
26247
26277
|
constructor(name2) {
|
26248
26278
|
super(name2, "json", "SQLiteTextJson");
|
26249
26279
|
}
|
@@ -26255,8 +26285,8 @@ var init_text2 = __esm({
|
|
26255
26285
|
);
|
26256
26286
|
}
|
26257
26287
|
};
|
26258
|
-
__publicField(SQLiteTextJsonBuilder,
|
26259
|
-
SQLiteTextJson = class extends (_b139 = SQLiteColumn,
|
26288
|
+
__publicField(SQLiteTextJsonBuilder, _a191, "SQLiteTextJsonBuilder");
|
26289
|
+
SQLiteTextJson = class extends (_b139 = SQLiteColumn, _a192 = entityKind, _b139) {
|
26260
26290
|
getSQLType() {
|
26261
26291
|
return "text";
|
26262
26292
|
}
|
@@ -26267,7 +26297,7 @@ var init_text2 = __esm({
|
|
26267
26297
|
return JSON.stringify(value);
|
26268
26298
|
}
|
26269
26299
|
};
|
26270
|
-
__publicField(SQLiteTextJson,
|
26300
|
+
__publicField(SQLiteTextJson, _a192, "SQLiteTextJson");
|
26271
26301
|
}
|
26272
26302
|
});
|
26273
26303
|
|
@@ -26286,7 +26316,7 @@ var init_columns2 = __esm({
|
|
26286
26316
|
});
|
26287
26317
|
|
26288
26318
|
// ../drizzle-orm/dist/sqlite-core/query-builders/delete.js
|
26289
|
-
var
|
26319
|
+
var _a193, _b140, SQLiteDeleteBase;
|
26290
26320
|
var init_delete2 = __esm({
|
26291
26321
|
"../drizzle-orm/dist/sqlite-core/query-builders/delete.js"() {
|
26292
26322
|
"use strict";
|
@@ -26294,7 +26324,7 @@ var init_delete2 = __esm({
|
|
26294
26324
|
init_query_promise();
|
26295
26325
|
init_table3();
|
26296
26326
|
init_utils2();
|
26297
|
-
SQLiteDeleteBase = class extends (_b140 = QueryPromise,
|
26327
|
+
SQLiteDeleteBase = class extends (_b140 = QueryPromise, _a193 = entityKind, _b140) {
|
26298
26328
|
constructor(table4, session, dialect7, withList) {
|
26299
26329
|
super();
|
26300
26330
|
/** @internal */
|
@@ -26380,12 +26410,12 @@ var init_delete2 = __esm({
|
|
26380
26410
|
return this;
|
26381
26411
|
}
|
26382
26412
|
};
|
26383
|
-
__publicField(SQLiteDeleteBase,
|
26413
|
+
__publicField(SQLiteDeleteBase, _a193, "SQLiteDelete");
|
26384
26414
|
}
|
26385
26415
|
});
|
26386
26416
|
|
26387
26417
|
// ../drizzle-orm/dist/sqlite-core/query-builders/insert.js
|
26388
|
-
var
|
26418
|
+
var _a194, SQLiteInsertBuilder, _a195, _b141, SQLiteInsertBase;
|
26389
26419
|
var init_insert2 = __esm({
|
26390
26420
|
"../drizzle-orm/dist/sqlite-core/query-builders/insert.js"() {
|
26391
26421
|
"use strict";
|
@@ -26395,7 +26425,7 @@ var init_insert2 = __esm({
|
|
26395
26425
|
init_table3();
|
26396
26426
|
init_table();
|
26397
26427
|
init_utils2();
|
26398
|
-
|
26428
|
+
_a194 = entityKind;
|
26399
26429
|
SQLiteInsertBuilder = class {
|
26400
26430
|
constructor(table4, session, dialect7, withList) {
|
26401
26431
|
this.table = table4;
|
@@ -26420,8 +26450,8 @@ var init_insert2 = __esm({
|
|
26420
26450
|
return new SQLiteInsertBase(this.table, mappedValues, this.session, this.dialect, this.withList);
|
26421
26451
|
}
|
26422
26452
|
};
|
26423
|
-
__publicField(SQLiteInsertBuilder,
|
26424
|
-
SQLiteInsertBase = class extends (_b141 = QueryPromise,
|
26453
|
+
__publicField(SQLiteInsertBuilder, _a194, "SQLiteInsertBuilder");
|
26454
|
+
SQLiteInsertBase = class extends (_b141 = QueryPromise, _a195 = entityKind, _b141) {
|
26425
26455
|
constructor(table4, values, session, dialect7, withList) {
|
26426
26456
|
super();
|
26427
26457
|
/** @internal */
|
@@ -26548,25 +26578,25 @@ var init_insert2 = __esm({
|
|
26548
26578
|
return this;
|
26549
26579
|
}
|
26550
26580
|
};
|
26551
|
-
__publicField(SQLiteInsertBase,
|
26581
|
+
__publicField(SQLiteInsertBase, _a195, "SQLiteInsert");
|
26552
26582
|
}
|
26553
26583
|
});
|
26554
26584
|
|
26555
26585
|
// ../drizzle-orm/dist/sqlite-core/view-base.js
|
26556
|
-
var
|
26586
|
+
var _a196, _b142, SQLiteViewBase;
|
26557
26587
|
var init_view_base2 = __esm({
|
26558
26588
|
"../drizzle-orm/dist/sqlite-core/view-base.js"() {
|
26559
26589
|
"use strict";
|
26560
26590
|
init_entity();
|
26561
26591
|
init_sql();
|
26562
|
-
SQLiteViewBase = class extends (_b142 = View,
|
26592
|
+
SQLiteViewBase = class extends (_b142 = View, _a196 = entityKind, _b142) {
|
26563
26593
|
};
|
26564
|
-
__publicField(SQLiteViewBase,
|
26594
|
+
__publicField(SQLiteViewBase, _a196, "SQLiteViewBase");
|
26565
26595
|
}
|
26566
26596
|
});
|
26567
26597
|
|
26568
26598
|
// ../drizzle-orm/dist/sqlite-core/dialect.js
|
26569
|
-
var
|
26599
|
+
var _a197, SQLiteDialect, _a198, _b143, SQLiteSyncDialect, _a199, _b144, SQLiteAsyncDialect;
|
26570
26600
|
var init_dialect2 = __esm({
|
26571
26601
|
"../drizzle-orm/dist/sqlite-core/dialect.js"() {
|
26572
26602
|
"use strict";
|
@@ -26584,7 +26614,7 @@ var init_dialect2 = __esm({
|
|
26584
26614
|
init_utils2();
|
26585
26615
|
init_view_common();
|
26586
26616
|
init_view_base2();
|
26587
|
-
|
26617
|
+
_a197 = entityKind;
|
26588
26618
|
SQLiteDialect = class {
|
26589
26619
|
escapeName(name2) {
|
26590
26620
|
return `"${name2}"`;
|
@@ -27091,8 +27121,8 @@ var init_dialect2 = __esm({
|
|
27091
27121
|
};
|
27092
27122
|
}
|
27093
27123
|
};
|
27094
|
-
__publicField(SQLiteDialect,
|
27095
|
-
SQLiteSyncDialect = class extends (_b143 = SQLiteDialect,
|
27124
|
+
__publicField(SQLiteDialect, _a197, "SQLiteDialect");
|
27125
|
+
SQLiteSyncDialect = class extends (_b143 = SQLiteDialect, _a198 = entityKind, _b143) {
|
27096
27126
|
migrate(migrations, session, config) {
|
27097
27127
|
const migrationsTable = config === void 0 ? "__drizzle_migrations" : typeof config === "string" ? "__drizzle_migrations" : config.migrationsTable ?? "__drizzle_migrations";
|
27098
27128
|
const migrationTableCreate = sql`
|
@@ -27126,8 +27156,8 @@ var init_dialect2 = __esm({
|
|
27126
27156
|
}
|
27127
27157
|
}
|
27128
27158
|
};
|
27129
|
-
__publicField(SQLiteSyncDialect,
|
27130
|
-
SQLiteAsyncDialect = class extends (_b144 = SQLiteDialect,
|
27159
|
+
__publicField(SQLiteSyncDialect, _a198, "SQLiteSyncDialect");
|
27160
|
+
SQLiteAsyncDialect = class extends (_b144 = SQLiteDialect, _a199 = entityKind, _b144) {
|
27131
27161
|
async migrate(migrations, session, config) {
|
27132
27162
|
const migrationsTable = config === void 0 ? "__drizzle_migrations" : typeof config === "string" ? "__drizzle_migrations" : config.migrationsTable ?? "__drizzle_migrations";
|
27133
27163
|
const migrationTableCreate = sql`
|
@@ -27156,7 +27186,7 @@ var init_dialect2 = __esm({
|
|
27156
27186
|
});
|
27157
27187
|
}
|
27158
27188
|
};
|
27159
|
-
__publicField(SQLiteAsyncDialect,
|
27189
|
+
__publicField(SQLiteAsyncDialect, _a199, "SQLiteAsyncDialect");
|
27160
27190
|
}
|
27161
27191
|
});
|
27162
27192
|
|
@@ -27178,7 +27208,7 @@ function createSetOperator2(type, isAll) {
|
|
27178
27208
|
return leftSelect.addSetOperators(setOperators);
|
27179
27209
|
};
|
27180
27210
|
}
|
27181
|
-
var
|
27211
|
+
var _a200, SQLiteSelectBuilder, _a201, _b145, SQLiteSelectQueryBuilderBase, _a202, _b146, SQLiteSelectBase, getSQLiteSetOperators, union2, unionAll2, intersect2, except2;
|
27182
27212
|
var init_select3 = __esm({
|
27183
27213
|
"../drizzle-orm/dist/sqlite-core/query-builders/select.js"() {
|
27184
27214
|
"use strict";
|
@@ -27192,7 +27222,7 @@ var init_select3 = __esm({
|
|
27192
27222
|
init_utils2();
|
27193
27223
|
init_view_common();
|
27194
27224
|
init_view_base2();
|
27195
|
-
|
27225
|
+
_a200 = entityKind;
|
27196
27226
|
SQLiteSelectBuilder = class {
|
27197
27227
|
constructor(config) {
|
27198
27228
|
__publicField(this, "fields");
|
@@ -27233,8 +27263,8 @@ var init_select3 = __esm({
|
|
27233
27263
|
});
|
27234
27264
|
}
|
27235
27265
|
};
|
27236
|
-
__publicField(SQLiteSelectBuilder,
|
27237
|
-
SQLiteSelectQueryBuilderBase = class extends (_b145 = TypedQueryBuilder,
|
27266
|
+
__publicField(SQLiteSelectBuilder, _a200, "SQLiteSelectBuilder");
|
27267
|
+
SQLiteSelectQueryBuilderBase = class extends (_b145 = TypedQueryBuilder, _a201 = entityKind, _b145) {
|
27238
27268
|
constructor({ table: table4, fields, isPartialSelect, session, dialect: dialect7, withList, distinct }) {
|
27239
27269
|
super();
|
27240
27270
|
__publicField(this, "_");
|
@@ -27739,8 +27769,8 @@ var init_select3 = __esm({
|
|
27739
27769
|
return this;
|
27740
27770
|
}
|
27741
27771
|
};
|
27742
|
-
__publicField(SQLiteSelectQueryBuilderBase,
|
27743
|
-
SQLiteSelectBase = class extends (_b146 = SQLiteSelectQueryBuilderBase,
|
27772
|
+
__publicField(SQLiteSelectQueryBuilderBase, _a201, "SQLiteSelectQueryBuilder");
|
27773
|
+
SQLiteSelectBase = class extends (_b146 = SQLiteSelectQueryBuilderBase, _a202 = entityKind, _b146) {
|
27744
27774
|
constructor() {
|
27745
27775
|
super(...arguments);
|
27746
27776
|
__publicField(this, "run", (placeholderValues) => {
|
@@ -27778,7 +27808,7 @@ var init_select3 = __esm({
|
|
27778
27808
|
return this.all();
|
27779
27809
|
}
|
27780
27810
|
};
|
27781
|
-
__publicField(SQLiteSelectBase,
|
27811
|
+
__publicField(SQLiteSelectBase, _a202, "SQLiteSelect");
|
27782
27812
|
applyMixins(SQLiteSelectBase, [QueryPromise]);
|
27783
27813
|
getSQLiteSetOperators = () => ({
|
27784
27814
|
union: union2,
|
@@ -27794,7 +27824,7 @@ var init_select3 = __esm({
|
|
27794
27824
|
});
|
27795
27825
|
|
27796
27826
|
// ../drizzle-orm/dist/sqlite-core/query-builders/query-builder.js
|
27797
|
-
var
|
27827
|
+
var _a203, QueryBuilder2;
|
27798
27828
|
var init_query_builder3 = __esm({
|
27799
27829
|
"../drizzle-orm/dist/sqlite-core/query-builders/query-builder.js"() {
|
27800
27830
|
"use strict";
|
@@ -27803,7 +27833,7 @@ var init_query_builder3 = __esm({
|
|
27803
27833
|
init_dialect2();
|
27804
27834
|
init_subquery();
|
27805
27835
|
init_select3();
|
27806
|
-
|
27836
|
+
_a203 = entityKind;
|
27807
27837
|
QueryBuilder2 = class {
|
27808
27838
|
constructor() {
|
27809
27839
|
__publicField(this, "dialect");
|
@@ -27862,7 +27892,7 @@ var init_query_builder3 = __esm({
|
|
27862
27892
|
return this.dialect;
|
27863
27893
|
}
|
27864
27894
|
};
|
27865
|
-
__publicField(QueryBuilder2,
|
27895
|
+
__publicField(QueryBuilder2, _a203, "SQLiteQueryBuilder");
|
27866
27896
|
}
|
27867
27897
|
});
|
27868
27898
|
|
@@ -27874,7 +27904,7 @@ var init_select_types2 = __esm({
|
|
27874
27904
|
});
|
27875
27905
|
|
27876
27906
|
// ../drizzle-orm/dist/sqlite-core/query-builders/update.js
|
27877
|
-
var
|
27907
|
+
var _a204, SQLiteUpdateBuilder, _a205, _b147, SQLiteUpdateBase;
|
27878
27908
|
var init_update2 = __esm({
|
27879
27909
|
"../drizzle-orm/dist/sqlite-core/query-builders/update.js"() {
|
27880
27910
|
"use strict";
|
@@ -27882,7 +27912,7 @@ var init_update2 = __esm({
|
|
27882
27912
|
init_query_promise();
|
27883
27913
|
init_table3();
|
27884
27914
|
init_utils2();
|
27885
|
-
|
27915
|
+
_a204 = entityKind;
|
27886
27916
|
SQLiteUpdateBuilder = class {
|
27887
27917
|
constructor(table4, session, dialect7, withList) {
|
27888
27918
|
this.table = table4;
|
@@ -27900,8 +27930,8 @@ var init_update2 = __esm({
|
|
27900
27930
|
);
|
27901
27931
|
}
|
27902
27932
|
};
|
27903
|
-
__publicField(SQLiteUpdateBuilder,
|
27904
|
-
SQLiteUpdateBase = class extends (_b147 = QueryPromise,
|
27933
|
+
__publicField(SQLiteUpdateBuilder, _a204, "SQLiteUpdateBuilder");
|
27934
|
+
SQLiteUpdateBase = class extends (_b147 = QueryPromise, _a205 = entityKind, _b147) {
|
27905
27935
|
constructor(table4, set, session, dialect7, withList) {
|
27906
27936
|
super();
|
27907
27937
|
/** @internal */
|
@@ -27990,7 +28020,7 @@ var init_update2 = __esm({
|
|
27990
28020
|
return this;
|
27991
28021
|
}
|
27992
28022
|
};
|
27993
|
-
__publicField(SQLiteUpdateBase,
|
28023
|
+
__publicField(SQLiteUpdateBase, _a205, "SQLiteUpdate");
|
27994
28024
|
}
|
27995
28025
|
});
|
27996
28026
|
|
@@ -28008,14 +28038,14 @@ var init_query_builders2 = __esm({
|
|
28008
28038
|
});
|
28009
28039
|
|
28010
28040
|
// ../drizzle-orm/dist/sqlite-core/query-builders/query.js
|
28011
|
-
var
|
28041
|
+
var _a206, RelationalQueryBuilder2, _a207, _b148, SQLiteRelationalQuery, _a208, _b149, SQLiteSyncRelationalQuery;
|
28012
28042
|
var init_query2 = __esm({
|
28013
28043
|
"../drizzle-orm/dist/sqlite-core/query-builders/query.js"() {
|
28014
28044
|
"use strict";
|
28015
28045
|
init_entity();
|
28016
28046
|
init_query_promise();
|
28017
28047
|
init_relations();
|
28018
|
-
|
28048
|
+
_a206 = entityKind;
|
28019
28049
|
RelationalQueryBuilder2 = class {
|
28020
28050
|
constructor(mode, fullSchema, schema4, tableNamesMap, table4, tableConfig, dialect7, session) {
|
28021
28051
|
this.mode = mode;
|
@@ -28074,8 +28104,8 @@ var init_query2 = __esm({
|
|
28074
28104
|
);
|
28075
28105
|
}
|
28076
28106
|
};
|
28077
|
-
__publicField(RelationalQueryBuilder2,
|
28078
|
-
SQLiteRelationalQuery = class extends (_b148 = QueryPromise,
|
28107
|
+
__publicField(RelationalQueryBuilder2, _a206, "SQLiteAsyncRelationalQueryBuilder");
|
28108
|
+
SQLiteRelationalQuery = class extends (_b148 = QueryPromise, _a207 = entityKind, _b148) {
|
28079
28109
|
constructor(fullSchema, schema4, tableNamesMap, table4, tableConfig, dialect7, session, config, mode) {
|
28080
28110
|
super();
|
28081
28111
|
/** @internal */
|
@@ -28151,24 +28181,24 @@ var init_query2 = __esm({
|
|
28151
28181
|
return this.executeRaw();
|
28152
28182
|
}
|
28153
28183
|
};
|
28154
|
-
__publicField(SQLiteRelationalQuery,
|
28155
|
-
SQLiteSyncRelationalQuery = class extends (_b149 = SQLiteRelationalQuery,
|
28184
|
+
__publicField(SQLiteRelationalQuery, _a207, "SQLiteAsyncRelationalQuery");
|
28185
|
+
SQLiteSyncRelationalQuery = class extends (_b149 = SQLiteRelationalQuery, _a208 = entityKind, _b149) {
|
28156
28186
|
sync() {
|
28157
28187
|
return this.executeRaw();
|
28158
28188
|
}
|
28159
28189
|
};
|
28160
|
-
__publicField(SQLiteSyncRelationalQuery,
|
28190
|
+
__publicField(SQLiteSyncRelationalQuery, _a208, "SQLiteSyncRelationalQuery");
|
28161
28191
|
}
|
28162
28192
|
});
|
28163
28193
|
|
28164
28194
|
// ../drizzle-orm/dist/sqlite-core/query-builders/raw.js
|
28165
|
-
var
|
28195
|
+
var _a209, _b150, SQLiteRaw;
|
28166
28196
|
var init_raw2 = __esm({
|
28167
28197
|
"../drizzle-orm/dist/sqlite-core/query-builders/raw.js"() {
|
28168
28198
|
"use strict";
|
28169
28199
|
init_entity();
|
28170
28200
|
init_query_promise();
|
28171
|
-
SQLiteRaw = class extends (_b150 = QueryPromise,
|
28201
|
+
SQLiteRaw = class extends (_b150 = QueryPromise, _a209 = entityKind, _b150) {
|
28172
28202
|
constructor(execute, getSQL, action, dialect7, mapBatchResult) {
|
28173
28203
|
super();
|
28174
28204
|
/** @internal */
|
@@ -28193,12 +28223,12 @@ var init_raw2 = __esm({
|
|
28193
28223
|
return false;
|
28194
28224
|
}
|
28195
28225
|
};
|
28196
|
-
__publicField(SQLiteRaw,
|
28226
|
+
__publicField(SQLiteRaw, _a209, "SQLiteRaw");
|
28197
28227
|
}
|
28198
28228
|
});
|
28199
28229
|
|
28200
28230
|
// ../drizzle-orm/dist/sqlite-core/db.js
|
28201
|
-
var
|
28231
|
+
var _a210, BaseSQLiteDatabase;
|
28202
28232
|
var init_db2 = __esm({
|
28203
28233
|
"../drizzle-orm/dist/sqlite-core/db.js"() {
|
28204
28234
|
"use strict";
|
@@ -28208,7 +28238,7 @@ var init_db2 = __esm({
|
|
28208
28238
|
init_subquery();
|
28209
28239
|
init_query2();
|
28210
28240
|
init_raw2();
|
28211
|
-
|
28241
|
+
_a210 = entityKind;
|
28212
28242
|
BaseSQLiteDatabase = class {
|
28213
28243
|
constructor(resultKind, dialect7, session, schema4) {
|
28214
28244
|
__publicField(this, "query");
|
@@ -28486,17 +28516,17 @@ var init_db2 = __esm({
|
|
28486
28516
|
return this.session.transaction(transaction, config);
|
28487
28517
|
}
|
28488
28518
|
};
|
28489
|
-
__publicField(BaseSQLiteDatabase,
|
28519
|
+
__publicField(BaseSQLiteDatabase, _a210, "BaseSQLiteDatabase");
|
28490
28520
|
}
|
28491
28521
|
});
|
28492
28522
|
|
28493
28523
|
// ../drizzle-orm/dist/sqlite-core/indexes.js
|
28494
|
-
var
|
28524
|
+
var _a211, IndexBuilderOn2, _a212, IndexBuilder2, _a213, Index4;
|
28495
28525
|
var init_indexes2 = __esm({
|
28496
28526
|
"../drizzle-orm/dist/sqlite-core/indexes.js"() {
|
28497
28527
|
"use strict";
|
28498
28528
|
init_entity();
|
28499
|
-
|
28529
|
+
_a211 = entityKind;
|
28500
28530
|
IndexBuilderOn2 = class {
|
28501
28531
|
constructor(name2, unique) {
|
28502
28532
|
this.name = name2;
|
@@ -28506,8 +28536,8 @@ var init_indexes2 = __esm({
|
|
28506
28536
|
return new IndexBuilder2(this.name, columns, this.unique);
|
28507
28537
|
}
|
28508
28538
|
};
|
28509
|
-
__publicField(IndexBuilderOn2,
|
28510
|
-
|
28539
|
+
__publicField(IndexBuilderOn2, _a211, "SQLiteIndexBuilderOn");
|
28540
|
+
_a212 = entityKind;
|
28511
28541
|
IndexBuilder2 = class {
|
28512
28542
|
constructor(name2, columns, unique) {
|
28513
28543
|
/** @internal */
|
@@ -28531,26 +28561,26 @@ var init_indexes2 = __esm({
|
|
28531
28561
|
return new Index4(this.config, table4);
|
28532
28562
|
}
|
28533
28563
|
};
|
28534
|
-
__publicField(IndexBuilder2,
|
28535
|
-
|
28564
|
+
__publicField(IndexBuilder2, _a212, "SQLiteIndexBuilder");
|
28565
|
+
_a213 = entityKind;
|
28536
28566
|
Index4 = class {
|
28537
28567
|
constructor(config, table4) {
|
28538
28568
|
__publicField(this, "config");
|
28539
28569
|
this.config = { ...config, table: table4 };
|
28540
28570
|
}
|
28541
28571
|
};
|
28542
|
-
__publicField(Index4,
|
28572
|
+
__publicField(Index4, _a213, "SQLiteIndex");
|
28543
28573
|
}
|
28544
28574
|
});
|
28545
28575
|
|
28546
28576
|
// ../drizzle-orm/dist/sqlite-core/primary-keys.js
|
28547
|
-
var
|
28577
|
+
var _a214, PrimaryKeyBuilder2, _a215, PrimaryKey2;
|
28548
28578
|
var init_primary_keys2 = __esm({
|
28549
28579
|
"../drizzle-orm/dist/sqlite-core/primary-keys.js"() {
|
28550
28580
|
"use strict";
|
28551
28581
|
init_entity();
|
28552
28582
|
init_table3();
|
28553
|
-
|
28583
|
+
_a214 = entityKind;
|
28554
28584
|
PrimaryKeyBuilder2 = class {
|
28555
28585
|
constructor(columns, name2) {
|
28556
28586
|
/** @internal */
|
@@ -28565,8 +28595,8 @@ var init_primary_keys2 = __esm({
|
|
28565
28595
|
return new PrimaryKey2(table4, this.columns, this.name);
|
28566
28596
|
}
|
28567
28597
|
};
|
28568
|
-
__publicField(PrimaryKeyBuilder2,
|
28569
|
-
|
28598
|
+
__publicField(PrimaryKeyBuilder2, _a214, "SQLitePrimaryKeyBuilder");
|
28599
|
+
_a215 = entityKind;
|
28570
28600
|
PrimaryKey2 = class {
|
28571
28601
|
constructor(table4, columns, name2) {
|
28572
28602
|
__publicField(this, "columns");
|
@@ -28579,12 +28609,12 @@ var init_primary_keys2 = __esm({
|
|
28579
28609
|
return this.name ?? `${this.table[SQLiteTable.Symbol.Name]}_${this.columns.map((column4) => column4.name).join("_")}_pk`;
|
28580
28610
|
}
|
28581
28611
|
};
|
28582
|
-
__publicField(PrimaryKey2,
|
28612
|
+
__publicField(PrimaryKey2, _a215, "SQLitePrimaryKey");
|
28583
28613
|
}
|
28584
28614
|
});
|
28585
28615
|
|
28586
28616
|
// ../drizzle-orm/dist/sqlite-core/session.js
|
28587
|
-
var
|
28617
|
+
var _a216, _b151, ExecuteResultSync, _a217, SQLitePreparedQuery, _a218, SQLiteSession, _a219, _b152, SQLiteTransaction;
|
28588
28618
|
var init_session2 = __esm({
|
28589
28619
|
"../drizzle-orm/dist/sqlite-core/session.js"() {
|
28590
28620
|
"use strict";
|
@@ -28592,7 +28622,7 @@ var init_session2 = __esm({
|
|
28592
28622
|
init_errors();
|
28593
28623
|
init_query_promise();
|
28594
28624
|
init_db2();
|
28595
|
-
ExecuteResultSync = class extends (_b151 = QueryPromise,
|
28625
|
+
ExecuteResultSync = class extends (_b151 = QueryPromise, _a216 = entityKind, _b151) {
|
28596
28626
|
constructor(resultCb) {
|
28597
28627
|
super();
|
28598
28628
|
this.resultCb = resultCb;
|
@@ -28604,8 +28634,8 @@ var init_session2 = __esm({
|
|
28604
28634
|
return this.resultCb();
|
28605
28635
|
}
|
28606
28636
|
};
|
28607
|
-
__publicField(ExecuteResultSync,
|
28608
|
-
|
28637
|
+
__publicField(ExecuteResultSync, _a216, "ExecuteResultSync");
|
28638
|
+
_a217 = entityKind;
|
28609
28639
|
SQLitePreparedQuery = class {
|
28610
28640
|
constructor(mode, executeMethod, query) {
|
28611
28641
|
/** @internal */
|
@@ -28646,8 +28676,8 @@ var init_session2 = __esm({
|
|
28646
28676
|
}
|
28647
28677
|
}
|
28648
28678
|
};
|
28649
|
-
__publicField(SQLitePreparedQuery,
|
28650
|
-
|
28679
|
+
__publicField(SQLitePreparedQuery, _a217, "PreparedQuery");
|
28680
|
+
_a218 = entityKind;
|
28651
28681
|
SQLiteSession = class {
|
28652
28682
|
constructor(dialect7) {
|
28653
28683
|
this.dialect = dialect7;
|
@@ -28689,8 +28719,8 @@ var init_session2 = __esm({
|
|
28689
28719
|
throw new Error("Not implemented");
|
28690
28720
|
}
|
28691
28721
|
};
|
28692
|
-
__publicField(SQLiteSession,
|
28693
|
-
SQLiteTransaction = class extends (_b152 = BaseSQLiteDatabase,
|
28722
|
+
__publicField(SQLiteSession, _a218, "SQLiteSession");
|
28723
|
+
SQLiteTransaction = class extends (_b152 = BaseSQLiteDatabase, _a219 = entityKind, _b152) {
|
28694
28724
|
constructor(resultType, dialect7, session, schema4, nestedIndex = 0) {
|
28695
28725
|
super(resultType, dialect7, session, schema4);
|
28696
28726
|
this.schema = schema4;
|
@@ -28700,7 +28730,7 @@ var init_session2 = __esm({
|
|
28700
28730
|
throw new TransactionRollbackError();
|
28701
28731
|
}
|
28702
28732
|
};
|
28703
|
-
__publicField(SQLiteTransaction,
|
28733
|
+
__publicField(SQLiteTransaction, _a219, "SQLiteTransaction");
|
28704
28734
|
}
|
28705
28735
|
});
|
28706
28736
|
|
@@ -28771,7 +28801,7 @@ var init_utils6 = __esm({
|
|
28771
28801
|
});
|
28772
28802
|
|
28773
28803
|
// ../drizzle-orm/dist/sqlite-core/view.js
|
28774
|
-
var
|
28804
|
+
var _a220, ViewBuilderCore, _a221, _b153, ViewBuilder2, _a222, _b154, ManualViewBuilder2, _a223, _b155, _c6, SQLiteView;
|
28775
28805
|
var init_view2 = __esm({
|
28776
28806
|
"../drizzle-orm/dist/sqlite-core/view.js"() {
|
28777
28807
|
"use strict";
|
@@ -28782,15 +28812,15 @@ var init_view2 = __esm({
|
|
28782
28812
|
init_table3();
|
28783
28813
|
init_view_base2();
|
28784
28814
|
init_view_common3();
|
28785
|
-
|
28815
|
+
_a220 = entityKind;
|
28786
28816
|
ViewBuilderCore = class {
|
28787
28817
|
constructor(name2) {
|
28788
28818
|
__publicField(this, "config", {});
|
28789
28819
|
this.name = name2;
|
28790
28820
|
}
|
28791
28821
|
};
|
28792
|
-
__publicField(ViewBuilderCore,
|
28793
|
-
ViewBuilder2 = class extends (_b153 = ViewBuilderCore,
|
28822
|
+
__publicField(ViewBuilderCore, _a220, "SQLiteViewBuilderCore");
|
28823
|
+
ViewBuilder2 = class extends (_b153 = ViewBuilderCore, _a221 = entityKind, _b153) {
|
28794
28824
|
as(qb) {
|
28795
28825
|
if (typeof qb === "function") {
|
28796
28826
|
qb = qb(new QueryBuilder2());
|
@@ -28816,8 +28846,8 @@ var init_view2 = __esm({
|
|
28816
28846
|
);
|
28817
28847
|
}
|
28818
28848
|
};
|
28819
|
-
__publicField(ViewBuilder2,
|
28820
|
-
ManualViewBuilder2 = class extends (_b154 = ViewBuilderCore,
|
28849
|
+
__publicField(ViewBuilder2, _a221, "SQLiteViewBuilder");
|
28850
|
+
ManualViewBuilder2 = class extends (_b154 = ViewBuilderCore, _a222 = entityKind, _b154) {
|
28821
28851
|
constructor(name2, columns) {
|
28822
28852
|
super(name2);
|
28823
28853
|
__publicField(this, "columns");
|
@@ -28862,12 +28892,12 @@ var init_view2 = __esm({
|
|
28862
28892
|
);
|
28863
28893
|
}
|
28864
28894
|
};
|
28865
|
-
__publicField(ManualViewBuilder2,
|
28866
|
-
SQLiteView = class extends (_c6 = SQLiteViewBase, _b155 = entityKind,
|
28895
|
+
__publicField(ManualViewBuilder2, _a222, "SQLiteManualViewBuilder");
|
28896
|
+
SQLiteView = class extends (_c6 = SQLiteViewBase, _b155 = entityKind, _a223 = SQLiteViewConfig, _c6) {
|
28867
28897
|
constructor({ sqliteConfig, config }) {
|
28868
28898
|
super(config);
|
28869
28899
|
/** @internal */
|
28870
|
-
__publicField(this,
|
28900
|
+
__publicField(this, _a223);
|
28871
28901
|
this[SQLiteViewConfig] = sqliteConfig;
|
28872
28902
|
}
|
28873
28903
|
};
|
@@ -29384,12 +29414,12 @@ var init_alias4 = __esm({
|
|
29384
29414
|
});
|
29385
29415
|
|
29386
29416
|
// ../drizzle-orm/dist/mysql-core/checks.js
|
29387
|
-
var
|
29417
|
+
var _a224, CheckBuilder3, _a225, Check3;
|
29388
29418
|
var init_checks3 = __esm({
|
29389
29419
|
"../drizzle-orm/dist/mysql-core/checks.js"() {
|
29390
29420
|
"use strict";
|
29391
29421
|
init_entity();
|
29392
|
-
|
29422
|
+
_a224 = entityKind;
|
29393
29423
|
CheckBuilder3 = class {
|
29394
29424
|
constructor(name2, value) {
|
29395
29425
|
__publicField(this, "brand");
|
@@ -29401,8 +29431,8 @@ var init_checks3 = __esm({
|
|
29401
29431
|
return new Check3(table4, this);
|
29402
29432
|
}
|
29403
29433
|
};
|
29404
|
-
__publicField(CheckBuilder3,
|
29405
|
-
|
29434
|
+
__publicField(CheckBuilder3, _a224, "MySqlCheckBuilder");
|
29435
|
+
_a225 = entityKind;
|
29406
29436
|
Check3 = class {
|
29407
29437
|
constructor(table4, builder) {
|
29408
29438
|
__publicField(this, "name");
|
@@ -29412,7 +29442,7 @@ var init_checks3 = __esm({
|
|
29412
29442
|
this.value = builder.value;
|
29413
29443
|
}
|
29414
29444
|
};
|
29415
|
-
__publicField(Check3,
|
29445
|
+
__publicField(Check3, _a225, "MySqlCheck");
|
29416
29446
|
}
|
29417
29447
|
});
|
29418
29448
|
|
@@ -29435,14 +29465,14 @@ function mysqlTableWithSchema(name2, columns, extraConfig, schema4, baseName = n
|
|
29435
29465
|
}
|
29436
29466
|
return table4;
|
29437
29467
|
}
|
29438
|
-
var InlineForeignKeys3,
|
29468
|
+
var InlineForeignKeys3, _a226, _b156, _c7, _d4, _e3, MySqlTable, mysqlTable;
|
29439
29469
|
var init_table4 = __esm({
|
29440
29470
|
"../drizzle-orm/dist/mysql-core/table.js"() {
|
29441
29471
|
"use strict";
|
29442
29472
|
init_entity();
|
29443
29473
|
init_table();
|
29444
29474
|
InlineForeignKeys3 = Symbol.for("drizzle:MySqlInlineForeignKeys");
|
29445
|
-
MySqlTable = class extends (_e3 = Table2, _d4 = entityKind, _c7 = Table2.Symbol.Columns, _b156 = InlineForeignKeys3,
|
29475
|
+
MySqlTable = class extends (_e3 = Table2, _d4 = entityKind, _c7 = Table2.Symbol.Columns, _b156 = InlineForeignKeys3, _a226 = Table2.Symbol.ExtraConfigBuilder, _e3) {
|
29446
29476
|
constructor() {
|
29447
29477
|
super(...arguments);
|
29448
29478
|
/** @internal */
|
@@ -29450,7 +29480,7 @@ var init_table4 = __esm({
|
|
29450
29480
|
/** @internal */
|
29451
29481
|
__publicField(this, _b156, []);
|
29452
29482
|
/** @internal */
|
29453
|
-
__publicField(this,
|
29483
|
+
__publicField(this, _a226);
|
29454
29484
|
}
|
29455
29485
|
};
|
29456
29486
|
__publicField(MySqlTable, _d4, "MySqlTable");
|
@@ -29465,13 +29495,13 @@ var init_table4 = __esm({
|
|
29465
29495
|
});
|
29466
29496
|
|
29467
29497
|
// ../drizzle-orm/dist/mysql-core/foreign-keys.js
|
29468
|
-
var
|
29498
|
+
var _a227, ForeignKeyBuilder3, _a228, ForeignKey3;
|
29469
29499
|
var init_foreign_keys3 = __esm({
|
29470
29500
|
"../drizzle-orm/dist/mysql-core/foreign-keys.js"() {
|
29471
29501
|
"use strict";
|
29472
29502
|
init_entity();
|
29473
29503
|
init_table4();
|
29474
|
-
|
29504
|
+
_a227 = entityKind;
|
29475
29505
|
ForeignKeyBuilder3 = class {
|
29476
29506
|
constructor(config, actions) {
|
29477
29507
|
/** @internal */
|
@@ -29502,8 +29532,8 @@ var init_foreign_keys3 = __esm({
|
|
29502
29532
|
return new ForeignKey3(table4, this);
|
29503
29533
|
}
|
29504
29534
|
};
|
29505
|
-
__publicField(ForeignKeyBuilder3,
|
29506
|
-
|
29535
|
+
__publicField(ForeignKeyBuilder3, _a227, "MySqlForeignKeyBuilder");
|
29536
|
+
_a228 = entityKind;
|
29507
29537
|
ForeignKey3 = class {
|
29508
29538
|
constructor(table4, builder) {
|
29509
29539
|
__publicField(this, "reference");
|
@@ -29527,7 +29557,7 @@ var init_foreign_keys3 = __esm({
|
|
29527
29557
|
return name2 ?? `${chunks.join("_")}_fk`;
|
29528
29558
|
}
|
29529
29559
|
};
|
29530
|
-
__publicField(ForeignKey3,
|
29560
|
+
__publicField(ForeignKey3, _a228, "MySqlForeignKey");
|
29531
29561
|
}
|
29532
29562
|
});
|
29533
29563
|
|
@@ -29535,13 +29565,13 @@ var init_foreign_keys3 = __esm({
|
|
29535
29565
|
function uniqueKeyName3(table4, columns) {
|
29536
29566
|
return `${table4[MySqlTable.Symbol.Name]}_${columns.join("_")}_unique`;
|
29537
29567
|
}
|
29538
|
-
var
|
29568
|
+
var _a229, UniqueConstraintBuilder3, _a230, UniqueOnConstraintBuilder3, _a231, UniqueConstraint3;
|
29539
29569
|
var init_unique_constraint3 = __esm({
|
29540
29570
|
"../drizzle-orm/dist/mysql-core/unique-constraint.js"() {
|
29541
29571
|
"use strict";
|
29542
29572
|
init_entity();
|
29543
29573
|
init_table4();
|
29544
|
-
|
29574
|
+
_a229 = entityKind;
|
29545
29575
|
UniqueConstraintBuilder3 = class {
|
29546
29576
|
constructor(columns, name2) {
|
29547
29577
|
/** @internal */
|
@@ -29554,8 +29584,8 @@ var init_unique_constraint3 = __esm({
|
|
29554
29584
|
return new UniqueConstraint3(table4, this.columns, this.name);
|
29555
29585
|
}
|
29556
29586
|
};
|
29557
|
-
__publicField(UniqueConstraintBuilder3,
|
29558
|
-
|
29587
|
+
__publicField(UniqueConstraintBuilder3, _a229, "MySqlUniqueConstraintBuilder");
|
29588
|
+
_a230 = entityKind;
|
29559
29589
|
UniqueOnConstraintBuilder3 = class {
|
29560
29590
|
constructor(name2) {
|
29561
29591
|
/** @internal */
|
@@ -29566,8 +29596,8 @@ var init_unique_constraint3 = __esm({
|
|
29566
29596
|
return new UniqueConstraintBuilder3(columns, this.name);
|
29567
29597
|
}
|
29568
29598
|
};
|
29569
|
-
__publicField(UniqueOnConstraintBuilder3,
|
29570
|
-
|
29599
|
+
__publicField(UniqueOnConstraintBuilder3, _a230, "MySqlUniqueOnConstraintBuilder");
|
29600
|
+
_a231 = entityKind;
|
29571
29601
|
UniqueConstraint3 = class {
|
29572
29602
|
constructor(table4, columns, name2) {
|
29573
29603
|
__publicField(this, "columns");
|
@@ -29581,12 +29611,12 @@ var init_unique_constraint3 = __esm({
|
|
29581
29611
|
return this.name;
|
29582
29612
|
}
|
29583
29613
|
};
|
29584
|
-
__publicField(UniqueConstraint3,
|
29614
|
+
__publicField(UniqueConstraint3, _a231, "MySqlUniqueConstraint");
|
29585
29615
|
}
|
29586
29616
|
});
|
29587
29617
|
|
29588
29618
|
// ../drizzle-orm/dist/mysql-core/columns/common.js
|
29589
|
-
var
|
29619
|
+
var _a232, _b157, MySqlColumnBuilder, _a233, _b158, MySqlColumn, _a234, _b159, MySqlColumnBuilderWithAutoIncrement, _a235, _b160, MySqlColumnWithAutoIncrement;
|
29590
29620
|
var init_common4 = __esm({
|
29591
29621
|
"../drizzle-orm/dist/mysql-core/columns/common.js"() {
|
29592
29622
|
"use strict";
|
@@ -29595,7 +29625,7 @@ var init_common4 = __esm({
|
|
29595
29625
|
init_entity();
|
29596
29626
|
init_foreign_keys3();
|
29597
29627
|
init_unique_constraint3();
|
29598
|
-
MySqlColumnBuilder = class extends (_b157 = ColumnBuilder,
|
29628
|
+
MySqlColumnBuilder = class extends (_b157 = ColumnBuilder, _a232 = entityKind, _b157) {
|
29599
29629
|
constructor() {
|
29600
29630
|
super(...arguments);
|
29601
29631
|
__publicField(this, "foreignKeyConfigs", []);
|
@@ -29636,8 +29666,8 @@ var init_common4 = __esm({
|
|
29636
29666
|
});
|
29637
29667
|
}
|
29638
29668
|
};
|
29639
|
-
__publicField(MySqlColumnBuilder,
|
29640
|
-
MySqlColumn = class extends (_b158 = Column2,
|
29669
|
+
__publicField(MySqlColumnBuilder, _a232, "MySqlColumnBuilder");
|
29670
|
+
MySqlColumn = class extends (_b158 = Column2, _a233 = entityKind, _b158) {
|
29641
29671
|
constructor(table4, config) {
|
29642
29672
|
if (!config.uniqueName) {
|
29643
29673
|
config.uniqueName = uniqueKeyName3(table4, [config.name]);
|
@@ -29646,8 +29676,8 @@ var init_common4 = __esm({
|
|
29646
29676
|
this.table = table4;
|
29647
29677
|
}
|
29648
29678
|
};
|
29649
|
-
__publicField(MySqlColumn,
|
29650
|
-
MySqlColumnBuilderWithAutoIncrement = class extends (_b159 = MySqlColumnBuilder,
|
29679
|
+
__publicField(MySqlColumn, _a233, "MySqlColumn");
|
29680
|
+
MySqlColumnBuilderWithAutoIncrement = class extends (_b159 = MySqlColumnBuilder, _a234 = entityKind, _b159) {
|
29651
29681
|
constructor(name2, dataType, columnType) {
|
29652
29682
|
super(name2, dataType, columnType);
|
29653
29683
|
this.config.autoIncrement = false;
|
@@ -29658,25 +29688,25 @@ var init_common4 = __esm({
|
|
29658
29688
|
return this;
|
29659
29689
|
}
|
29660
29690
|
};
|
29661
|
-
__publicField(MySqlColumnBuilderWithAutoIncrement,
|
29662
|
-
MySqlColumnWithAutoIncrement = class extends (_b160 = MySqlColumn,
|
29691
|
+
__publicField(MySqlColumnBuilderWithAutoIncrement, _a234, "MySqlColumnBuilderWithAutoIncrement");
|
29692
|
+
MySqlColumnWithAutoIncrement = class extends (_b160 = MySqlColumn, _a235 = entityKind, _b160) {
|
29663
29693
|
constructor() {
|
29664
29694
|
super(...arguments);
|
29665
29695
|
__publicField(this, "autoIncrement", this.config.autoIncrement);
|
29666
29696
|
}
|
29667
29697
|
};
|
29668
|
-
__publicField(MySqlColumnWithAutoIncrement,
|
29698
|
+
__publicField(MySqlColumnWithAutoIncrement, _a235, "MySqlColumnWithAutoIncrement");
|
29669
29699
|
}
|
29670
29700
|
});
|
29671
29701
|
|
29672
29702
|
// ../drizzle-orm/dist/mysql-core/columns/bigint.js
|
29673
|
-
var
|
29703
|
+
var _a236, _b161, MySqlBigInt53Builder, _a237, _b162, MySqlBigInt53, _a238, _b163, MySqlBigInt64Builder, _a239, _b164, MySqlBigInt64;
|
29674
29704
|
var init_bigint2 = __esm({
|
29675
29705
|
"../drizzle-orm/dist/mysql-core/columns/bigint.js"() {
|
29676
29706
|
"use strict";
|
29677
29707
|
init_entity();
|
29678
29708
|
init_common4();
|
29679
|
-
MySqlBigInt53Builder = class extends (_b161 = MySqlColumnBuilderWithAutoIncrement,
|
29709
|
+
MySqlBigInt53Builder = class extends (_b161 = MySqlColumnBuilderWithAutoIncrement, _a236 = entityKind, _b161) {
|
29680
29710
|
constructor(name2, unsigned = false) {
|
29681
29711
|
super(name2, "number", "MySqlBigInt53");
|
29682
29712
|
this.config.unsigned = unsigned;
|
@@ -29689,8 +29719,8 @@ var init_bigint2 = __esm({
|
|
29689
29719
|
);
|
29690
29720
|
}
|
29691
29721
|
};
|
29692
|
-
__publicField(MySqlBigInt53Builder,
|
29693
|
-
MySqlBigInt53 = class extends (_b162 = MySqlColumnWithAutoIncrement,
|
29722
|
+
__publicField(MySqlBigInt53Builder, _a236, "MySqlBigInt53Builder");
|
29723
|
+
MySqlBigInt53 = class extends (_b162 = MySqlColumnWithAutoIncrement, _a237 = entityKind, _b162) {
|
29694
29724
|
getSQLType() {
|
29695
29725
|
return `bigint${this.config.unsigned ? " unsigned" : ""}`;
|
29696
29726
|
}
|
@@ -29701,8 +29731,8 @@ var init_bigint2 = __esm({
|
|
29701
29731
|
return Number(value);
|
29702
29732
|
}
|
29703
29733
|
};
|
29704
|
-
__publicField(MySqlBigInt53,
|
29705
|
-
MySqlBigInt64Builder = class extends (_b163 = MySqlColumnBuilderWithAutoIncrement,
|
29734
|
+
__publicField(MySqlBigInt53, _a237, "MySqlBigInt53");
|
29735
|
+
MySqlBigInt64Builder = class extends (_b163 = MySqlColumnBuilderWithAutoIncrement, _a238 = entityKind, _b163) {
|
29706
29736
|
constructor(name2, unsigned = false) {
|
29707
29737
|
super(name2, "bigint", "MySqlBigInt64");
|
29708
29738
|
this.config.unsigned = unsigned;
|
@@ -29715,8 +29745,8 @@ var init_bigint2 = __esm({
|
|
29715
29745
|
);
|
29716
29746
|
}
|
29717
29747
|
};
|
29718
|
-
__publicField(MySqlBigInt64Builder,
|
29719
|
-
MySqlBigInt64 = class extends (_b164 = MySqlColumnWithAutoIncrement,
|
29748
|
+
__publicField(MySqlBigInt64Builder, _a238, "MySqlBigInt64Builder");
|
29749
|
+
MySqlBigInt64 = class extends (_b164 = MySqlColumnWithAutoIncrement, _a239 = entityKind, _b164) {
|
29720
29750
|
getSQLType() {
|
29721
29751
|
return `bigint${this.config.unsigned ? " unsigned" : ""}`;
|
29722
29752
|
}
|
@@ -29725,18 +29755,18 @@ var init_bigint2 = __esm({
|
|
29725
29755
|
return BigInt(value);
|
29726
29756
|
}
|
29727
29757
|
};
|
29728
|
-
__publicField(MySqlBigInt64,
|
29758
|
+
__publicField(MySqlBigInt64, _a239, "MySqlBigInt64");
|
29729
29759
|
}
|
29730
29760
|
});
|
29731
29761
|
|
29732
29762
|
// ../drizzle-orm/dist/mysql-core/columns/binary.js
|
29733
|
-
var
|
29763
|
+
var _a240, _b165, MySqlBinaryBuilder, _a241, _b166, MySqlBinary;
|
29734
29764
|
var init_binary = __esm({
|
29735
29765
|
"../drizzle-orm/dist/mysql-core/columns/binary.js"() {
|
29736
29766
|
"use strict";
|
29737
29767
|
init_entity();
|
29738
29768
|
init_common4();
|
29739
|
-
MySqlBinaryBuilder = class extends (_b165 = MySqlColumnBuilder,
|
29769
|
+
MySqlBinaryBuilder = class extends (_b165 = MySqlColumnBuilder, _a240 = entityKind, _b165) {
|
29740
29770
|
constructor(name2, length) {
|
29741
29771
|
super(name2, "string", "MySqlBinary");
|
29742
29772
|
this.config.length = length;
|
@@ -29746,8 +29776,8 @@ var init_binary = __esm({
|
|
29746
29776
|
return new MySqlBinary(table4, this.config);
|
29747
29777
|
}
|
29748
29778
|
};
|
29749
|
-
__publicField(MySqlBinaryBuilder,
|
29750
|
-
MySqlBinary = class extends (_b166 = MySqlColumn,
|
29779
|
+
__publicField(MySqlBinaryBuilder, _a240, "MySqlBinaryBuilder");
|
29780
|
+
MySqlBinary = class extends (_b166 = MySqlColumn, _a241 = entityKind, _b166) {
|
29751
29781
|
constructor() {
|
29752
29782
|
super(...arguments);
|
29753
29783
|
__publicField(this, "length", this.config.length);
|
@@ -29756,18 +29786,18 @@ var init_binary = __esm({
|
|
29756
29786
|
return this.length === void 0 ? `binary` : `binary(${this.length})`;
|
29757
29787
|
}
|
29758
29788
|
};
|
29759
|
-
__publicField(MySqlBinary,
|
29789
|
+
__publicField(MySqlBinary, _a241, "MySqlBinary");
|
29760
29790
|
}
|
29761
29791
|
});
|
29762
29792
|
|
29763
29793
|
// ../drizzle-orm/dist/mysql-core/columns/boolean.js
|
29764
|
-
var
|
29794
|
+
var _a242, _b167, MySqlBooleanBuilder, _a243, _b168, MySqlBoolean;
|
29765
29795
|
var init_boolean2 = __esm({
|
29766
29796
|
"../drizzle-orm/dist/mysql-core/columns/boolean.js"() {
|
29767
29797
|
"use strict";
|
29768
29798
|
init_entity();
|
29769
29799
|
init_common4();
|
29770
|
-
MySqlBooleanBuilder = class extends (_b167 = MySqlColumnBuilder,
|
29800
|
+
MySqlBooleanBuilder = class extends (_b167 = MySqlColumnBuilder, _a242 = entityKind, _b167) {
|
29771
29801
|
constructor(name2) {
|
29772
29802
|
super(name2, "boolean", "MySqlBoolean");
|
29773
29803
|
}
|
@@ -29779,8 +29809,8 @@ var init_boolean2 = __esm({
|
|
29779
29809
|
);
|
29780
29810
|
}
|
29781
29811
|
};
|
29782
|
-
__publicField(MySqlBooleanBuilder,
|
29783
|
-
MySqlBoolean = class extends (_b168 = MySqlColumn,
|
29812
|
+
__publicField(MySqlBooleanBuilder, _a242, "MySqlBooleanBuilder");
|
29813
|
+
MySqlBoolean = class extends (_b168 = MySqlColumn, _a243 = entityKind, _b168) {
|
29784
29814
|
getSQLType() {
|
29785
29815
|
return "boolean";
|
29786
29816
|
}
|
@@ -29791,18 +29821,18 @@ var init_boolean2 = __esm({
|
|
29791
29821
|
return value === 1;
|
29792
29822
|
}
|
29793
29823
|
};
|
29794
|
-
__publicField(MySqlBoolean,
|
29824
|
+
__publicField(MySqlBoolean, _a243, "MySqlBoolean");
|
29795
29825
|
}
|
29796
29826
|
});
|
29797
29827
|
|
29798
29828
|
// ../drizzle-orm/dist/mysql-core/columns/char.js
|
29799
|
-
var
|
29829
|
+
var _a244, _b169, MySqlCharBuilder, _a245, _b170, MySqlChar;
|
29800
29830
|
var init_char2 = __esm({
|
29801
29831
|
"../drizzle-orm/dist/mysql-core/columns/char.js"() {
|
29802
29832
|
"use strict";
|
29803
29833
|
init_entity();
|
29804
29834
|
init_common4();
|
29805
|
-
MySqlCharBuilder = class extends (_b169 = MySqlColumnBuilder,
|
29835
|
+
MySqlCharBuilder = class extends (_b169 = MySqlColumnBuilder, _a244 = entityKind, _b169) {
|
29806
29836
|
constructor(name2, config) {
|
29807
29837
|
super(name2, "string", "MySqlChar");
|
29808
29838
|
this.config.length = config.length;
|
@@ -29816,8 +29846,8 @@ var init_char2 = __esm({
|
|
29816
29846
|
);
|
29817
29847
|
}
|
29818
29848
|
};
|
29819
|
-
__publicField(MySqlCharBuilder,
|
29820
|
-
MySqlChar = class extends (_b170 = MySqlColumn,
|
29849
|
+
__publicField(MySqlCharBuilder, _a244, "MySqlCharBuilder");
|
29850
|
+
MySqlChar = class extends (_b170 = MySqlColumn, _a245 = entityKind, _b170) {
|
29821
29851
|
constructor() {
|
29822
29852
|
super(...arguments);
|
29823
29853
|
__publicField(this, "length", this.config.length);
|
@@ -29827,18 +29857,18 @@ var init_char2 = __esm({
|
|
29827
29857
|
return this.length === void 0 ? `char` : `char(${this.length})`;
|
29828
29858
|
}
|
29829
29859
|
};
|
29830
|
-
__publicField(MySqlChar,
|
29860
|
+
__publicField(MySqlChar, _a245, "MySqlChar");
|
29831
29861
|
}
|
29832
29862
|
});
|
29833
29863
|
|
29834
29864
|
// ../drizzle-orm/dist/mysql-core/columns/custom.js
|
29835
|
-
var
|
29865
|
+
var _a246, _b171, MySqlCustomColumnBuilder, _a247, _b172, MySqlCustomColumn;
|
29836
29866
|
var init_custom3 = __esm({
|
29837
29867
|
"../drizzle-orm/dist/mysql-core/columns/custom.js"() {
|
29838
29868
|
"use strict";
|
29839
29869
|
init_entity();
|
29840
29870
|
init_common4();
|
29841
|
-
MySqlCustomColumnBuilder = class extends (_b171 = MySqlColumnBuilder,
|
29871
|
+
MySqlCustomColumnBuilder = class extends (_b171 = MySqlColumnBuilder, _a246 = entityKind, _b171) {
|
29842
29872
|
constructor(name2, fieldConfig, customTypeParams) {
|
29843
29873
|
super(name2, "custom", "MySqlCustomColumn");
|
29844
29874
|
this.config.fieldConfig = fieldConfig;
|
@@ -29852,8 +29882,8 @@ var init_custom3 = __esm({
|
|
29852
29882
|
);
|
29853
29883
|
}
|
29854
29884
|
};
|
29855
|
-
__publicField(MySqlCustomColumnBuilder,
|
29856
|
-
MySqlCustomColumn = class extends (_b172 = MySqlColumn,
|
29885
|
+
__publicField(MySqlCustomColumnBuilder, _a246, "MySqlCustomColumnBuilder");
|
29886
|
+
MySqlCustomColumn = class extends (_b172 = MySqlColumn, _a247 = entityKind, _b172) {
|
29857
29887
|
constructor(table4, config) {
|
29858
29888
|
super(table4, config);
|
29859
29889
|
__publicField(this, "sqlName");
|
@@ -29873,18 +29903,18 @@ var init_custom3 = __esm({
|
|
29873
29903
|
return typeof this.mapTo === "function" ? this.mapTo(value) : value;
|
29874
29904
|
}
|
29875
29905
|
};
|
29876
|
-
__publicField(MySqlCustomColumn,
|
29906
|
+
__publicField(MySqlCustomColumn, _a247, "MySqlCustomColumn");
|
29877
29907
|
}
|
29878
29908
|
});
|
29879
29909
|
|
29880
29910
|
// ../drizzle-orm/dist/mysql-core/columns/date.js
|
29881
|
-
var
|
29911
|
+
var _a248, _b173, MySqlDateBuilder, _a249, _b174, MySqlDate, _a250, _b175, MySqlDateStringBuilder, _a251, _b176, MySqlDateString;
|
29882
29912
|
var init_date2 = __esm({
|
29883
29913
|
"../drizzle-orm/dist/mysql-core/columns/date.js"() {
|
29884
29914
|
"use strict";
|
29885
29915
|
init_entity();
|
29886
29916
|
init_common4();
|
29887
|
-
MySqlDateBuilder = class extends (_b173 = MySqlColumnBuilder,
|
29917
|
+
MySqlDateBuilder = class extends (_b173 = MySqlColumnBuilder, _a248 = entityKind, _b173) {
|
29888
29918
|
constructor(name2) {
|
29889
29919
|
super(name2, "date", "MySqlDate");
|
29890
29920
|
}
|
@@ -29893,8 +29923,8 @@ var init_date2 = __esm({
|
|
29893
29923
|
return new MySqlDate(table4, this.config);
|
29894
29924
|
}
|
29895
29925
|
};
|
29896
|
-
__publicField(MySqlDateBuilder,
|
29897
|
-
MySqlDate = class extends (_b174 = MySqlColumn,
|
29926
|
+
__publicField(MySqlDateBuilder, _a248, "MySqlDateBuilder");
|
29927
|
+
MySqlDate = class extends (_b174 = MySqlColumn, _a249 = entityKind, _b174) {
|
29898
29928
|
constructor(table4, config) {
|
29899
29929
|
super(table4, config);
|
29900
29930
|
}
|
@@ -29905,8 +29935,8 @@ var init_date2 = __esm({
|
|
29905
29935
|
return new Date(value);
|
29906
29936
|
}
|
29907
29937
|
};
|
29908
|
-
__publicField(MySqlDate,
|
29909
|
-
MySqlDateStringBuilder = class extends (_b175 = MySqlColumnBuilder,
|
29938
|
+
__publicField(MySqlDate, _a249, "MySqlDate");
|
29939
|
+
MySqlDateStringBuilder = class extends (_b175 = MySqlColumnBuilder, _a250 = entityKind, _b175) {
|
29910
29940
|
constructor(name2) {
|
29911
29941
|
super(name2, "string", "MySqlDateString");
|
29912
29942
|
}
|
@@ -29918,8 +29948,8 @@ var init_date2 = __esm({
|
|
29918
29948
|
);
|
29919
29949
|
}
|
29920
29950
|
};
|
29921
|
-
__publicField(MySqlDateStringBuilder,
|
29922
|
-
MySqlDateString = class extends (_b176 = MySqlColumn,
|
29951
|
+
__publicField(MySqlDateStringBuilder, _a250, "MySqlDateStringBuilder");
|
29952
|
+
MySqlDateString = class extends (_b176 = MySqlColumn, _a251 = entityKind, _b176) {
|
29923
29953
|
constructor(table4, config) {
|
29924
29954
|
super(table4, config);
|
29925
29955
|
}
|
@@ -29927,18 +29957,18 @@ var init_date2 = __esm({
|
|
29927
29957
|
return `date`;
|
29928
29958
|
}
|
29929
29959
|
};
|
29930
|
-
__publicField(MySqlDateString,
|
29960
|
+
__publicField(MySqlDateString, _a251, "MySqlDateString");
|
29931
29961
|
}
|
29932
29962
|
});
|
29933
29963
|
|
29934
29964
|
// ../drizzle-orm/dist/mysql-core/columns/datetime.js
|
29935
|
-
var
|
29965
|
+
var _a252, _b177, MySqlDateTimeBuilder, _a253, _b178, MySqlDateTime, _a254, _b179, MySqlDateTimeStringBuilder, _a255, _b180, MySqlDateTimeString;
|
29936
29966
|
var init_datetime = __esm({
|
29937
29967
|
"../drizzle-orm/dist/mysql-core/columns/datetime.js"() {
|
29938
29968
|
"use strict";
|
29939
29969
|
init_entity();
|
29940
29970
|
init_common4();
|
29941
|
-
MySqlDateTimeBuilder = class extends (_b177 = MySqlColumnBuilder,
|
29971
|
+
MySqlDateTimeBuilder = class extends (_b177 = MySqlColumnBuilder, _a252 = entityKind, _b177) {
|
29942
29972
|
constructor(name2, config) {
|
29943
29973
|
super(name2, "date", "MySqlDateTime");
|
29944
29974
|
this.config.fsp = config?.fsp;
|
@@ -29951,8 +29981,8 @@ var init_datetime = __esm({
|
|
29951
29981
|
);
|
29952
29982
|
}
|
29953
29983
|
};
|
29954
|
-
__publicField(MySqlDateTimeBuilder,
|
29955
|
-
MySqlDateTime = class extends (_b178 = MySqlColumn,
|
29984
|
+
__publicField(MySqlDateTimeBuilder, _a252, "MySqlDateTimeBuilder");
|
29985
|
+
MySqlDateTime = class extends (_b178 = MySqlColumn, _a253 = entityKind, _b178) {
|
29956
29986
|
constructor(table4, config) {
|
29957
29987
|
super(table4, config);
|
29958
29988
|
__publicField(this, "fsp");
|
@@ -29969,8 +29999,8 @@ var init_datetime = __esm({
|
|
29969
29999
|
return /* @__PURE__ */ new Date(value.replace(" ", "T") + "Z");
|
29970
30000
|
}
|
29971
30001
|
};
|
29972
|
-
__publicField(MySqlDateTime,
|
29973
|
-
MySqlDateTimeStringBuilder = class extends (_b179 = MySqlColumnBuilder,
|
30002
|
+
__publicField(MySqlDateTime, _a253, "MySqlDateTime");
|
30003
|
+
MySqlDateTimeStringBuilder = class extends (_b179 = MySqlColumnBuilder, _a254 = entityKind, _b179) {
|
29974
30004
|
constructor(name2, config) {
|
29975
30005
|
super(name2, "string", "MySqlDateTimeString");
|
29976
30006
|
this.config.fsp = config?.fsp;
|
@@ -29983,8 +30013,8 @@ var init_datetime = __esm({
|
|
29983
30013
|
);
|
29984
30014
|
}
|
29985
30015
|
};
|
29986
|
-
__publicField(MySqlDateTimeStringBuilder,
|
29987
|
-
MySqlDateTimeString = class extends (_b180 = MySqlColumn,
|
30016
|
+
__publicField(MySqlDateTimeStringBuilder, _a254, "MySqlDateTimeStringBuilder");
|
30017
|
+
MySqlDateTimeString = class extends (_b180 = MySqlColumn, _a255 = entityKind, _b180) {
|
29988
30018
|
constructor(table4, config) {
|
29989
30019
|
super(table4, config);
|
29990
30020
|
__publicField(this, "fsp");
|
@@ -29995,18 +30025,18 @@ var init_datetime = __esm({
|
|
29995
30025
|
return `datetime${precision}`;
|
29996
30026
|
}
|
29997
30027
|
};
|
29998
|
-
__publicField(MySqlDateTimeString,
|
30028
|
+
__publicField(MySqlDateTimeString, _a255, "MySqlDateTimeString");
|
29999
30029
|
}
|
30000
30030
|
});
|
30001
30031
|
|
30002
30032
|
// ../drizzle-orm/dist/mysql-core/columns/decimal.js
|
30003
|
-
var
|
30033
|
+
var _a256, _b181, MySqlDecimalBuilder, _a257, _b182, MySqlDecimal;
|
30004
30034
|
var init_decimal = __esm({
|
30005
30035
|
"../drizzle-orm/dist/mysql-core/columns/decimal.js"() {
|
30006
30036
|
"use strict";
|
30007
30037
|
init_entity();
|
30008
30038
|
init_common4();
|
30009
|
-
MySqlDecimalBuilder = class extends (_b181 = MySqlColumnBuilderWithAutoIncrement,
|
30039
|
+
MySqlDecimalBuilder = class extends (_b181 = MySqlColumnBuilderWithAutoIncrement, _a256 = entityKind, _b181) {
|
30010
30040
|
constructor(name2, precision, scale) {
|
30011
30041
|
super(name2, "string", "MySqlDecimal");
|
30012
30042
|
this.config.precision = precision;
|
@@ -30020,8 +30050,8 @@ var init_decimal = __esm({
|
|
30020
30050
|
);
|
30021
30051
|
}
|
30022
30052
|
};
|
30023
|
-
__publicField(MySqlDecimalBuilder,
|
30024
|
-
MySqlDecimal = class extends (_b182 = MySqlColumnWithAutoIncrement,
|
30053
|
+
__publicField(MySqlDecimalBuilder, _a256, "MySqlDecimalBuilder");
|
30054
|
+
MySqlDecimal = class extends (_b182 = MySqlColumnWithAutoIncrement, _a257 = entityKind, _b182) {
|
30025
30055
|
constructor() {
|
30026
30056
|
super(...arguments);
|
30027
30057
|
__publicField(this, "precision", this.config.precision);
|
@@ -30037,18 +30067,18 @@ var init_decimal = __esm({
|
|
30037
30067
|
}
|
30038
30068
|
}
|
30039
30069
|
};
|
30040
|
-
__publicField(MySqlDecimal,
|
30070
|
+
__publicField(MySqlDecimal, _a257, "MySqlDecimal");
|
30041
30071
|
}
|
30042
30072
|
});
|
30043
30073
|
|
30044
30074
|
// ../drizzle-orm/dist/mysql-core/columns/double.js
|
30045
|
-
var
|
30075
|
+
var _a258, _b183, MySqlDoubleBuilder, _a259, _b184, MySqlDouble;
|
30046
30076
|
var init_double = __esm({
|
30047
30077
|
"../drizzle-orm/dist/mysql-core/columns/double.js"() {
|
30048
30078
|
"use strict";
|
30049
30079
|
init_entity();
|
30050
30080
|
init_common4();
|
30051
|
-
MySqlDoubleBuilder = class extends (_b183 = MySqlColumnBuilderWithAutoIncrement,
|
30081
|
+
MySqlDoubleBuilder = class extends (_b183 = MySqlColumnBuilderWithAutoIncrement, _a258 = entityKind, _b183) {
|
30052
30082
|
constructor(name2, config) {
|
30053
30083
|
super(name2, "number", "MySqlDouble");
|
30054
30084
|
this.config.precision = config?.precision;
|
@@ -30059,8 +30089,8 @@ var init_double = __esm({
|
|
30059
30089
|
return new MySqlDouble(table4, this.config);
|
30060
30090
|
}
|
30061
30091
|
};
|
30062
|
-
__publicField(MySqlDoubleBuilder,
|
30063
|
-
MySqlDouble = class extends (_b184 = MySqlColumnWithAutoIncrement,
|
30092
|
+
__publicField(MySqlDoubleBuilder, _a258, "MySqlDoubleBuilder");
|
30093
|
+
MySqlDouble = class extends (_b184 = MySqlColumnWithAutoIncrement, _a259 = entityKind, _b184) {
|
30064
30094
|
constructor() {
|
30065
30095
|
super(...arguments);
|
30066
30096
|
__publicField(this, "precision", this.config.precision);
|
@@ -30076,18 +30106,18 @@ var init_double = __esm({
|
|
30076
30106
|
}
|
30077
30107
|
}
|
30078
30108
|
};
|
30079
|
-
__publicField(MySqlDouble,
|
30109
|
+
__publicField(MySqlDouble, _a259, "MySqlDouble");
|
30080
30110
|
}
|
30081
30111
|
});
|
30082
30112
|
|
30083
30113
|
// ../drizzle-orm/dist/mysql-core/columns/enum.js
|
30084
|
-
var
|
30114
|
+
var _a260, _b185, MySqlEnumColumnBuilder, _a261, _b186, MySqlEnumColumn;
|
30085
30115
|
var init_enum2 = __esm({
|
30086
30116
|
"../drizzle-orm/dist/mysql-core/columns/enum.js"() {
|
30087
30117
|
"use strict";
|
30088
30118
|
init_entity();
|
30089
30119
|
init_common4();
|
30090
|
-
MySqlEnumColumnBuilder = class extends (_b185 = MySqlColumnBuilder,
|
30120
|
+
MySqlEnumColumnBuilder = class extends (_b185 = MySqlColumnBuilder, _a260 = entityKind, _b185) {
|
30091
30121
|
constructor(name2, values) {
|
30092
30122
|
super(name2, "string", "MySqlEnumColumn");
|
30093
30123
|
this.config.enumValues = values;
|
@@ -30100,8 +30130,8 @@ var init_enum2 = __esm({
|
|
30100
30130
|
);
|
30101
30131
|
}
|
30102
30132
|
};
|
30103
|
-
__publicField(MySqlEnumColumnBuilder,
|
30104
|
-
MySqlEnumColumn = class extends (_b186 = MySqlColumn,
|
30133
|
+
__publicField(MySqlEnumColumnBuilder, _a260, "MySqlEnumColumnBuilder");
|
30134
|
+
MySqlEnumColumn = class extends (_b186 = MySqlColumn, _a261 = entityKind, _b186) {
|
30105
30135
|
constructor() {
|
30106
30136
|
super(...arguments);
|
30107
30137
|
__publicField(this, "enumValues", this.config.enumValues);
|
@@ -30110,18 +30140,18 @@ var init_enum2 = __esm({
|
|
30110
30140
|
return `enum(${this.enumValues.map((value) => `'${value}'`).join(",")})`;
|
30111
30141
|
}
|
30112
30142
|
};
|
30113
|
-
__publicField(MySqlEnumColumn,
|
30143
|
+
__publicField(MySqlEnumColumn, _a261, "MySqlEnumColumn");
|
30114
30144
|
}
|
30115
30145
|
});
|
30116
30146
|
|
30117
30147
|
// ../drizzle-orm/dist/mysql-core/columns/float.js
|
30118
|
-
var
|
30148
|
+
var _a262, _b187, MySqlFloatBuilder, _a263, _b188, MySqlFloat;
|
30119
30149
|
var init_float = __esm({
|
30120
30150
|
"../drizzle-orm/dist/mysql-core/columns/float.js"() {
|
30121
30151
|
"use strict";
|
30122
30152
|
init_entity();
|
30123
30153
|
init_common4();
|
30124
|
-
MySqlFloatBuilder = class extends (_b187 = MySqlColumnBuilderWithAutoIncrement,
|
30154
|
+
MySqlFloatBuilder = class extends (_b187 = MySqlColumnBuilderWithAutoIncrement, _a262 = entityKind, _b187) {
|
30125
30155
|
constructor(name2) {
|
30126
30156
|
super(name2, "number", "MySqlFloat");
|
30127
30157
|
}
|
@@ -30130,24 +30160,24 @@ var init_float = __esm({
|
|
30130
30160
|
return new MySqlFloat(table4, this.config);
|
30131
30161
|
}
|
30132
30162
|
};
|
30133
|
-
__publicField(MySqlFloatBuilder,
|
30134
|
-
MySqlFloat = class extends (_b188 = MySqlColumnWithAutoIncrement,
|
30163
|
+
__publicField(MySqlFloatBuilder, _a262, "MySqlFloatBuilder");
|
30164
|
+
MySqlFloat = class extends (_b188 = MySqlColumnWithAutoIncrement, _a263 = entityKind, _b188) {
|
30135
30165
|
getSQLType() {
|
30136
30166
|
return "float";
|
30137
30167
|
}
|
30138
30168
|
};
|
30139
|
-
__publicField(MySqlFloat,
|
30169
|
+
__publicField(MySqlFloat, _a263, "MySqlFloat");
|
30140
30170
|
}
|
30141
30171
|
});
|
30142
30172
|
|
30143
30173
|
// ../drizzle-orm/dist/mysql-core/columns/int.js
|
30144
|
-
var
|
30174
|
+
var _a264, _b189, MySqlIntBuilder, _a265, _b190, MySqlInt;
|
30145
30175
|
var init_int = __esm({
|
30146
30176
|
"../drizzle-orm/dist/mysql-core/columns/int.js"() {
|
30147
30177
|
"use strict";
|
30148
30178
|
init_entity();
|
30149
30179
|
init_common4();
|
30150
|
-
MySqlIntBuilder = class extends (_b189 = MySqlColumnBuilderWithAutoIncrement,
|
30180
|
+
MySqlIntBuilder = class extends (_b189 = MySqlColumnBuilderWithAutoIncrement, _a264 = entityKind, _b189) {
|
30151
30181
|
constructor(name2, config) {
|
30152
30182
|
super(name2, "number", "MySqlInt");
|
30153
30183
|
this.config.unsigned = config ? config.unsigned : false;
|
@@ -30157,8 +30187,8 @@ var init_int = __esm({
|
|
30157
30187
|
return new MySqlInt(table4, this.config);
|
30158
30188
|
}
|
30159
30189
|
};
|
30160
|
-
__publicField(MySqlIntBuilder,
|
30161
|
-
MySqlInt = class extends (_b190 = MySqlColumnWithAutoIncrement,
|
30190
|
+
__publicField(MySqlIntBuilder, _a264, "MySqlIntBuilder");
|
30191
|
+
MySqlInt = class extends (_b190 = MySqlColumnWithAutoIncrement, _a265 = entityKind, _b190) {
|
30162
30192
|
getSQLType() {
|
30163
30193
|
return `int${this.config.unsigned ? " unsigned" : ""}`;
|
30164
30194
|
}
|
@@ -30169,18 +30199,18 @@ var init_int = __esm({
|
|
30169
30199
|
return value;
|
30170
30200
|
}
|
30171
30201
|
};
|
30172
|
-
__publicField(MySqlInt,
|
30202
|
+
__publicField(MySqlInt, _a265, "MySqlInt");
|
30173
30203
|
}
|
30174
30204
|
});
|
30175
30205
|
|
30176
30206
|
// ../drizzle-orm/dist/mysql-core/columns/json.js
|
30177
|
-
var
|
30207
|
+
var _a266, _b191, MySqlJsonBuilder, _a267, _b192, MySqlJson;
|
30178
30208
|
var init_json2 = __esm({
|
30179
30209
|
"../drizzle-orm/dist/mysql-core/columns/json.js"() {
|
30180
30210
|
"use strict";
|
30181
30211
|
init_entity();
|
30182
30212
|
init_common4();
|
30183
|
-
MySqlJsonBuilder = class extends (_b191 = MySqlColumnBuilder,
|
30213
|
+
MySqlJsonBuilder = class extends (_b191 = MySqlColumnBuilder, _a266 = entityKind, _b191) {
|
30184
30214
|
constructor(name2) {
|
30185
30215
|
super(name2, "json", "MySqlJson");
|
30186
30216
|
}
|
@@ -30189,8 +30219,8 @@ var init_json2 = __esm({
|
|
30189
30219
|
return new MySqlJson(table4, this.config);
|
30190
30220
|
}
|
30191
30221
|
};
|
30192
|
-
__publicField(MySqlJsonBuilder,
|
30193
|
-
MySqlJson = class extends (_b192 = MySqlColumn,
|
30222
|
+
__publicField(MySqlJsonBuilder, _a266, "MySqlJsonBuilder");
|
30223
|
+
MySqlJson = class extends (_b192 = MySqlColumn, _a267 = entityKind, _b192) {
|
30194
30224
|
getSQLType() {
|
30195
30225
|
return "json";
|
30196
30226
|
}
|
@@ -30198,18 +30228,18 @@ var init_json2 = __esm({
|
|
30198
30228
|
return JSON.stringify(value);
|
30199
30229
|
}
|
30200
30230
|
};
|
30201
|
-
__publicField(MySqlJson,
|
30231
|
+
__publicField(MySqlJson, _a267, "MySqlJson");
|
30202
30232
|
}
|
30203
30233
|
});
|
30204
30234
|
|
30205
30235
|
// ../drizzle-orm/dist/mysql-core/columns/mediumint.js
|
30206
|
-
var
|
30236
|
+
var _a268, _b193, MySqlMediumIntBuilder, _a269, _b194, MySqlMediumInt;
|
30207
30237
|
var init_mediumint = __esm({
|
30208
30238
|
"../drizzle-orm/dist/mysql-core/columns/mediumint.js"() {
|
30209
30239
|
"use strict";
|
30210
30240
|
init_entity();
|
30211
30241
|
init_common4();
|
30212
|
-
MySqlMediumIntBuilder = class extends (_b193 = MySqlColumnBuilderWithAutoIncrement,
|
30242
|
+
MySqlMediumIntBuilder = class extends (_b193 = MySqlColumnBuilderWithAutoIncrement, _a268 = entityKind, _b193) {
|
30213
30243
|
constructor(name2, config) {
|
30214
30244
|
super(name2, "number", "MySqlMediumInt");
|
30215
30245
|
this.config.unsigned = config ? config.unsigned : false;
|
@@ -30222,8 +30252,8 @@ var init_mediumint = __esm({
|
|
30222
30252
|
);
|
30223
30253
|
}
|
30224
30254
|
};
|
30225
|
-
__publicField(MySqlMediumIntBuilder,
|
30226
|
-
MySqlMediumInt = class extends (_b194 = MySqlColumnWithAutoIncrement,
|
30255
|
+
__publicField(MySqlMediumIntBuilder, _a268, "MySqlMediumIntBuilder");
|
30256
|
+
MySqlMediumInt = class extends (_b194 = MySqlColumnWithAutoIncrement, _a269 = entityKind, _b194) {
|
30227
30257
|
getSQLType() {
|
30228
30258
|
return `mediumint${this.config.unsigned ? " unsigned" : ""}`;
|
30229
30259
|
}
|
@@ -30234,18 +30264,18 @@ var init_mediumint = __esm({
|
|
30234
30264
|
return value;
|
30235
30265
|
}
|
30236
30266
|
};
|
30237
|
-
__publicField(MySqlMediumInt,
|
30267
|
+
__publicField(MySqlMediumInt, _a269, "MySqlMediumInt");
|
30238
30268
|
}
|
30239
30269
|
});
|
30240
30270
|
|
30241
30271
|
// ../drizzle-orm/dist/mysql-core/columns/real.js
|
30242
|
-
var
|
30272
|
+
var _a270, _b195, MySqlRealBuilder, _a271, _b196, MySqlReal;
|
30243
30273
|
var init_real3 = __esm({
|
30244
30274
|
"../drizzle-orm/dist/mysql-core/columns/real.js"() {
|
30245
30275
|
"use strict";
|
30246
30276
|
init_entity();
|
30247
30277
|
init_common4();
|
30248
|
-
MySqlRealBuilder = class extends (_b195 = MySqlColumnBuilderWithAutoIncrement,
|
30278
|
+
MySqlRealBuilder = class extends (_b195 = MySqlColumnBuilderWithAutoIncrement, _a270 = entityKind, _b195) {
|
30249
30279
|
constructor(name2, config) {
|
30250
30280
|
super(name2, "number", "MySqlReal");
|
30251
30281
|
this.config.precision = config?.precision;
|
@@ -30256,8 +30286,8 @@ var init_real3 = __esm({
|
|
30256
30286
|
return new MySqlReal(table4, this.config);
|
30257
30287
|
}
|
30258
30288
|
};
|
30259
|
-
__publicField(MySqlRealBuilder,
|
30260
|
-
MySqlReal = class extends (_b196 = MySqlColumnWithAutoIncrement,
|
30289
|
+
__publicField(MySqlRealBuilder, _a270, "MySqlRealBuilder");
|
30290
|
+
MySqlReal = class extends (_b196 = MySqlColumnWithAutoIncrement, _a271 = entityKind, _b196) {
|
30261
30291
|
constructor() {
|
30262
30292
|
super(...arguments);
|
30263
30293
|
__publicField(this, "precision", this.config.precision);
|
@@ -30273,18 +30303,18 @@ var init_real3 = __esm({
|
|
30273
30303
|
}
|
30274
30304
|
}
|
30275
30305
|
};
|
30276
|
-
__publicField(MySqlReal,
|
30306
|
+
__publicField(MySqlReal, _a271, "MySqlReal");
|
30277
30307
|
}
|
30278
30308
|
});
|
30279
30309
|
|
30280
30310
|
// ../drizzle-orm/dist/mysql-core/columns/serial.js
|
30281
|
-
var
|
30311
|
+
var _a272, _b197, MySqlSerialBuilder, _a273, _b198, MySqlSerial;
|
30282
30312
|
var init_serial2 = __esm({
|
30283
30313
|
"../drizzle-orm/dist/mysql-core/columns/serial.js"() {
|
30284
30314
|
"use strict";
|
30285
30315
|
init_entity();
|
30286
30316
|
init_common4();
|
30287
|
-
MySqlSerialBuilder = class extends (_b197 = MySqlColumnBuilderWithAutoIncrement,
|
30317
|
+
MySqlSerialBuilder = class extends (_b197 = MySqlColumnBuilderWithAutoIncrement, _a272 = entityKind, _b197) {
|
30288
30318
|
constructor(name2) {
|
30289
30319
|
super(name2, "number", "MySqlSerial");
|
30290
30320
|
this.config.hasDefault = true;
|
@@ -30295,8 +30325,8 @@ var init_serial2 = __esm({
|
|
30295
30325
|
return new MySqlSerial(table4, this.config);
|
30296
30326
|
}
|
30297
30327
|
};
|
30298
|
-
__publicField(MySqlSerialBuilder,
|
30299
|
-
MySqlSerial = class extends (_b198 = MySqlColumnWithAutoIncrement,
|
30328
|
+
__publicField(MySqlSerialBuilder, _a272, "MySqlSerialBuilder");
|
30329
|
+
MySqlSerial = class extends (_b198 = MySqlColumnWithAutoIncrement, _a273 = entityKind, _b198) {
|
30300
30330
|
getSQLType() {
|
30301
30331
|
return "serial";
|
30302
30332
|
}
|
@@ -30307,18 +30337,18 @@ var init_serial2 = __esm({
|
|
30307
30337
|
return value;
|
30308
30338
|
}
|
30309
30339
|
};
|
30310
|
-
__publicField(MySqlSerial,
|
30340
|
+
__publicField(MySqlSerial, _a273, "MySqlSerial");
|
30311
30341
|
}
|
30312
30342
|
});
|
30313
30343
|
|
30314
30344
|
// ../drizzle-orm/dist/mysql-core/columns/smallint.js
|
30315
|
-
var
|
30345
|
+
var _a274, _b199, MySqlSmallIntBuilder, _a275, _b200, MySqlSmallInt;
|
30316
30346
|
var init_smallint2 = __esm({
|
30317
30347
|
"../drizzle-orm/dist/mysql-core/columns/smallint.js"() {
|
30318
30348
|
"use strict";
|
30319
30349
|
init_entity();
|
30320
30350
|
init_common4();
|
30321
|
-
MySqlSmallIntBuilder = class extends (_b199 = MySqlColumnBuilderWithAutoIncrement,
|
30351
|
+
MySqlSmallIntBuilder = class extends (_b199 = MySqlColumnBuilderWithAutoIncrement, _a274 = entityKind, _b199) {
|
30322
30352
|
constructor(name2, config) {
|
30323
30353
|
super(name2, "number", "MySqlSmallInt");
|
30324
30354
|
this.config.unsigned = config ? config.unsigned : false;
|
@@ -30331,8 +30361,8 @@ var init_smallint2 = __esm({
|
|
30331
30361
|
);
|
30332
30362
|
}
|
30333
30363
|
};
|
30334
|
-
__publicField(MySqlSmallIntBuilder,
|
30335
|
-
MySqlSmallInt = class extends (_b200 = MySqlColumnWithAutoIncrement,
|
30364
|
+
__publicField(MySqlSmallIntBuilder, _a274, "MySqlSmallIntBuilder");
|
30365
|
+
MySqlSmallInt = class extends (_b200 = MySqlColumnWithAutoIncrement, _a275 = entityKind, _b200) {
|
30336
30366
|
getSQLType() {
|
30337
30367
|
return `smallint${this.config.unsigned ? " unsigned" : ""}`;
|
30338
30368
|
}
|
@@ -30343,18 +30373,18 @@ var init_smallint2 = __esm({
|
|
30343
30373
|
return value;
|
30344
30374
|
}
|
30345
30375
|
};
|
30346
|
-
__publicField(MySqlSmallInt,
|
30376
|
+
__publicField(MySqlSmallInt, _a275, "MySqlSmallInt");
|
30347
30377
|
}
|
30348
30378
|
});
|
30349
30379
|
|
30350
30380
|
// ../drizzle-orm/dist/mysql-core/columns/text.js
|
30351
|
-
var
|
30381
|
+
var _a276, _b201, MySqlTextBuilder, _a277, _b202, MySqlText;
|
30352
30382
|
var init_text3 = __esm({
|
30353
30383
|
"../drizzle-orm/dist/mysql-core/columns/text.js"() {
|
30354
30384
|
"use strict";
|
30355
30385
|
init_entity();
|
30356
30386
|
init_common4();
|
30357
|
-
MySqlTextBuilder = class extends (_b201 = MySqlColumnBuilder,
|
30387
|
+
MySqlTextBuilder = class extends (_b201 = MySqlColumnBuilder, _a276 = entityKind, _b201) {
|
30358
30388
|
constructor(name2, textType, config) {
|
30359
30389
|
super(name2, "string", "MySqlText");
|
30360
30390
|
this.config.textType = textType;
|
@@ -30365,8 +30395,8 @@ var init_text3 = __esm({
|
|
30365
30395
|
return new MySqlText(table4, this.config);
|
30366
30396
|
}
|
30367
30397
|
};
|
30368
|
-
__publicField(MySqlTextBuilder,
|
30369
|
-
MySqlText = class extends (_b202 = MySqlColumn,
|
30398
|
+
__publicField(MySqlTextBuilder, _a276, "MySqlTextBuilder");
|
30399
|
+
MySqlText = class extends (_b202 = MySqlColumn, _a277 = entityKind, _b202) {
|
30370
30400
|
constructor() {
|
30371
30401
|
super(...arguments);
|
30372
30402
|
__publicField(this, "textType", this.config.textType);
|
@@ -30376,18 +30406,18 @@ var init_text3 = __esm({
|
|
30376
30406
|
return this.textType;
|
30377
30407
|
}
|
30378
30408
|
};
|
30379
|
-
__publicField(MySqlText,
|
30409
|
+
__publicField(MySqlText, _a277, "MySqlText");
|
30380
30410
|
}
|
30381
30411
|
});
|
30382
30412
|
|
30383
30413
|
// ../drizzle-orm/dist/mysql-core/columns/time.js
|
30384
|
-
var
|
30414
|
+
var _a278, _b203, MySqlTimeBuilder, _a279, _b204, MySqlTime;
|
30385
30415
|
var init_time2 = __esm({
|
30386
30416
|
"../drizzle-orm/dist/mysql-core/columns/time.js"() {
|
30387
30417
|
"use strict";
|
30388
30418
|
init_entity();
|
30389
30419
|
init_common4();
|
30390
|
-
MySqlTimeBuilder = class extends (_b203 = MySqlColumnBuilder,
|
30420
|
+
MySqlTimeBuilder = class extends (_b203 = MySqlColumnBuilder, _a278 = entityKind, _b203) {
|
30391
30421
|
constructor(name2, config) {
|
30392
30422
|
super(name2, "string", "MySqlTime");
|
30393
30423
|
this.config.fsp = config?.fsp;
|
@@ -30397,8 +30427,8 @@ var init_time2 = __esm({
|
|
30397
30427
|
return new MySqlTime(table4, this.config);
|
30398
30428
|
}
|
30399
30429
|
};
|
30400
|
-
__publicField(MySqlTimeBuilder,
|
30401
|
-
MySqlTime = class extends (_b204 = MySqlColumn,
|
30430
|
+
__publicField(MySqlTimeBuilder, _a278, "MySqlTimeBuilder");
|
30431
|
+
MySqlTime = class extends (_b204 = MySqlColumn, _a279 = entityKind, _b204) {
|
30402
30432
|
constructor() {
|
30403
30433
|
super(...arguments);
|
30404
30434
|
__publicField(this, "fsp", this.config.fsp);
|
@@ -30408,19 +30438,19 @@ var init_time2 = __esm({
|
|
30408
30438
|
return `time${precision}`;
|
30409
30439
|
}
|
30410
30440
|
};
|
30411
|
-
__publicField(MySqlTime,
|
30441
|
+
__publicField(MySqlTime, _a279, "MySqlTime");
|
30412
30442
|
}
|
30413
30443
|
});
|
30414
30444
|
|
30415
30445
|
// ../drizzle-orm/dist/mysql-core/columns/date.common.js
|
30416
|
-
var
|
30446
|
+
var _a280, _b205, MySqlDateColumnBaseBuilder, _a281, _b206, MySqlDateBaseColumn;
|
30417
30447
|
var init_date_common2 = __esm({
|
30418
30448
|
"../drizzle-orm/dist/mysql-core/columns/date.common.js"() {
|
30419
30449
|
"use strict";
|
30420
30450
|
init_entity();
|
30421
30451
|
init_sql();
|
30422
30452
|
init_common4();
|
30423
|
-
MySqlDateColumnBaseBuilder = class extends (_b205 = MySqlColumnBuilder,
|
30453
|
+
MySqlDateColumnBaseBuilder = class extends (_b205 = MySqlColumnBuilder, _a280 = entityKind, _b205) {
|
30424
30454
|
defaultNow() {
|
30425
30455
|
return this.default(sql`(now())`);
|
30426
30456
|
}
|
@@ -30431,25 +30461,25 @@ var init_date_common2 = __esm({
|
|
30431
30461
|
return this;
|
30432
30462
|
}
|
30433
30463
|
};
|
30434
|
-
__publicField(MySqlDateColumnBaseBuilder,
|
30435
|
-
MySqlDateBaseColumn = class extends (_b206 = MySqlColumn,
|
30464
|
+
__publicField(MySqlDateColumnBaseBuilder, _a280, "MySqlDateColumnBuilder");
|
30465
|
+
MySqlDateBaseColumn = class extends (_b206 = MySqlColumn, _a281 = entityKind, _b206) {
|
30436
30466
|
constructor() {
|
30437
30467
|
super(...arguments);
|
30438
30468
|
__publicField(this, "hasOnUpdateNow", this.config.hasOnUpdateNow);
|
30439
30469
|
}
|
30440
30470
|
};
|
30441
|
-
__publicField(MySqlDateBaseColumn,
|
30471
|
+
__publicField(MySqlDateBaseColumn, _a281, "MySqlDateColumn");
|
30442
30472
|
}
|
30443
30473
|
});
|
30444
30474
|
|
30445
30475
|
// ../drizzle-orm/dist/mysql-core/columns/timestamp.js
|
30446
|
-
var
|
30476
|
+
var _a282, _b207, MySqlTimestampBuilder, _a283, _b208, MySqlTimestamp, _a284, _b209, MySqlTimestampStringBuilder, _a285, _b210, MySqlTimestampString;
|
30447
30477
|
var init_timestamp2 = __esm({
|
30448
30478
|
"../drizzle-orm/dist/mysql-core/columns/timestamp.js"() {
|
30449
30479
|
"use strict";
|
30450
30480
|
init_entity();
|
30451
30481
|
init_date_common2();
|
30452
|
-
MySqlTimestampBuilder = class extends (_b207 = MySqlDateColumnBaseBuilder,
|
30482
|
+
MySqlTimestampBuilder = class extends (_b207 = MySqlDateColumnBaseBuilder, _a282 = entityKind, _b207) {
|
30453
30483
|
constructor(name2, config) {
|
30454
30484
|
super(name2, "date", "MySqlTimestamp");
|
30455
30485
|
this.config.fsp = config?.fsp;
|
@@ -30462,8 +30492,8 @@ var init_timestamp2 = __esm({
|
|
30462
30492
|
);
|
30463
30493
|
}
|
30464
30494
|
};
|
30465
|
-
__publicField(MySqlTimestampBuilder,
|
30466
|
-
MySqlTimestamp = class extends (_b208 = MySqlDateBaseColumn,
|
30495
|
+
__publicField(MySqlTimestampBuilder, _a282, "MySqlTimestampBuilder");
|
30496
|
+
MySqlTimestamp = class extends (_b208 = MySqlDateBaseColumn, _a283 = entityKind, _b208) {
|
30467
30497
|
constructor() {
|
30468
30498
|
super(...arguments);
|
30469
30499
|
__publicField(this, "fsp", this.config.fsp);
|
@@ -30479,8 +30509,8 @@ var init_timestamp2 = __esm({
|
|
30479
30509
|
return value.toISOString().slice(0, -1).replace("T", " ");
|
30480
30510
|
}
|
30481
30511
|
};
|
30482
|
-
__publicField(MySqlTimestamp,
|
30483
|
-
MySqlTimestampStringBuilder = class extends (_b209 = MySqlDateColumnBaseBuilder,
|
30512
|
+
__publicField(MySqlTimestamp, _a283, "MySqlTimestamp");
|
30513
|
+
MySqlTimestampStringBuilder = class extends (_b209 = MySqlDateColumnBaseBuilder, _a284 = entityKind, _b209) {
|
30484
30514
|
constructor(name2, config) {
|
30485
30515
|
super(name2, "string", "MySqlTimestampString");
|
30486
30516
|
this.config.fsp = config?.fsp;
|
@@ -30493,8 +30523,8 @@ var init_timestamp2 = __esm({
|
|
30493
30523
|
);
|
30494
30524
|
}
|
30495
30525
|
};
|
30496
|
-
__publicField(MySqlTimestampStringBuilder,
|
30497
|
-
MySqlTimestampString = class extends (_b210 = MySqlDateBaseColumn,
|
30526
|
+
__publicField(MySqlTimestampStringBuilder, _a284, "MySqlTimestampStringBuilder");
|
30527
|
+
MySqlTimestampString = class extends (_b210 = MySqlDateBaseColumn, _a285 = entityKind, _b210) {
|
30498
30528
|
constructor() {
|
30499
30529
|
super(...arguments);
|
30500
30530
|
__publicField(this, "fsp", this.config.fsp);
|
@@ -30504,18 +30534,18 @@ var init_timestamp2 = __esm({
|
|
30504
30534
|
return `timestamp${precision}`;
|
30505
30535
|
}
|
30506
30536
|
};
|
30507
|
-
__publicField(MySqlTimestampString,
|
30537
|
+
__publicField(MySqlTimestampString, _a285, "MySqlTimestampString");
|
30508
30538
|
}
|
30509
30539
|
});
|
30510
30540
|
|
30511
30541
|
// ../drizzle-orm/dist/mysql-core/columns/tinyint.js
|
30512
|
-
var
|
30542
|
+
var _a286, _b211, MySqlTinyIntBuilder, _a287, _b212, MySqlTinyInt;
|
30513
30543
|
var init_tinyint = __esm({
|
30514
30544
|
"../drizzle-orm/dist/mysql-core/columns/tinyint.js"() {
|
30515
30545
|
"use strict";
|
30516
30546
|
init_entity();
|
30517
30547
|
init_common4();
|
30518
|
-
MySqlTinyIntBuilder = class extends (_b211 = MySqlColumnBuilderWithAutoIncrement,
|
30548
|
+
MySqlTinyIntBuilder = class extends (_b211 = MySqlColumnBuilderWithAutoIncrement, _a286 = entityKind, _b211) {
|
30519
30549
|
constructor(name2, config) {
|
30520
30550
|
super(name2, "number", "MySqlTinyInt");
|
30521
30551
|
this.config.unsigned = config ? config.unsigned : false;
|
@@ -30528,8 +30558,8 @@ var init_tinyint = __esm({
|
|
30528
30558
|
);
|
30529
30559
|
}
|
30530
30560
|
};
|
30531
|
-
__publicField(MySqlTinyIntBuilder,
|
30532
|
-
MySqlTinyInt = class extends (_b212 = MySqlColumnWithAutoIncrement,
|
30561
|
+
__publicField(MySqlTinyIntBuilder, _a286, "MySqlTinyIntBuilder");
|
30562
|
+
MySqlTinyInt = class extends (_b212 = MySqlColumnWithAutoIncrement, _a287 = entityKind, _b212) {
|
30533
30563
|
getSQLType() {
|
30534
30564
|
return `tinyint${this.config.unsigned ? " unsigned" : ""}`;
|
30535
30565
|
}
|
@@ -30540,18 +30570,18 @@ var init_tinyint = __esm({
|
|
30540
30570
|
return value;
|
30541
30571
|
}
|
30542
30572
|
};
|
30543
|
-
__publicField(MySqlTinyInt,
|
30573
|
+
__publicField(MySqlTinyInt, _a287, "MySqlTinyInt");
|
30544
30574
|
}
|
30545
30575
|
});
|
30546
30576
|
|
30547
30577
|
// ../drizzle-orm/dist/mysql-core/columns/varbinary.js
|
30548
|
-
var
|
30578
|
+
var _a288, _b213, MySqlVarBinaryBuilder, _a289, _b214, MySqlVarBinary;
|
30549
30579
|
var init_varbinary = __esm({
|
30550
30580
|
"../drizzle-orm/dist/mysql-core/columns/varbinary.js"() {
|
30551
30581
|
"use strict";
|
30552
30582
|
init_entity();
|
30553
30583
|
init_common4();
|
30554
|
-
MySqlVarBinaryBuilder = class extends (_b213 = MySqlColumnBuilder,
|
30584
|
+
MySqlVarBinaryBuilder = class extends (_b213 = MySqlColumnBuilder, _a288 = entityKind, _b213) {
|
30555
30585
|
/** @internal */
|
30556
30586
|
constructor(name2, config) {
|
30557
30587
|
super(name2, "string", "MySqlVarBinary");
|
@@ -30565,8 +30595,8 @@ var init_varbinary = __esm({
|
|
30565
30595
|
);
|
30566
30596
|
}
|
30567
30597
|
};
|
30568
|
-
__publicField(MySqlVarBinaryBuilder,
|
30569
|
-
MySqlVarBinary = class extends (_b214 = MySqlColumn,
|
30598
|
+
__publicField(MySqlVarBinaryBuilder, _a288, "MySqlVarBinaryBuilder");
|
30599
|
+
MySqlVarBinary = class extends (_b214 = MySqlColumn, _a289 = entityKind, _b214) {
|
30570
30600
|
constructor() {
|
30571
30601
|
super(...arguments);
|
30572
30602
|
__publicField(this, "length", this.config.length);
|
@@ -30575,18 +30605,18 @@ var init_varbinary = __esm({
|
|
30575
30605
|
return this.length === void 0 ? `varbinary` : `varbinary(${this.length})`;
|
30576
30606
|
}
|
30577
30607
|
};
|
30578
|
-
__publicField(MySqlVarBinary,
|
30608
|
+
__publicField(MySqlVarBinary, _a289, "MySqlVarBinary");
|
30579
30609
|
}
|
30580
30610
|
});
|
30581
30611
|
|
30582
30612
|
// ../drizzle-orm/dist/mysql-core/columns/varchar.js
|
30583
|
-
var
|
30613
|
+
var _a290, _b215, MySqlVarCharBuilder, _a291, _b216, MySqlVarChar;
|
30584
30614
|
var init_varchar2 = __esm({
|
30585
30615
|
"../drizzle-orm/dist/mysql-core/columns/varchar.js"() {
|
30586
30616
|
"use strict";
|
30587
30617
|
init_entity();
|
30588
30618
|
init_common4();
|
30589
|
-
MySqlVarCharBuilder = class extends (_b215 = MySqlColumnBuilder,
|
30619
|
+
MySqlVarCharBuilder = class extends (_b215 = MySqlColumnBuilder, _a290 = entityKind, _b215) {
|
30590
30620
|
/** @internal */
|
30591
30621
|
constructor(name2, config) {
|
30592
30622
|
super(name2, "string", "MySqlVarChar");
|
@@ -30601,8 +30631,8 @@ var init_varchar2 = __esm({
|
|
30601
30631
|
);
|
30602
30632
|
}
|
30603
30633
|
};
|
30604
|
-
__publicField(MySqlVarCharBuilder,
|
30605
|
-
MySqlVarChar = class extends (_b216 = MySqlColumn,
|
30634
|
+
__publicField(MySqlVarCharBuilder, _a290, "MySqlVarCharBuilder");
|
30635
|
+
MySqlVarChar = class extends (_b216 = MySqlColumn, _a291 = entityKind, _b216) {
|
30606
30636
|
constructor() {
|
30607
30637
|
super(...arguments);
|
30608
30638
|
__publicField(this, "length", this.config.length);
|
@@ -30612,18 +30642,18 @@ var init_varchar2 = __esm({
|
|
30612
30642
|
return this.length === void 0 ? `varchar` : `varchar(${this.length})`;
|
30613
30643
|
}
|
30614
30644
|
};
|
30615
|
-
__publicField(MySqlVarChar,
|
30645
|
+
__publicField(MySqlVarChar, _a291, "MySqlVarChar");
|
30616
30646
|
}
|
30617
30647
|
});
|
30618
30648
|
|
30619
30649
|
// ../drizzle-orm/dist/mysql-core/columns/year.js
|
30620
|
-
var
|
30650
|
+
var _a292, _b217, MySqlYearBuilder, _a293, _b218, MySqlYear;
|
30621
30651
|
var init_year = __esm({
|
30622
30652
|
"../drizzle-orm/dist/mysql-core/columns/year.js"() {
|
30623
30653
|
"use strict";
|
30624
30654
|
init_entity();
|
30625
30655
|
init_common4();
|
30626
|
-
MySqlYearBuilder = class extends (_b217 = MySqlColumnBuilder,
|
30656
|
+
MySqlYearBuilder = class extends (_b217 = MySqlColumnBuilder, _a292 = entityKind, _b217) {
|
30627
30657
|
constructor(name2) {
|
30628
30658
|
super(name2, "number", "MySqlYear");
|
30629
30659
|
}
|
@@ -30632,13 +30662,13 @@ var init_year = __esm({
|
|
30632
30662
|
return new MySqlYear(table4, this.config);
|
30633
30663
|
}
|
30634
30664
|
};
|
30635
|
-
__publicField(MySqlYearBuilder,
|
30636
|
-
MySqlYear = class extends (_b218 = MySqlColumn,
|
30665
|
+
__publicField(MySqlYearBuilder, _a292, "MySqlYearBuilder");
|
30666
|
+
MySqlYear = class extends (_b218 = MySqlColumn, _a293 = entityKind, _b218) {
|
30637
30667
|
getSQLType() {
|
30638
30668
|
return `year`;
|
30639
30669
|
}
|
30640
30670
|
};
|
30641
|
-
__publicField(MySqlYear,
|
30671
|
+
__publicField(MySqlYear, _a293, "MySqlYear");
|
30642
30672
|
}
|
30643
30673
|
});
|
30644
30674
|
|
@@ -30675,13 +30705,13 @@ var init_columns3 = __esm({
|
|
30675
30705
|
});
|
30676
30706
|
|
30677
30707
|
// ../drizzle-orm/dist/mysql-core/query-builders/delete.js
|
30678
|
-
var
|
30708
|
+
var _a294, _b219, MySqlDeleteBase;
|
30679
30709
|
var init_delete3 = __esm({
|
30680
30710
|
"../drizzle-orm/dist/mysql-core/query-builders/delete.js"() {
|
30681
30711
|
"use strict";
|
30682
30712
|
init_entity();
|
30683
30713
|
init_query_promise();
|
30684
|
-
MySqlDeleteBase = class extends (_b219 = QueryPromise,
|
30714
|
+
MySqlDeleteBase = class extends (_b219 = QueryPromise, _a294 = entityKind, _b219) {
|
30685
30715
|
constructor(table4, session, dialect7, withList) {
|
30686
30716
|
super();
|
30687
30717
|
__publicField(this, "config");
|
@@ -30751,12 +30781,12 @@ var init_delete3 = __esm({
|
|
30751
30781
|
return this;
|
30752
30782
|
}
|
30753
30783
|
};
|
30754
|
-
__publicField(MySqlDeleteBase,
|
30784
|
+
__publicField(MySqlDeleteBase, _a294, "MySqlDelete");
|
30755
30785
|
}
|
30756
30786
|
});
|
30757
30787
|
|
30758
30788
|
// ../drizzle-orm/dist/mysql-core/query-builders/insert.js
|
30759
|
-
var
|
30789
|
+
var _a295, MySqlInsertBuilder, _a296, _b220, MySqlInsertBase;
|
30760
30790
|
var init_insert3 = __esm({
|
30761
30791
|
"../drizzle-orm/dist/mysql-core/query-builders/insert.js"() {
|
30762
30792
|
"use strict";
|
@@ -30765,7 +30795,7 @@ var init_insert3 = __esm({
|
|
30765
30795
|
init_sql();
|
30766
30796
|
init_table();
|
30767
30797
|
init_utils2();
|
30768
|
-
|
30798
|
+
_a295 = entityKind;
|
30769
30799
|
MySqlInsertBuilder = class {
|
30770
30800
|
constructor(table4, session, dialect7) {
|
30771
30801
|
__publicField(this, "shouldIgnore", false);
|
@@ -30794,8 +30824,8 @@ var init_insert3 = __esm({
|
|
30794
30824
|
return new MySqlInsertBase(this.table, mappedValues, this.shouldIgnore, this.session, this.dialect);
|
30795
30825
|
}
|
30796
30826
|
};
|
30797
|
-
__publicField(MySqlInsertBuilder,
|
30798
|
-
MySqlInsertBase = class extends (_b220 = QueryPromise,
|
30827
|
+
__publicField(MySqlInsertBuilder, _a295, "MySqlInsertBuilder");
|
30828
|
+
MySqlInsertBase = class extends (_b220 = QueryPromise, _a296 = entityKind, _b220) {
|
30799
30829
|
constructor(table4, values, ignore, session, dialect7) {
|
30800
30830
|
super();
|
30801
30831
|
__publicField(this, "config");
|
@@ -30876,25 +30906,25 @@ var init_insert3 = __esm({
|
|
30876
30906
|
return this;
|
30877
30907
|
}
|
30878
30908
|
};
|
30879
|
-
__publicField(MySqlInsertBase,
|
30909
|
+
__publicField(MySqlInsertBase, _a296, "MySqlInsert");
|
30880
30910
|
}
|
30881
30911
|
});
|
30882
30912
|
|
30883
30913
|
// ../drizzle-orm/dist/mysql-core/view-base.js
|
30884
|
-
var
|
30914
|
+
var _a297, _b221, MySqlViewBase;
|
30885
30915
|
var init_view_base3 = __esm({
|
30886
30916
|
"../drizzle-orm/dist/mysql-core/view-base.js"() {
|
30887
30917
|
"use strict";
|
30888
30918
|
init_entity();
|
30889
30919
|
init_sql();
|
30890
|
-
MySqlViewBase = class extends (_b221 = View,
|
30920
|
+
MySqlViewBase = class extends (_b221 = View, _a297 = entityKind, _b221) {
|
30891
30921
|
};
|
30892
|
-
__publicField(MySqlViewBase,
|
30922
|
+
__publicField(MySqlViewBase, _a297, "MySqlViewBase");
|
30893
30923
|
}
|
30894
30924
|
});
|
30895
30925
|
|
30896
30926
|
// ../drizzle-orm/dist/mysql-core/dialect.js
|
30897
|
-
var
|
30927
|
+
var _a298, MySqlDialect;
|
30898
30928
|
var init_dialect3 = __esm({
|
30899
30929
|
"../drizzle-orm/dist/mysql-core/dialect.js"() {
|
30900
30930
|
"use strict";
|
@@ -30912,7 +30942,7 @@ var init_dialect3 = __esm({
|
|
30912
30942
|
init_common4();
|
30913
30943
|
init_table4();
|
30914
30944
|
init_view_base3();
|
30915
|
-
|
30945
|
+
_a298 = entityKind;
|
30916
30946
|
MySqlDialect = class {
|
30917
30947
|
async migrate(migrations, session, config) {
|
30918
30948
|
const migrationsTable = config.migrationsTable ?? "__drizzle_migrations";
|
@@ -31688,7 +31718,7 @@ var init_dialect3 = __esm({
|
|
31688
31718
|
};
|
31689
31719
|
}
|
31690
31720
|
};
|
31691
|
-
__publicField(MySqlDialect,
|
31721
|
+
__publicField(MySqlDialect, _a298, "MySqlDialect");
|
31692
31722
|
}
|
31693
31723
|
});
|
31694
31724
|
|
@@ -31710,7 +31740,7 @@ function createSetOperator3(type, isAll) {
|
|
31710
31740
|
return leftSelect.addSetOperators(setOperators);
|
31711
31741
|
};
|
31712
31742
|
}
|
31713
|
-
var
|
31743
|
+
var _a299, MySqlSelectBuilder, _a300, _b222, MySqlSelectQueryBuilderBase, _a301, _b223, MySqlSelectBase, getMySqlSetOperators, union3, unionAll3, intersect3, intersectAll2, except3, exceptAll2;
|
31714
31744
|
var init_select4 = __esm({
|
31715
31745
|
"../drizzle-orm/dist/mysql-core/query-builders/select.js"() {
|
31716
31746
|
"use strict";
|
@@ -31725,7 +31755,7 @@ var init_select4 = __esm({
|
|
31725
31755
|
init_utils2();
|
31726
31756
|
init_view_common();
|
31727
31757
|
init_view_base3();
|
31728
|
-
|
31758
|
+
_a299 = entityKind;
|
31729
31759
|
MySqlSelectBuilder = class {
|
31730
31760
|
constructor(config) {
|
31731
31761
|
__publicField(this, "fields");
|
@@ -31770,8 +31800,8 @@ var init_select4 = __esm({
|
|
31770
31800
|
);
|
31771
31801
|
}
|
31772
31802
|
};
|
31773
|
-
__publicField(MySqlSelectBuilder,
|
31774
|
-
MySqlSelectQueryBuilderBase = class extends (_b222 = TypedQueryBuilder,
|
31803
|
+
__publicField(MySqlSelectBuilder, _a299, "MySqlSelectBuilder");
|
31804
|
+
MySqlSelectQueryBuilderBase = class extends (_b222 = TypedQueryBuilder, _a300 = entityKind, _b222) {
|
31775
31805
|
constructor({ table: table4, fields, isPartialSelect, session, dialect: dialect7, withList, distinct }) {
|
31776
31806
|
super();
|
31777
31807
|
__publicField(this, "_");
|
@@ -32372,8 +32402,8 @@ var init_select4 = __esm({
|
|
32372
32402
|
return this;
|
32373
32403
|
}
|
32374
32404
|
};
|
32375
|
-
__publicField(MySqlSelectQueryBuilderBase,
|
32376
|
-
MySqlSelectBase = class extends (_b223 = MySqlSelectQueryBuilderBase,
|
32405
|
+
__publicField(MySqlSelectQueryBuilderBase, _a300, "MySqlSelectQueryBuilder");
|
32406
|
+
MySqlSelectBase = class extends (_b223 = MySqlSelectQueryBuilderBase, _a301 = entityKind, _b223) {
|
32377
32407
|
constructor() {
|
32378
32408
|
super(...arguments);
|
32379
32409
|
__publicField(this, "execute", (placeholderValues) => {
|
@@ -32397,7 +32427,7 @@ var init_select4 = __esm({
|
|
32397
32427
|
return query;
|
32398
32428
|
}
|
32399
32429
|
};
|
32400
|
-
__publicField(MySqlSelectBase,
|
32430
|
+
__publicField(MySqlSelectBase, _a301, "MySqlSelect");
|
32401
32431
|
applyMixins(MySqlSelectBase, [QueryPromise]);
|
32402
32432
|
getMySqlSetOperators = () => ({
|
32403
32433
|
union: union3,
|
@@ -32417,7 +32447,7 @@ var init_select4 = __esm({
|
|
32417
32447
|
});
|
32418
32448
|
|
32419
32449
|
// ../drizzle-orm/dist/mysql-core/query-builders/query-builder.js
|
32420
|
-
var
|
32450
|
+
var _a302, QueryBuilder3;
|
32421
32451
|
var init_query_builder4 = __esm({
|
32422
32452
|
"../drizzle-orm/dist/mysql-core/query-builders/query-builder.js"() {
|
32423
32453
|
"use strict";
|
@@ -32426,7 +32456,7 @@ var init_query_builder4 = __esm({
|
|
32426
32456
|
init_selection_proxy();
|
32427
32457
|
init_subquery();
|
32428
32458
|
init_select4();
|
32429
|
-
|
32459
|
+
_a302 = entityKind;
|
32430
32460
|
QueryBuilder3 = class {
|
32431
32461
|
constructor() {
|
32432
32462
|
__publicField(this, "dialect");
|
@@ -32485,7 +32515,7 @@ var init_query_builder4 = __esm({
|
|
32485
32515
|
return this.dialect;
|
32486
32516
|
}
|
32487
32517
|
};
|
32488
|
-
__publicField(QueryBuilder3,
|
32518
|
+
__publicField(QueryBuilder3, _a302, "MySqlQueryBuilder");
|
32489
32519
|
}
|
32490
32520
|
});
|
32491
32521
|
|
@@ -32497,14 +32527,14 @@ var init_select_types3 = __esm({
|
|
32497
32527
|
});
|
32498
32528
|
|
32499
32529
|
// ../drizzle-orm/dist/mysql-core/query-builders/update.js
|
32500
|
-
var
|
32530
|
+
var _a303, MySqlUpdateBuilder, _a304, _b224, MySqlUpdateBase;
|
32501
32531
|
var init_update3 = __esm({
|
32502
32532
|
"../drizzle-orm/dist/mysql-core/query-builders/update.js"() {
|
32503
32533
|
"use strict";
|
32504
32534
|
init_entity();
|
32505
32535
|
init_query_promise();
|
32506
32536
|
init_utils2();
|
32507
|
-
|
32537
|
+
_a303 = entityKind;
|
32508
32538
|
MySqlUpdateBuilder = class {
|
32509
32539
|
constructor(table4, session, dialect7, withList) {
|
32510
32540
|
this.table = table4;
|
@@ -32516,8 +32546,8 @@ var init_update3 = __esm({
|
|
32516
32546
|
return new MySqlUpdateBase(this.table, mapUpdateSet(this.table, values), this.session, this.dialect, this.withList);
|
32517
32547
|
}
|
32518
32548
|
};
|
32519
|
-
__publicField(MySqlUpdateBuilder,
|
32520
|
-
MySqlUpdateBase = class extends (_b224 = QueryPromise,
|
32549
|
+
__publicField(MySqlUpdateBuilder, _a303, "MySqlUpdateBuilder");
|
32550
|
+
MySqlUpdateBase = class extends (_b224 = QueryPromise, _a304 = entityKind, _b224) {
|
32521
32551
|
constructor(table4, set, session, dialect7, withList) {
|
32522
32552
|
super();
|
32523
32553
|
__publicField(this, "config");
|
@@ -32590,7 +32620,7 @@ var init_update3 = __esm({
|
|
32590
32620
|
return this;
|
32591
32621
|
}
|
32592
32622
|
};
|
32593
|
-
__publicField(MySqlUpdateBase,
|
32623
|
+
__publicField(MySqlUpdateBase, _a304, "MySqlUpdate");
|
32594
32624
|
}
|
32595
32625
|
});
|
32596
32626
|
|
@@ -32608,14 +32638,14 @@ var init_query_builders3 = __esm({
|
|
32608
32638
|
});
|
32609
32639
|
|
32610
32640
|
// ../drizzle-orm/dist/mysql-core/query-builders/query.js
|
32611
|
-
var
|
32641
|
+
var _a305, RelationalQueryBuilder3, _a306, _b225, MySqlRelationalQuery;
|
32612
32642
|
var init_query3 = __esm({
|
32613
32643
|
"../drizzle-orm/dist/mysql-core/query-builders/query.js"() {
|
32614
32644
|
"use strict";
|
32615
32645
|
init_entity();
|
32616
32646
|
init_query_promise();
|
32617
32647
|
init_relations();
|
32618
|
-
|
32648
|
+
_a305 = entityKind;
|
32619
32649
|
RelationalQueryBuilder3 = class {
|
32620
32650
|
constructor(fullSchema, schema4, tableNamesMap, table4, tableConfig, dialect7, session, mode) {
|
32621
32651
|
this.fullSchema = fullSchema;
|
@@ -32656,8 +32686,8 @@ var init_query3 = __esm({
|
|
32656
32686
|
);
|
32657
32687
|
}
|
32658
32688
|
};
|
32659
|
-
__publicField(RelationalQueryBuilder3,
|
32660
|
-
MySqlRelationalQuery = class extends (_b225 = QueryPromise,
|
32689
|
+
__publicField(RelationalQueryBuilder3, _a305, "MySqlRelationalQueryBuilder");
|
32690
|
+
MySqlRelationalQuery = class extends (_b225 = QueryPromise, _a306 = entityKind, _b225) {
|
32661
32691
|
constructor(fullSchema, schema4, tableNamesMap, table4, tableConfig, dialect7, session, config, queryMode, mode) {
|
32662
32692
|
super();
|
32663
32693
|
this.fullSchema = fullSchema;
|
@@ -32721,12 +32751,12 @@ var init_query3 = __esm({
|
|
32721
32751
|
return this.prepare().execute();
|
32722
32752
|
}
|
32723
32753
|
};
|
32724
|
-
__publicField(MySqlRelationalQuery,
|
32754
|
+
__publicField(MySqlRelationalQuery, _a306, "MySqlRelationalQuery");
|
32725
32755
|
}
|
32726
32756
|
});
|
32727
32757
|
|
32728
32758
|
// ../drizzle-orm/dist/mysql-core/db.js
|
32729
|
-
var
|
32759
|
+
var _a307, MySqlDatabase;
|
32730
32760
|
var init_db3 = __esm({
|
32731
32761
|
"../drizzle-orm/dist/mysql-core/db.js"() {
|
32732
32762
|
"use strict";
|
@@ -32735,7 +32765,7 @@ var init_db3 = __esm({
|
|
32735
32765
|
init_subquery();
|
32736
32766
|
init_query_builders3();
|
32737
32767
|
init_query3();
|
32738
|
-
|
32768
|
+
_a307 = entityKind;
|
32739
32769
|
MySqlDatabase = class {
|
32740
32770
|
constructor(dialect7, session, schema4, mode) {
|
32741
32771
|
__publicField(this, "query");
|
@@ -32944,17 +32974,17 @@ var init_db3 = __esm({
|
|
32944
32974
|
return this.session.transaction(transaction, config);
|
32945
32975
|
}
|
32946
32976
|
};
|
32947
|
-
__publicField(MySqlDatabase,
|
32977
|
+
__publicField(MySqlDatabase, _a307, "MySqlDatabase");
|
32948
32978
|
}
|
32949
32979
|
});
|
32950
32980
|
|
32951
32981
|
// ../drizzle-orm/dist/mysql-core/indexes.js
|
32952
|
-
var
|
32982
|
+
var _a308, IndexBuilderOn3, _a309, IndexBuilder3, _a310, Index5;
|
32953
32983
|
var init_indexes3 = __esm({
|
32954
32984
|
"../drizzle-orm/dist/mysql-core/indexes.js"() {
|
32955
32985
|
"use strict";
|
32956
32986
|
init_entity();
|
32957
|
-
|
32987
|
+
_a308 = entityKind;
|
32958
32988
|
IndexBuilderOn3 = class {
|
32959
32989
|
constructor(name2, unique) {
|
32960
32990
|
this.name = name2;
|
@@ -32964,8 +32994,8 @@ var init_indexes3 = __esm({
|
|
32964
32994
|
return new IndexBuilder3(this.name, columns, this.unique);
|
32965
32995
|
}
|
32966
32996
|
};
|
32967
|
-
__publicField(IndexBuilderOn3,
|
32968
|
-
|
32997
|
+
__publicField(IndexBuilderOn3, _a308, "MySqlIndexBuilderOn");
|
32998
|
+
_a309 = entityKind;
|
32969
32999
|
IndexBuilder3 = class {
|
32970
33000
|
constructor(name2, columns, unique) {
|
32971
33001
|
/** @internal */
|
@@ -32993,26 +33023,26 @@ var init_indexes3 = __esm({
|
|
32993
33023
|
return new Index5(this.config, table4);
|
32994
33024
|
}
|
32995
33025
|
};
|
32996
|
-
__publicField(IndexBuilder3,
|
32997
|
-
|
33026
|
+
__publicField(IndexBuilder3, _a309, "MySqlIndexBuilder");
|
33027
|
+
_a310 = entityKind;
|
32998
33028
|
Index5 = class {
|
32999
33029
|
constructor(config, table4) {
|
33000
33030
|
__publicField(this, "config");
|
33001
33031
|
this.config = { ...config, table: table4 };
|
33002
33032
|
}
|
33003
33033
|
};
|
33004
|
-
__publicField(Index5,
|
33034
|
+
__publicField(Index5, _a310, "MySqlIndex");
|
33005
33035
|
}
|
33006
33036
|
});
|
33007
33037
|
|
33008
33038
|
// ../drizzle-orm/dist/mysql-core/primary-keys.js
|
33009
|
-
var
|
33039
|
+
var _a311, PrimaryKeyBuilder3, _a312, PrimaryKey3;
|
33010
33040
|
var init_primary_keys3 = __esm({
|
33011
33041
|
"../drizzle-orm/dist/mysql-core/primary-keys.js"() {
|
33012
33042
|
"use strict";
|
33013
33043
|
init_entity();
|
33014
33044
|
init_table4();
|
33015
|
-
|
33045
|
+
_a311 = entityKind;
|
33016
33046
|
PrimaryKeyBuilder3 = class {
|
33017
33047
|
constructor(columns, name2) {
|
33018
33048
|
/** @internal */
|
@@ -33027,8 +33057,8 @@ var init_primary_keys3 = __esm({
|
|
33027
33057
|
return new PrimaryKey3(table4, this.columns, this.name);
|
33028
33058
|
}
|
33029
33059
|
};
|
33030
|
-
__publicField(PrimaryKeyBuilder3,
|
33031
|
-
|
33060
|
+
__publicField(PrimaryKeyBuilder3, _a311, "MySqlPrimaryKeyBuilder");
|
33061
|
+
_a312 = entityKind;
|
33032
33062
|
PrimaryKey3 = class {
|
33033
33063
|
constructor(table4, columns, name2) {
|
33034
33064
|
__publicField(this, "columns");
|
@@ -33041,7 +33071,7 @@ var init_primary_keys3 = __esm({
|
|
33041
33071
|
return this.name ?? `${this.table[MySqlTable.Symbol.Name]}_${this.columns.map((column4) => column4.name).join("_")}_pk`;
|
33042
33072
|
}
|
33043
33073
|
};
|
33044
|
-
__publicField(PrimaryKey3,
|
33074
|
+
__publicField(PrimaryKey3, _a312, "MySqlPrimaryKey");
|
33045
33075
|
}
|
33046
33076
|
});
|
33047
33077
|
|
@@ -33061,7 +33091,7 @@ function mysqlViewWithSchema(name2, selection, schema4) {
|
|
33061
33091
|
}
|
33062
33092
|
return new ViewBuilder3(name2, schema4);
|
33063
33093
|
}
|
33064
|
-
var
|
33094
|
+
var _a313, ViewBuilderCore2, _a314, _b226, ViewBuilder3, _a315, _b227, ManualViewBuilder3, _a316, _b228, _c8, MySqlView;
|
33065
33095
|
var init_view3 = __esm({
|
33066
33096
|
"../drizzle-orm/dist/mysql-core/view.js"() {
|
33067
33097
|
"use strict";
|
@@ -33072,7 +33102,7 @@ var init_view3 = __esm({
|
|
33072
33102
|
init_table4();
|
33073
33103
|
init_view_base3();
|
33074
33104
|
init_view_common4();
|
33075
|
-
|
33105
|
+
_a313 = entityKind;
|
33076
33106
|
ViewBuilderCore2 = class {
|
33077
33107
|
constructor(name2, schema4) {
|
33078
33108
|
__publicField(this, "config", {});
|
@@ -33096,8 +33126,8 @@ var init_view3 = __esm({
|
|
33096
33126
|
return this;
|
33097
33127
|
}
|
33098
33128
|
};
|
33099
|
-
__publicField(ViewBuilderCore2,
|
33100
|
-
ViewBuilder3 = class extends (_b226 = ViewBuilderCore2,
|
33129
|
+
__publicField(ViewBuilderCore2, _a313, "MySqlViewBuilder");
|
33130
|
+
ViewBuilder3 = class extends (_b226 = ViewBuilderCore2, _a314 = entityKind, _b226) {
|
33101
33131
|
as(qb) {
|
33102
33132
|
if (typeof qb === "function") {
|
33103
33133
|
qb = qb(new QueryBuilder3());
|
@@ -33123,8 +33153,8 @@ var init_view3 = __esm({
|
|
33123
33153
|
);
|
33124
33154
|
}
|
33125
33155
|
};
|
33126
|
-
__publicField(ViewBuilder3,
|
33127
|
-
ManualViewBuilder3 = class extends (_b227 = ViewBuilderCore2,
|
33156
|
+
__publicField(ViewBuilder3, _a314, "MySqlViewBuilder");
|
33157
|
+
ManualViewBuilder3 = class extends (_b227 = ViewBuilderCore2, _a315 = entityKind, _b227) {
|
33128
33158
|
constructor(name2, columns, schema4) {
|
33129
33159
|
super(name2, schema4);
|
33130
33160
|
__publicField(this, "columns");
|
@@ -33169,11 +33199,11 @@ var init_view3 = __esm({
|
|
33169
33199
|
);
|
33170
33200
|
}
|
33171
33201
|
};
|
33172
|
-
__publicField(ManualViewBuilder3,
|
33173
|
-
MySqlView = class extends (_c8 = MySqlViewBase, _b228 = entityKind,
|
33202
|
+
__publicField(ManualViewBuilder3, _a315, "MySqlManualViewBuilder");
|
33203
|
+
MySqlView = class extends (_c8 = MySqlViewBase, _b228 = entityKind, _a316 = MySqlViewConfig, _c8) {
|
33174
33204
|
constructor({ mysqlConfig, config }) {
|
33175
33205
|
super(config);
|
33176
|
-
__publicField(this,
|
33206
|
+
__publicField(this, _a316);
|
33177
33207
|
this[MySqlViewConfig] = mysqlConfig;
|
33178
33208
|
}
|
33179
33209
|
};
|
@@ -33182,14 +33212,14 @@ var init_view3 = __esm({
|
|
33182
33212
|
});
|
33183
33213
|
|
33184
33214
|
// ../drizzle-orm/dist/mysql-core/schema.js
|
33185
|
-
var
|
33215
|
+
var _a317, MySqlSchema5;
|
33186
33216
|
var init_schema2 = __esm({
|
33187
33217
|
"../drizzle-orm/dist/mysql-core/schema.js"() {
|
33188
33218
|
"use strict";
|
33189
33219
|
init_entity();
|
33190
33220
|
init_table4();
|
33191
33221
|
init_view3();
|
33192
|
-
|
33222
|
+
_a317 = entityKind;
|
33193
33223
|
MySqlSchema5 = class {
|
33194
33224
|
constructor(schemaName) {
|
33195
33225
|
__publicField(this, "table", (name2, columns, extraConfig) => {
|
@@ -33201,12 +33231,12 @@ var init_schema2 = __esm({
|
|
33201
33231
|
this.schemaName = schemaName;
|
33202
33232
|
}
|
33203
33233
|
};
|
33204
|
-
__publicField(MySqlSchema5,
|
33234
|
+
__publicField(MySqlSchema5, _a317, "MySqlSchema");
|
33205
33235
|
}
|
33206
33236
|
});
|
33207
33237
|
|
33208
33238
|
// ../drizzle-orm/dist/mysql-core/session.js
|
33209
|
-
var
|
33239
|
+
var _a318, MySqlPreparedQuery, _a319, MySqlSession, _a320, _b229, MySqlTransaction;
|
33210
33240
|
var init_session3 = __esm({
|
33211
33241
|
"../drizzle-orm/dist/mysql-core/session.js"() {
|
33212
33242
|
"use strict";
|
@@ -33214,15 +33244,15 @@ var init_session3 = __esm({
|
|
33214
33244
|
init_errors();
|
33215
33245
|
init_sql();
|
33216
33246
|
init_db3();
|
33217
|
-
|
33247
|
+
_a318 = entityKind;
|
33218
33248
|
MySqlPreparedQuery = class {
|
33219
33249
|
constructor() {
|
33220
33250
|
/** @internal */
|
33221
33251
|
__publicField(this, "joinsNotNullableMap");
|
33222
33252
|
}
|
33223
33253
|
};
|
33224
|
-
__publicField(MySqlPreparedQuery,
|
33225
|
-
|
33254
|
+
__publicField(MySqlPreparedQuery, _a318, "MySqlPreparedQuery");
|
33255
|
+
_a319 = entityKind;
|
33226
33256
|
MySqlSession = class {
|
33227
33257
|
constructor(dialect7) {
|
33228
33258
|
this.dialect = dialect7;
|
@@ -33251,8 +33281,8 @@ var init_session3 = __esm({
|
|
33251
33281
|
return parts.length ? sql`start transaction ${sql.raw(parts.join(" "))}` : void 0;
|
33252
33282
|
}
|
33253
33283
|
};
|
33254
|
-
__publicField(MySqlSession,
|
33255
|
-
MySqlTransaction = class extends (_b229 = MySqlDatabase,
|
33284
|
+
__publicField(MySqlSession, _a319, "MySqlSession");
|
33285
|
+
MySqlTransaction = class extends (_b229 = MySqlDatabase, _a320 = entityKind, _b229) {
|
33256
33286
|
constructor(dialect7, session, schema4, nestedIndex, mode) {
|
33257
33287
|
super(dialect7, session, schema4, mode);
|
33258
33288
|
this.schema = schema4;
|
@@ -33262,7 +33292,7 @@ var init_session3 = __esm({
|
|
33262
33292
|
throw new TransactionRollbackError();
|
33263
33293
|
}
|
33264
33294
|
};
|
33265
|
-
__publicField(MySqlTransaction,
|
33295
|
+
__publicField(MySqlTransaction, _a320, "MySqlTransaction");
|
33266
33296
|
}
|
33267
33297
|
});
|
33268
33298
|
|
@@ -34032,10 +34062,6 @@ var init_postgres = __esm({
|
|
34032
34062
|
database: stringType().min(1),
|
34033
34063
|
secretArn: stringType().min(1),
|
34034
34064
|
resourceArn: stringType().min(1)
|
34035
|
-
}),
|
34036
|
-
objectType({
|
34037
|
-
driver: literalType("pglite"),
|
34038
|
-
url: stringType().min(1)
|
34039
34065
|
})
|
34040
34066
|
]);
|
34041
34067
|
}
|