drizzle-kit 0.30.4-1177ad8 → 0.30.4-4647df7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/api.js +652 -678
- package/api.mjs +652 -678
- package/bin.cjs +1 -1
- package/package.json +1 -1
package/api.js
CHANGED
@@ -3469,17 +3469,17 @@ function processCreateParams(params) {
|
|
3469
3469
|
if (errorMap2)
|
3470
3470
|
return { errorMap: errorMap2, description };
|
3471
3471
|
const customMap = (iss, ctx) => {
|
3472
|
-
var
|
3472
|
+
var _a415, _b305;
|
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: (_a415 = message !== null && message !== void 0 ? message : required_error) !== null && _a415 !== void 0 ? _a415 : ctx.defaultError };
|
3479
3479
|
}
|
3480
3480
|
if (iss.code !== "invalid_type")
|
3481
3481
|
return { message: ctx.defaultError };
|
3482
|
-
return { message: (
|
3482
|
+
return { message: (_b305 = message !== null && message !== void 0 ? message : invalid_type_error) !== null && _b305 !== void 0 ? _b305 : ctx.defaultError };
|
3483
3483
|
};
|
3484
3484
|
return { errorMap: customMap, description };
|
3485
3485
|
}
|
@@ -4141,11 +4141,11 @@ var init_lib = __esm({
|
|
4141
4141
|
throw result.error;
|
4142
4142
|
}
|
4143
4143
|
safeParse(data, params) {
|
4144
|
-
var
|
4144
|
+
var _a415;
|
4145
4145
|
const ctx = {
|
4146
4146
|
common: {
|
4147
4147
|
issues: [],
|
4148
|
-
async: (
|
4148
|
+
async: (_a415 = params === null || params === void 0 ? void 0 : params.async) !== null && _a415 !== void 0 ? _a415 : 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 (_a415) {
|
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 _a415, _b305;
|
4641
4641
|
if (typeof options === "string") {
|
4642
4642
|
return this._addCheck({
|
4643
4643
|
kind: "datetime",
|
@@ -4650,8 +4650,8 @@ var init_lib = __esm({
|
|
4650
4650
|
return this._addCheck({
|
4651
4651
|
kind: "datetime",
|
4652
4652
|
precision: typeof (options === null || options === void 0 ? void 0 : options.precision) === "undefined" ? null : options === null || options === void 0 ? void 0 : options.precision,
|
4653
|
-
offset: (
|
4654
|
-
local: (
|
4653
|
+
offset: (_a415 = options === null || options === void 0 ? void 0 : options.offset) !== null && _a415 !== void 0 ? _a415 : false,
|
4654
|
+
local: (_b305 = options === null || options === void 0 ? void 0 : options.local) !== null && _b305 !== void 0 ? _b305 : false,
|
4655
4655
|
...errorUtil.errToObj(options === null || options === void 0 ? void 0 : options.message)
|
4656
4656
|
});
|
4657
4657
|
}
|
@@ -4814,11 +4814,11 @@ var init_lib = __esm({
|
|
4814
4814
|
}
|
4815
4815
|
};
|
4816
4816
|
ZodString.create = (params) => {
|
4817
|
-
var
|
4817
|
+
var _a415;
|
4818
4818
|
return new ZodString({
|
4819
4819
|
checks: [],
|
4820
4820
|
typeName: ZodFirstPartyTypeKind.ZodString,
|
4821
|
-
coerce: (
|
4821
|
+
coerce: (_a415 = params === null || params === void 0 ? void 0 : params.coerce) !== null && _a415 !== void 0 ? _a415 : 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 _a415;
|
5215
5215
|
return new ZodBigInt({
|
5216
5216
|
checks: [],
|
5217
5217
|
typeName: ZodFirstPartyTypeKind.ZodBigInt,
|
5218
|
-
coerce: (
|
5218
|
+
coerce: (_a415 = params === null || params === void 0 ? void 0 : params.coerce) !== null && _a415 !== void 0 ? _a415 : 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 = (_c14 = (
|
5698
|
+
var _a415, _b305, _c14, _d6;
|
5699
|
+
const defaultError = (_c14 = (_b305 = (_a415 = this._def).errorMap) === null || _b305 === void 0 ? void 0 : _b305.call(_a415, issue, ctx).message) !== null && _c14 !== void 0 ? _c14 : ctx.defaultError;
|
5700
5700
|
if (issue.code === "unrecognized_keys")
|
5701
5701
|
return {
|
5702
5702
|
message: (_d6 = errorUtil.errToObj(message).message) !== null && _d6 !== void 0 ? _d6 : defaultError
|
@@ -22608,8 +22608,8 @@ var init_sql = __esm({
|
|
22608
22608
|
sql2.param = param2;
|
22609
22609
|
})(sql || (sql = {}));
|
22610
22610
|
((SQL2) => {
|
22611
|
-
var
|
22612
|
-
|
22611
|
+
var _a415;
|
22612
|
+
_a415 = entityKind;
|
22613
22613
|
const _Aliased = class _Aliased {
|
22614
22614
|
constructor(sql2, fieldAlias) {
|
22615
22615
|
/** @internal */
|
@@ -22625,7 +22625,7 @@ var init_sql = __esm({
|
|
22625
22625
|
return new _Aliased(this.sql, this.fieldAlias);
|
22626
22626
|
}
|
22627
22627
|
};
|
22628
|
-
__publicField(_Aliased,
|
22628
|
+
__publicField(_Aliased, _a415, "SQL.Aliased");
|
22629
22629
|
let Aliased = _Aliased;
|
22630
22630
|
SQL2.Aliased = Aliased;
|
22631
22631
|
})(SQL || (SQL = {}));
|
@@ -29512,44 +29512,17 @@ var init_schema = __esm({
|
|
29512
29512
|
}
|
29513
29513
|
});
|
29514
29514
|
|
29515
|
-
// ../drizzle-orm/dist/cache/core/cache.js
|
29516
|
-
var _a159, Cache, _a160, _b113, NoopCache;
|
29517
|
-
var init_cache = __esm({
|
29518
|
-
"../drizzle-orm/dist/cache/core/cache.js"() {
|
29519
|
-
"use strict";
|
29520
|
-
init_entity();
|
29521
|
-
_a159 = entityKind;
|
29522
|
-
Cache = class {
|
29523
|
-
};
|
29524
|
-
__publicField(Cache, _a159, "Cache");
|
29525
|
-
NoopCache = class extends (_b113 = Cache, _a160 = entityKind, _b113) {
|
29526
|
-
strategy() {
|
29527
|
-
return "all";
|
29528
|
-
}
|
29529
|
-
async get(_key) {
|
29530
|
-
return void 0;
|
29531
|
-
}
|
29532
|
-
async put(_hashedQuery, _response, _tables, _config) {
|
29533
|
-
}
|
29534
|
-
async onMutate(_params) {
|
29535
|
-
}
|
29536
|
-
};
|
29537
|
-
__publicField(NoopCache, _a160, "NoopCache");
|
29538
|
-
}
|
29539
|
-
});
|
29540
|
-
|
29541
29515
|
// ../drizzle-orm/dist/pg-core/session.js
|
29542
|
-
var
|
29516
|
+
var _a159, PgPreparedQuery, _a160, PgSession, _a161, _b113, PgTransaction;
|
29543
29517
|
var init_session = __esm({
|
29544
29518
|
"../drizzle-orm/dist/pg-core/session.js"() {
|
29545
29519
|
"use strict";
|
29546
|
-
init_cache();
|
29547
29520
|
init_entity();
|
29548
29521
|
init_errors();
|
29549
29522
|
init_sql2();
|
29550
29523
|
init_tracing();
|
29551
29524
|
init_db();
|
29552
|
-
|
29525
|
+
_a159 = entityKind;
|
29553
29526
|
PgPreparedQuery = class {
|
29554
29527
|
constructor(query, cache, queryMetadata, cacheConfig) {
|
29555
29528
|
__publicField(this, "authToken");
|
@@ -29588,7 +29561,7 @@ var init_session = __esm({
|
|
29588
29561
|
}
|
29589
29562
|
/** @internal */
|
29590
29563
|
async queryWithCache(queryString, params, query) {
|
29591
|
-
if (this.cache === void 0 ||
|
29564
|
+
if (this.cache === void 0 || this.queryMetadata === void 0) {
|
29592
29565
|
return await query();
|
29593
29566
|
}
|
29594
29567
|
if (this.cacheConfig && !this.cacheConfig.enable) {
|
@@ -29605,6 +29578,7 @@ var init_session = __esm({
|
|
29605
29578
|
this.cacheConfig.tag ?? await this.hashQuery(queryString, params)
|
29606
29579
|
);
|
29607
29580
|
if (fromCache === void 0) {
|
29581
|
+
console.log("Cache empty. Querying database", queryString);
|
29608
29582
|
const result = await query();
|
29609
29583
|
await this.cache.put(
|
29610
29584
|
this.cacheConfig.tag ?? await this.hashQuery(queryString, params),
|
@@ -29620,8 +29594,8 @@ var init_session = __esm({
|
|
29620
29594
|
return await query();
|
29621
29595
|
}
|
29622
29596
|
};
|
29623
|
-
__publicField(PgPreparedQuery,
|
29624
|
-
|
29597
|
+
__publicField(PgPreparedQuery, _a159, "PgPreparedQuery");
|
29598
|
+
_a160 = entityKind;
|
29625
29599
|
PgSession = class {
|
29626
29600
|
constructor(dialect6) {
|
29627
29601
|
this.dialect = dialect6;
|
@@ -29656,8 +29630,8 @@ var init_session = __esm({
|
|
29656
29630
|
);
|
29657
29631
|
}
|
29658
29632
|
};
|
29659
|
-
__publicField(PgSession,
|
29660
|
-
PgTransaction = class extends (
|
29633
|
+
__publicField(PgSession, _a160, "PgSession");
|
29634
|
+
PgTransaction = class extends (_b113 = PgDatabase, _a161 = entityKind, _b113) {
|
29661
29635
|
constructor(dialect6, session, schema5, nestedIndex = 0) {
|
29662
29636
|
super(dialect6, session, schema5);
|
29663
29637
|
this.schema = schema5;
|
@@ -29684,7 +29658,7 @@ var init_session = __esm({
|
|
29684
29658
|
return this.session.execute(sql`set transaction ${this.getTransactionConfigSQL(config)}`);
|
29685
29659
|
}
|
29686
29660
|
};
|
29687
|
-
__publicField(PgTransaction,
|
29661
|
+
__publicField(PgTransaction, _a161, "PgTransaction");
|
29688
29662
|
}
|
29689
29663
|
});
|
29690
29664
|
|
@@ -31422,12 +31396,12 @@ var init_alias3 = __esm({
|
|
31422
31396
|
});
|
31423
31397
|
|
31424
31398
|
// ../drizzle-orm/dist/sqlite-core/checks.js
|
31425
|
-
var
|
31399
|
+
var _a162, CheckBuilder2, _a163, Check2;
|
31426
31400
|
var init_checks2 = __esm({
|
31427
31401
|
"../drizzle-orm/dist/sqlite-core/checks.js"() {
|
31428
31402
|
"use strict";
|
31429
31403
|
init_entity();
|
31430
|
-
|
31404
|
+
_a162 = entityKind;
|
31431
31405
|
CheckBuilder2 = class {
|
31432
31406
|
constructor(name2, value) {
|
31433
31407
|
__publicField(this, "brand");
|
@@ -31438,8 +31412,8 @@ var init_checks2 = __esm({
|
|
31438
31412
|
return new Check2(table5, this);
|
31439
31413
|
}
|
31440
31414
|
};
|
31441
|
-
__publicField(CheckBuilder2,
|
31442
|
-
|
31415
|
+
__publicField(CheckBuilder2, _a162, "SQLiteCheckBuilder");
|
31416
|
+
_a163 = entityKind;
|
31443
31417
|
Check2 = class {
|
31444
31418
|
constructor(table5, builder) {
|
31445
31419
|
__publicField(this, "name");
|
@@ -31449,18 +31423,18 @@ var init_checks2 = __esm({
|
|
31449
31423
|
this.value = builder.value;
|
31450
31424
|
}
|
31451
31425
|
};
|
31452
|
-
__publicField(Check2,
|
31426
|
+
__publicField(Check2, _a163, "SQLiteCheck");
|
31453
31427
|
}
|
31454
31428
|
});
|
31455
31429
|
|
31456
31430
|
// ../drizzle-orm/dist/sqlite-core/foreign-keys.js
|
31457
|
-
var
|
31431
|
+
var _a164, ForeignKeyBuilder2, _a165, ForeignKey2;
|
31458
31432
|
var init_foreign_keys2 = __esm({
|
31459
31433
|
"../drizzle-orm/dist/sqlite-core/foreign-keys.js"() {
|
31460
31434
|
"use strict";
|
31461
31435
|
init_entity();
|
31462
31436
|
init_table_utils();
|
31463
|
-
|
31437
|
+
_a164 = entityKind;
|
31464
31438
|
ForeignKeyBuilder2 = class {
|
31465
31439
|
constructor(config, actions) {
|
31466
31440
|
/** @internal */
|
@@ -31491,8 +31465,8 @@ var init_foreign_keys2 = __esm({
|
|
31491
31465
|
return new ForeignKey2(table5, this);
|
31492
31466
|
}
|
31493
31467
|
};
|
31494
|
-
__publicField(ForeignKeyBuilder2,
|
31495
|
-
|
31468
|
+
__publicField(ForeignKeyBuilder2, _a164, "SQLiteForeignKeyBuilder");
|
31469
|
+
_a165 = entityKind;
|
31496
31470
|
ForeignKey2 = class {
|
31497
31471
|
constructor(table5, builder) {
|
31498
31472
|
__publicField(this, "reference");
|
@@ -31516,7 +31490,7 @@ var init_foreign_keys2 = __esm({
|
|
31516
31490
|
return name2 ?? `${chunks.join("_")}_fk`;
|
31517
31491
|
}
|
31518
31492
|
};
|
31519
|
-
__publicField(ForeignKey2,
|
31493
|
+
__publicField(ForeignKey2, _a165, "SQLiteForeignKey");
|
31520
31494
|
}
|
31521
31495
|
});
|
31522
31496
|
|
@@ -31524,13 +31498,13 @@ var init_foreign_keys2 = __esm({
|
|
31524
31498
|
function uniqueKeyName2(table5, columns) {
|
31525
31499
|
return `${table5[TableName]}_${columns.join("_")}_unique`;
|
31526
31500
|
}
|
31527
|
-
var
|
31501
|
+
var _a166, UniqueConstraintBuilder2, _a167, UniqueOnConstraintBuilder2, _a168, UniqueConstraint2;
|
31528
31502
|
var init_unique_constraint2 = __esm({
|
31529
31503
|
"../drizzle-orm/dist/sqlite-core/unique-constraint.js"() {
|
31530
31504
|
"use strict";
|
31531
31505
|
init_entity();
|
31532
31506
|
init_table_utils();
|
31533
|
-
|
31507
|
+
_a166 = entityKind;
|
31534
31508
|
UniqueConstraintBuilder2 = class {
|
31535
31509
|
constructor(columns, name2) {
|
31536
31510
|
/** @internal */
|
@@ -31543,8 +31517,8 @@ var init_unique_constraint2 = __esm({
|
|
31543
31517
|
return new UniqueConstraint2(table5, this.columns, this.name);
|
31544
31518
|
}
|
31545
31519
|
};
|
31546
|
-
__publicField(UniqueConstraintBuilder2,
|
31547
|
-
|
31520
|
+
__publicField(UniqueConstraintBuilder2, _a166, "SQLiteUniqueConstraintBuilder");
|
31521
|
+
_a167 = entityKind;
|
31548
31522
|
UniqueOnConstraintBuilder2 = class {
|
31549
31523
|
constructor(name2) {
|
31550
31524
|
/** @internal */
|
@@ -31555,8 +31529,8 @@ var init_unique_constraint2 = __esm({
|
|
31555
31529
|
return new UniqueConstraintBuilder2(columns, this.name);
|
31556
31530
|
}
|
31557
31531
|
};
|
31558
|
-
__publicField(UniqueOnConstraintBuilder2,
|
31559
|
-
|
31532
|
+
__publicField(UniqueOnConstraintBuilder2, _a167, "SQLiteUniqueOnConstraintBuilder");
|
31533
|
+
_a168 = entityKind;
|
31560
31534
|
UniqueConstraint2 = class {
|
31561
31535
|
constructor(table5, columns, name2) {
|
31562
31536
|
__publicField(this, "columns");
|
@@ -31569,12 +31543,12 @@ var init_unique_constraint2 = __esm({
|
|
31569
31543
|
return this.name;
|
31570
31544
|
}
|
31571
31545
|
};
|
31572
|
-
__publicField(UniqueConstraint2,
|
31546
|
+
__publicField(UniqueConstraint2, _a168, "SQLiteUniqueConstraint");
|
31573
31547
|
}
|
31574
31548
|
});
|
31575
31549
|
|
31576
31550
|
// ../drizzle-orm/dist/sqlite-core/columns/common.js
|
31577
|
-
var
|
31551
|
+
var _a169, _b114, SQLiteColumnBuilder, _a170, _b115, SQLiteColumn;
|
31578
31552
|
var init_common3 = __esm({
|
31579
31553
|
"../drizzle-orm/dist/sqlite-core/columns/common.js"() {
|
31580
31554
|
"use strict";
|
@@ -31583,7 +31557,7 @@ var init_common3 = __esm({
|
|
31583
31557
|
init_entity();
|
31584
31558
|
init_foreign_keys2();
|
31585
31559
|
init_unique_constraint2();
|
31586
|
-
SQLiteColumnBuilder = class extends (
|
31560
|
+
SQLiteColumnBuilder = class extends (_b114 = ColumnBuilder, _a169 = entityKind, _b114) {
|
31587
31561
|
constructor() {
|
31588
31562
|
super(...arguments);
|
31589
31563
|
__publicField(this, "foreignKeyConfigs", []);
|
@@ -31624,8 +31598,8 @@ var init_common3 = __esm({
|
|
31624
31598
|
});
|
31625
31599
|
}
|
31626
31600
|
};
|
31627
|
-
__publicField(SQLiteColumnBuilder,
|
31628
|
-
SQLiteColumn = class extends (
|
31601
|
+
__publicField(SQLiteColumnBuilder, _a169, "SQLiteColumnBuilder");
|
31602
|
+
SQLiteColumn = class extends (_b115 = Column2, _a170 = entityKind, _b115) {
|
31629
31603
|
constructor(table5, config) {
|
31630
31604
|
if (!config.uniqueName) {
|
31631
31605
|
config.uniqueName = uniqueKeyName2(table5, [config.name]);
|
@@ -31634,7 +31608,7 @@ var init_common3 = __esm({
|
|
31634
31608
|
this.table = table5;
|
31635
31609
|
}
|
31636
31610
|
};
|
31637
|
-
__publicField(SQLiteColumn,
|
31611
|
+
__publicField(SQLiteColumn, _a170, "SQLiteColumn");
|
31638
31612
|
}
|
31639
31613
|
});
|
31640
31614
|
|
@@ -31649,14 +31623,14 @@ function blob(a, b) {
|
|
31649
31623
|
}
|
31650
31624
|
return new SQLiteBlobBufferBuilder(name2);
|
31651
31625
|
}
|
31652
|
-
var
|
31626
|
+
var _a171, _b116, SQLiteBigIntBuilder, _a172, _b117, SQLiteBigInt, _a173, _b118, SQLiteBlobJsonBuilder, _a174, _b119, SQLiteBlobJson, _a175, _b120, SQLiteBlobBufferBuilder, _a176, _b121, SQLiteBlobBuffer;
|
31653
31627
|
var init_blob = __esm({
|
31654
31628
|
"../drizzle-orm/dist/sqlite-core/columns/blob.js"() {
|
31655
31629
|
"use strict";
|
31656
31630
|
init_entity();
|
31657
31631
|
init_utils2();
|
31658
31632
|
init_common3();
|
31659
|
-
SQLiteBigIntBuilder = class extends (
|
31633
|
+
SQLiteBigIntBuilder = class extends (_b116 = SQLiteColumnBuilder, _a171 = entityKind, _b116) {
|
31660
31634
|
constructor(name2) {
|
31661
31635
|
super(name2, "bigint", "SQLiteBigInt");
|
31662
31636
|
}
|
@@ -31665,8 +31639,8 @@ var init_blob = __esm({
|
|
31665
31639
|
return new SQLiteBigInt(table5, this.config);
|
31666
31640
|
}
|
31667
31641
|
};
|
31668
|
-
__publicField(SQLiteBigIntBuilder,
|
31669
|
-
SQLiteBigInt = class extends (
|
31642
|
+
__publicField(SQLiteBigIntBuilder, _a171, "SQLiteBigIntBuilder");
|
31643
|
+
SQLiteBigInt = class extends (_b117 = SQLiteColumn, _a172 = entityKind, _b117) {
|
31670
31644
|
getSQLType() {
|
31671
31645
|
return "blob";
|
31672
31646
|
}
|
@@ -31684,8 +31658,8 @@ var init_blob = __esm({
|
|
31684
31658
|
return Buffer.from(value.toString());
|
31685
31659
|
}
|
31686
31660
|
};
|
31687
|
-
__publicField(SQLiteBigInt,
|
31688
|
-
SQLiteBlobJsonBuilder = class extends (
|
31661
|
+
__publicField(SQLiteBigInt, _a172, "SQLiteBigInt");
|
31662
|
+
SQLiteBlobJsonBuilder = class extends (_b118 = SQLiteColumnBuilder, _a173 = entityKind, _b118) {
|
31689
31663
|
constructor(name2) {
|
31690
31664
|
super(name2, "json", "SQLiteBlobJson");
|
31691
31665
|
}
|
@@ -31697,8 +31671,8 @@ var init_blob = __esm({
|
|
31697
31671
|
);
|
31698
31672
|
}
|
31699
31673
|
};
|
31700
|
-
__publicField(SQLiteBlobJsonBuilder,
|
31701
|
-
SQLiteBlobJson = class extends (
|
31674
|
+
__publicField(SQLiteBlobJsonBuilder, _a173, "SQLiteBlobJsonBuilder");
|
31675
|
+
SQLiteBlobJson = class extends (_b119 = SQLiteColumn, _a174 = entityKind, _b119) {
|
31702
31676
|
getSQLType() {
|
31703
31677
|
return "blob";
|
31704
31678
|
}
|
@@ -31716,8 +31690,8 @@ var init_blob = __esm({
|
|
31716
31690
|
return Buffer.from(JSON.stringify(value));
|
31717
31691
|
}
|
31718
31692
|
};
|
31719
|
-
__publicField(SQLiteBlobJson,
|
31720
|
-
SQLiteBlobBufferBuilder = class extends (
|
31693
|
+
__publicField(SQLiteBlobJson, _a174, "SQLiteBlobJson");
|
31694
|
+
SQLiteBlobBufferBuilder = class extends (_b120 = SQLiteColumnBuilder, _a175 = entityKind, _b120) {
|
31721
31695
|
constructor(name2) {
|
31722
31696
|
super(name2, "buffer", "SQLiteBlobBuffer");
|
31723
31697
|
}
|
@@ -31726,13 +31700,13 @@ var init_blob = __esm({
|
|
31726
31700
|
return new SQLiteBlobBuffer(table5, this.config);
|
31727
31701
|
}
|
31728
31702
|
};
|
31729
|
-
__publicField(SQLiteBlobBufferBuilder,
|
31730
|
-
SQLiteBlobBuffer = class extends (
|
31703
|
+
__publicField(SQLiteBlobBufferBuilder, _a175, "SQLiteBlobBufferBuilder");
|
31704
|
+
SQLiteBlobBuffer = class extends (_b121 = SQLiteColumn, _a176 = entityKind, _b121) {
|
31731
31705
|
getSQLType() {
|
31732
31706
|
return "blob";
|
31733
31707
|
}
|
31734
31708
|
};
|
31735
|
-
__publicField(SQLiteBlobBuffer,
|
31709
|
+
__publicField(SQLiteBlobBuffer, _a176, "SQLiteBlobBuffer");
|
31736
31710
|
}
|
31737
31711
|
});
|
31738
31712
|
|
@@ -31747,14 +31721,14 @@ function customType2(customTypeParams) {
|
|
31747
31721
|
);
|
31748
31722
|
};
|
31749
31723
|
}
|
31750
|
-
var
|
31724
|
+
var _a177, _b122, SQLiteCustomColumnBuilder, _a178, _b123, SQLiteCustomColumn;
|
31751
31725
|
var init_custom2 = __esm({
|
31752
31726
|
"../drizzle-orm/dist/sqlite-core/columns/custom.js"() {
|
31753
31727
|
"use strict";
|
31754
31728
|
init_entity();
|
31755
31729
|
init_utils2();
|
31756
31730
|
init_common3();
|
31757
|
-
SQLiteCustomColumnBuilder = class extends (
|
31731
|
+
SQLiteCustomColumnBuilder = class extends (_b122 = SQLiteColumnBuilder, _a177 = entityKind, _b122) {
|
31758
31732
|
constructor(name2, fieldConfig, customTypeParams) {
|
31759
31733
|
super(name2, "custom", "SQLiteCustomColumn");
|
31760
31734
|
this.config.fieldConfig = fieldConfig;
|
@@ -31768,8 +31742,8 @@ var init_custom2 = __esm({
|
|
31768
31742
|
);
|
31769
31743
|
}
|
31770
31744
|
};
|
31771
|
-
__publicField(SQLiteCustomColumnBuilder,
|
31772
|
-
SQLiteCustomColumn = class extends (
|
31745
|
+
__publicField(SQLiteCustomColumnBuilder, _a177, "SQLiteCustomColumnBuilder");
|
31746
|
+
SQLiteCustomColumn = class extends (_b123 = SQLiteColumn, _a178 = entityKind, _b123) {
|
31773
31747
|
constructor(table5, config) {
|
31774
31748
|
super(table5, config);
|
31775
31749
|
__publicField(this, "sqlName");
|
@@ -31789,7 +31763,7 @@ var init_custom2 = __esm({
|
|
31789
31763
|
return typeof this.mapTo === "function" ? this.mapTo(value) : value;
|
31790
31764
|
}
|
31791
31765
|
};
|
31792
|
-
__publicField(SQLiteCustomColumn,
|
31766
|
+
__publicField(SQLiteCustomColumn, _a178, "SQLiteCustomColumn");
|
31793
31767
|
}
|
31794
31768
|
});
|
31795
31769
|
|
@@ -31804,7 +31778,7 @@ function integer2(a, b) {
|
|
31804
31778
|
}
|
31805
31779
|
return new SQLiteIntegerBuilder(name2);
|
31806
31780
|
}
|
31807
|
-
var
|
31781
|
+
var _a179, _b124, SQLiteBaseIntegerBuilder, _a180, _b125, SQLiteBaseInteger, _a181, _b126, SQLiteIntegerBuilder, _a182, _b127, SQLiteInteger, _a183, _b128, SQLiteTimestampBuilder, _a184, _b129, SQLiteTimestamp, _a185, _b130, SQLiteBooleanBuilder, _a186, _b131, SQLiteBoolean;
|
31808
31782
|
var init_integer2 = __esm({
|
31809
31783
|
"../drizzle-orm/dist/sqlite-core/columns/integer.js"() {
|
31810
31784
|
"use strict";
|
@@ -31812,7 +31786,7 @@ var init_integer2 = __esm({
|
|
31812
31786
|
init_sql();
|
31813
31787
|
init_utils2();
|
31814
31788
|
init_common3();
|
31815
|
-
SQLiteBaseIntegerBuilder = class extends (
|
31789
|
+
SQLiteBaseIntegerBuilder = class extends (_b124 = SQLiteColumnBuilder, _a179 = entityKind, _b124) {
|
31816
31790
|
constructor(name2, dataType, columnType) {
|
31817
31791
|
super(name2, dataType, columnType);
|
31818
31792
|
this.config.autoIncrement = false;
|
@@ -31825,8 +31799,8 @@ var init_integer2 = __esm({
|
|
31825
31799
|
return super.primaryKey();
|
31826
31800
|
}
|
31827
31801
|
};
|
31828
|
-
__publicField(SQLiteBaseIntegerBuilder,
|
31829
|
-
SQLiteBaseInteger = class extends (
|
31802
|
+
__publicField(SQLiteBaseIntegerBuilder, _a179, "SQLiteBaseIntegerBuilder");
|
31803
|
+
SQLiteBaseInteger = class extends (_b125 = SQLiteColumn, _a180 = entityKind, _b125) {
|
31830
31804
|
constructor() {
|
31831
31805
|
super(...arguments);
|
31832
31806
|
__publicField(this, "autoIncrement", this.config.autoIncrement);
|
@@ -31835,8 +31809,8 @@ var init_integer2 = __esm({
|
|
31835
31809
|
return "integer";
|
31836
31810
|
}
|
31837
31811
|
};
|
31838
|
-
__publicField(SQLiteBaseInteger,
|
31839
|
-
SQLiteIntegerBuilder = class extends (
|
31812
|
+
__publicField(SQLiteBaseInteger, _a180, "SQLiteBaseInteger");
|
31813
|
+
SQLiteIntegerBuilder = class extends (_b126 = SQLiteBaseIntegerBuilder, _a181 = entityKind, _b126) {
|
31840
31814
|
constructor(name2) {
|
31841
31815
|
super(name2, "number", "SQLiteInteger");
|
31842
31816
|
}
|
@@ -31847,11 +31821,11 @@ var init_integer2 = __esm({
|
|
31847
31821
|
);
|
31848
31822
|
}
|
31849
31823
|
};
|
31850
|
-
__publicField(SQLiteIntegerBuilder,
|
31851
|
-
SQLiteInteger = class extends (
|
31824
|
+
__publicField(SQLiteIntegerBuilder, _a181, "SQLiteIntegerBuilder");
|
31825
|
+
SQLiteInteger = class extends (_b127 = SQLiteBaseInteger, _a182 = entityKind, _b127) {
|
31852
31826
|
};
|
31853
|
-
__publicField(SQLiteInteger,
|
31854
|
-
SQLiteTimestampBuilder = class extends (
|
31827
|
+
__publicField(SQLiteInteger, _a182, "SQLiteInteger");
|
31828
|
+
SQLiteTimestampBuilder = class extends (_b128 = SQLiteBaseIntegerBuilder, _a183 = entityKind, _b128) {
|
31855
31829
|
constructor(name2, mode) {
|
31856
31830
|
super(name2, "date", "SQLiteTimestamp");
|
31857
31831
|
this.config.mode = mode;
|
@@ -31871,8 +31845,8 @@ var init_integer2 = __esm({
|
|
31871
31845
|
);
|
31872
31846
|
}
|
31873
31847
|
};
|
31874
|
-
__publicField(SQLiteTimestampBuilder,
|
31875
|
-
SQLiteTimestamp = class extends (
|
31848
|
+
__publicField(SQLiteTimestampBuilder, _a183, "SQLiteTimestampBuilder");
|
31849
|
+
SQLiteTimestamp = class extends (_b129 = SQLiteBaseInteger, _a184 = entityKind, _b129) {
|
31876
31850
|
constructor() {
|
31877
31851
|
super(...arguments);
|
31878
31852
|
__publicField(this, "mode", this.config.mode);
|
@@ -31891,8 +31865,8 @@ var init_integer2 = __esm({
|
|
31891
31865
|
return unix;
|
31892
31866
|
}
|
31893
31867
|
};
|
31894
|
-
__publicField(SQLiteTimestamp,
|
31895
|
-
SQLiteBooleanBuilder = class extends (
|
31868
|
+
__publicField(SQLiteTimestamp, _a184, "SQLiteTimestamp");
|
31869
|
+
SQLiteBooleanBuilder = class extends (_b130 = SQLiteBaseIntegerBuilder, _a185 = entityKind, _b130) {
|
31896
31870
|
constructor(name2, mode) {
|
31897
31871
|
super(name2, "boolean", "SQLiteBoolean");
|
31898
31872
|
this.config.mode = mode;
|
@@ -31904,8 +31878,8 @@ var init_integer2 = __esm({
|
|
31904
31878
|
);
|
31905
31879
|
}
|
31906
31880
|
};
|
31907
|
-
__publicField(SQLiteBooleanBuilder,
|
31908
|
-
SQLiteBoolean = class extends (
|
31881
|
+
__publicField(SQLiteBooleanBuilder, _a185, "SQLiteBooleanBuilder");
|
31882
|
+
SQLiteBoolean = class extends (_b131 = SQLiteBaseInteger, _a186 = entityKind, _b131) {
|
31909
31883
|
constructor() {
|
31910
31884
|
super(...arguments);
|
31911
31885
|
__publicField(this, "mode", this.config.mode);
|
@@ -31917,7 +31891,7 @@ var init_integer2 = __esm({
|
|
31917
31891
|
return value ? 1 : 0;
|
31918
31892
|
}
|
31919
31893
|
};
|
31920
|
-
__publicField(SQLiteBoolean,
|
31894
|
+
__publicField(SQLiteBoolean, _a186, "SQLiteBoolean");
|
31921
31895
|
}
|
31922
31896
|
});
|
31923
31897
|
|
@@ -31925,13 +31899,13 @@ var init_integer2 = __esm({
|
|
31925
31899
|
function numeric2(name2) {
|
31926
31900
|
return new SQLiteNumericBuilder(name2 ?? "");
|
31927
31901
|
}
|
31928
|
-
var
|
31902
|
+
var _a187, _b132, SQLiteNumericBuilder, _a188, _b133, SQLiteNumeric;
|
31929
31903
|
var init_numeric2 = __esm({
|
31930
31904
|
"../drizzle-orm/dist/sqlite-core/columns/numeric.js"() {
|
31931
31905
|
"use strict";
|
31932
31906
|
init_entity();
|
31933
31907
|
init_common3();
|
31934
|
-
SQLiteNumericBuilder = class extends (
|
31908
|
+
SQLiteNumericBuilder = class extends (_b132 = SQLiteColumnBuilder, _a187 = entityKind, _b132) {
|
31935
31909
|
constructor(name2) {
|
31936
31910
|
super(name2, "string", "SQLiteNumeric");
|
31937
31911
|
}
|
@@ -31943,13 +31917,13 @@ var init_numeric2 = __esm({
|
|
31943
31917
|
);
|
31944
31918
|
}
|
31945
31919
|
};
|
31946
|
-
__publicField(SQLiteNumericBuilder,
|
31947
|
-
SQLiteNumeric = class extends (
|
31920
|
+
__publicField(SQLiteNumericBuilder, _a187, "SQLiteNumericBuilder");
|
31921
|
+
SQLiteNumeric = class extends (_b133 = SQLiteColumn, _a188 = entityKind, _b133) {
|
31948
31922
|
getSQLType() {
|
31949
31923
|
return "numeric";
|
31950
31924
|
}
|
31951
31925
|
};
|
31952
|
-
__publicField(SQLiteNumeric,
|
31926
|
+
__publicField(SQLiteNumeric, _a188, "SQLiteNumeric");
|
31953
31927
|
}
|
31954
31928
|
});
|
31955
31929
|
|
@@ -31957,13 +31931,13 @@ var init_numeric2 = __esm({
|
|
31957
31931
|
function real2(name2) {
|
31958
31932
|
return new SQLiteRealBuilder(name2 ?? "");
|
31959
31933
|
}
|
31960
|
-
var
|
31934
|
+
var _a189, _b134, SQLiteRealBuilder, _a190, _b135, SQLiteReal;
|
31961
31935
|
var init_real2 = __esm({
|
31962
31936
|
"../drizzle-orm/dist/sqlite-core/columns/real.js"() {
|
31963
31937
|
"use strict";
|
31964
31938
|
init_entity();
|
31965
31939
|
init_common3();
|
31966
|
-
SQLiteRealBuilder = class extends (
|
31940
|
+
SQLiteRealBuilder = class extends (_b134 = SQLiteColumnBuilder, _a189 = entityKind, _b134) {
|
31967
31941
|
constructor(name2) {
|
31968
31942
|
super(name2, "number", "SQLiteReal");
|
31969
31943
|
}
|
@@ -31972,13 +31946,13 @@ var init_real2 = __esm({
|
|
31972
31946
|
return new SQLiteReal(table5, this.config);
|
31973
31947
|
}
|
31974
31948
|
};
|
31975
|
-
__publicField(SQLiteRealBuilder,
|
31976
|
-
SQLiteReal = class extends (
|
31949
|
+
__publicField(SQLiteRealBuilder, _a189, "SQLiteRealBuilder");
|
31950
|
+
SQLiteReal = class extends (_b135 = SQLiteColumn, _a190 = entityKind, _b135) {
|
31977
31951
|
getSQLType() {
|
31978
31952
|
return "real";
|
31979
31953
|
}
|
31980
31954
|
};
|
31981
|
-
__publicField(SQLiteReal,
|
31955
|
+
__publicField(SQLiteReal, _a190, "SQLiteReal");
|
31982
31956
|
}
|
31983
31957
|
});
|
31984
31958
|
|
@@ -31990,14 +31964,14 @@ function text2(a, b = {}) {
|
|
31990
31964
|
}
|
31991
31965
|
return new SQLiteTextBuilder(name2, config);
|
31992
31966
|
}
|
31993
|
-
var
|
31967
|
+
var _a191, _b136, SQLiteTextBuilder, _a192, _b137, SQLiteText, _a193, _b138, SQLiteTextJsonBuilder, _a194, _b139, SQLiteTextJson;
|
31994
31968
|
var init_text2 = __esm({
|
31995
31969
|
"../drizzle-orm/dist/sqlite-core/columns/text.js"() {
|
31996
31970
|
"use strict";
|
31997
31971
|
init_entity();
|
31998
31972
|
init_utils2();
|
31999
31973
|
init_common3();
|
32000
|
-
SQLiteTextBuilder = class extends (
|
31974
|
+
SQLiteTextBuilder = class extends (_b136 = SQLiteColumnBuilder, _a191 = entityKind, _b136) {
|
32001
31975
|
constructor(name2, config) {
|
32002
31976
|
super(name2, "string", "SQLiteText");
|
32003
31977
|
this.config.enumValues = config.enum;
|
@@ -32011,8 +31985,8 @@ var init_text2 = __esm({
|
|
32011
31985
|
);
|
32012
31986
|
}
|
32013
31987
|
};
|
32014
|
-
__publicField(SQLiteTextBuilder,
|
32015
|
-
SQLiteText = class extends (
|
31988
|
+
__publicField(SQLiteTextBuilder, _a191, "SQLiteTextBuilder");
|
31989
|
+
SQLiteText = class extends (_b137 = SQLiteColumn, _a192 = entityKind, _b137) {
|
32016
31990
|
constructor(table5, config) {
|
32017
31991
|
super(table5, config);
|
32018
31992
|
__publicField(this, "enumValues", this.config.enumValues);
|
@@ -32022,8 +31996,8 @@ var init_text2 = __esm({
|
|
32022
31996
|
return `text${this.config.length ? `(${this.config.length})` : ""}`;
|
32023
31997
|
}
|
32024
31998
|
};
|
32025
|
-
__publicField(SQLiteText,
|
32026
|
-
SQLiteTextJsonBuilder = class extends (
|
31999
|
+
__publicField(SQLiteText, _a192, "SQLiteText");
|
32000
|
+
SQLiteTextJsonBuilder = class extends (_b138 = SQLiteColumnBuilder, _a193 = entityKind, _b138) {
|
32027
32001
|
constructor(name2) {
|
32028
32002
|
super(name2, "json", "SQLiteTextJson");
|
32029
32003
|
}
|
@@ -32035,8 +32009,8 @@ var init_text2 = __esm({
|
|
32035
32009
|
);
|
32036
32010
|
}
|
32037
32011
|
};
|
32038
|
-
__publicField(SQLiteTextJsonBuilder,
|
32039
|
-
SQLiteTextJson = class extends (
|
32012
|
+
__publicField(SQLiteTextJsonBuilder, _a193, "SQLiteTextJsonBuilder");
|
32013
|
+
SQLiteTextJson = class extends (_b139 = SQLiteColumn, _a194 = entityKind, _b139) {
|
32040
32014
|
getSQLType() {
|
32041
32015
|
return "text";
|
32042
32016
|
}
|
@@ -32047,7 +32021,7 @@ var init_text2 = __esm({
|
|
32047
32021
|
return JSON.stringify(value);
|
32048
32022
|
}
|
32049
32023
|
};
|
32050
|
-
__publicField(SQLiteTextJson,
|
32024
|
+
__publicField(SQLiteTextJson, _a194, "SQLiteTextJson");
|
32051
32025
|
}
|
32052
32026
|
});
|
32053
32027
|
|
@@ -32109,7 +32083,7 @@ function sqliteTableBase(name2, columns, extraConfig, schema5, baseName = name2)
|
|
32109
32083
|
}
|
32110
32084
|
return table5;
|
32111
32085
|
}
|
32112
|
-
var InlineForeignKeys2,
|
32086
|
+
var InlineForeignKeys2, _a195, _b140, _c7, _d3, _e3, SQLiteTable, sqliteTable;
|
32113
32087
|
var init_table3 = __esm({
|
32114
32088
|
"../drizzle-orm/dist/sqlite-core/table.js"() {
|
32115
32089
|
"use strict";
|
@@ -32117,15 +32091,15 @@ var init_table3 = __esm({
|
|
32117
32091
|
init_table();
|
32118
32092
|
init_all2();
|
32119
32093
|
InlineForeignKeys2 = Symbol.for("drizzle:SQLiteInlineForeignKeys");
|
32120
|
-
SQLiteTable = class extends (_e3 = Table2, _d3 = entityKind, _c7 = Table2.Symbol.Columns,
|
32094
|
+
SQLiteTable = class extends (_e3 = Table2, _d3 = entityKind, _c7 = Table2.Symbol.Columns, _b140 = InlineForeignKeys2, _a195 = Table2.Symbol.ExtraConfigBuilder, _e3) {
|
32121
32095
|
constructor() {
|
32122
32096
|
super(...arguments);
|
32123
32097
|
/** @internal */
|
32124
32098
|
__publicField(this, _c7);
|
32125
32099
|
/** @internal */
|
32126
|
-
__publicField(this,
|
32100
|
+
__publicField(this, _b140, []);
|
32127
32101
|
/** @internal */
|
32128
|
-
__publicField(this,
|
32102
|
+
__publicField(this, _a195);
|
32129
32103
|
}
|
32130
32104
|
};
|
32131
32105
|
__publicField(SQLiteTable, _d3, "SQLiteTable");
|
@@ -32140,7 +32114,7 @@ var init_table3 = __esm({
|
|
32140
32114
|
});
|
32141
32115
|
|
32142
32116
|
// ../drizzle-orm/dist/sqlite-core/query-builders/delete.js
|
32143
|
-
var
|
32117
|
+
var _a196, _b141, SQLiteDeleteBase;
|
32144
32118
|
var init_delete2 = __esm({
|
32145
32119
|
"../drizzle-orm/dist/sqlite-core/query-builders/delete.js"() {
|
32146
32120
|
"use strict";
|
@@ -32150,7 +32124,7 @@ var init_delete2 = __esm({
|
|
32150
32124
|
init_table3();
|
32151
32125
|
init_table();
|
32152
32126
|
init_utils2();
|
32153
|
-
SQLiteDeleteBase = class extends (
|
32127
|
+
SQLiteDeleteBase = class extends (_b141 = QueryPromise, _a196 = entityKind, _b141) {
|
32154
32128
|
constructor(table5, session, dialect6, withList) {
|
32155
32129
|
super();
|
32156
32130
|
/** @internal */
|
@@ -32256,25 +32230,25 @@ var init_delete2 = __esm({
|
|
32256
32230
|
return this;
|
32257
32231
|
}
|
32258
32232
|
};
|
32259
|
-
__publicField(SQLiteDeleteBase,
|
32233
|
+
__publicField(SQLiteDeleteBase, _a196, "SQLiteDelete");
|
32260
32234
|
}
|
32261
32235
|
});
|
32262
32236
|
|
32263
32237
|
// ../drizzle-orm/dist/sqlite-core/view-base.js
|
32264
|
-
var
|
32238
|
+
var _a197, _b142, SQLiteViewBase;
|
32265
32239
|
var init_view_base2 = __esm({
|
32266
32240
|
"../drizzle-orm/dist/sqlite-core/view-base.js"() {
|
32267
32241
|
"use strict";
|
32268
32242
|
init_entity();
|
32269
32243
|
init_sql();
|
32270
|
-
SQLiteViewBase = class extends (
|
32244
|
+
SQLiteViewBase = class extends (_b142 = View3, _a197 = entityKind, _b142) {
|
32271
32245
|
};
|
32272
|
-
__publicField(SQLiteViewBase,
|
32246
|
+
__publicField(SQLiteViewBase, _a197, "SQLiteViewBase");
|
32273
32247
|
}
|
32274
32248
|
});
|
32275
32249
|
|
32276
32250
|
// ../drizzle-orm/dist/sqlite-core/dialect.js
|
32277
|
-
var
|
32251
|
+
var _a198, SQLiteDialect, _a199, _b143, SQLiteSyncDialect, _a200, _b144, SQLiteAsyncDialect;
|
32278
32252
|
var init_dialect2 = __esm({
|
32279
32253
|
"../drizzle-orm/dist/sqlite-core/dialect.js"() {
|
32280
32254
|
"use strict";
|
@@ -32293,7 +32267,7 @@ var init_dialect2 = __esm({
|
|
32293
32267
|
init_utils2();
|
32294
32268
|
init_view_common();
|
32295
32269
|
init_view_base2();
|
32296
|
-
|
32270
|
+
_a198 = entityKind;
|
32297
32271
|
SQLiteDialect = class {
|
32298
32272
|
constructor(config) {
|
32299
32273
|
/** @internal */
|
@@ -32835,8 +32809,8 @@ var init_dialect2 = __esm({
|
|
32835
32809
|
};
|
32836
32810
|
}
|
32837
32811
|
};
|
32838
|
-
__publicField(SQLiteDialect,
|
32839
|
-
SQLiteSyncDialect = class extends (
|
32812
|
+
__publicField(SQLiteDialect, _a198, "SQLiteDialect");
|
32813
|
+
SQLiteSyncDialect = class extends (_b143 = SQLiteDialect, _a199 = entityKind, _b143) {
|
32840
32814
|
migrate(migrations, session, config) {
|
32841
32815
|
const migrationsTable = config === void 0 ? "__drizzle_migrations" : typeof config === "string" ? "__drizzle_migrations" : config.migrationsTable ?? "__drizzle_migrations";
|
32842
32816
|
const migrationTableCreate = sql`
|
@@ -32870,8 +32844,8 @@ var init_dialect2 = __esm({
|
|
32870
32844
|
}
|
32871
32845
|
}
|
32872
32846
|
};
|
32873
|
-
__publicField(SQLiteSyncDialect,
|
32874
|
-
SQLiteAsyncDialect = class extends (
|
32847
|
+
__publicField(SQLiteSyncDialect, _a199, "SQLiteSyncDialect");
|
32848
|
+
SQLiteAsyncDialect = class extends (_b144 = SQLiteDialect, _a200 = entityKind, _b144) {
|
32875
32849
|
async migrate(migrations, session, config) {
|
32876
32850
|
const migrationsTable = config === void 0 ? "__drizzle_migrations" : typeof config === "string" ? "__drizzle_migrations" : config.migrationsTable ?? "__drizzle_migrations";
|
32877
32851
|
const migrationTableCreate = sql`
|
@@ -32900,7 +32874,7 @@ var init_dialect2 = __esm({
|
|
32900
32874
|
});
|
32901
32875
|
}
|
32902
32876
|
};
|
32903
|
-
__publicField(SQLiteAsyncDialect,
|
32877
|
+
__publicField(SQLiteAsyncDialect, _a200, "SQLiteAsyncDialect");
|
32904
32878
|
}
|
32905
32879
|
});
|
32906
32880
|
|
@@ -32922,7 +32896,7 @@ function createSetOperator2(type, isAll) {
|
|
32922
32896
|
return leftSelect.addSetOperators(setOperators);
|
32923
32897
|
};
|
32924
32898
|
}
|
32925
|
-
var
|
32899
|
+
var _a201, SQLiteSelectBuilder, _a202, _b145, SQLiteSelectQueryBuilderBase, _a203, _b146, SQLiteSelectBase, getSQLiteSetOperators, union2, unionAll2, intersect2, except2;
|
32926
32900
|
var init_select3 = __esm({
|
32927
32901
|
"../drizzle-orm/dist/sqlite-core/query-builders/select.js"() {
|
32928
32902
|
"use strict";
|
@@ -32936,7 +32910,7 @@ var init_select3 = __esm({
|
|
32936
32910
|
init_utils2();
|
32937
32911
|
init_view_common();
|
32938
32912
|
init_view_base2();
|
32939
|
-
|
32913
|
+
_a201 = entityKind;
|
32940
32914
|
SQLiteSelectBuilder = class {
|
32941
32915
|
constructor(config) {
|
32942
32916
|
__publicField(this, "fields");
|
@@ -32977,8 +32951,8 @@ var init_select3 = __esm({
|
|
32977
32951
|
});
|
32978
32952
|
}
|
32979
32953
|
};
|
32980
|
-
__publicField(SQLiteSelectBuilder,
|
32981
|
-
SQLiteSelectQueryBuilderBase = class extends (
|
32954
|
+
__publicField(SQLiteSelectBuilder, _a201, "SQLiteSelectBuilder");
|
32955
|
+
SQLiteSelectQueryBuilderBase = class extends (_b145 = TypedQueryBuilder, _a202 = entityKind, _b145) {
|
32982
32956
|
constructor({ table: table5, fields, isPartialSelect, session, dialect: dialect6, withList, distinct }) {
|
32983
32957
|
super();
|
32984
32958
|
__publicField(this, "_");
|
@@ -33483,8 +33457,8 @@ var init_select3 = __esm({
|
|
33483
33457
|
return this;
|
33484
33458
|
}
|
33485
33459
|
};
|
33486
|
-
__publicField(SQLiteSelectQueryBuilderBase,
|
33487
|
-
SQLiteSelectBase = class extends (
|
33460
|
+
__publicField(SQLiteSelectQueryBuilderBase, _a202, "SQLiteSelectQueryBuilder");
|
33461
|
+
SQLiteSelectBase = class extends (_b146 = SQLiteSelectQueryBuilderBase, _a203 = entityKind, _b146) {
|
33488
33462
|
constructor() {
|
33489
33463
|
super(...arguments);
|
33490
33464
|
__publicField(this, "run", (placeholderValues) => {
|
@@ -33522,7 +33496,7 @@ var init_select3 = __esm({
|
|
33522
33496
|
return this.all();
|
33523
33497
|
}
|
33524
33498
|
};
|
33525
|
-
__publicField(SQLiteSelectBase,
|
33499
|
+
__publicField(SQLiteSelectBase, _a203, "SQLiteSelect");
|
33526
33500
|
applyMixins(SQLiteSelectBase, [QueryPromise]);
|
33527
33501
|
getSQLiteSetOperators = () => ({
|
33528
33502
|
union: union2,
|
@@ -33538,7 +33512,7 @@ var init_select3 = __esm({
|
|
33538
33512
|
});
|
33539
33513
|
|
33540
33514
|
// ../drizzle-orm/dist/sqlite-core/query-builders/query-builder.js
|
33541
|
-
var
|
33515
|
+
var _a204, QueryBuilder2;
|
33542
33516
|
var init_query_builder3 = __esm({
|
33543
33517
|
"../drizzle-orm/dist/sqlite-core/query-builders/query-builder.js"() {
|
33544
33518
|
"use strict";
|
@@ -33547,7 +33521,7 @@ var init_query_builder3 = __esm({
|
|
33547
33521
|
init_dialect2();
|
33548
33522
|
init_subquery();
|
33549
33523
|
init_select3();
|
33550
|
-
|
33524
|
+
_a204 = entityKind;
|
33551
33525
|
QueryBuilder2 = class {
|
33552
33526
|
constructor(dialect6) {
|
33553
33527
|
__publicField(this, "dialect");
|
@@ -33613,12 +33587,12 @@ var init_query_builder3 = __esm({
|
|
33613
33587
|
return this.dialect;
|
33614
33588
|
}
|
33615
33589
|
};
|
33616
|
-
__publicField(QueryBuilder2,
|
33590
|
+
__publicField(QueryBuilder2, _a204, "SQLiteQueryBuilder");
|
33617
33591
|
}
|
33618
33592
|
});
|
33619
33593
|
|
33620
33594
|
// ../drizzle-orm/dist/sqlite-core/query-builders/insert.js
|
33621
|
-
var
|
33595
|
+
var _a205, SQLiteInsertBuilder, _a206, _b147, SQLiteInsertBase;
|
33622
33596
|
var init_insert2 = __esm({
|
33623
33597
|
"../drizzle-orm/dist/sqlite-core/query-builders/insert.js"() {
|
33624
33598
|
"use strict";
|
@@ -33629,7 +33603,7 @@ var init_insert2 = __esm({
|
|
33629
33603
|
init_table();
|
33630
33604
|
init_utils2();
|
33631
33605
|
init_query_builder3();
|
33632
|
-
|
33606
|
+
_a205 = entityKind;
|
33633
33607
|
SQLiteInsertBuilder = class {
|
33634
33608
|
constructor(table5, session, dialect6, withList) {
|
33635
33609
|
this.table = table5;
|
@@ -33663,8 +33637,8 @@ var init_insert2 = __esm({
|
|
33663
33637
|
return new SQLiteInsertBase(this.table, select, this.session, this.dialect, this.withList, true);
|
33664
33638
|
}
|
33665
33639
|
};
|
33666
|
-
__publicField(SQLiteInsertBuilder,
|
33667
|
-
SQLiteInsertBase = class extends (
|
33640
|
+
__publicField(SQLiteInsertBuilder, _a205, "SQLiteInsertBuilder");
|
33641
|
+
SQLiteInsertBase = class extends (_b147 = QueryPromise, _a206 = entityKind, _b147) {
|
33668
33642
|
constructor(table5, values, session, dialect6, withList, select) {
|
33669
33643
|
super();
|
33670
33644
|
/** @internal */
|
@@ -33797,7 +33771,7 @@ var init_insert2 = __esm({
|
|
33797
33771
|
return this;
|
33798
33772
|
}
|
33799
33773
|
};
|
33800
|
-
__publicField(SQLiteInsertBase,
|
33774
|
+
__publicField(SQLiteInsertBase, _a206, "SQLiteInsert");
|
33801
33775
|
}
|
33802
33776
|
});
|
33803
33777
|
|
@@ -33809,7 +33783,7 @@ var init_select_types2 = __esm({
|
|
33809
33783
|
});
|
33810
33784
|
|
33811
33785
|
// ../drizzle-orm/dist/sqlite-core/query-builders/update.js
|
33812
|
-
var
|
33786
|
+
var _a207, SQLiteUpdateBuilder, _a208, _b148, SQLiteUpdateBase;
|
33813
33787
|
var init_update2 = __esm({
|
33814
33788
|
"../drizzle-orm/dist/sqlite-core/query-builders/update.js"() {
|
33815
33789
|
"use strict";
|
@@ -33822,7 +33796,7 @@ var init_update2 = __esm({
|
|
33822
33796
|
init_utils2();
|
33823
33797
|
init_view_common();
|
33824
33798
|
init_view_base2();
|
33825
|
-
|
33799
|
+
_a207 = entityKind;
|
33826
33800
|
SQLiteUpdateBuilder = class {
|
33827
33801
|
constructor(table5, session, dialect6, withList) {
|
33828
33802
|
this.table = table5;
|
@@ -33840,8 +33814,8 @@ var init_update2 = __esm({
|
|
33840
33814
|
);
|
33841
33815
|
}
|
33842
33816
|
};
|
33843
|
-
__publicField(SQLiteUpdateBuilder,
|
33844
|
-
SQLiteUpdateBase = class extends (
|
33817
|
+
__publicField(SQLiteUpdateBuilder, _a207, "SQLiteUpdateBuilder");
|
33818
|
+
SQLiteUpdateBase = class extends (_b148 = QueryPromise, _a208 = entityKind, _b148) {
|
33845
33819
|
constructor(table5, set, session, dialect6, withList) {
|
33846
33820
|
super();
|
33847
33821
|
/** @internal */
|
@@ -33981,7 +33955,7 @@ var init_update2 = __esm({
|
|
33981
33955
|
return this;
|
33982
33956
|
}
|
33983
33957
|
};
|
33984
|
-
__publicField(SQLiteUpdateBase,
|
33958
|
+
__publicField(SQLiteUpdateBase, _a208, "SQLiteUpdate");
|
33985
33959
|
}
|
33986
33960
|
});
|
33987
33961
|
|
@@ -33999,17 +33973,17 @@ var init_query_builders2 = __esm({
|
|
33999
33973
|
});
|
34000
33974
|
|
34001
33975
|
// ../drizzle-orm/dist/sqlite-core/query-builders/count.js
|
34002
|
-
var
|
33976
|
+
var _a209, _b149, _c8, _SQLiteCountBuilder, SQLiteCountBuilder;
|
34003
33977
|
var init_count2 = __esm({
|
34004
33978
|
"../drizzle-orm/dist/sqlite-core/query-builders/count.js"() {
|
34005
33979
|
"use strict";
|
34006
33980
|
init_entity();
|
34007
33981
|
init_sql();
|
34008
|
-
_SQLiteCountBuilder = class _SQLiteCountBuilder extends (_c8 = SQL,
|
33982
|
+
_SQLiteCountBuilder = class _SQLiteCountBuilder extends (_c8 = SQL, _b149 = entityKind, _a209 = Symbol.toStringTag, _c8) {
|
34009
33983
|
constructor(params) {
|
34010
33984
|
super(_SQLiteCountBuilder.buildEmbeddedCount(params.source, params.filters).queryChunks);
|
34011
33985
|
__publicField(this, "sql");
|
34012
|
-
__publicField(this,
|
33986
|
+
__publicField(this, _a209, "SQLiteCountBuilderAsync");
|
34013
33987
|
__publicField(this, "session");
|
34014
33988
|
this.params = params;
|
34015
33989
|
this.session = params.session;
|
@@ -34046,20 +34020,20 @@ var init_count2 = __esm({
|
|
34046
34020
|
);
|
34047
34021
|
}
|
34048
34022
|
};
|
34049
|
-
__publicField(_SQLiteCountBuilder,
|
34023
|
+
__publicField(_SQLiteCountBuilder, _b149, "SQLiteCountBuilderAsync");
|
34050
34024
|
SQLiteCountBuilder = _SQLiteCountBuilder;
|
34051
34025
|
}
|
34052
34026
|
});
|
34053
34027
|
|
34054
34028
|
// ../drizzle-orm/dist/sqlite-core/query-builders/query.js
|
34055
|
-
var
|
34029
|
+
var _a210, RelationalQueryBuilder2, _a211, _b150, SQLiteRelationalQuery, _a212, _b151, SQLiteSyncRelationalQuery;
|
34056
34030
|
var init_query2 = __esm({
|
34057
34031
|
"../drizzle-orm/dist/sqlite-core/query-builders/query.js"() {
|
34058
34032
|
"use strict";
|
34059
34033
|
init_entity();
|
34060
34034
|
init_query_promise();
|
34061
34035
|
init_relations();
|
34062
|
-
|
34036
|
+
_a210 = entityKind;
|
34063
34037
|
RelationalQueryBuilder2 = class {
|
34064
34038
|
constructor(mode, fullSchema, schema5, tableNamesMap, table5, tableConfig, dialect6, session) {
|
34065
34039
|
this.mode = mode;
|
@@ -34118,8 +34092,8 @@ var init_query2 = __esm({
|
|
34118
34092
|
);
|
34119
34093
|
}
|
34120
34094
|
};
|
34121
|
-
__publicField(RelationalQueryBuilder2,
|
34122
|
-
SQLiteRelationalQuery = class extends (
|
34095
|
+
__publicField(RelationalQueryBuilder2, _a210, "SQLiteAsyncRelationalQueryBuilder");
|
34096
|
+
SQLiteRelationalQuery = class extends (_b150 = QueryPromise, _a211 = entityKind, _b150) {
|
34123
34097
|
constructor(fullSchema, schema5, tableNamesMap, table5, tableConfig, dialect6, session, config, mode) {
|
34124
34098
|
super();
|
34125
34099
|
/** @internal */
|
@@ -34195,24 +34169,24 @@ var init_query2 = __esm({
|
|
34195
34169
|
return this.executeRaw();
|
34196
34170
|
}
|
34197
34171
|
};
|
34198
|
-
__publicField(SQLiteRelationalQuery,
|
34199
|
-
SQLiteSyncRelationalQuery = class extends (
|
34172
|
+
__publicField(SQLiteRelationalQuery, _a211, "SQLiteAsyncRelationalQuery");
|
34173
|
+
SQLiteSyncRelationalQuery = class extends (_b151 = SQLiteRelationalQuery, _a212 = entityKind, _b151) {
|
34200
34174
|
sync() {
|
34201
34175
|
return this.executeRaw();
|
34202
34176
|
}
|
34203
34177
|
};
|
34204
|
-
__publicField(SQLiteSyncRelationalQuery,
|
34178
|
+
__publicField(SQLiteSyncRelationalQuery, _a212, "SQLiteSyncRelationalQuery");
|
34205
34179
|
}
|
34206
34180
|
});
|
34207
34181
|
|
34208
34182
|
// ../drizzle-orm/dist/sqlite-core/query-builders/raw.js
|
34209
|
-
var
|
34183
|
+
var _a213, _b152, SQLiteRaw;
|
34210
34184
|
var init_raw2 = __esm({
|
34211
34185
|
"../drizzle-orm/dist/sqlite-core/query-builders/raw.js"() {
|
34212
34186
|
"use strict";
|
34213
34187
|
init_entity();
|
34214
34188
|
init_query_promise();
|
34215
|
-
SQLiteRaw = class extends (
|
34189
|
+
SQLiteRaw = class extends (_b152 = QueryPromise, _a213 = entityKind, _b152) {
|
34216
34190
|
constructor(execute, getSQL, action, dialect6, mapBatchResult) {
|
34217
34191
|
super();
|
34218
34192
|
/** @internal */
|
@@ -34237,12 +34211,12 @@ var init_raw2 = __esm({
|
|
34237
34211
|
return false;
|
34238
34212
|
}
|
34239
34213
|
};
|
34240
|
-
__publicField(SQLiteRaw,
|
34214
|
+
__publicField(SQLiteRaw, _a213, "SQLiteRaw");
|
34241
34215
|
}
|
34242
34216
|
});
|
34243
34217
|
|
34244
34218
|
// ../drizzle-orm/dist/sqlite-core/db.js
|
34245
|
-
var
|
34219
|
+
var _a214, BaseSQLiteDatabase;
|
34246
34220
|
var init_db2 = __esm({
|
34247
34221
|
"../drizzle-orm/dist/sqlite-core/db.js"() {
|
34248
34222
|
"use strict";
|
@@ -34254,7 +34228,7 @@ var init_db2 = __esm({
|
|
34254
34228
|
init_count2();
|
34255
34229
|
init_query2();
|
34256
34230
|
init_raw2();
|
34257
|
-
|
34231
|
+
_a214 = entityKind;
|
34258
34232
|
BaseSQLiteDatabase = class {
|
34259
34233
|
constructor(resultKind, dialect6, session, schema5) {
|
34260
34234
|
__publicField(this, "query");
|
@@ -34540,17 +34514,17 @@ var init_db2 = __esm({
|
|
34540
34514
|
return this.session.transaction(transaction, config);
|
34541
34515
|
}
|
34542
34516
|
};
|
34543
|
-
__publicField(BaseSQLiteDatabase,
|
34517
|
+
__publicField(BaseSQLiteDatabase, _a214, "BaseSQLiteDatabase");
|
34544
34518
|
}
|
34545
34519
|
});
|
34546
34520
|
|
34547
34521
|
// ../drizzle-orm/dist/sqlite-core/indexes.js
|
34548
|
-
var
|
34522
|
+
var _a215, IndexBuilderOn2, _a216, IndexBuilder2, _a217, Index4;
|
34549
34523
|
var init_indexes2 = __esm({
|
34550
34524
|
"../drizzle-orm/dist/sqlite-core/indexes.js"() {
|
34551
34525
|
"use strict";
|
34552
34526
|
init_entity();
|
34553
|
-
|
34527
|
+
_a215 = entityKind;
|
34554
34528
|
IndexBuilderOn2 = class {
|
34555
34529
|
constructor(name2, unique) {
|
34556
34530
|
this.name = name2;
|
@@ -34560,8 +34534,8 @@ var init_indexes2 = __esm({
|
|
34560
34534
|
return new IndexBuilder2(this.name, columns, this.unique);
|
34561
34535
|
}
|
34562
34536
|
};
|
34563
|
-
__publicField(IndexBuilderOn2,
|
34564
|
-
|
34537
|
+
__publicField(IndexBuilderOn2, _a215, "SQLiteIndexBuilderOn");
|
34538
|
+
_a216 = entityKind;
|
34565
34539
|
IndexBuilder2 = class {
|
34566
34540
|
constructor(name2, columns, unique) {
|
34567
34541
|
/** @internal */
|
@@ -34585,26 +34559,26 @@ var init_indexes2 = __esm({
|
|
34585
34559
|
return new Index4(this.config, table5);
|
34586
34560
|
}
|
34587
34561
|
};
|
34588
|
-
__publicField(IndexBuilder2,
|
34589
|
-
|
34562
|
+
__publicField(IndexBuilder2, _a216, "SQLiteIndexBuilder");
|
34563
|
+
_a217 = entityKind;
|
34590
34564
|
Index4 = class {
|
34591
34565
|
constructor(config, table5) {
|
34592
34566
|
__publicField(this, "config");
|
34593
34567
|
this.config = { ...config, table: table5 };
|
34594
34568
|
}
|
34595
34569
|
};
|
34596
|
-
__publicField(Index4,
|
34570
|
+
__publicField(Index4, _a217, "SQLiteIndex");
|
34597
34571
|
}
|
34598
34572
|
});
|
34599
34573
|
|
34600
34574
|
// ../drizzle-orm/dist/sqlite-core/primary-keys.js
|
34601
|
-
var
|
34575
|
+
var _a218, PrimaryKeyBuilder2, _a219, PrimaryKey2;
|
34602
34576
|
var init_primary_keys2 = __esm({
|
34603
34577
|
"../drizzle-orm/dist/sqlite-core/primary-keys.js"() {
|
34604
34578
|
"use strict";
|
34605
34579
|
init_entity();
|
34606
34580
|
init_table3();
|
34607
|
-
|
34581
|
+
_a218 = entityKind;
|
34608
34582
|
PrimaryKeyBuilder2 = class {
|
34609
34583
|
constructor(columns, name2) {
|
34610
34584
|
/** @internal */
|
@@ -34619,8 +34593,8 @@ var init_primary_keys2 = __esm({
|
|
34619
34593
|
return new PrimaryKey2(table5, this.columns, this.name);
|
34620
34594
|
}
|
34621
34595
|
};
|
34622
|
-
__publicField(PrimaryKeyBuilder2,
|
34623
|
-
|
34596
|
+
__publicField(PrimaryKeyBuilder2, _a218, "SQLitePrimaryKeyBuilder");
|
34597
|
+
_a219 = entityKind;
|
34624
34598
|
PrimaryKey2 = class {
|
34625
34599
|
constructor(table5, columns, name2) {
|
34626
34600
|
__publicField(this, "columns");
|
@@ -34633,12 +34607,12 @@ var init_primary_keys2 = __esm({
|
|
34633
34607
|
return this.name ?? `${this.table[SQLiteTable.Symbol.Name]}_${this.columns.map((column5) => column5.name).join("_")}_pk`;
|
34634
34608
|
}
|
34635
34609
|
};
|
34636
|
-
__publicField(PrimaryKey2,
|
34610
|
+
__publicField(PrimaryKey2, _a219, "SQLitePrimaryKey");
|
34637
34611
|
}
|
34638
34612
|
});
|
34639
34613
|
|
34640
34614
|
// ../drizzle-orm/dist/sqlite-core/session.js
|
34641
|
-
var
|
34615
|
+
var _a220, _b153, ExecuteResultSync, _a221, SQLitePreparedQuery, _a222, SQLiteSession, _a223, _b154, SQLiteTransaction;
|
34642
34616
|
var init_session2 = __esm({
|
34643
34617
|
"../drizzle-orm/dist/sqlite-core/session.js"() {
|
34644
34618
|
"use strict";
|
@@ -34646,7 +34620,7 @@ var init_session2 = __esm({
|
|
34646
34620
|
init_errors();
|
34647
34621
|
init_query_promise();
|
34648
34622
|
init_db2();
|
34649
|
-
ExecuteResultSync = class extends (
|
34623
|
+
ExecuteResultSync = class extends (_b153 = QueryPromise, _a220 = entityKind, _b153) {
|
34650
34624
|
constructor(resultCb) {
|
34651
34625
|
super();
|
34652
34626
|
this.resultCb = resultCb;
|
@@ -34658,8 +34632,8 @@ var init_session2 = __esm({
|
|
34658
34632
|
return this.resultCb();
|
34659
34633
|
}
|
34660
34634
|
};
|
34661
|
-
__publicField(ExecuteResultSync,
|
34662
|
-
|
34635
|
+
__publicField(ExecuteResultSync, _a220, "ExecuteResultSync");
|
34636
|
+
_a221 = entityKind;
|
34663
34637
|
SQLitePreparedQuery = class {
|
34664
34638
|
constructor(mode, executeMethod, query) {
|
34665
34639
|
/** @internal */
|
@@ -34700,8 +34674,8 @@ var init_session2 = __esm({
|
|
34700
34674
|
}
|
34701
34675
|
}
|
34702
34676
|
};
|
34703
|
-
__publicField(SQLitePreparedQuery,
|
34704
|
-
|
34677
|
+
__publicField(SQLitePreparedQuery, _a221, "PreparedQuery");
|
34678
|
+
_a222 = entityKind;
|
34705
34679
|
SQLiteSession = class {
|
34706
34680
|
constructor(dialect6) {
|
34707
34681
|
this.dialect = dialect6;
|
@@ -34747,8 +34721,8 @@ var init_session2 = __esm({
|
|
34747
34721
|
throw new Error("Not implemented");
|
34748
34722
|
}
|
34749
34723
|
};
|
34750
|
-
__publicField(SQLiteSession,
|
34751
|
-
SQLiteTransaction = class extends (
|
34724
|
+
__publicField(SQLiteSession, _a222, "SQLiteSession");
|
34725
|
+
SQLiteTransaction = class extends (_b154 = BaseSQLiteDatabase, _a223 = entityKind, _b154) {
|
34752
34726
|
constructor(resultType, dialect6, session, schema5, nestedIndex = 0) {
|
34753
34727
|
super(resultType, dialect6, session, schema5);
|
34754
34728
|
this.schema = schema5;
|
@@ -34758,7 +34732,7 @@ var init_session2 = __esm({
|
|
34758
34732
|
throw new TransactionRollbackError();
|
34759
34733
|
}
|
34760
34734
|
};
|
34761
|
-
__publicField(SQLiteTransaction,
|
34735
|
+
__publicField(SQLiteTransaction, _a223, "SQLiteTransaction");
|
34762
34736
|
}
|
34763
34737
|
});
|
34764
34738
|
|
@@ -34828,7 +34802,7 @@ var init_utils7 = __esm({
|
|
34828
34802
|
});
|
34829
34803
|
|
34830
34804
|
// ../drizzle-orm/dist/sqlite-core/view.js
|
34831
|
-
var
|
34805
|
+
var _a224, ViewBuilderCore, _a225, _b155, ViewBuilder2, _a226, _b156, ManualViewBuilder2, _a227, _b157, SQLiteView2;
|
34832
34806
|
var init_view2 = __esm({
|
34833
34807
|
"../drizzle-orm/dist/sqlite-core/view.js"() {
|
34834
34808
|
"use strict";
|
@@ -34838,15 +34812,15 @@ var init_view2 = __esm({
|
|
34838
34812
|
init_query_builder3();
|
34839
34813
|
init_table3();
|
34840
34814
|
init_view_base2();
|
34841
|
-
|
34815
|
+
_a224 = entityKind;
|
34842
34816
|
ViewBuilderCore = class {
|
34843
34817
|
constructor(name2) {
|
34844
34818
|
__publicField(this, "config", {});
|
34845
34819
|
this.name = name2;
|
34846
34820
|
}
|
34847
34821
|
};
|
34848
|
-
__publicField(ViewBuilderCore,
|
34849
|
-
ViewBuilder2 = class extends (
|
34822
|
+
__publicField(ViewBuilderCore, _a224, "SQLiteViewBuilderCore");
|
34823
|
+
ViewBuilder2 = class extends (_b155 = ViewBuilderCore, _a225 = entityKind, _b155) {
|
34850
34824
|
as(qb) {
|
34851
34825
|
if (typeof qb === "function") {
|
34852
34826
|
qb = qb(new QueryBuilder2());
|
@@ -34872,8 +34846,8 @@ var init_view2 = __esm({
|
|
34872
34846
|
);
|
34873
34847
|
}
|
34874
34848
|
};
|
34875
|
-
__publicField(ViewBuilder2,
|
34876
|
-
ManualViewBuilder2 = class extends (
|
34849
|
+
__publicField(ViewBuilder2, _a225, "SQLiteViewBuilder");
|
34850
|
+
ManualViewBuilder2 = class extends (_b156 = ViewBuilderCore, _a226 = entityKind, _b156) {
|
34877
34851
|
constructor(name2, columns) {
|
34878
34852
|
super(name2);
|
34879
34853
|
__publicField(this, "columns");
|
@@ -34916,13 +34890,13 @@ var init_view2 = __esm({
|
|
34916
34890
|
);
|
34917
34891
|
}
|
34918
34892
|
};
|
34919
|
-
__publicField(ManualViewBuilder2,
|
34920
|
-
SQLiteView2 = class extends (
|
34893
|
+
__publicField(ManualViewBuilder2, _a226, "SQLiteManualViewBuilder");
|
34894
|
+
SQLiteView2 = class extends (_b157 = SQLiteViewBase, _a227 = entityKind, _b157) {
|
34921
34895
|
constructor({ config }) {
|
34922
34896
|
super(config);
|
34923
34897
|
}
|
34924
34898
|
};
|
34925
|
-
__publicField(SQLiteView2,
|
34899
|
+
__publicField(SQLiteView2, _a227, "SQLiteView");
|
34926
34900
|
}
|
34927
34901
|
});
|
34928
34902
|
|
@@ -35640,12 +35614,12 @@ var init_alias4 = __esm({
|
|
35640
35614
|
});
|
35641
35615
|
|
35642
35616
|
// ../drizzle-orm/dist/mysql-core/checks.js
|
35643
|
-
var
|
35617
|
+
var _a228, CheckBuilder3, _a229, Check3;
|
35644
35618
|
var init_checks3 = __esm({
|
35645
35619
|
"../drizzle-orm/dist/mysql-core/checks.js"() {
|
35646
35620
|
"use strict";
|
35647
35621
|
init_entity();
|
35648
|
-
|
35622
|
+
_a228 = entityKind;
|
35649
35623
|
CheckBuilder3 = class {
|
35650
35624
|
constructor(name2, value) {
|
35651
35625
|
__publicField(this, "brand");
|
@@ -35657,8 +35631,8 @@ var init_checks3 = __esm({
|
|
35657
35631
|
return new Check3(table5, this);
|
35658
35632
|
}
|
35659
35633
|
};
|
35660
|
-
__publicField(CheckBuilder3,
|
35661
|
-
|
35634
|
+
__publicField(CheckBuilder3, _a228, "MySqlCheckBuilder");
|
35635
|
+
_a229 = entityKind;
|
35662
35636
|
Check3 = class {
|
35663
35637
|
constructor(table5, builder) {
|
35664
35638
|
__publicField(this, "name");
|
@@ -35668,18 +35642,18 @@ var init_checks3 = __esm({
|
|
35668
35642
|
this.value = builder.value;
|
35669
35643
|
}
|
35670
35644
|
};
|
35671
|
-
__publicField(Check3,
|
35645
|
+
__publicField(Check3, _a229, "MySqlCheck");
|
35672
35646
|
}
|
35673
35647
|
});
|
35674
35648
|
|
35675
35649
|
// ../drizzle-orm/dist/mysql-core/foreign-keys.js
|
35676
|
-
var
|
35650
|
+
var _a230, ForeignKeyBuilder3, _a231, ForeignKey3;
|
35677
35651
|
var init_foreign_keys3 = __esm({
|
35678
35652
|
"../drizzle-orm/dist/mysql-core/foreign-keys.js"() {
|
35679
35653
|
"use strict";
|
35680
35654
|
init_entity();
|
35681
35655
|
init_table_utils();
|
35682
|
-
|
35656
|
+
_a230 = entityKind;
|
35683
35657
|
ForeignKeyBuilder3 = class {
|
35684
35658
|
constructor(config, actions) {
|
35685
35659
|
/** @internal */
|
@@ -35710,8 +35684,8 @@ var init_foreign_keys3 = __esm({
|
|
35710
35684
|
return new ForeignKey3(table5, this);
|
35711
35685
|
}
|
35712
35686
|
};
|
35713
|
-
__publicField(ForeignKeyBuilder3,
|
35714
|
-
|
35687
|
+
__publicField(ForeignKeyBuilder3, _a230, "MySqlForeignKeyBuilder");
|
35688
|
+
_a231 = entityKind;
|
35715
35689
|
ForeignKey3 = class {
|
35716
35690
|
constructor(table5, builder) {
|
35717
35691
|
__publicField(this, "reference");
|
@@ -35735,7 +35709,7 @@ var init_foreign_keys3 = __esm({
|
|
35735
35709
|
return name2 ?? `${chunks.join("_")}_fk`;
|
35736
35710
|
}
|
35737
35711
|
};
|
35738
|
-
__publicField(ForeignKey3,
|
35712
|
+
__publicField(ForeignKey3, _a231, "MySqlForeignKey");
|
35739
35713
|
}
|
35740
35714
|
});
|
35741
35715
|
|
@@ -35743,13 +35717,13 @@ var init_foreign_keys3 = __esm({
|
|
35743
35717
|
function uniqueKeyName3(table5, columns) {
|
35744
35718
|
return `${table5[TableName]}_${columns.join("_")}_unique`;
|
35745
35719
|
}
|
35746
|
-
var
|
35720
|
+
var _a232, UniqueConstraintBuilder3, _a233, UniqueOnConstraintBuilder3, _a234, UniqueConstraint3;
|
35747
35721
|
var init_unique_constraint3 = __esm({
|
35748
35722
|
"../drizzle-orm/dist/mysql-core/unique-constraint.js"() {
|
35749
35723
|
"use strict";
|
35750
35724
|
init_entity();
|
35751
35725
|
init_table_utils();
|
35752
|
-
|
35726
|
+
_a232 = entityKind;
|
35753
35727
|
UniqueConstraintBuilder3 = class {
|
35754
35728
|
constructor(columns, name2) {
|
35755
35729
|
/** @internal */
|
@@ -35762,8 +35736,8 @@ var init_unique_constraint3 = __esm({
|
|
35762
35736
|
return new UniqueConstraint3(table5, this.columns, this.name);
|
35763
35737
|
}
|
35764
35738
|
};
|
35765
|
-
__publicField(UniqueConstraintBuilder3,
|
35766
|
-
|
35739
|
+
__publicField(UniqueConstraintBuilder3, _a232, "MySqlUniqueConstraintBuilder");
|
35740
|
+
_a233 = entityKind;
|
35767
35741
|
UniqueOnConstraintBuilder3 = class {
|
35768
35742
|
constructor(name2) {
|
35769
35743
|
/** @internal */
|
@@ -35774,8 +35748,8 @@ var init_unique_constraint3 = __esm({
|
|
35774
35748
|
return new UniqueConstraintBuilder3(columns, this.name);
|
35775
35749
|
}
|
35776
35750
|
};
|
35777
|
-
__publicField(UniqueOnConstraintBuilder3,
|
35778
|
-
|
35751
|
+
__publicField(UniqueOnConstraintBuilder3, _a233, "MySqlUniqueOnConstraintBuilder");
|
35752
|
+
_a234 = entityKind;
|
35779
35753
|
UniqueConstraint3 = class {
|
35780
35754
|
constructor(table5, columns, name2) {
|
35781
35755
|
__publicField(this, "columns");
|
@@ -35789,12 +35763,12 @@ var init_unique_constraint3 = __esm({
|
|
35789
35763
|
return this.name;
|
35790
35764
|
}
|
35791
35765
|
};
|
35792
|
-
__publicField(UniqueConstraint3,
|
35766
|
+
__publicField(UniqueConstraint3, _a234, "MySqlUniqueConstraint");
|
35793
35767
|
}
|
35794
35768
|
});
|
35795
35769
|
|
35796
35770
|
// ../drizzle-orm/dist/mysql-core/columns/common.js
|
35797
|
-
var
|
35771
|
+
var _a235, _b158, MySqlColumnBuilder, _a236, _b159, MySqlColumn, _a237, _b160, MySqlColumnBuilderWithAutoIncrement, _a238, _b161, MySqlColumnWithAutoIncrement;
|
35798
35772
|
var init_common4 = __esm({
|
35799
35773
|
"../drizzle-orm/dist/mysql-core/columns/common.js"() {
|
35800
35774
|
"use strict";
|
@@ -35803,7 +35777,7 @@ var init_common4 = __esm({
|
|
35803
35777
|
init_entity();
|
35804
35778
|
init_foreign_keys3();
|
35805
35779
|
init_unique_constraint3();
|
35806
|
-
MySqlColumnBuilder = class extends (
|
35780
|
+
MySqlColumnBuilder = class extends (_b158 = ColumnBuilder, _a235 = entityKind, _b158) {
|
35807
35781
|
constructor() {
|
35808
35782
|
super(...arguments);
|
35809
35783
|
__publicField(this, "foreignKeyConfigs", []);
|
@@ -35844,8 +35818,8 @@ var init_common4 = __esm({
|
|
35844
35818
|
});
|
35845
35819
|
}
|
35846
35820
|
};
|
35847
|
-
__publicField(MySqlColumnBuilder,
|
35848
|
-
MySqlColumn = class extends (
|
35821
|
+
__publicField(MySqlColumnBuilder, _a235, "MySqlColumnBuilder");
|
35822
|
+
MySqlColumn = class extends (_b159 = Column2, _a236 = entityKind, _b159) {
|
35849
35823
|
constructor(table5, config) {
|
35850
35824
|
if (!config.uniqueName) {
|
35851
35825
|
config.uniqueName = uniqueKeyName3(table5, [config.name]);
|
@@ -35854,8 +35828,8 @@ var init_common4 = __esm({
|
|
35854
35828
|
this.table = table5;
|
35855
35829
|
}
|
35856
35830
|
};
|
35857
|
-
__publicField(MySqlColumn,
|
35858
|
-
MySqlColumnBuilderWithAutoIncrement = class extends (
|
35831
|
+
__publicField(MySqlColumn, _a236, "MySqlColumn");
|
35832
|
+
MySqlColumnBuilderWithAutoIncrement = class extends (_b160 = MySqlColumnBuilder, _a237 = entityKind, _b160) {
|
35859
35833
|
constructor(name2, dataType, columnType) {
|
35860
35834
|
super(name2, dataType, columnType);
|
35861
35835
|
this.config.autoIncrement = false;
|
@@ -35866,14 +35840,14 @@ var init_common4 = __esm({
|
|
35866
35840
|
return this;
|
35867
35841
|
}
|
35868
35842
|
};
|
35869
|
-
__publicField(MySqlColumnBuilderWithAutoIncrement,
|
35870
|
-
MySqlColumnWithAutoIncrement = class extends (
|
35843
|
+
__publicField(MySqlColumnBuilderWithAutoIncrement, _a237, "MySqlColumnBuilderWithAutoIncrement");
|
35844
|
+
MySqlColumnWithAutoIncrement = class extends (_b161 = MySqlColumn, _a238 = entityKind, _b161) {
|
35871
35845
|
constructor() {
|
35872
35846
|
super(...arguments);
|
35873
35847
|
__publicField(this, "autoIncrement", this.config.autoIncrement);
|
35874
35848
|
}
|
35875
35849
|
};
|
35876
|
-
__publicField(MySqlColumnWithAutoIncrement,
|
35850
|
+
__publicField(MySqlColumnWithAutoIncrement, _a238, "MySqlColumnWithAutoIncrement");
|
35877
35851
|
}
|
35878
35852
|
});
|
35879
35853
|
|
@@ -35885,14 +35859,14 @@ function bigint2(a, b) {
|
|
35885
35859
|
}
|
35886
35860
|
return new MySqlBigInt64Builder(name2, config.unsigned);
|
35887
35861
|
}
|
35888
|
-
var
|
35862
|
+
var _a239, _b162, MySqlBigInt53Builder, _a240, _b163, MySqlBigInt53, _a241, _b164, MySqlBigInt64Builder, _a242, _b165, MySqlBigInt64;
|
35889
35863
|
var init_bigint2 = __esm({
|
35890
35864
|
"../drizzle-orm/dist/mysql-core/columns/bigint.js"() {
|
35891
35865
|
"use strict";
|
35892
35866
|
init_entity();
|
35893
35867
|
init_utils2();
|
35894
35868
|
init_common4();
|
35895
|
-
MySqlBigInt53Builder = class extends (
|
35869
|
+
MySqlBigInt53Builder = class extends (_b162 = MySqlColumnBuilderWithAutoIncrement, _a239 = entityKind, _b162) {
|
35896
35870
|
constructor(name2, unsigned = false) {
|
35897
35871
|
super(name2, "number", "MySqlBigInt53");
|
35898
35872
|
this.config.unsigned = unsigned;
|
@@ -35905,8 +35879,8 @@ var init_bigint2 = __esm({
|
|
35905
35879
|
);
|
35906
35880
|
}
|
35907
35881
|
};
|
35908
|
-
__publicField(MySqlBigInt53Builder,
|
35909
|
-
MySqlBigInt53 = class extends (
|
35882
|
+
__publicField(MySqlBigInt53Builder, _a239, "MySqlBigInt53Builder");
|
35883
|
+
MySqlBigInt53 = class extends (_b163 = MySqlColumnWithAutoIncrement, _a240 = entityKind, _b163) {
|
35910
35884
|
getSQLType() {
|
35911
35885
|
return `bigint${this.config.unsigned ? " unsigned" : ""}`;
|
35912
35886
|
}
|
@@ -35917,8 +35891,8 @@ var init_bigint2 = __esm({
|
|
35917
35891
|
return Number(value);
|
35918
35892
|
}
|
35919
35893
|
};
|
35920
|
-
__publicField(MySqlBigInt53,
|
35921
|
-
MySqlBigInt64Builder = class extends (
|
35894
|
+
__publicField(MySqlBigInt53, _a240, "MySqlBigInt53");
|
35895
|
+
MySqlBigInt64Builder = class extends (_b164 = MySqlColumnBuilderWithAutoIncrement, _a241 = entityKind, _b164) {
|
35922
35896
|
constructor(name2, unsigned = false) {
|
35923
35897
|
super(name2, "bigint", "MySqlBigInt64");
|
35924
35898
|
this.config.unsigned = unsigned;
|
@@ -35931,8 +35905,8 @@ var init_bigint2 = __esm({
|
|
35931
35905
|
);
|
35932
35906
|
}
|
35933
35907
|
};
|
35934
|
-
__publicField(MySqlBigInt64Builder,
|
35935
|
-
MySqlBigInt64 = class extends (
|
35908
|
+
__publicField(MySqlBigInt64Builder, _a241, "MySqlBigInt64Builder");
|
35909
|
+
MySqlBigInt64 = class extends (_b165 = MySqlColumnWithAutoIncrement, _a242 = entityKind, _b165) {
|
35936
35910
|
getSQLType() {
|
35937
35911
|
return `bigint${this.config.unsigned ? " unsigned" : ""}`;
|
35938
35912
|
}
|
@@ -35941,7 +35915,7 @@ var init_bigint2 = __esm({
|
|
35941
35915
|
return BigInt(value);
|
35942
35916
|
}
|
35943
35917
|
};
|
35944
|
-
__publicField(MySqlBigInt64,
|
35918
|
+
__publicField(MySqlBigInt64, _a242, "MySqlBigInt64");
|
35945
35919
|
}
|
35946
35920
|
});
|
35947
35921
|
|
@@ -35950,14 +35924,14 @@ function binary(a, b = {}) {
|
|
35950
35924
|
const { name: name2, config } = getColumnNameAndConfig(a, b);
|
35951
35925
|
return new MySqlBinaryBuilder(name2, config.length);
|
35952
35926
|
}
|
35953
|
-
var
|
35927
|
+
var _a243, _b166, MySqlBinaryBuilder, _a244, _b167, MySqlBinary;
|
35954
35928
|
var init_binary = __esm({
|
35955
35929
|
"../drizzle-orm/dist/mysql-core/columns/binary.js"() {
|
35956
35930
|
"use strict";
|
35957
35931
|
init_entity();
|
35958
35932
|
init_utils2();
|
35959
35933
|
init_common4();
|
35960
|
-
MySqlBinaryBuilder = class extends (
|
35934
|
+
MySqlBinaryBuilder = class extends (_b166 = MySqlColumnBuilder, _a243 = entityKind, _b166) {
|
35961
35935
|
constructor(name2, length) {
|
35962
35936
|
super(name2, "string", "MySqlBinary");
|
35963
35937
|
this.config.length = length;
|
@@ -35967,8 +35941,8 @@ var init_binary = __esm({
|
|
35967
35941
|
return new MySqlBinary(table5, this.config);
|
35968
35942
|
}
|
35969
35943
|
};
|
35970
|
-
__publicField(MySqlBinaryBuilder,
|
35971
|
-
MySqlBinary = class extends (
|
35944
|
+
__publicField(MySqlBinaryBuilder, _a243, "MySqlBinaryBuilder");
|
35945
|
+
MySqlBinary = class extends (_b167 = MySqlColumn, _a244 = entityKind, _b167) {
|
35972
35946
|
constructor() {
|
35973
35947
|
super(...arguments);
|
35974
35948
|
__publicField(this, "length", this.config.length);
|
@@ -35977,7 +35951,7 @@ var init_binary = __esm({
|
|
35977
35951
|
return this.length === void 0 ? `binary` : `binary(${this.length})`;
|
35978
35952
|
}
|
35979
35953
|
};
|
35980
|
-
__publicField(MySqlBinary,
|
35954
|
+
__publicField(MySqlBinary, _a244, "MySqlBinary");
|
35981
35955
|
}
|
35982
35956
|
});
|
35983
35957
|
|
@@ -35985,13 +35959,13 @@ var init_binary = __esm({
|
|
35985
35959
|
function boolean2(name2) {
|
35986
35960
|
return new MySqlBooleanBuilder(name2 ?? "");
|
35987
35961
|
}
|
35988
|
-
var
|
35962
|
+
var _a245, _b168, MySqlBooleanBuilder, _a246, _b169, MySqlBoolean;
|
35989
35963
|
var init_boolean2 = __esm({
|
35990
35964
|
"../drizzle-orm/dist/mysql-core/columns/boolean.js"() {
|
35991
35965
|
"use strict";
|
35992
35966
|
init_entity();
|
35993
35967
|
init_common4();
|
35994
|
-
MySqlBooleanBuilder = class extends (
|
35968
|
+
MySqlBooleanBuilder = class extends (_b168 = MySqlColumnBuilder, _a245 = entityKind, _b168) {
|
35995
35969
|
constructor(name2) {
|
35996
35970
|
super(name2, "boolean", "MySqlBoolean");
|
35997
35971
|
}
|
@@ -36003,8 +35977,8 @@ var init_boolean2 = __esm({
|
|
36003
35977
|
);
|
36004
35978
|
}
|
36005
35979
|
};
|
36006
|
-
__publicField(MySqlBooleanBuilder,
|
36007
|
-
MySqlBoolean = class extends (
|
35980
|
+
__publicField(MySqlBooleanBuilder, _a245, "MySqlBooleanBuilder");
|
35981
|
+
MySqlBoolean = class extends (_b169 = MySqlColumn, _a246 = entityKind, _b169) {
|
36008
35982
|
getSQLType() {
|
36009
35983
|
return "boolean";
|
36010
35984
|
}
|
@@ -36015,7 +35989,7 @@ var init_boolean2 = __esm({
|
|
36015
35989
|
return value === 1;
|
36016
35990
|
}
|
36017
35991
|
};
|
36018
|
-
__publicField(MySqlBoolean,
|
35992
|
+
__publicField(MySqlBoolean, _a246, "MySqlBoolean");
|
36019
35993
|
}
|
36020
35994
|
});
|
36021
35995
|
|
@@ -36024,14 +35998,14 @@ function char2(a, b = {}) {
|
|
36024
35998
|
const { name: name2, config } = getColumnNameAndConfig(a, b);
|
36025
35999
|
return new MySqlCharBuilder(name2, config);
|
36026
36000
|
}
|
36027
|
-
var
|
36001
|
+
var _a247, _b170, MySqlCharBuilder, _a248, _b171, MySqlChar;
|
36028
36002
|
var init_char2 = __esm({
|
36029
36003
|
"../drizzle-orm/dist/mysql-core/columns/char.js"() {
|
36030
36004
|
"use strict";
|
36031
36005
|
init_entity();
|
36032
36006
|
init_utils2();
|
36033
36007
|
init_common4();
|
36034
|
-
MySqlCharBuilder = class extends (
|
36008
|
+
MySqlCharBuilder = class extends (_b170 = MySqlColumnBuilder, _a247 = entityKind, _b170) {
|
36035
36009
|
constructor(name2, config) {
|
36036
36010
|
super(name2, "string", "MySqlChar");
|
36037
36011
|
this.config.length = config.length;
|
@@ -36045,8 +36019,8 @@ var init_char2 = __esm({
|
|
36045
36019
|
);
|
36046
36020
|
}
|
36047
36021
|
};
|
36048
|
-
__publicField(MySqlCharBuilder,
|
36049
|
-
MySqlChar = class extends (
|
36022
|
+
__publicField(MySqlCharBuilder, _a247, "MySqlCharBuilder");
|
36023
|
+
MySqlChar = class extends (_b171 = MySqlColumn, _a248 = entityKind, _b171) {
|
36050
36024
|
constructor() {
|
36051
36025
|
super(...arguments);
|
36052
36026
|
__publicField(this, "length", this.config.length);
|
@@ -36056,7 +36030,7 @@ var init_char2 = __esm({
|
|
36056
36030
|
return this.length === void 0 ? `char` : `char(${this.length})`;
|
36057
36031
|
}
|
36058
36032
|
};
|
36059
|
-
__publicField(MySqlChar,
|
36033
|
+
__publicField(MySqlChar, _a248, "MySqlChar");
|
36060
36034
|
}
|
36061
36035
|
});
|
36062
36036
|
|
@@ -36067,14 +36041,14 @@ function customType3(customTypeParams) {
|
|
36067
36041
|
return new MySqlCustomColumnBuilder(name2, config, customTypeParams);
|
36068
36042
|
};
|
36069
36043
|
}
|
36070
|
-
var
|
36044
|
+
var _a249, _b172, MySqlCustomColumnBuilder, _a250, _b173, MySqlCustomColumn;
|
36071
36045
|
var init_custom3 = __esm({
|
36072
36046
|
"../drizzle-orm/dist/mysql-core/columns/custom.js"() {
|
36073
36047
|
"use strict";
|
36074
36048
|
init_entity();
|
36075
36049
|
init_utils2();
|
36076
36050
|
init_common4();
|
36077
|
-
MySqlCustomColumnBuilder = class extends (
|
36051
|
+
MySqlCustomColumnBuilder = class extends (_b172 = MySqlColumnBuilder, _a249 = entityKind, _b172) {
|
36078
36052
|
constructor(name2, fieldConfig, customTypeParams) {
|
36079
36053
|
super(name2, "custom", "MySqlCustomColumn");
|
36080
36054
|
this.config.fieldConfig = fieldConfig;
|
@@ -36088,8 +36062,8 @@ var init_custom3 = __esm({
|
|
36088
36062
|
);
|
36089
36063
|
}
|
36090
36064
|
};
|
36091
|
-
__publicField(MySqlCustomColumnBuilder,
|
36092
|
-
MySqlCustomColumn = class extends (
|
36065
|
+
__publicField(MySqlCustomColumnBuilder, _a249, "MySqlCustomColumnBuilder");
|
36066
|
+
MySqlCustomColumn = class extends (_b173 = MySqlColumn, _a250 = entityKind, _b173) {
|
36093
36067
|
constructor(table5, config) {
|
36094
36068
|
super(table5, config);
|
36095
36069
|
__publicField(this, "sqlName");
|
@@ -36109,7 +36083,7 @@ var init_custom3 = __esm({
|
|
36109
36083
|
return typeof this.mapTo === "function" ? this.mapTo(value) : value;
|
36110
36084
|
}
|
36111
36085
|
};
|
36112
|
-
__publicField(MySqlCustomColumn,
|
36086
|
+
__publicField(MySqlCustomColumn, _a250, "MySqlCustomColumn");
|
36113
36087
|
}
|
36114
36088
|
});
|
36115
36089
|
|
@@ -36121,14 +36095,14 @@ function date2(a, b) {
|
|
36121
36095
|
}
|
36122
36096
|
return new MySqlDateBuilder(name2);
|
36123
36097
|
}
|
36124
|
-
var
|
36098
|
+
var _a251, _b174, MySqlDateBuilder, _a252, _b175, MySqlDate, _a253, _b176, MySqlDateStringBuilder, _a254, _b177, MySqlDateString;
|
36125
36099
|
var init_date2 = __esm({
|
36126
36100
|
"../drizzle-orm/dist/mysql-core/columns/date.js"() {
|
36127
36101
|
"use strict";
|
36128
36102
|
init_entity();
|
36129
36103
|
init_utils2();
|
36130
36104
|
init_common4();
|
36131
|
-
MySqlDateBuilder = class extends (
|
36105
|
+
MySqlDateBuilder = class extends (_b174 = MySqlColumnBuilder, _a251 = entityKind, _b174) {
|
36132
36106
|
constructor(name2) {
|
36133
36107
|
super(name2, "date", "MySqlDate");
|
36134
36108
|
}
|
@@ -36137,8 +36111,8 @@ var init_date2 = __esm({
|
|
36137
36111
|
return new MySqlDate(table5, this.config);
|
36138
36112
|
}
|
36139
36113
|
};
|
36140
|
-
__publicField(MySqlDateBuilder,
|
36141
|
-
MySqlDate = class extends (
|
36114
|
+
__publicField(MySqlDateBuilder, _a251, "MySqlDateBuilder");
|
36115
|
+
MySqlDate = class extends (_b175 = MySqlColumn, _a252 = entityKind, _b175) {
|
36142
36116
|
constructor(table5, config) {
|
36143
36117
|
super(table5, config);
|
36144
36118
|
}
|
@@ -36149,8 +36123,8 @@ var init_date2 = __esm({
|
|
36149
36123
|
return new Date(value);
|
36150
36124
|
}
|
36151
36125
|
};
|
36152
|
-
__publicField(MySqlDate,
|
36153
|
-
MySqlDateStringBuilder = class extends (
|
36126
|
+
__publicField(MySqlDate, _a252, "MySqlDate");
|
36127
|
+
MySqlDateStringBuilder = class extends (_b176 = MySqlColumnBuilder, _a253 = entityKind, _b176) {
|
36154
36128
|
constructor(name2) {
|
36155
36129
|
super(name2, "string", "MySqlDateString");
|
36156
36130
|
}
|
@@ -36162,8 +36136,8 @@ var init_date2 = __esm({
|
|
36162
36136
|
);
|
36163
36137
|
}
|
36164
36138
|
};
|
36165
|
-
__publicField(MySqlDateStringBuilder,
|
36166
|
-
MySqlDateString = class extends (
|
36139
|
+
__publicField(MySqlDateStringBuilder, _a253, "MySqlDateStringBuilder");
|
36140
|
+
MySqlDateString = class extends (_b177 = MySqlColumn, _a254 = entityKind, _b177) {
|
36167
36141
|
constructor(table5, config) {
|
36168
36142
|
super(table5, config);
|
36169
36143
|
}
|
@@ -36171,7 +36145,7 @@ var init_date2 = __esm({
|
|
36171
36145
|
return `date`;
|
36172
36146
|
}
|
36173
36147
|
};
|
36174
|
-
__publicField(MySqlDateString,
|
36148
|
+
__publicField(MySqlDateString, _a254, "MySqlDateString");
|
36175
36149
|
}
|
36176
36150
|
});
|
36177
36151
|
|
@@ -36183,14 +36157,14 @@ function datetime(a, b) {
|
|
36183
36157
|
}
|
36184
36158
|
return new MySqlDateTimeBuilder(name2, config);
|
36185
36159
|
}
|
36186
|
-
var
|
36160
|
+
var _a255, _b178, MySqlDateTimeBuilder, _a256, _b179, MySqlDateTime, _a257, _b180, MySqlDateTimeStringBuilder, _a258, _b181, MySqlDateTimeString;
|
36187
36161
|
var init_datetime = __esm({
|
36188
36162
|
"../drizzle-orm/dist/mysql-core/columns/datetime.js"() {
|
36189
36163
|
"use strict";
|
36190
36164
|
init_entity();
|
36191
36165
|
init_utils2();
|
36192
36166
|
init_common4();
|
36193
|
-
MySqlDateTimeBuilder = class extends (
|
36167
|
+
MySqlDateTimeBuilder = class extends (_b178 = MySqlColumnBuilder, _a255 = entityKind, _b178) {
|
36194
36168
|
constructor(name2, config) {
|
36195
36169
|
super(name2, "date", "MySqlDateTime");
|
36196
36170
|
this.config.fsp = config?.fsp;
|
@@ -36203,8 +36177,8 @@ var init_datetime = __esm({
|
|
36203
36177
|
);
|
36204
36178
|
}
|
36205
36179
|
};
|
36206
|
-
__publicField(MySqlDateTimeBuilder,
|
36207
|
-
MySqlDateTime = class extends (
|
36180
|
+
__publicField(MySqlDateTimeBuilder, _a255, "MySqlDateTimeBuilder");
|
36181
|
+
MySqlDateTime = class extends (_b179 = MySqlColumn, _a256 = entityKind, _b179) {
|
36208
36182
|
constructor(table5, config) {
|
36209
36183
|
super(table5, config);
|
36210
36184
|
__publicField(this, "fsp");
|
@@ -36221,8 +36195,8 @@ var init_datetime = __esm({
|
|
36221
36195
|
return /* @__PURE__ */ new Date(value.replace(" ", "T") + "Z");
|
36222
36196
|
}
|
36223
36197
|
};
|
36224
|
-
__publicField(MySqlDateTime,
|
36225
|
-
MySqlDateTimeStringBuilder = class extends (
|
36198
|
+
__publicField(MySqlDateTime, _a256, "MySqlDateTime");
|
36199
|
+
MySqlDateTimeStringBuilder = class extends (_b180 = MySqlColumnBuilder, _a257 = entityKind, _b180) {
|
36226
36200
|
constructor(name2, config) {
|
36227
36201
|
super(name2, "string", "MySqlDateTimeString");
|
36228
36202
|
this.config.fsp = config?.fsp;
|
@@ -36235,8 +36209,8 @@ var init_datetime = __esm({
|
|
36235
36209
|
);
|
36236
36210
|
}
|
36237
36211
|
};
|
36238
|
-
__publicField(MySqlDateTimeStringBuilder,
|
36239
|
-
MySqlDateTimeString = class extends (
|
36212
|
+
__publicField(MySqlDateTimeStringBuilder, _a257, "MySqlDateTimeStringBuilder");
|
36213
|
+
MySqlDateTimeString = class extends (_b181 = MySqlColumn, _a258 = entityKind, _b181) {
|
36240
36214
|
constructor(table5, config) {
|
36241
36215
|
super(table5, config);
|
36242
36216
|
__publicField(this, "fsp");
|
@@ -36247,7 +36221,7 @@ var init_datetime = __esm({
|
|
36247
36221
|
return `datetime${precision}`;
|
36248
36222
|
}
|
36249
36223
|
};
|
36250
|
-
__publicField(MySqlDateTimeString,
|
36224
|
+
__publicField(MySqlDateTimeString, _a258, "MySqlDateTimeString");
|
36251
36225
|
}
|
36252
36226
|
});
|
36253
36227
|
|
@@ -36256,14 +36230,14 @@ function decimal(a, b = {}) {
|
|
36256
36230
|
const { name: name2, config } = getColumnNameAndConfig(a, b);
|
36257
36231
|
return new MySqlDecimalBuilder(name2, config);
|
36258
36232
|
}
|
36259
|
-
var
|
36233
|
+
var _a259, _b182, MySqlDecimalBuilder, _a260, _b183, MySqlDecimal;
|
36260
36234
|
var init_decimal = __esm({
|
36261
36235
|
"../drizzle-orm/dist/mysql-core/columns/decimal.js"() {
|
36262
36236
|
"use strict";
|
36263
36237
|
init_entity();
|
36264
36238
|
init_utils2();
|
36265
36239
|
init_common4();
|
36266
|
-
MySqlDecimalBuilder = class extends (
|
36240
|
+
MySqlDecimalBuilder = class extends (_b182 = MySqlColumnBuilderWithAutoIncrement, _a259 = entityKind, _b182) {
|
36267
36241
|
constructor(name2, config) {
|
36268
36242
|
super(name2, "string", "MySqlDecimal");
|
36269
36243
|
this.config.precision = config?.precision;
|
@@ -36278,8 +36252,8 @@ var init_decimal = __esm({
|
|
36278
36252
|
);
|
36279
36253
|
}
|
36280
36254
|
};
|
36281
|
-
__publicField(MySqlDecimalBuilder,
|
36282
|
-
MySqlDecimal = class extends (
|
36255
|
+
__publicField(MySqlDecimalBuilder, _a259, "MySqlDecimalBuilder");
|
36256
|
+
MySqlDecimal = class extends (_b183 = MySqlColumnWithAutoIncrement, _a260 = entityKind, _b183) {
|
36283
36257
|
constructor() {
|
36284
36258
|
super(...arguments);
|
36285
36259
|
__publicField(this, "precision", this.config.precision);
|
@@ -36299,7 +36273,7 @@ var init_decimal = __esm({
|
|
36299
36273
|
return this.unsigned ? `${type} unsigned` : type;
|
36300
36274
|
}
|
36301
36275
|
};
|
36302
|
-
__publicField(MySqlDecimal,
|
36276
|
+
__publicField(MySqlDecimal, _a260, "MySqlDecimal");
|
36303
36277
|
}
|
36304
36278
|
});
|
36305
36279
|
|
@@ -36308,14 +36282,14 @@ function double(a, b) {
|
|
36308
36282
|
const { name: name2, config } = getColumnNameAndConfig(a, b);
|
36309
36283
|
return new MySqlDoubleBuilder(name2, config);
|
36310
36284
|
}
|
36311
|
-
var
|
36285
|
+
var _a261, _b184, MySqlDoubleBuilder, _a262, _b185, MySqlDouble;
|
36312
36286
|
var init_double = __esm({
|
36313
36287
|
"../drizzle-orm/dist/mysql-core/columns/double.js"() {
|
36314
36288
|
"use strict";
|
36315
36289
|
init_entity();
|
36316
36290
|
init_utils2();
|
36317
36291
|
init_common4();
|
36318
|
-
MySqlDoubleBuilder = class extends (
|
36292
|
+
MySqlDoubleBuilder = class extends (_b184 = MySqlColumnBuilderWithAutoIncrement, _a261 = entityKind, _b184) {
|
36319
36293
|
constructor(name2, config) {
|
36320
36294
|
super(name2, "number", "MySqlDouble");
|
36321
36295
|
this.config.precision = config?.precision;
|
@@ -36327,8 +36301,8 @@ var init_double = __esm({
|
|
36327
36301
|
return new MySqlDouble(table5, this.config);
|
36328
36302
|
}
|
36329
36303
|
};
|
36330
|
-
__publicField(MySqlDoubleBuilder,
|
36331
|
-
MySqlDouble = class extends (
|
36304
|
+
__publicField(MySqlDoubleBuilder, _a261, "MySqlDoubleBuilder");
|
36305
|
+
MySqlDouble = class extends (_b185 = MySqlColumnWithAutoIncrement, _a262 = entityKind, _b185) {
|
36332
36306
|
constructor() {
|
36333
36307
|
super(...arguments);
|
36334
36308
|
__publicField(this, "precision", this.config.precision);
|
@@ -36347,7 +36321,7 @@ var init_double = __esm({
|
|
36347
36321
|
return this.unsigned ? `${type} unsigned` : type;
|
36348
36322
|
}
|
36349
36323
|
};
|
36350
|
-
__publicField(MySqlDouble,
|
36324
|
+
__publicField(MySqlDouble, _a262, "MySqlDouble");
|
36351
36325
|
}
|
36352
36326
|
});
|
36353
36327
|
|
@@ -36359,14 +36333,14 @@ function mysqlEnum(a, b) {
|
|
36359
36333
|
}
|
36360
36334
|
return new MySqlEnumColumnBuilder(name2, values);
|
36361
36335
|
}
|
36362
|
-
var
|
36336
|
+
var _a263, _b186, MySqlEnumColumnBuilder, _a264, _b187, MySqlEnumColumn;
|
36363
36337
|
var init_enum2 = __esm({
|
36364
36338
|
"../drizzle-orm/dist/mysql-core/columns/enum.js"() {
|
36365
36339
|
"use strict";
|
36366
36340
|
init_entity();
|
36367
36341
|
init_utils2();
|
36368
36342
|
init_common4();
|
36369
|
-
MySqlEnumColumnBuilder = class extends (
|
36343
|
+
MySqlEnumColumnBuilder = class extends (_b186 = MySqlColumnBuilder, _a263 = entityKind, _b186) {
|
36370
36344
|
constructor(name2, values) {
|
36371
36345
|
super(name2, "string", "MySqlEnumColumn");
|
36372
36346
|
this.config.enumValues = values;
|
@@ -36379,8 +36353,8 @@ var init_enum2 = __esm({
|
|
36379
36353
|
);
|
36380
36354
|
}
|
36381
36355
|
};
|
36382
|
-
__publicField(MySqlEnumColumnBuilder,
|
36383
|
-
MySqlEnumColumn = class extends (
|
36356
|
+
__publicField(MySqlEnumColumnBuilder, _a263, "MySqlEnumColumnBuilder");
|
36357
|
+
MySqlEnumColumn = class extends (_b187 = MySqlColumn, _a264 = entityKind, _b187) {
|
36384
36358
|
constructor() {
|
36385
36359
|
super(...arguments);
|
36386
36360
|
__publicField(this, "enumValues", this.config.enumValues);
|
@@ -36389,7 +36363,7 @@ var init_enum2 = __esm({
|
|
36389
36363
|
return `enum(${this.enumValues.map((value) => `'${value}'`).join(",")})`;
|
36390
36364
|
}
|
36391
36365
|
};
|
36392
|
-
__publicField(MySqlEnumColumn,
|
36366
|
+
__publicField(MySqlEnumColumn, _a264, "MySqlEnumColumn");
|
36393
36367
|
}
|
36394
36368
|
});
|
36395
36369
|
|
@@ -36398,14 +36372,14 @@ function float(a, b) {
|
|
36398
36372
|
const { name: name2, config } = getColumnNameAndConfig(a, b);
|
36399
36373
|
return new MySqlFloatBuilder(name2, config);
|
36400
36374
|
}
|
36401
|
-
var
|
36375
|
+
var _a265, _b188, MySqlFloatBuilder, _a266, _b189, MySqlFloat;
|
36402
36376
|
var init_float = __esm({
|
36403
36377
|
"../drizzle-orm/dist/mysql-core/columns/float.js"() {
|
36404
36378
|
"use strict";
|
36405
36379
|
init_entity();
|
36406
36380
|
init_utils2();
|
36407
36381
|
init_common4();
|
36408
|
-
MySqlFloatBuilder = class extends (
|
36382
|
+
MySqlFloatBuilder = class extends (_b188 = MySqlColumnBuilderWithAutoIncrement, _a265 = entityKind, _b188) {
|
36409
36383
|
constructor(name2, config) {
|
36410
36384
|
super(name2, "number", "MySqlFloat");
|
36411
36385
|
this.config.precision = config?.precision;
|
@@ -36417,8 +36391,8 @@ var init_float = __esm({
|
|
36417
36391
|
return new MySqlFloat(table5, this.config);
|
36418
36392
|
}
|
36419
36393
|
};
|
36420
|
-
__publicField(MySqlFloatBuilder,
|
36421
|
-
MySqlFloat = class extends (
|
36394
|
+
__publicField(MySqlFloatBuilder, _a265, "MySqlFloatBuilder");
|
36395
|
+
MySqlFloat = class extends (_b189 = MySqlColumnWithAutoIncrement, _a266 = entityKind, _b189) {
|
36422
36396
|
constructor() {
|
36423
36397
|
super(...arguments);
|
36424
36398
|
__publicField(this, "precision", this.config.precision);
|
@@ -36437,7 +36411,7 @@ var init_float = __esm({
|
|
36437
36411
|
return this.unsigned ? `${type} unsigned` : type;
|
36438
36412
|
}
|
36439
36413
|
};
|
36440
|
-
__publicField(MySqlFloat,
|
36414
|
+
__publicField(MySqlFloat, _a266, "MySqlFloat");
|
36441
36415
|
}
|
36442
36416
|
});
|
36443
36417
|
|
@@ -36446,14 +36420,14 @@ function int(a, b) {
|
|
36446
36420
|
const { name: name2, config } = getColumnNameAndConfig(a, b);
|
36447
36421
|
return new MySqlIntBuilder(name2, config);
|
36448
36422
|
}
|
36449
|
-
var
|
36423
|
+
var _a267, _b190, MySqlIntBuilder, _a268, _b191, MySqlInt;
|
36450
36424
|
var init_int = __esm({
|
36451
36425
|
"../drizzle-orm/dist/mysql-core/columns/int.js"() {
|
36452
36426
|
"use strict";
|
36453
36427
|
init_entity();
|
36454
36428
|
init_utils2();
|
36455
36429
|
init_common4();
|
36456
|
-
MySqlIntBuilder = class extends (
|
36430
|
+
MySqlIntBuilder = class extends (_b190 = MySqlColumnBuilderWithAutoIncrement, _a267 = entityKind, _b190) {
|
36457
36431
|
constructor(name2, config) {
|
36458
36432
|
super(name2, "number", "MySqlInt");
|
36459
36433
|
this.config.unsigned = config ? config.unsigned : false;
|
@@ -36463,8 +36437,8 @@ var init_int = __esm({
|
|
36463
36437
|
return new MySqlInt(table5, this.config);
|
36464
36438
|
}
|
36465
36439
|
};
|
36466
|
-
__publicField(MySqlIntBuilder,
|
36467
|
-
MySqlInt = class extends (
|
36440
|
+
__publicField(MySqlIntBuilder, _a267, "MySqlIntBuilder");
|
36441
|
+
MySqlInt = class extends (_b191 = MySqlColumnWithAutoIncrement, _a268 = entityKind, _b191) {
|
36468
36442
|
getSQLType() {
|
36469
36443
|
return `int${this.config.unsigned ? " unsigned" : ""}`;
|
36470
36444
|
}
|
@@ -36475,7 +36449,7 @@ var init_int = __esm({
|
|
36475
36449
|
return value;
|
36476
36450
|
}
|
36477
36451
|
};
|
36478
|
-
__publicField(MySqlInt,
|
36452
|
+
__publicField(MySqlInt, _a268, "MySqlInt");
|
36479
36453
|
}
|
36480
36454
|
});
|
36481
36455
|
|
@@ -36483,13 +36457,13 @@ var init_int = __esm({
|
|
36483
36457
|
function json2(name2) {
|
36484
36458
|
return new MySqlJsonBuilder(name2 ?? "");
|
36485
36459
|
}
|
36486
|
-
var
|
36460
|
+
var _a269, _b192, MySqlJsonBuilder, _a270, _b193, MySqlJson;
|
36487
36461
|
var init_json2 = __esm({
|
36488
36462
|
"../drizzle-orm/dist/mysql-core/columns/json.js"() {
|
36489
36463
|
"use strict";
|
36490
36464
|
init_entity();
|
36491
36465
|
init_common4();
|
36492
|
-
MySqlJsonBuilder = class extends (
|
36466
|
+
MySqlJsonBuilder = class extends (_b192 = MySqlColumnBuilder, _a269 = entityKind, _b192) {
|
36493
36467
|
constructor(name2) {
|
36494
36468
|
super(name2, "json", "MySqlJson");
|
36495
36469
|
}
|
@@ -36498,8 +36472,8 @@ var init_json2 = __esm({
|
|
36498
36472
|
return new MySqlJson(table5, this.config);
|
36499
36473
|
}
|
36500
36474
|
};
|
36501
|
-
__publicField(MySqlJsonBuilder,
|
36502
|
-
MySqlJson = class extends (
|
36475
|
+
__publicField(MySqlJsonBuilder, _a269, "MySqlJsonBuilder");
|
36476
|
+
MySqlJson = class extends (_b193 = MySqlColumn, _a270 = entityKind, _b193) {
|
36503
36477
|
getSQLType() {
|
36504
36478
|
return "json";
|
36505
36479
|
}
|
@@ -36507,7 +36481,7 @@ var init_json2 = __esm({
|
|
36507
36481
|
return JSON.stringify(value);
|
36508
36482
|
}
|
36509
36483
|
};
|
36510
|
-
__publicField(MySqlJson,
|
36484
|
+
__publicField(MySqlJson, _a270, "MySqlJson");
|
36511
36485
|
}
|
36512
36486
|
});
|
36513
36487
|
|
@@ -36516,14 +36490,14 @@ function mediumint(a, b) {
|
|
36516
36490
|
const { name: name2, config } = getColumnNameAndConfig(a, b);
|
36517
36491
|
return new MySqlMediumIntBuilder(name2, config);
|
36518
36492
|
}
|
36519
|
-
var
|
36493
|
+
var _a271, _b194, MySqlMediumIntBuilder, _a272, _b195, MySqlMediumInt;
|
36520
36494
|
var init_mediumint = __esm({
|
36521
36495
|
"../drizzle-orm/dist/mysql-core/columns/mediumint.js"() {
|
36522
36496
|
"use strict";
|
36523
36497
|
init_entity();
|
36524
36498
|
init_utils2();
|
36525
36499
|
init_common4();
|
36526
|
-
MySqlMediumIntBuilder = class extends (
|
36500
|
+
MySqlMediumIntBuilder = class extends (_b194 = MySqlColumnBuilderWithAutoIncrement, _a271 = entityKind, _b194) {
|
36527
36501
|
constructor(name2, config) {
|
36528
36502
|
super(name2, "number", "MySqlMediumInt");
|
36529
36503
|
this.config.unsigned = config ? config.unsigned : false;
|
@@ -36536,8 +36510,8 @@ var init_mediumint = __esm({
|
|
36536
36510
|
);
|
36537
36511
|
}
|
36538
36512
|
};
|
36539
|
-
__publicField(MySqlMediumIntBuilder,
|
36540
|
-
MySqlMediumInt = class extends (
|
36513
|
+
__publicField(MySqlMediumIntBuilder, _a271, "MySqlMediumIntBuilder");
|
36514
|
+
MySqlMediumInt = class extends (_b195 = MySqlColumnWithAutoIncrement, _a272 = entityKind, _b195) {
|
36541
36515
|
getSQLType() {
|
36542
36516
|
return `mediumint${this.config.unsigned ? " unsigned" : ""}`;
|
36543
36517
|
}
|
@@ -36548,7 +36522,7 @@ var init_mediumint = __esm({
|
|
36548
36522
|
return value;
|
36549
36523
|
}
|
36550
36524
|
};
|
36551
|
-
__publicField(MySqlMediumInt,
|
36525
|
+
__publicField(MySqlMediumInt, _a272, "MySqlMediumInt");
|
36552
36526
|
}
|
36553
36527
|
});
|
36554
36528
|
|
@@ -36557,14 +36531,14 @@ function real3(a, b = {}) {
|
|
36557
36531
|
const { name: name2, config } = getColumnNameAndConfig(a, b);
|
36558
36532
|
return new MySqlRealBuilder(name2, config);
|
36559
36533
|
}
|
36560
|
-
var
|
36534
|
+
var _a273, _b196, MySqlRealBuilder, _a274, _b197, MySqlReal;
|
36561
36535
|
var init_real3 = __esm({
|
36562
36536
|
"../drizzle-orm/dist/mysql-core/columns/real.js"() {
|
36563
36537
|
"use strict";
|
36564
36538
|
init_entity();
|
36565
36539
|
init_utils2();
|
36566
36540
|
init_common4();
|
36567
|
-
MySqlRealBuilder = class extends (
|
36541
|
+
MySqlRealBuilder = class extends (_b196 = MySqlColumnBuilderWithAutoIncrement, _a273 = entityKind, _b196) {
|
36568
36542
|
constructor(name2, config) {
|
36569
36543
|
super(name2, "number", "MySqlReal");
|
36570
36544
|
this.config.precision = config?.precision;
|
@@ -36575,8 +36549,8 @@ var init_real3 = __esm({
|
|
36575
36549
|
return new MySqlReal(table5, this.config);
|
36576
36550
|
}
|
36577
36551
|
};
|
36578
|
-
__publicField(MySqlRealBuilder,
|
36579
|
-
MySqlReal = class extends (
|
36552
|
+
__publicField(MySqlRealBuilder, _a273, "MySqlRealBuilder");
|
36553
|
+
MySqlReal = class extends (_b197 = MySqlColumnWithAutoIncrement, _a274 = entityKind, _b197) {
|
36580
36554
|
constructor() {
|
36581
36555
|
super(...arguments);
|
36582
36556
|
__publicField(this, "precision", this.config.precision);
|
@@ -36592,7 +36566,7 @@ var init_real3 = __esm({
|
|
36592
36566
|
}
|
36593
36567
|
}
|
36594
36568
|
};
|
36595
|
-
__publicField(MySqlReal,
|
36569
|
+
__publicField(MySqlReal, _a274, "MySqlReal");
|
36596
36570
|
}
|
36597
36571
|
});
|
36598
36572
|
|
@@ -36600,13 +36574,13 @@ var init_real3 = __esm({
|
|
36600
36574
|
function serial2(name2) {
|
36601
36575
|
return new MySqlSerialBuilder(name2 ?? "");
|
36602
36576
|
}
|
36603
|
-
var
|
36577
|
+
var _a275, _b198, MySqlSerialBuilder, _a276, _b199, MySqlSerial;
|
36604
36578
|
var init_serial2 = __esm({
|
36605
36579
|
"../drizzle-orm/dist/mysql-core/columns/serial.js"() {
|
36606
36580
|
"use strict";
|
36607
36581
|
init_entity();
|
36608
36582
|
init_common4();
|
36609
|
-
MySqlSerialBuilder = class extends (
|
36583
|
+
MySqlSerialBuilder = class extends (_b198 = MySqlColumnBuilderWithAutoIncrement, _a275 = entityKind, _b198) {
|
36610
36584
|
constructor(name2) {
|
36611
36585
|
super(name2, "number", "MySqlSerial");
|
36612
36586
|
this.config.hasDefault = true;
|
@@ -36617,8 +36591,8 @@ var init_serial2 = __esm({
|
|
36617
36591
|
return new MySqlSerial(table5, this.config);
|
36618
36592
|
}
|
36619
36593
|
};
|
36620
|
-
__publicField(MySqlSerialBuilder,
|
36621
|
-
MySqlSerial = class extends (
|
36594
|
+
__publicField(MySqlSerialBuilder, _a275, "MySqlSerialBuilder");
|
36595
|
+
MySqlSerial = class extends (_b199 = MySqlColumnWithAutoIncrement, _a276 = entityKind, _b199) {
|
36622
36596
|
getSQLType() {
|
36623
36597
|
return "serial";
|
36624
36598
|
}
|
@@ -36629,7 +36603,7 @@ var init_serial2 = __esm({
|
|
36629
36603
|
return value;
|
36630
36604
|
}
|
36631
36605
|
};
|
36632
|
-
__publicField(MySqlSerial,
|
36606
|
+
__publicField(MySqlSerial, _a276, "MySqlSerial");
|
36633
36607
|
}
|
36634
36608
|
});
|
36635
36609
|
|
@@ -36638,14 +36612,14 @@ function smallint2(a, b) {
|
|
36638
36612
|
const { name: name2, config } = getColumnNameAndConfig(a, b);
|
36639
36613
|
return new MySqlSmallIntBuilder(name2, config);
|
36640
36614
|
}
|
36641
|
-
var
|
36615
|
+
var _a277, _b200, MySqlSmallIntBuilder, _a278, _b201, MySqlSmallInt;
|
36642
36616
|
var init_smallint2 = __esm({
|
36643
36617
|
"../drizzle-orm/dist/mysql-core/columns/smallint.js"() {
|
36644
36618
|
"use strict";
|
36645
36619
|
init_entity();
|
36646
36620
|
init_utils2();
|
36647
36621
|
init_common4();
|
36648
|
-
MySqlSmallIntBuilder = class extends (
|
36622
|
+
MySqlSmallIntBuilder = class extends (_b200 = MySqlColumnBuilderWithAutoIncrement, _a277 = entityKind, _b200) {
|
36649
36623
|
constructor(name2, config) {
|
36650
36624
|
super(name2, "number", "MySqlSmallInt");
|
36651
36625
|
this.config.unsigned = config ? config.unsigned : false;
|
@@ -36658,8 +36632,8 @@ var init_smallint2 = __esm({
|
|
36658
36632
|
);
|
36659
36633
|
}
|
36660
36634
|
};
|
36661
|
-
__publicField(MySqlSmallIntBuilder,
|
36662
|
-
MySqlSmallInt = class extends (
|
36635
|
+
__publicField(MySqlSmallIntBuilder, _a277, "MySqlSmallIntBuilder");
|
36636
|
+
MySqlSmallInt = class extends (_b201 = MySqlColumnWithAutoIncrement, _a278 = entityKind, _b201) {
|
36663
36637
|
getSQLType() {
|
36664
36638
|
return `smallint${this.config.unsigned ? " unsigned" : ""}`;
|
36665
36639
|
}
|
@@ -36670,7 +36644,7 @@ var init_smallint2 = __esm({
|
|
36670
36644
|
return value;
|
36671
36645
|
}
|
36672
36646
|
};
|
36673
|
-
__publicField(MySqlSmallInt,
|
36647
|
+
__publicField(MySqlSmallInt, _a278, "MySqlSmallInt");
|
36674
36648
|
}
|
36675
36649
|
});
|
36676
36650
|
|
@@ -36691,14 +36665,14 @@ function longtext(a, b = {}) {
|
|
36691
36665
|
const { name: name2, config } = getColumnNameAndConfig(a, b);
|
36692
36666
|
return new MySqlTextBuilder(name2, "longtext", config);
|
36693
36667
|
}
|
36694
|
-
var
|
36668
|
+
var _a279, _b202, MySqlTextBuilder, _a280, _b203, MySqlText;
|
36695
36669
|
var init_text3 = __esm({
|
36696
36670
|
"../drizzle-orm/dist/mysql-core/columns/text.js"() {
|
36697
36671
|
"use strict";
|
36698
36672
|
init_entity();
|
36699
36673
|
init_utils2();
|
36700
36674
|
init_common4();
|
36701
|
-
MySqlTextBuilder = class extends (
|
36675
|
+
MySqlTextBuilder = class extends (_b202 = MySqlColumnBuilder, _a279 = entityKind, _b202) {
|
36702
36676
|
constructor(name2, textType, config) {
|
36703
36677
|
super(name2, "string", "MySqlText");
|
36704
36678
|
this.config.textType = textType;
|
@@ -36709,8 +36683,8 @@ var init_text3 = __esm({
|
|
36709
36683
|
return new MySqlText(table5, this.config);
|
36710
36684
|
}
|
36711
36685
|
};
|
36712
|
-
__publicField(MySqlTextBuilder,
|
36713
|
-
MySqlText = class extends (
|
36686
|
+
__publicField(MySqlTextBuilder, _a279, "MySqlTextBuilder");
|
36687
|
+
MySqlText = class extends (_b203 = MySqlColumn, _a280 = entityKind, _b203) {
|
36714
36688
|
constructor() {
|
36715
36689
|
super(...arguments);
|
36716
36690
|
__publicField(this, "textType", this.config.textType);
|
@@ -36720,7 +36694,7 @@ var init_text3 = __esm({
|
|
36720
36694
|
return this.textType;
|
36721
36695
|
}
|
36722
36696
|
};
|
36723
|
-
__publicField(MySqlText,
|
36697
|
+
__publicField(MySqlText, _a280, "MySqlText");
|
36724
36698
|
}
|
36725
36699
|
});
|
36726
36700
|
|
@@ -36729,14 +36703,14 @@ function time2(a, b) {
|
|
36729
36703
|
const { name: name2, config } = getColumnNameAndConfig(a, b);
|
36730
36704
|
return new MySqlTimeBuilder(name2, config);
|
36731
36705
|
}
|
36732
|
-
var
|
36706
|
+
var _a281, _b204, MySqlTimeBuilder, _a282, _b205, MySqlTime;
|
36733
36707
|
var init_time2 = __esm({
|
36734
36708
|
"../drizzle-orm/dist/mysql-core/columns/time.js"() {
|
36735
36709
|
"use strict";
|
36736
36710
|
init_entity();
|
36737
36711
|
init_utils2();
|
36738
36712
|
init_common4();
|
36739
|
-
MySqlTimeBuilder = class extends (
|
36713
|
+
MySqlTimeBuilder = class extends (_b204 = MySqlColumnBuilder, _a281 = entityKind, _b204) {
|
36740
36714
|
constructor(name2, config) {
|
36741
36715
|
super(name2, "string", "MySqlTime");
|
36742
36716
|
this.config.fsp = config?.fsp;
|
@@ -36746,8 +36720,8 @@ var init_time2 = __esm({
|
|
36746
36720
|
return new MySqlTime(table5, this.config);
|
36747
36721
|
}
|
36748
36722
|
};
|
36749
|
-
__publicField(MySqlTimeBuilder,
|
36750
|
-
MySqlTime = class extends (
|
36723
|
+
__publicField(MySqlTimeBuilder, _a281, "MySqlTimeBuilder");
|
36724
|
+
MySqlTime = class extends (_b205 = MySqlColumn, _a282 = entityKind, _b205) {
|
36751
36725
|
constructor() {
|
36752
36726
|
super(...arguments);
|
36753
36727
|
__publicField(this, "fsp", this.config.fsp);
|
@@ -36757,19 +36731,19 @@ var init_time2 = __esm({
|
|
36757
36731
|
return `time${precision}`;
|
36758
36732
|
}
|
36759
36733
|
};
|
36760
|
-
__publicField(MySqlTime,
|
36734
|
+
__publicField(MySqlTime, _a282, "MySqlTime");
|
36761
36735
|
}
|
36762
36736
|
});
|
36763
36737
|
|
36764
36738
|
// ../drizzle-orm/dist/mysql-core/columns/date.common.js
|
36765
|
-
var
|
36739
|
+
var _a283, _b206, MySqlDateColumnBaseBuilder, _a284, _b207, MySqlDateBaseColumn;
|
36766
36740
|
var init_date_common2 = __esm({
|
36767
36741
|
"../drizzle-orm/dist/mysql-core/columns/date.common.js"() {
|
36768
36742
|
"use strict";
|
36769
36743
|
init_entity();
|
36770
36744
|
init_sql();
|
36771
36745
|
init_common4();
|
36772
|
-
MySqlDateColumnBaseBuilder = class extends (
|
36746
|
+
MySqlDateColumnBaseBuilder = class extends (_b206 = MySqlColumnBuilder, _a283 = entityKind, _b206) {
|
36773
36747
|
defaultNow() {
|
36774
36748
|
return this.default(sql`(now())`);
|
36775
36749
|
}
|
@@ -36780,14 +36754,14 @@ var init_date_common2 = __esm({
|
|
36780
36754
|
return this;
|
36781
36755
|
}
|
36782
36756
|
};
|
36783
|
-
__publicField(MySqlDateColumnBaseBuilder,
|
36784
|
-
MySqlDateBaseColumn = class extends (
|
36757
|
+
__publicField(MySqlDateColumnBaseBuilder, _a283, "MySqlDateColumnBuilder");
|
36758
|
+
MySqlDateBaseColumn = class extends (_b207 = MySqlColumn, _a284 = entityKind, _b207) {
|
36785
36759
|
constructor() {
|
36786
36760
|
super(...arguments);
|
36787
36761
|
__publicField(this, "hasOnUpdateNow", this.config.hasOnUpdateNow);
|
36788
36762
|
}
|
36789
36763
|
};
|
36790
|
-
__publicField(MySqlDateBaseColumn,
|
36764
|
+
__publicField(MySqlDateBaseColumn, _a284, "MySqlDateColumn");
|
36791
36765
|
}
|
36792
36766
|
});
|
36793
36767
|
|
@@ -36799,14 +36773,14 @@ function timestamp2(a, b = {}) {
|
|
36799
36773
|
}
|
36800
36774
|
return new MySqlTimestampBuilder(name2, config);
|
36801
36775
|
}
|
36802
|
-
var
|
36776
|
+
var _a285, _b208, MySqlTimestampBuilder, _a286, _b209, MySqlTimestamp, _a287, _b210, MySqlTimestampStringBuilder, _a288, _b211, MySqlTimestampString;
|
36803
36777
|
var init_timestamp2 = __esm({
|
36804
36778
|
"../drizzle-orm/dist/mysql-core/columns/timestamp.js"() {
|
36805
36779
|
"use strict";
|
36806
36780
|
init_entity();
|
36807
36781
|
init_utils2();
|
36808
36782
|
init_date_common2();
|
36809
|
-
MySqlTimestampBuilder = class extends (
|
36783
|
+
MySqlTimestampBuilder = class extends (_b208 = MySqlDateColumnBaseBuilder, _a285 = entityKind, _b208) {
|
36810
36784
|
constructor(name2, config) {
|
36811
36785
|
super(name2, "date", "MySqlTimestamp");
|
36812
36786
|
this.config.fsp = config?.fsp;
|
@@ -36819,8 +36793,8 @@ var init_timestamp2 = __esm({
|
|
36819
36793
|
);
|
36820
36794
|
}
|
36821
36795
|
};
|
36822
|
-
__publicField(MySqlTimestampBuilder,
|
36823
|
-
MySqlTimestamp = class extends (
|
36796
|
+
__publicField(MySqlTimestampBuilder, _a285, "MySqlTimestampBuilder");
|
36797
|
+
MySqlTimestamp = class extends (_b209 = MySqlDateBaseColumn, _a286 = entityKind, _b209) {
|
36824
36798
|
constructor() {
|
36825
36799
|
super(...arguments);
|
36826
36800
|
__publicField(this, "fsp", this.config.fsp);
|
@@ -36836,8 +36810,8 @@ var init_timestamp2 = __esm({
|
|
36836
36810
|
return value.toISOString().slice(0, -1).replace("T", " ");
|
36837
36811
|
}
|
36838
36812
|
};
|
36839
|
-
__publicField(MySqlTimestamp,
|
36840
|
-
MySqlTimestampStringBuilder = class extends (
|
36813
|
+
__publicField(MySqlTimestamp, _a286, "MySqlTimestamp");
|
36814
|
+
MySqlTimestampStringBuilder = class extends (_b210 = MySqlDateColumnBaseBuilder, _a287 = entityKind, _b210) {
|
36841
36815
|
constructor(name2, config) {
|
36842
36816
|
super(name2, "string", "MySqlTimestampString");
|
36843
36817
|
this.config.fsp = config?.fsp;
|
@@ -36850,8 +36824,8 @@ var init_timestamp2 = __esm({
|
|
36850
36824
|
);
|
36851
36825
|
}
|
36852
36826
|
};
|
36853
|
-
__publicField(MySqlTimestampStringBuilder,
|
36854
|
-
MySqlTimestampString = class extends (
|
36827
|
+
__publicField(MySqlTimestampStringBuilder, _a287, "MySqlTimestampStringBuilder");
|
36828
|
+
MySqlTimestampString = class extends (_b211 = MySqlDateBaseColumn, _a288 = entityKind, _b211) {
|
36855
36829
|
constructor() {
|
36856
36830
|
super(...arguments);
|
36857
36831
|
__publicField(this, "fsp", this.config.fsp);
|
@@ -36861,7 +36835,7 @@ var init_timestamp2 = __esm({
|
|
36861
36835
|
return `timestamp${precision}`;
|
36862
36836
|
}
|
36863
36837
|
};
|
36864
|
-
__publicField(MySqlTimestampString,
|
36838
|
+
__publicField(MySqlTimestampString, _a288, "MySqlTimestampString");
|
36865
36839
|
}
|
36866
36840
|
});
|
36867
36841
|
|
@@ -36870,14 +36844,14 @@ function tinyint(a, b) {
|
|
36870
36844
|
const { name: name2, config } = getColumnNameAndConfig(a, b);
|
36871
36845
|
return new MySqlTinyIntBuilder(name2, config);
|
36872
36846
|
}
|
36873
|
-
var
|
36847
|
+
var _a289, _b212, MySqlTinyIntBuilder, _a290, _b213, MySqlTinyInt;
|
36874
36848
|
var init_tinyint = __esm({
|
36875
36849
|
"../drizzle-orm/dist/mysql-core/columns/tinyint.js"() {
|
36876
36850
|
"use strict";
|
36877
36851
|
init_entity();
|
36878
36852
|
init_utils2();
|
36879
36853
|
init_common4();
|
36880
|
-
MySqlTinyIntBuilder = class extends (
|
36854
|
+
MySqlTinyIntBuilder = class extends (_b212 = MySqlColumnBuilderWithAutoIncrement, _a289 = entityKind, _b212) {
|
36881
36855
|
constructor(name2, config) {
|
36882
36856
|
super(name2, "number", "MySqlTinyInt");
|
36883
36857
|
this.config.unsigned = config ? config.unsigned : false;
|
@@ -36890,8 +36864,8 @@ var init_tinyint = __esm({
|
|
36890
36864
|
);
|
36891
36865
|
}
|
36892
36866
|
};
|
36893
|
-
__publicField(MySqlTinyIntBuilder,
|
36894
|
-
MySqlTinyInt = class extends (
|
36867
|
+
__publicField(MySqlTinyIntBuilder, _a289, "MySqlTinyIntBuilder");
|
36868
|
+
MySqlTinyInt = class extends (_b213 = MySqlColumnWithAutoIncrement, _a290 = entityKind, _b213) {
|
36895
36869
|
getSQLType() {
|
36896
36870
|
return `tinyint${this.config.unsigned ? " unsigned" : ""}`;
|
36897
36871
|
}
|
@@ -36902,7 +36876,7 @@ var init_tinyint = __esm({
|
|
36902
36876
|
return value;
|
36903
36877
|
}
|
36904
36878
|
};
|
36905
|
-
__publicField(MySqlTinyInt,
|
36879
|
+
__publicField(MySqlTinyInt, _a290, "MySqlTinyInt");
|
36906
36880
|
}
|
36907
36881
|
});
|
36908
36882
|
|
@@ -36911,14 +36885,14 @@ function varbinary(a, b) {
|
|
36911
36885
|
const { name: name2, config } = getColumnNameAndConfig(a, b);
|
36912
36886
|
return new MySqlVarBinaryBuilder(name2, config);
|
36913
36887
|
}
|
36914
|
-
var
|
36888
|
+
var _a291, _b214, MySqlVarBinaryBuilder, _a292, _b215, MySqlVarBinary;
|
36915
36889
|
var init_varbinary = __esm({
|
36916
36890
|
"../drizzle-orm/dist/mysql-core/columns/varbinary.js"() {
|
36917
36891
|
"use strict";
|
36918
36892
|
init_entity();
|
36919
36893
|
init_utils2();
|
36920
36894
|
init_common4();
|
36921
|
-
MySqlVarBinaryBuilder = class extends (
|
36895
|
+
MySqlVarBinaryBuilder = class extends (_b214 = MySqlColumnBuilder, _a291 = entityKind, _b214) {
|
36922
36896
|
/** @internal */
|
36923
36897
|
constructor(name2, config) {
|
36924
36898
|
super(name2, "string", "MySqlVarBinary");
|
@@ -36932,8 +36906,8 @@ var init_varbinary = __esm({
|
|
36932
36906
|
);
|
36933
36907
|
}
|
36934
36908
|
};
|
36935
|
-
__publicField(MySqlVarBinaryBuilder,
|
36936
|
-
MySqlVarBinary = class extends (
|
36909
|
+
__publicField(MySqlVarBinaryBuilder, _a291, "MySqlVarBinaryBuilder");
|
36910
|
+
MySqlVarBinary = class extends (_b215 = MySqlColumn, _a292 = entityKind, _b215) {
|
36937
36911
|
constructor() {
|
36938
36912
|
super(...arguments);
|
36939
36913
|
__publicField(this, "length", this.config.length);
|
@@ -36942,7 +36916,7 @@ var init_varbinary = __esm({
|
|
36942
36916
|
return this.length === void 0 ? `varbinary` : `varbinary(${this.length})`;
|
36943
36917
|
}
|
36944
36918
|
};
|
36945
|
-
__publicField(MySqlVarBinary,
|
36919
|
+
__publicField(MySqlVarBinary, _a292, "MySqlVarBinary");
|
36946
36920
|
}
|
36947
36921
|
});
|
36948
36922
|
|
@@ -36951,14 +36925,14 @@ function varchar2(a, b) {
|
|
36951
36925
|
const { name: name2, config } = getColumnNameAndConfig(a, b);
|
36952
36926
|
return new MySqlVarCharBuilder(name2, config);
|
36953
36927
|
}
|
36954
|
-
var
|
36928
|
+
var _a293, _b216, MySqlVarCharBuilder, _a294, _b217, MySqlVarChar;
|
36955
36929
|
var init_varchar2 = __esm({
|
36956
36930
|
"../drizzle-orm/dist/mysql-core/columns/varchar.js"() {
|
36957
36931
|
"use strict";
|
36958
36932
|
init_entity();
|
36959
36933
|
init_utils2();
|
36960
36934
|
init_common4();
|
36961
|
-
MySqlVarCharBuilder = class extends (
|
36935
|
+
MySqlVarCharBuilder = class extends (_b216 = MySqlColumnBuilder, _a293 = entityKind, _b216) {
|
36962
36936
|
/** @internal */
|
36963
36937
|
constructor(name2, config) {
|
36964
36938
|
super(name2, "string", "MySqlVarChar");
|
@@ -36973,8 +36947,8 @@ var init_varchar2 = __esm({
|
|
36973
36947
|
);
|
36974
36948
|
}
|
36975
36949
|
};
|
36976
|
-
__publicField(MySqlVarCharBuilder,
|
36977
|
-
MySqlVarChar = class extends (
|
36950
|
+
__publicField(MySqlVarCharBuilder, _a293, "MySqlVarCharBuilder");
|
36951
|
+
MySqlVarChar = class extends (_b217 = MySqlColumn, _a294 = entityKind, _b217) {
|
36978
36952
|
constructor() {
|
36979
36953
|
super(...arguments);
|
36980
36954
|
__publicField(this, "length", this.config.length);
|
@@ -36984,7 +36958,7 @@ var init_varchar2 = __esm({
|
|
36984
36958
|
return this.length === void 0 ? `varchar` : `varchar(${this.length})`;
|
36985
36959
|
}
|
36986
36960
|
};
|
36987
|
-
__publicField(MySqlVarChar,
|
36961
|
+
__publicField(MySqlVarChar, _a294, "MySqlVarChar");
|
36988
36962
|
}
|
36989
36963
|
});
|
36990
36964
|
|
@@ -36992,13 +36966,13 @@ var init_varchar2 = __esm({
|
|
36992
36966
|
function year(name2) {
|
36993
36967
|
return new MySqlYearBuilder(name2 ?? "");
|
36994
36968
|
}
|
36995
|
-
var
|
36969
|
+
var _a295, _b218, MySqlYearBuilder, _a296, _b219, MySqlYear;
|
36996
36970
|
var init_year = __esm({
|
36997
36971
|
"../drizzle-orm/dist/mysql-core/columns/year.js"() {
|
36998
36972
|
"use strict";
|
36999
36973
|
init_entity();
|
37000
36974
|
init_common4();
|
37001
|
-
MySqlYearBuilder = class extends (
|
36975
|
+
MySqlYearBuilder = class extends (_b218 = MySqlColumnBuilder, _a295 = entityKind, _b218) {
|
37002
36976
|
constructor(name2) {
|
37003
36977
|
super(name2, "number", "MySqlYear");
|
37004
36978
|
}
|
@@ -37007,13 +36981,13 @@ var init_year = __esm({
|
|
37007
36981
|
return new MySqlYear(table5, this.config);
|
37008
36982
|
}
|
37009
36983
|
};
|
37010
|
-
__publicField(MySqlYearBuilder,
|
37011
|
-
MySqlYear = class extends (
|
36984
|
+
__publicField(MySqlYearBuilder, _a295, "MySqlYearBuilder");
|
36985
|
+
MySqlYear = class extends (_b219 = MySqlColumn, _a296 = entityKind, _b219) {
|
37012
36986
|
getSQLType() {
|
37013
36987
|
return `year`;
|
37014
36988
|
}
|
37015
36989
|
};
|
37016
|
-
__publicField(MySqlYear,
|
36990
|
+
__publicField(MySqlYear, _a296, "MySqlYear");
|
37017
36991
|
}
|
37018
36992
|
});
|
37019
36993
|
|
@@ -37050,17 +37024,17 @@ var init_columns3 = __esm({
|
|
37050
37024
|
});
|
37051
37025
|
|
37052
37026
|
// ../drizzle-orm/dist/mysql-core/query-builders/count.js
|
37053
|
-
var
|
37027
|
+
var _a297, _b220, _c9, _MySqlCountBuilder, MySqlCountBuilder;
|
37054
37028
|
var init_count3 = __esm({
|
37055
37029
|
"../drizzle-orm/dist/mysql-core/query-builders/count.js"() {
|
37056
37030
|
"use strict";
|
37057
37031
|
init_entity();
|
37058
37032
|
init_sql();
|
37059
|
-
_MySqlCountBuilder = class _MySqlCountBuilder extends (_c9 = SQL,
|
37033
|
+
_MySqlCountBuilder = class _MySqlCountBuilder extends (_c9 = SQL, _b220 = entityKind, _a297 = Symbol.toStringTag, _c9) {
|
37060
37034
|
constructor(params) {
|
37061
37035
|
super(_MySqlCountBuilder.buildEmbeddedCount(params.source, params.filters).queryChunks);
|
37062
37036
|
__publicField(this, "sql");
|
37063
|
-
__publicField(this,
|
37037
|
+
__publicField(this, _a297, "MySqlCountBuilder");
|
37064
37038
|
__publicField(this, "session");
|
37065
37039
|
this.params = params;
|
37066
37040
|
this.mapWith(Number);
|
@@ -37098,13 +37072,13 @@ var init_count3 = __esm({
|
|
37098
37072
|
);
|
37099
37073
|
}
|
37100
37074
|
};
|
37101
|
-
__publicField(_MySqlCountBuilder,
|
37075
|
+
__publicField(_MySqlCountBuilder, _b220, "MySqlCountBuilder");
|
37102
37076
|
MySqlCountBuilder = _MySqlCountBuilder;
|
37103
37077
|
}
|
37104
37078
|
});
|
37105
37079
|
|
37106
37080
|
// ../drizzle-orm/dist/mysql-core/query-builders/delete.js
|
37107
|
-
var
|
37081
|
+
var _a298, _b221, MySqlDeleteBase;
|
37108
37082
|
var init_delete3 = __esm({
|
37109
37083
|
"../drizzle-orm/dist/mysql-core/query-builders/delete.js"() {
|
37110
37084
|
"use strict";
|
@@ -37112,7 +37086,7 @@ var init_delete3 = __esm({
|
|
37112
37086
|
init_query_promise();
|
37113
37087
|
init_selection_proxy();
|
37114
37088
|
init_table();
|
37115
|
-
MySqlDeleteBase = class extends (
|
37089
|
+
MySqlDeleteBase = class extends (_b221 = QueryPromise, _a298 = entityKind, _b221) {
|
37116
37090
|
constructor(table5, session, dialect6, withList) {
|
37117
37091
|
super();
|
37118
37092
|
__publicField(this, "config");
|
@@ -37202,7 +37176,7 @@ var init_delete3 = __esm({
|
|
37202
37176
|
return this;
|
37203
37177
|
}
|
37204
37178
|
};
|
37205
|
-
__publicField(MySqlDeleteBase,
|
37179
|
+
__publicField(MySqlDeleteBase, _a298, "MySqlDelete");
|
37206
37180
|
}
|
37207
37181
|
});
|
37208
37182
|
|
@@ -37289,7 +37263,7 @@ function mysqlTableWithSchema(name2, columns, extraConfig, schema5, baseName = n
|
|
37289
37263
|
}
|
37290
37264
|
return table5;
|
37291
37265
|
}
|
37292
|
-
var InlineForeignKeys3,
|
37266
|
+
var InlineForeignKeys3, _a299, _b222, _c10, _d4, _e4, MySqlTable, mysqlTable;
|
37293
37267
|
var init_table4 = __esm({
|
37294
37268
|
"../drizzle-orm/dist/mysql-core/table.js"() {
|
37295
37269
|
"use strict";
|
@@ -37297,15 +37271,15 @@ var init_table4 = __esm({
|
|
37297
37271
|
init_table();
|
37298
37272
|
init_all3();
|
37299
37273
|
InlineForeignKeys3 = Symbol.for("drizzle:MySqlInlineForeignKeys");
|
37300
|
-
MySqlTable = class extends (_e4 = Table2, _d4 = entityKind, _c10 = Table2.Symbol.Columns,
|
37274
|
+
MySqlTable = class extends (_e4 = Table2, _d4 = entityKind, _c10 = Table2.Symbol.Columns, _b222 = InlineForeignKeys3, _a299 = Table2.Symbol.ExtraConfigBuilder, _e4) {
|
37301
37275
|
constructor() {
|
37302
37276
|
super(...arguments);
|
37303
37277
|
/** @internal */
|
37304
37278
|
__publicField(this, _c10);
|
37305
37279
|
/** @internal */
|
37306
|
-
__publicField(this,
|
37280
|
+
__publicField(this, _b222, []);
|
37307
37281
|
/** @internal */
|
37308
|
-
__publicField(this,
|
37282
|
+
__publicField(this, _a299);
|
37309
37283
|
}
|
37310
37284
|
};
|
37311
37285
|
__publicField(MySqlTable, _d4, "MySqlTable");
|
@@ -37320,20 +37294,20 @@ var init_table4 = __esm({
|
|
37320
37294
|
});
|
37321
37295
|
|
37322
37296
|
// ../drizzle-orm/dist/mysql-core/view-base.js
|
37323
|
-
var
|
37297
|
+
var _a300, _b223, MySqlViewBase;
|
37324
37298
|
var init_view_base3 = __esm({
|
37325
37299
|
"../drizzle-orm/dist/mysql-core/view-base.js"() {
|
37326
37300
|
"use strict";
|
37327
37301
|
init_entity();
|
37328
37302
|
init_sql();
|
37329
|
-
MySqlViewBase = class extends (
|
37303
|
+
MySqlViewBase = class extends (_b223 = View3, _a300 = entityKind, _b223) {
|
37330
37304
|
};
|
37331
|
-
__publicField(MySqlViewBase,
|
37305
|
+
__publicField(MySqlViewBase, _a300, "MySqlViewBase");
|
37332
37306
|
}
|
37333
37307
|
});
|
37334
37308
|
|
37335
37309
|
// ../drizzle-orm/dist/mysql-core/dialect.js
|
37336
|
-
var
|
37310
|
+
var _a301, MySqlDialect;
|
37337
37311
|
var init_dialect3 = __esm({
|
37338
37312
|
"../drizzle-orm/dist/mysql-core/dialect.js"() {
|
37339
37313
|
"use strict";
|
@@ -37352,7 +37326,7 @@ var init_dialect3 = __esm({
|
|
37352
37326
|
init_common4();
|
37353
37327
|
init_table4();
|
37354
37328
|
init_view_base3();
|
37355
|
-
|
37329
|
+
_a301 = entityKind;
|
37356
37330
|
MySqlDialect = class {
|
37357
37331
|
constructor(config) {
|
37358
37332
|
/** @internal */
|
@@ -38164,17 +38138,17 @@ var init_dialect3 = __esm({
|
|
38164
38138
|
};
|
38165
38139
|
}
|
38166
38140
|
};
|
38167
|
-
__publicField(MySqlDialect,
|
38141
|
+
__publicField(MySqlDialect, _a301, "MySqlDialect");
|
38168
38142
|
}
|
38169
38143
|
});
|
38170
38144
|
|
38171
38145
|
// ../drizzle-orm/dist/mysql-core/indexes.js
|
38172
|
-
var
|
38146
|
+
var _a302, IndexBuilderOn3, _a303, IndexBuilder3, _a304, Index5;
|
38173
38147
|
var init_indexes3 = __esm({
|
38174
38148
|
"../drizzle-orm/dist/mysql-core/indexes.js"() {
|
38175
38149
|
"use strict";
|
38176
38150
|
init_entity();
|
38177
|
-
|
38151
|
+
_a302 = entityKind;
|
38178
38152
|
IndexBuilderOn3 = class {
|
38179
38153
|
constructor(name2, unique) {
|
38180
38154
|
this.name = name2;
|
@@ -38184,8 +38158,8 @@ var init_indexes3 = __esm({
|
|
38184
38158
|
return new IndexBuilder3(this.name, columns, this.unique);
|
38185
38159
|
}
|
38186
38160
|
};
|
38187
|
-
__publicField(IndexBuilderOn3,
|
38188
|
-
|
38161
|
+
__publicField(IndexBuilderOn3, _a302, "MySqlIndexBuilderOn");
|
38162
|
+
_a303 = entityKind;
|
38189
38163
|
IndexBuilder3 = class {
|
38190
38164
|
constructor(name2, columns, unique) {
|
38191
38165
|
/** @internal */
|
@@ -38213,26 +38187,26 @@ var init_indexes3 = __esm({
|
|
38213
38187
|
return new Index5(this.config, table5);
|
38214
38188
|
}
|
38215
38189
|
};
|
38216
|
-
__publicField(IndexBuilder3,
|
38217
|
-
|
38190
|
+
__publicField(IndexBuilder3, _a303, "MySqlIndexBuilder");
|
38191
|
+
_a304 = entityKind;
|
38218
38192
|
Index5 = class {
|
38219
38193
|
constructor(config, table5) {
|
38220
38194
|
__publicField(this, "config");
|
38221
38195
|
this.config = { ...config, table: table5 };
|
38222
38196
|
}
|
38223
38197
|
};
|
38224
|
-
__publicField(Index5,
|
38198
|
+
__publicField(Index5, _a304, "MySqlIndex");
|
38225
38199
|
}
|
38226
38200
|
});
|
38227
38201
|
|
38228
38202
|
// ../drizzle-orm/dist/mysql-core/primary-keys.js
|
38229
|
-
var
|
38203
|
+
var _a305, PrimaryKeyBuilder3, _a306, PrimaryKey3;
|
38230
38204
|
var init_primary_keys3 = __esm({
|
38231
38205
|
"../drizzle-orm/dist/mysql-core/primary-keys.js"() {
|
38232
38206
|
"use strict";
|
38233
38207
|
init_entity();
|
38234
38208
|
init_table4();
|
38235
|
-
|
38209
|
+
_a305 = entityKind;
|
38236
38210
|
PrimaryKeyBuilder3 = class {
|
38237
38211
|
constructor(columns, name2) {
|
38238
38212
|
/** @internal */
|
@@ -38247,8 +38221,8 @@ var init_primary_keys3 = __esm({
|
|
38247
38221
|
return new PrimaryKey3(table5, this.columns, this.name);
|
38248
38222
|
}
|
38249
38223
|
};
|
38250
|
-
__publicField(PrimaryKeyBuilder3,
|
38251
|
-
|
38224
|
+
__publicField(PrimaryKeyBuilder3, _a305, "MySqlPrimaryKeyBuilder");
|
38225
|
+
_a306 = entityKind;
|
38252
38226
|
PrimaryKey3 = class {
|
38253
38227
|
constructor(table5, columns, name2) {
|
38254
38228
|
__publicField(this, "columns");
|
@@ -38261,7 +38235,7 @@ var init_primary_keys3 = __esm({
|
|
38261
38235
|
return this.name ?? `${this.table[MySqlTable.Symbol.Name]}_${this.columns.map((column5) => column5.name).join("_")}_pk`;
|
38262
38236
|
}
|
38263
38237
|
};
|
38264
|
-
__publicField(PrimaryKey3,
|
38238
|
+
__publicField(PrimaryKey3, _a306, "MySqlPrimaryKey");
|
38265
38239
|
}
|
38266
38240
|
});
|
38267
38241
|
|
@@ -38363,7 +38337,7 @@ function createSetOperator3(type, isAll) {
|
|
38363
38337
|
return leftSelect.addSetOperators(setOperators);
|
38364
38338
|
};
|
38365
38339
|
}
|
38366
|
-
var
|
38340
|
+
var _a307, MySqlSelectBuilder, _a308, _b224, MySqlSelectQueryBuilderBase, _a309, _b225, MySqlSelectBase, getMySqlSetOperators, union3, unionAll3, intersect3, intersectAll2, except3, exceptAll2;
|
38367
38341
|
var init_select4 = __esm({
|
38368
38342
|
"../drizzle-orm/dist/mysql-core/query-builders/select.js"() {
|
38369
38343
|
"use strict";
|
@@ -38379,7 +38353,7 @@ var init_select4 = __esm({
|
|
38379
38353
|
init_view_common();
|
38380
38354
|
init_utils8();
|
38381
38355
|
init_view_base3();
|
38382
|
-
|
38356
|
+
_a307 = entityKind;
|
38383
38357
|
MySqlSelectBuilder = class {
|
38384
38358
|
constructor(config) {
|
38385
38359
|
__publicField(this, "fields");
|
@@ -38441,8 +38415,8 @@ var init_select4 = __esm({
|
|
38441
38415
|
);
|
38442
38416
|
}
|
38443
38417
|
};
|
38444
|
-
__publicField(MySqlSelectBuilder,
|
38445
|
-
MySqlSelectQueryBuilderBase = class extends (
|
38418
|
+
__publicField(MySqlSelectBuilder, _a307, "MySqlSelectBuilder");
|
38419
|
+
MySqlSelectQueryBuilderBase = class extends (_b224 = TypedQueryBuilder, _a308 = entityKind, _b224) {
|
38446
38420
|
constructor({ table: table5, fields, isPartialSelect, session, dialect: dialect6, withList, distinct, useIndex, forceIndex, ignoreIndex }) {
|
38447
38421
|
super();
|
38448
38422
|
__publicField(this, "_");
|
@@ -39100,8 +39074,8 @@ var init_select4 = __esm({
|
|
39100
39074
|
return this;
|
39101
39075
|
}
|
39102
39076
|
};
|
39103
|
-
__publicField(MySqlSelectQueryBuilderBase,
|
39104
|
-
MySqlSelectBase = class extends (
|
39077
|
+
__publicField(MySqlSelectQueryBuilderBase, _a308, "MySqlSelectQueryBuilder");
|
39078
|
+
MySqlSelectBase = class extends (_b225 = MySqlSelectQueryBuilderBase, _a309 = entityKind, _b225) {
|
39105
39079
|
constructor() {
|
39106
39080
|
super(...arguments);
|
39107
39081
|
__publicField(this, "execute", (placeholderValues) => {
|
@@ -39125,7 +39099,7 @@ var init_select4 = __esm({
|
|
39125
39099
|
return query;
|
39126
39100
|
}
|
39127
39101
|
};
|
39128
|
-
__publicField(MySqlSelectBase,
|
39102
|
+
__publicField(MySqlSelectBase, _a309, "MySqlSelect");
|
39129
39103
|
applyMixins(MySqlSelectBase, [QueryPromise]);
|
39130
39104
|
getMySqlSetOperators = () => ({
|
39131
39105
|
union: union3,
|
@@ -39145,7 +39119,7 @@ var init_select4 = __esm({
|
|
39145
39119
|
});
|
39146
39120
|
|
39147
39121
|
// ../drizzle-orm/dist/mysql-core/query-builders/query-builder.js
|
39148
|
-
var
|
39122
|
+
var _a310, QueryBuilder3;
|
39149
39123
|
var init_query_builder4 = __esm({
|
39150
39124
|
"../drizzle-orm/dist/mysql-core/query-builders/query-builder.js"() {
|
39151
39125
|
"use strict";
|
@@ -39154,7 +39128,7 @@ var init_query_builder4 = __esm({
|
|
39154
39128
|
init_selection_proxy();
|
39155
39129
|
init_subquery();
|
39156
39130
|
init_select4();
|
39157
|
-
|
39131
|
+
_a310 = entityKind;
|
39158
39132
|
QueryBuilder3 = class {
|
39159
39133
|
constructor(dialect6) {
|
39160
39134
|
__publicField(this, "dialect");
|
@@ -39220,12 +39194,12 @@ var init_query_builder4 = __esm({
|
|
39220
39194
|
return this.dialect;
|
39221
39195
|
}
|
39222
39196
|
};
|
39223
|
-
__publicField(QueryBuilder3,
|
39197
|
+
__publicField(QueryBuilder3, _a310, "MySqlQueryBuilder");
|
39224
39198
|
}
|
39225
39199
|
});
|
39226
39200
|
|
39227
39201
|
// ../drizzle-orm/dist/mysql-core/query-builders/insert.js
|
39228
|
-
var
|
39202
|
+
var _a311, MySqlInsertBuilder, _a312, _b226, MySqlInsertBase;
|
39229
39203
|
var init_insert3 = __esm({
|
39230
39204
|
"../drizzle-orm/dist/mysql-core/query-builders/insert.js"() {
|
39231
39205
|
"use strict";
|
@@ -39235,7 +39209,7 @@ var init_insert3 = __esm({
|
|
39235
39209
|
init_table();
|
39236
39210
|
init_utils2();
|
39237
39211
|
init_query_builder4();
|
39238
|
-
|
39212
|
+
_a311 = entityKind;
|
39239
39213
|
MySqlInsertBuilder = class {
|
39240
39214
|
constructor(table5, session, dialect6) {
|
39241
39215
|
__publicField(this, "shouldIgnore", false);
|
@@ -39273,8 +39247,8 @@ var init_insert3 = __esm({
|
|
39273
39247
|
return new MySqlInsertBase(this.table, select, this.shouldIgnore, this.session, this.dialect, true);
|
39274
39248
|
}
|
39275
39249
|
};
|
39276
|
-
__publicField(MySqlInsertBuilder,
|
39277
|
-
MySqlInsertBase = class extends (
|
39250
|
+
__publicField(MySqlInsertBuilder, _a311, "MySqlInsertBuilder");
|
39251
|
+
MySqlInsertBase = class extends (_b226 = QueryPromise, _a312 = entityKind, _b226) {
|
39278
39252
|
constructor(table5, values, ignore, session, dialect6, select) {
|
39279
39253
|
super();
|
39280
39254
|
__publicField(this, "config");
|
@@ -39355,7 +39329,7 @@ var init_insert3 = __esm({
|
|
39355
39329
|
return this;
|
39356
39330
|
}
|
39357
39331
|
};
|
39358
|
-
__publicField(MySqlInsertBase,
|
39332
|
+
__publicField(MySqlInsertBase, _a312, "MySqlInsert");
|
39359
39333
|
}
|
39360
39334
|
});
|
39361
39335
|
|
@@ -39367,7 +39341,7 @@ var init_select_types3 = __esm({
|
|
39367
39341
|
});
|
39368
39342
|
|
39369
39343
|
// ../drizzle-orm/dist/mysql-core/query-builders/update.js
|
39370
|
-
var
|
39344
|
+
var _a313, MySqlUpdateBuilder, _a314, _b227, MySqlUpdateBase;
|
39371
39345
|
var init_update3 = __esm({
|
39372
39346
|
"../drizzle-orm/dist/mysql-core/query-builders/update.js"() {
|
39373
39347
|
"use strict";
|
@@ -39376,7 +39350,7 @@ var init_update3 = __esm({
|
|
39376
39350
|
init_selection_proxy();
|
39377
39351
|
init_table();
|
39378
39352
|
init_utils2();
|
39379
|
-
|
39353
|
+
_a313 = entityKind;
|
39380
39354
|
MySqlUpdateBuilder = class {
|
39381
39355
|
constructor(table5, session, dialect6, withList) {
|
39382
39356
|
this.table = table5;
|
@@ -39388,8 +39362,8 @@ var init_update3 = __esm({
|
|
39388
39362
|
return new MySqlUpdateBase(this.table, mapUpdateSet(this.table, values), this.session, this.dialect, this.withList);
|
39389
39363
|
}
|
39390
39364
|
};
|
39391
|
-
__publicField(MySqlUpdateBuilder,
|
39392
|
-
MySqlUpdateBase = class extends (
|
39365
|
+
__publicField(MySqlUpdateBuilder, _a313, "MySqlUpdateBuilder");
|
39366
|
+
MySqlUpdateBase = class extends (_b227 = QueryPromise, _a314 = entityKind, _b227) {
|
39393
39367
|
constructor(table5, set, session, dialect6, withList) {
|
39394
39368
|
super();
|
39395
39369
|
__publicField(this, "config");
|
@@ -39482,7 +39456,7 @@ var init_update3 = __esm({
|
|
39482
39456
|
return this;
|
39483
39457
|
}
|
39484
39458
|
};
|
39485
|
-
__publicField(MySqlUpdateBase,
|
39459
|
+
__publicField(MySqlUpdateBase, _a314, "MySqlUpdate");
|
39486
39460
|
}
|
39487
39461
|
});
|
39488
39462
|
|
@@ -39500,14 +39474,14 @@ var init_query_builders3 = __esm({
|
|
39500
39474
|
});
|
39501
39475
|
|
39502
39476
|
// ../drizzle-orm/dist/mysql-core/query-builders/query.js
|
39503
|
-
var
|
39477
|
+
var _a315, RelationalQueryBuilder3, _a316, _b228, MySqlRelationalQuery;
|
39504
39478
|
var init_query3 = __esm({
|
39505
39479
|
"../drizzle-orm/dist/mysql-core/query-builders/query.js"() {
|
39506
39480
|
"use strict";
|
39507
39481
|
init_entity();
|
39508
39482
|
init_query_promise();
|
39509
39483
|
init_relations();
|
39510
|
-
|
39484
|
+
_a315 = entityKind;
|
39511
39485
|
RelationalQueryBuilder3 = class {
|
39512
39486
|
constructor(fullSchema, schema5, tableNamesMap, table5, tableConfig, dialect6, session, mode) {
|
39513
39487
|
this.fullSchema = fullSchema;
|
@@ -39548,8 +39522,8 @@ var init_query3 = __esm({
|
|
39548
39522
|
);
|
39549
39523
|
}
|
39550
39524
|
};
|
39551
|
-
__publicField(RelationalQueryBuilder3,
|
39552
|
-
MySqlRelationalQuery = class extends (
|
39525
|
+
__publicField(RelationalQueryBuilder3, _a315, "MySqlRelationalQueryBuilder");
|
39526
|
+
MySqlRelationalQuery = class extends (_b228 = QueryPromise, _a316 = entityKind, _b228) {
|
39553
39527
|
constructor(fullSchema, schema5, tableNamesMap, table5, tableConfig, dialect6, session, config, queryMode, mode) {
|
39554
39528
|
super();
|
39555
39529
|
this.fullSchema = fullSchema;
|
@@ -39613,12 +39587,12 @@ var init_query3 = __esm({
|
|
39613
39587
|
return this.prepare().execute();
|
39614
39588
|
}
|
39615
39589
|
};
|
39616
|
-
__publicField(MySqlRelationalQuery,
|
39590
|
+
__publicField(MySqlRelationalQuery, _a316, "MySqlRelationalQuery");
|
39617
39591
|
}
|
39618
39592
|
});
|
39619
39593
|
|
39620
39594
|
// ../drizzle-orm/dist/mysql-core/db.js
|
39621
|
-
var
|
39595
|
+
var _a317, MySqlDatabase;
|
39622
39596
|
var init_db3 = __esm({
|
39623
39597
|
"../drizzle-orm/dist/mysql-core/db.js"() {
|
39624
39598
|
"use strict";
|
@@ -39629,7 +39603,7 @@ var init_db3 = __esm({
|
|
39629
39603
|
init_count3();
|
39630
39604
|
init_query_builders3();
|
39631
39605
|
init_query3();
|
39632
|
-
|
39606
|
+
_a317 = entityKind;
|
39633
39607
|
MySqlDatabase = class {
|
39634
39608
|
constructor(dialect6, session, schema5, mode) {
|
39635
39609
|
__publicField(this, "query");
|
@@ -39846,7 +39820,7 @@ var init_db3 = __esm({
|
|
39846
39820
|
return this.session.transaction(transaction, config);
|
39847
39821
|
}
|
39848
39822
|
};
|
39849
|
-
__publicField(MySqlDatabase,
|
39823
|
+
__publicField(MySqlDatabase, _a317, "MySqlDatabase");
|
39850
39824
|
}
|
39851
39825
|
});
|
39852
39826
|
|
@@ -39857,7 +39831,7 @@ function mysqlViewWithSchema(name2, selection, schema5) {
|
|
39857
39831
|
}
|
39858
39832
|
return new ViewBuilder3(name2, schema5);
|
39859
39833
|
}
|
39860
|
-
var
|
39834
|
+
var _a318, ViewBuilderCore2, _a319, _b229, ViewBuilder3, _a320, _b230, ManualViewBuilder3, _a321, _b231, _c11, MySqlView2;
|
39861
39835
|
var init_view3 = __esm({
|
39862
39836
|
"../drizzle-orm/dist/mysql-core/view.js"() {
|
39863
39837
|
"use strict";
|
@@ -39868,7 +39842,7 @@ var init_view3 = __esm({
|
|
39868
39842
|
init_table4();
|
39869
39843
|
init_view_base3();
|
39870
39844
|
init_view_common3();
|
39871
|
-
|
39845
|
+
_a318 = entityKind;
|
39872
39846
|
ViewBuilderCore2 = class {
|
39873
39847
|
constructor(name2, schema5) {
|
39874
39848
|
__publicField(this, "config", {});
|
@@ -39888,8 +39862,8 @@ var init_view3 = __esm({
|
|
39888
39862
|
return this;
|
39889
39863
|
}
|
39890
39864
|
};
|
39891
|
-
__publicField(ViewBuilderCore2,
|
39892
|
-
ViewBuilder3 = class extends (
|
39865
|
+
__publicField(ViewBuilderCore2, _a318, "MySqlViewBuilder");
|
39866
|
+
ViewBuilder3 = class extends (_b229 = ViewBuilderCore2, _a319 = entityKind, _b229) {
|
39893
39867
|
as(qb) {
|
39894
39868
|
if (typeof qb === "function") {
|
39895
39869
|
qb = qb(new QueryBuilder3());
|
@@ -39915,8 +39889,8 @@ var init_view3 = __esm({
|
|
39915
39889
|
);
|
39916
39890
|
}
|
39917
39891
|
};
|
39918
|
-
__publicField(ViewBuilder3,
|
39919
|
-
ManualViewBuilder3 = class extends (
|
39892
|
+
__publicField(ViewBuilder3, _a319, "MySqlViewBuilder");
|
39893
|
+
ManualViewBuilder3 = class extends (_b230 = ViewBuilderCore2, _a320 = entityKind, _b230) {
|
39920
39894
|
constructor(name2, columns, schema5) {
|
39921
39895
|
super(name2, schema5);
|
39922
39896
|
__publicField(this, "columns");
|
@@ -39961,27 +39935,27 @@ var init_view3 = __esm({
|
|
39961
39935
|
);
|
39962
39936
|
}
|
39963
39937
|
};
|
39964
|
-
__publicField(ManualViewBuilder3,
|
39965
|
-
MySqlView2 = class extends (_c11 = MySqlViewBase,
|
39938
|
+
__publicField(ManualViewBuilder3, _a320, "MySqlManualViewBuilder");
|
39939
|
+
MySqlView2 = class extends (_c11 = MySqlViewBase, _b231 = entityKind, _a321 = MySqlViewConfig, _c11) {
|
39966
39940
|
constructor({ mysqlConfig, config }) {
|
39967
39941
|
super(config);
|
39968
|
-
__publicField(this,
|
39942
|
+
__publicField(this, _a321);
|
39969
39943
|
this[MySqlViewConfig] = mysqlConfig;
|
39970
39944
|
}
|
39971
39945
|
};
|
39972
|
-
__publicField(MySqlView2,
|
39946
|
+
__publicField(MySqlView2, _b231, "MySqlView");
|
39973
39947
|
}
|
39974
39948
|
});
|
39975
39949
|
|
39976
39950
|
// ../drizzle-orm/dist/mysql-core/schema.js
|
39977
|
-
var
|
39951
|
+
var _a322, MySqlSchema5;
|
39978
39952
|
var init_schema2 = __esm({
|
39979
39953
|
"../drizzle-orm/dist/mysql-core/schema.js"() {
|
39980
39954
|
"use strict";
|
39981
39955
|
init_entity();
|
39982
39956
|
init_table4();
|
39983
39957
|
init_view3();
|
39984
|
-
|
39958
|
+
_a322 = entityKind;
|
39985
39959
|
MySqlSchema5 = class {
|
39986
39960
|
constructor(schemaName) {
|
39987
39961
|
__publicField(this, "table", (name2, columns, extraConfig) => {
|
@@ -39993,12 +39967,12 @@ var init_schema2 = __esm({
|
|
39993
39967
|
this.schemaName = schemaName;
|
39994
39968
|
}
|
39995
39969
|
};
|
39996
|
-
__publicField(MySqlSchema5,
|
39970
|
+
__publicField(MySqlSchema5, _a322, "MySqlSchema");
|
39997
39971
|
}
|
39998
39972
|
});
|
39999
39973
|
|
40000
39974
|
// ../drizzle-orm/dist/mysql-core/session.js
|
40001
|
-
var
|
39975
|
+
var _a323, MySqlPreparedQuery, _a324, MySqlSession, _a325, _b232, MySqlTransaction;
|
40002
39976
|
var init_session3 = __esm({
|
40003
39977
|
"../drizzle-orm/dist/mysql-core/session.js"() {
|
40004
39978
|
"use strict";
|
@@ -40006,15 +39980,15 @@ var init_session3 = __esm({
|
|
40006
39980
|
init_errors();
|
40007
39981
|
init_sql();
|
40008
39982
|
init_db3();
|
40009
|
-
|
39983
|
+
_a323 = entityKind;
|
40010
39984
|
MySqlPreparedQuery = class {
|
40011
39985
|
constructor() {
|
40012
39986
|
/** @internal */
|
40013
39987
|
__publicField(this, "joinsNotNullableMap");
|
40014
39988
|
}
|
40015
39989
|
};
|
40016
|
-
__publicField(MySqlPreparedQuery,
|
40017
|
-
|
39990
|
+
__publicField(MySqlPreparedQuery, _a323, "MySqlPreparedQuery");
|
39991
|
+
_a324 = entityKind;
|
40018
39992
|
MySqlSession = class {
|
40019
39993
|
constructor(dialect6) {
|
40020
39994
|
this.dialect = dialect6;
|
@@ -40049,8 +40023,8 @@ var init_session3 = __esm({
|
|
40049
40023
|
return parts.length ? sql`start transaction ${sql.raw(parts.join(" "))}` : void 0;
|
40050
40024
|
}
|
40051
40025
|
};
|
40052
|
-
__publicField(MySqlSession,
|
40053
|
-
MySqlTransaction = class extends (
|
40026
|
+
__publicField(MySqlSession, _a324, "MySqlSession");
|
40027
|
+
MySqlTransaction = class extends (_b232 = MySqlDatabase, _a325 = entityKind, _b232) {
|
40054
40028
|
constructor(dialect6, session, schema5, nestedIndex, mode) {
|
40055
40029
|
super(dialect6, session, schema5, mode);
|
40056
40030
|
this.schema = schema5;
|
@@ -40060,7 +40034,7 @@ var init_session3 = __esm({
|
|
40060
40034
|
throw new TransactionRollbackError();
|
40061
40035
|
}
|
40062
40036
|
};
|
40063
|
-
__publicField(MySqlTransaction,
|
40037
|
+
__publicField(MySqlTransaction, _a325, "MySqlTransaction");
|
40064
40038
|
}
|
40065
40039
|
});
|
40066
40040
|
|
@@ -41257,13 +41231,13 @@ var init_alias5 = __esm({
|
|
41257
41231
|
function uniqueKeyName4(table5, columns) {
|
41258
41232
|
return `${table5[TableName]}_${columns.join("_")}_unique`;
|
41259
41233
|
}
|
41260
|
-
var
|
41234
|
+
var _a326, UniqueConstraintBuilder4, _a327, UniqueOnConstraintBuilder4, _a328, UniqueConstraint4;
|
41261
41235
|
var init_unique_constraint4 = __esm({
|
41262
41236
|
"../drizzle-orm/dist/singlestore-core/unique-constraint.js"() {
|
41263
41237
|
"use strict";
|
41264
41238
|
init_entity();
|
41265
41239
|
init_table_utils();
|
41266
|
-
|
41240
|
+
_a326 = entityKind;
|
41267
41241
|
UniqueConstraintBuilder4 = class {
|
41268
41242
|
constructor(columns, name2) {
|
41269
41243
|
/** @internal */
|
@@ -41276,8 +41250,8 @@ var init_unique_constraint4 = __esm({
|
|
41276
41250
|
return new UniqueConstraint4(table5, this.columns, this.name);
|
41277
41251
|
}
|
41278
41252
|
};
|
41279
|
-
__publicField(UniqueConstraintBuilder4,
|
41280
|
-
|
41253
|
+
__publicField(UniqueConstraintBuilder4, _a326, "SingleStoreUniqueConstraintBuilder");
|
41254
|
+
_a327 = entityKind;
|
41281
41255
|
UniqueOnConstraintBuilder4 = class {
|
41282
41256
|
constructor(name2) {
|
41283
41257
|
/** @internal */
|
@@ -41288,8 +41262,8 @@ var init_unique_constraint4 = __esm({
|
|
41288
41262
|
return new UniqueConstraintBuilder4(columns, this.name);
|
41289
41263
|
}
|
41290
41264
|
};
|
41291
|
-
__publicField(UniqueOnConstraintBuilder4,
|
41292
|
-
|
41265
|
+
__publicField(UniqueOnConstraintBuilder4, _a327, "SingleStoreUniqueOnConstraintBuilder");
|
41266
|
+
_a328 = entityKind;
|
41293
41267
|
UniqueConstraint4 = class {
|
41294
41268
|
constructor(table5, columns, name2) {
|
41295
41269
|
__publicField(this, "columns");
|
@@ -41303,12 +41277,12 @@ var init_unique_constraint4 = __esm({
|
|
41303
41277
|
return this.name;
|
41304
41278
|
}
|
41305
41279
|
};
|
41306
|
-
__publicField(UniqueConstraint4,
|
41280
|
+
__publicField(UniqueConstraint4, _a328, "SingleStoreUniqueConstraint");
|
41307
41281
|
}
|
41308
41282
|
});
|
41309
41283
|
|
41310
41284
|
// ../drizzle-orm/dist/singlestore-core/columns/common.js
|
41311
|
-
var
|
41285
|
+
var _a329, _b233, SingleStoreColumnBuilder, _a330, _b234, SingleStoreColumn, _a331, _b235, SingleStoreColumnBuilderWithAutoIncrement, _a332, _b236, SingleStoreColumnWithAutoIncrement;
|
41312
41286
|
var init_common5 = __esm({
|
41313
41287
|
"../drizzle-orm/dist/singlestore-core/columns/common.js"() {
|
41314
41288
|
"use strict";
|
@@ -41316,7 +41290,7 @@ var init_common5 = __esm({
|
|
41316
41290
|
init_column();
|
41317
41291
|
init_entity();
|
41318
41292
|
init_unique_constraint4();
|
41319
|
-
SingleStoreColumnBuilder = class extends (
|
41293
|
+
SingleStoreColumnBuilder = class extends (_b233 = ColumnBuilder, _a329 = entityKind, _b233) {
|
41320
41294
|
unique(name2) {
|
41321
41295
|
this.config.isUnique = true;
|
41322
41296
|
this.config.uniqueName = name2;
|
@@ -41333,8 +41307,8 @@ var init_common5 = __esm({
|
|
41333
41307
|
return this;
|
41334
41308
|
}
|
41335
41309
|
};
|
41336
|
-
__publicField(SingleStoreColumnBuilder,
|
41337
|
-
SingleStoreColumn = class extends (
|
41310
|
+
__publicField(SingleStoreColumnBuilder, _a329, "SingleStoreColumnBuilder");
|
41311
|
+
SingleStoreColumn = class extends (_b234 = Column2, _a330 = entityKind, _b234) {
|
41338
41312
|
constructor(table5, config) {
|
41339
41313
|
if (!config.uniqueName) {
|
41340
41314
|
config.uniqueName = uniqueKeyName4(table5, [config.name]);
|
@@ -41343,8 +41317,8 @@ var init_common5 = __esm({
|
|
41343
41317
|
this.table = table5;
|
41344
41318
|
}
|
41345
41319
|
};
|
41346
|
-
__publicField(SingleStoreColumn,
|
41347
|
-
SingleStoreColumnBuilderWithAutoIncrement = class extends (
|
41320
|
+
__publicField(SingleStoreColumn, _a330, "SingleStoreColumn");
|
41321
|
+
SingleStoreColumnBuilderWithAutoIncrement = class extends (_b235 = SingleStoreColumnBuilder, _a331 = entityKind, _b235) {
|
41348
41322
|
constructor(name2, dataType, columnType) {
|
41349
41323
|
super(name2, dataType, columnType);
|
41350
41324
|
this.config.autoIncrement = false;
|
@@ -41355,14 +41329,14 @@ var init_common5 = __esm({
|
|
41355
41329
|
return this;
|
41356
41330
|
}
|
41357
41331
|
};
|
41358
|
-
__publicField(SingleStoreColumnBuilderWithAutoIncrement,
|
41359
|
-
SingleStoreColumnWithAutoIncrement = class extends (
|
41332
|
+
__publicField(SingleStoreColumnBuilderWithAutoIncrement, _a331, "SingleStoreColumnBuilderWithAutoIncrement");
|
41333
|
+
SingleStoreColumnWithAutoIncrement = class extends (_b236 = SingleStoreColumn, _a332 = entityKind, _b236) {
|
41360
41334
|
constructor() {
|
41361
41335
|
super(...arguments);
|
41362
41336
|
__publicField(this, "autoIncrement", this.config.autoIncrement);
|
41363
41337
|
}
|
41364
41338
|
};
|
41365
|
-
__publicField(SingleStoreColumnWithAutoIncrement,
|
41339
|
+
__publicField(SingleStoreColumnWithAutoIncrement, _a332, "SingleStoreColumnWithAutoIncrement");
|
41366
41340
|
}
|
41367
41341
|
});
|
41368
41342
|
|
@@ -41374,14 +41348,14 @@ function bigint3(a, b) {
|
|
41374
41348
|
}
|
41375
41349
|
return new SingleStoreBigInt64Builder(name2, config.unsigned);
|
41376
41350
|
}
|
41377
|
-
var
|
41351
|
+
var _a333, _b237, SingleStoreBigInt53Builder, _a334, _b238, SingleStoreBigInt53, _a335, _b239, SingleStoreBigInt64Builder, _a336, _b240, SingleStoreBigInt64;
|
41378
41352
|
var init_bigint3 = __esm({
|
41379
41353
|
"../drizzle-orm/dist/singlestore-core/columns/bigint.js"() {
|
41380
41354
|
"use strict";
|
41381
41355
|
init_entity();
|
41382
41356
|
init_utils2();
|
41383
41357
|
init_common5();
|
41384
|
-
SingleStoreBigInt53Builder = class extends (
|
41358
|
+
SingleStoreBigInt53Builder = class extends (_b237 = SingleStoreColumnBuilderWithAutoIncrement, _a333 = entityKind, _b237) {
|
41385
41359
|
constructor(name2, unsigned = false) {
|
41386
41360
|
super(name2, "number", "SingleStoreBigInt53");
|
41387
41361
|
this.config.unsigned = unsigned;
|
@@ -41394,8 +41368,8 @@ var init_bigint3 = __esm({
|
|
41394
41368
|
);
|
41395
41369
|
}
|
41396
41370
|
};
|
41397
|
-
__publicField(SingleStoreBigInt53Builder,
|
41398
|
-
SingleStoreBigInt53 = class extends (
|
41371
|
+
__publicField(SingleStoreBigInt53Builder, _a333, "SingleStoreBigInt53Builder");
|
41372
|
+
SingleStoreBigInt53 = class extends (_b238 = SingleStoreColumnWithAutoIncrement, _a334 = entityKind, _b238) {
|
41399
41373
|
getSQLType() {
|
41400
41374
|
return `bigint${this.config.unsigned ? " unsigned" : ""}`;
|
41401
41375
|
}
|
@@ -41406,8 +41380,8 @@ var init_bigint3 = __esm({
|
|
41406
41380
|
return Number(value);
|
41407
41381
|
}
|
41408
41382
|
};
|
41409
|
-
__publicField(SingleStoreBigInt53,
|
41410
|
-
SingleStoreBigInt64Builder = class extends (
|
41383
|
+
__publicField(SingleStoreBigInt53, _a334, "SingleStoreBigInt53");
|
41384
|
+
SingleStoreBigInt64Builder = class extends (_b239 = SingleStoreColumnBuilderWithAutoIncrement, _a335 = entityKind, _b239) {
|
41411
41385
|
constructor(name2, unsigned = false) {
|
41412
41386
|
super(name2, "bigint", "SingleStoreBigInt64");
|
41413
41387
|
this.config.unsigned = unsigned;
|
@@ -41420,8 +41394,8 @@ var init_bigint3 = __esm({
|
|
41420
41394
|
);
|
41421
41395
|
}
|
41422
41396
|
};
|
41423
|
-
__publicField(SingleStoreBigInt64Builder,
|
41424
|
-
SingleStoreBigInt64 = class extends (
|
41397
|
+
__publicField(SingleStoreBigInt64Builder, _a335, "SingleStoreBigInt64Builder");
|
41398
|
+
SingleStoreBigInt64 = class extends (_b240 = SingleStoreColumnWithAutoIncrement, _a336 = entityKind, _b240) {
|
41425
41399
|
getSQLType() {
|
41426
41400
|
return `bigint${this.config.unsigned ? " unsigned" : ""}`;
|
41427
41401
|
}
|
@@ -41430,7 +41404,7 @@ var init_bigint3 = __esm({
|
|
41430
41404
|
return BigInt(value);
|
41431
41405
|
}
|
41432
41406
|
};
|
41433
|
-
__publicField(SingleStoreBigInt64,
|
41407
|
+
__publicField(SingleStoreBigInt64, _a336, "SingleStoreBigInt64");
|
41434
41408
|
}
|
41435
41409
|
});
|
41436
41410
|
|
@@ -41439,14 +41413,14 @@ function binary2(a, b = {}) {
|
|
41439
41413
|
const { name: name2, config } = getColumnNameAndConfig(a, b);
|
41440
41414
|
return new SingleStoreBinaryBuilder(name2, config.length);
|
41441
41415
|
}
|
41442
|
-
var
|
41416
|
+
var _a337, _b241, SingleStoreBinaryBuilder, _a338, _b242, SingleStoreBinary;
|
41443
41417
|
var init_binary2 = __esm({
|
41444
41418
|
"../drizzle-orm/dist/singlestore-core/columns/binary.js"() {
|
41445
41419
|
"use strict";
|
41446
41420
|
init_entity();
|
41447
41421
|
init_utils2();
|
41448
41422
|
init_common5();
|
41449
|
-
SingleStoreBinaryBuilder = class extends (
|
41423
|
+
SingleStoreBinaryBuilder = class extends (_b241 = SingleStoreColumnBuilder, _a337 = entityKind, _b241) {
|
41450
41424
|
constructor(name2, length) {
|
41451
41425
|
super(name2, "string", "SingleStoreBinary");
|
41452
41426
|
this.config.length = length;
|
@@ -41459,8 +41433,8 @@ var init_binary2 = __esm({
|
|
41459
41433
|
);
|
41460
41434
|
}
|
41461
41435
|
};
|
41462
|
-
__publicField(SingleStoreBinaryBuilder,
|
41463
|
-
SingleStoreBinary = class extends (
|
41436
|
+
__publicField(SingleStoreBinaryBuilder, _a337, "SingleStoreBinaryBuilder");
|
41437
|
+
SingleStoreBinary = class extends (_b242 = SingleStoreColumn, _a338 = entityKind, _b242) {
|
41464
41438
|
constructor() {
|
41465
41439
|
super(...arguments);
|
41466
41440
|
__publicField(this, "length", this.config.length);
|
@@ -41469,7 +41443,7 @@ var init_binary2 = __esm({
|
|
41469
41443
|
return this.length === void 0 ? `binary` : `binary(${this.length})`;
|
41470
41444
|
}
|
41471
41445
|
};
|
41472
|
-
__publicField(SingleStoreBinary,
|
41446
|
+
__publicField(SingleStoreBinary, _a338, "SingleStoreBinary");
|
41473
41447
|
}
|
41474
41448
|
});
|
41475
41449
|
|
@@ -41477,13 +41451,13 @@ var init_binary2 = __esm({
|
|
41477
41451
|
function boolean3(name2) {
|
41478
41452
|
return new SingleStoreBooleanBuilder(name2 ?? "");
|
41479
41453
|
}
|
41480
|
-
var
|
41454
|
+
var _a339, _b243, SingleStoreBooleanBuilder, _a340, _b244, SingleStoreBoolean;
|
41481
41455
|
var init_boolean3 = __esm({
|
41482
41456
|
"../drizzle-orm/dist/singlestore-core/columns/boolean.js"() {
|
41483
41457
|
"use strict";
|
41484
41458
|
init_entity();
|
41485
41459
|
init_common5();
|
41486
|
-
SingleStoreBooleanBuilder = class extends (
|
41460
|
+
SingleStoreBooleanBuilder = class extends (_b243 = SingleStoreColumnBuilder, _a339 = entityKind, _b243) {
|
41487
41461
|
constructor(name2) {
|
41488
41462
|
super(name2, "boolean", "SingleStoreBoolean");
|
41489
41463
|
}
|
@@ -41495,8 +41469,8 @@ var init_boolean3 = __esm({
|
|
41495
41469
|
);
|
41496
41470
|
}
|
41497
41471
|
};
|
41498
|
-
__publicField(SingleStoreBooleanBuilder,
|
41499
|
-
SingleStoreBoolean = class extends (
|
41472
|
+
__publicField(SingleStoreBooleanBuilder, _a339, "SingleStoreBooleanBuilder");
|
41473
|
+
SingleStoreBoolean = class extends (_b244 = SingleStoreColumn, _a340 = entityKind, _b244) {
|
41500
41474
|
getSQLType() {
|
41501
41475
|
return "boolean";
|
41502
41476
|
}
|
@@ -41507,7 +41481,7 @@ var init_boolean3 = __esm({
|
|
41507
41481
|
return value === 1;
|
41508
41482
|
}
|
41509
41483
|
};
|
41510
|
-
__publicField(SingleStoreBoolean,
|
41484
|
+
__publicField(SingleStoreBoolean, _a340, "SingleStoreBoolean");
|
41511
41485
|
}
|
41512
41486
|
});
|
41513
41487
|
|
@@ -41516,14 +41490,14 @@ function char3(a, b = {}) {
|
|
41516
41490
|
const { name: name2, config } = getColumnNameAndConfig(a, b);
|
41517
41491
|
return new SingleStoreCharBuilder(name2, config);
|
41518
41492
|
}
|
41519
|
-
var
|
41493
|
+
var _a341, _b245, SingleStoreCharBuilder, _a342, _b246, SingleStoreChar;
|
41520
41494
|
var init_char3 = __esm({
|
41521
41495
|
"../drizzle-orm/dist/singlestore-core/columns/char.js"() {
|
41522
41496
|
"use strict";
|
41523
41497
|
init_entity();
|
41524
41498
|
init_utils2();
|
41525
41499
|
init_common5();
|
41526
|
-
SingleStoreCharBuilder = class extends (
|
41500
|
+
SingleStoreCharBuilder = class extends (_b245 = SingleStoreColumnBuilder, _a341 = entityKind, _b245) {
|
41527
41501
|
constructor(name2, config) {
|
41528
41502
|
super(name2, "string", "SingleStoreChar");
|
41529
41503
|
this.config.length = config.length;
|
@@ -41537,8 +41511,8 @@ var init_char3 = __esm({
|
|
41537
41511
|
);
|
41538
41512
|
}
|
41539
41513
|
};
|
41540
|
-
__publicField(SingleStoreCharBuilder,
|
41541
|
-
SingleStoreChar = class extends (
|
41514
|
+
__publicField(SingleStoreCharBuilder, _a341, "SingleStoreCharBuilder");
|
41515
|
+
SingleStoreChar = class extends (_b246 = SingleStoreColumn, _a342 = entityKind, _b246) {
|
41542
41516
|
constructor() {
|
41543
41517
|
super(...arguments);
|
41544
41518
|
__publicField(this, "length", this.config.length);
|
@@ -41548,7 +41522,7 @@ var init_char3 = __esm({
|
|
41548
41522
|
return this.length === void 0 ? `char` : `char(${this.length})`;
|
41549
41523
|
}
|
41550
41524
|
};
|
41551
|
-
__publicField(SingleStoreChar,
|
41525
|
+
__publicField(SingleStoreChar, _a342, "SingleStoreChar");
|
41552
41526
|
}
|
41553
41527
|
});
|
41554
41528
|
|
@@ -41559,14 +41533,14 @@ function customType4(customTypeParams) {
|
|
41559
41533
|
return new SingleStoreCustomColumnBuilder(name2, config, customTypeParams);
|
41560
41534
|
};
|
41561
41535
|
}
|
41562
|
-
var
|
41536
|
+
var _a343, _b247, SingleStoreCustomColumnBuilder, _a344, _b248, SingleStoreCustomColumn;
|
41563
41537
|
var init_custom4 = __esm({
|
41564
41538
|
"../drizzle-orm/dist/singlestore-core/columns/custom.js"() {
|
41565
41539
|
"use strict";
|
41566
41540
|
init_entity();
|
41567
41541
|
init_utils2();
|
41568
41542
|
init_common5();
|
41569
|
-
SingleStoreCustomColumnBuilder = class extends (
|
41543
|
+
SingleStoreCustomColumnBuilder = class extends (_b247 = SingleStoreColumnBuilder, _a343 = entityKind, _b247) {
|
41570
41544
|
constructor(name2, fieldConfig, customTypeParams) {
|
41571
41545
|
super(name2, "custom", "SingleStoreCustomColumn");
|
41572
41546
|
this.config.fieldConfig = fieldConfig;
|
@@ -41580,8 +41554,8 @@ var init_custom4 = __esm({
|
|
41580
41554
|
);
|
41581
41555
|
}
|
41582
41556
|
};
|
41583
|
-
__publicField(SingleStoreCustomColumnBuilder,
|
41584
|
-
SingleStoreCustomColumn = class extends (
|
41557
|
+
__publicField(SingleStoreCustomColumnBuilder, _a343, "SingleStoreCustomColumnBuilder");
|
41558
|
+
SingleStoreCustomColumn = class extends (_b248 = SingleStoreColumn, _a344 = entityKind, _b248) {
|
41585
41559
|
constructor(table5, config) {
|
41586
41560
|
super(table5, config);
|
41587
41561
|
__publicField(this, "sqlName");
|
@@ -41601,7 +41575,7 @@ var init_custom4 = __esm({
|
|
41601
41575
|
return typeof this.mapTo === "function" ? this.mapTo(value) : value;
|
41602
41576
|
}
|
41603
41577
|
};
|
41604
|
-
__publicField(SingleStoreCustomColumn,
|
41578
|
+
__publicField(SingleStoreCustomColumn, _a344, "SingleStoreCustomColumn");
|
41605
41579
|
}
|
41606
41580
|
});
|
41607
41581
|
|
@@ -41613,14 +41587,14 @@ function date3(a, b) {
|
|
41613
41587
|
}
|
41614
41588
|
return new SingleStoreDateBuilder(name2);
|
41615
41589
|
}
|
41616
|
-
var
|
41590
|
+
var _a345, _b249, SingleStoreDateBuilder, _a346, _b250, SingleStoreDate, _a347, _b251, SingleStoreDateStringBuilder, _a348, _b252, SingleStoreDateString;
|
41617
41591
|
var init_date3 = __esm({
|
41618
41592
|
"../drizzle-orm/dist/singlestore-core/columns/date.js"() {
|
41619
41593
|
"use strict";
|
41620
41594
|
init_entity();
|
41621
41595
|
init_utils2();
|
41622
41596
|
init_common5();
|
41623
|
-
SingleStoreDateBuilder = class extends (
|
41597
|
+
SingleStoreDateBuilder = class extends (_b249 = SingleStoreColumnBuilder, _a345 = entityKind, _b249) {
|
41624
41598
|
constructor(name2) {
|
41625
41599
|
super(name2, "date", "SingleStoreDate");
|
41626
41600
|
}
|
@@ -41632,8 +41606,8 @@ var init_date3 = __esm({
|
|
41632
41606
|
);
|
41633
41607
|
}
|
41634
41608
|
};
|
41635
|
-
__publicField(SingleStoreDateBuilder,
|
41636
|
-
SingleStoreDate = class extends (
|
41609
|
+
__publicField(SingleStoreDateBuilder, _a345, "SingleStoreDateBuilder");
|
41610
|
+
SingleStoreDate = class extends (_b250 = SingleStoreColumn, _a346 = entityKind, _b250) {
|
41637
41611
|
constructor(table5, config) {
|
41638
41612
|
super(table5, config);
|
41639
41613
|
}
|
@@ -41644,8 +41618,8 @@ var init_date3 = __esm({
|
|
41644
41618
|
return new Date(value);
|
41645
41619
|
}
|
41646
41620
|
};
|
41647
|
-
__publicField(SingleStoreDate,
|
41648
|
-
SingleStoreDateStringBuilder = class extends (
|
41621
|
+
__publicField(SingleStoreDate, _a346, "SingleStoreDate");
|
41622
|
+
SingleStoreDateStringBuilder = class extends (_b251 = SingleStoreColumnBuilder, _a347 = entityKind, _b251) {
|
41649
41623
|
constructor(name2) {
|
41650
41624
|
super(name2, "string", "SingleStoreDateString");
|
41651
41625
|
}
|
@@ -41657,8 +41631,8 @@ var init_date3 = __esm({
|
|
41657
41631
|
);
|
41658
41632
|
}
|
41659
41633
|
};
|
41660
|
-
__publicField(SingleStoreDateStringBuilder,
|
41661
|
-
SingleStoreDateString = class extends (
|
41634
|
+
__publicField(SingleStoreDateStringBuilder, _a347, "SingleStoreDateStringBuilder");
|
41635
|
+
SingleStoreDateString = class extends (_b252 = SingleStoreColumn, _a348 = entityKind, _b252) {
|
41662
41636
|
constructor(table5, config) {
|
41663
41637
|
super(table5, config);
|
41664
41638
|
}
|
@@ -41666,7 +41640,7 @@ var init_date3 = __esm({
|
|
41666
41640
|
return `date`;
|
41667
41641
|
}
|
41668
41642
|
};
|
41669
|
-
__publicField(SingleStoreDateString,
|
41643
|
+
__publicField(SingleStoreDateString, _a348, "SingleStoreDateString");
|
41670
41644
|
}
|
41671
41645
|
});
|
41672
41646
|
|
@@ -41678,14 +41652,14 @@ function datetime2(a, b) {
|
|
41678
41652
|
}
|
41679
41653
|
return new SingleStoreDateTimeBuilder(name2);
|
41680
41654
|
}
|
41681
|
-
var
|
41655
|
+
var _a349, _b253, SingleStoreDateTimeBuilder, _a350, _b254, SingleStoreDateTime, _a351, _b255, SingleStoreDateTimeStringBuilder, _a352, _b256, SingleStoreDateTimeString;
|
41682
41656
|
var init_datetime2 = __esm({
|
41683
41657
|
"../drizzle-orm/dist/singlestore-core/columns/datetime.js"() {
|
41684
41658
|
"use strict";
|
41685
41659
|
init_entity();
|
41686
41660
|
init_utils2();
|
41687
41661
|
init_common5();
|
41688
|
-
SingleStoreDateTimeBuilder = class extends (
|
41662
|
+
SingleStoreDateTimeBuilder = class extends (_b253 = SingleStoreColumnBuilder, _a349 = entityKind, _b253) {
|
41689
41663
|
/** @internal */
|
41690
41664
|
// TODO: we need to add a proper support for SingleStore
|
41691
41665
|
generatedAlwaysAs(_as, _config) {
|
@@ -41702,8 +41676,8 @@ var init_datetime2 = __esm({
|
|
41702
41676
|
);
|
41703
41677
|
}
|
41704
41678
|
};
|
41705
|
-
__publicField(SingleStoreDateTimeBuilder,
|
41706
|
-
SingleStoreDateTime = class extends (
|
41679
|
+
__publicField(SingleStoreDateTimeBuilder, _a349, "SingleStoreDateTimeBuilder");
|
41680
|
+
SingleStoreDateTime = class extends (_b254 = SingleStoreColumn, _a350 = entityKind, _b254) {
|
41707
41681
|
constructor(table5, config) {
|
41708
41682
|
super(table5, config);
|
41709
41683
|
}
|
@@ -41717,8 +41691,8 @@ var init_datetime2 = __esm({
|
|
41717
41691
|
return /* @__PURE__ */ new Date(value.replace(" ", "T") + "Z");
|
41718
41692
|
}
|
41719
41693
|
};
|
41720
|
-
__publicField(SingleStoreDateTime,
|
41721
|
-
SingleStoreDateTimeStringBuilder = class extends (
|
41694
|
+
__publicField(SingleStoreDateTime, _a350, "SingleStoreDateTime");
|
41695
|
+
SingleStoreDateTimeStringBuilder = class extends (_b255 = SingleStoreColumnBuilder, _a351 = entityKind, _b255) {
|
41722
41696
|
/** @internal */
|
41723
41697
|
// TODO: we need to add a proper support for SingleStore
|
41724
41698
|
generatedAlwaysAs(_as, _config) {
|
@@ -41735,8 +41709,8 @@ var init_datetime2 = __esm({
|
|
41735
41709
|
);
|
41736
41710
|
}
|
41737
41711
|
};
|
41738
|
-
__publicField(SingleStoreDateTimeStringBuilder,
|
41739
|
-
SingleStoreDateTimeString = class extends (
|
41712
|
+
__publicField(SingleStoreDateTimeStringBuilder, _a351, "SingleStoreDateTimeStringBuilder");
|
41713
|
+
SingleStoreDateTimeString = class extends (_b256 = SingleStoreColumn, _a352 = entityKind, _b256) {
|
41740
41714
|
constructor(table5, config) {
|
41741
41715
|
super(table5, config);
|
41742
41716
|
}
|
@@ -41744,7 +41718,7 @@ var init_datetime2 = __esm({
|
|
41744
41718
|
return `datetime`;
|
41745
41719
|
}
|
41746
41720
|
};
|
41747
|
-
__publicField(SingleStoreDateTimeString,
|
41721
|
+
__publicField(SingleStoreDateTimeString, _a352, "SingleStoreDateTimeString");
|
41748
41722
|
}
|
41749
41723
|
});
|
41750
41724
|
|
@@ -41756,14 +41730,14 @@ function decimal2(a, b = {}) {
|
|
41756
41730
|
);
|
41757
41731
|
return new SingleStoreDecimalBuilder(name2, config);
|
41758
41732
|
}
|
41759
|
-
var
|
41733
|
+
var _a353, _b257, SingleStoreDecimalBuilder, _a354, _b258, SingleStoreDecimal;
|
41760
41734
|
var init_decimal2 = __esm({
|
41761
41735
|
"../drizzle-orm/dist/singlestore-core/columns/decimal.js"() {
|
41762
41736
|
"use strict";
|
41763
41737
|
init_entity();
|
41764
41738
|
init_utils2();
|
41765
41739
|
init_common5();
|
41766
|
-
SingleStoreDecimalBuilder = class extends (
|
41740
|
+
SingleStoreDecimalBuilder = class extends (_b257 = SingleStoreColumnBuilderWithAutoIncrement, _a353 = entityKind, _b257) {
|
41767
41741
|
constructor(name2, config) {
|
41768
41742
|
super(name2, "string", "SingleStoreDecimal");
|
41769
41743
|
this.config.precision = config?.precision;
|
@@ -41778,8 +41752,8 @@ var init_decimal2 = __esm({
|
|
41778
41752
|
);
|
41779
41753
|
}
|
41780
41754
|
};
|
41781
|
-
__publicField(SingleStoreDecimalBuilder,
|
41782
|
-
SingleStoreDecimal = class extends (
|
41755
|
+
__publicField(SingleStoreDecimalBuilder, _a353, "SingleStoreDecimalBuilder");
|
41756
|
+
SingleStoreDecimal = class extends (_b258 = SingleStoreColumnWithAutoIncrement, _a354 = entityKind, _b258) {
|
41783
41757
|
constructor() {
|
41784
41758
|
super(...arguments);
|
41785
41759
|
__publicField(this, "precision", this.config.precision);
|
@@ -41799,7 +41773,7 @@ var init_decimal2 = __esm({
|
|
41799
41773
|
return this.unsigned ? `${type} unsigned` : type;
|
41800
41774
|
}
|
41801
41775
|
};
|
41802
|
-
__publicField(SingleStoreDecimal,
|
41776
|
+
__publicField(SingleStoreDecimal, _a354, "SingleStoreDecimal");
|
41803
41777
|
}
|
41804
41778
|
});
|
41805
41779
|
|
@@ -41808,14 +41782,14 @@ function double2(a, b) {
|
|
41808
41782
|
const { name: name2, config } = getColumnNameAndConfig(a, b);
|
41809
41783
|
return new SingleStoreDoubleBuilder(name2, config);
|
41810
41784
|
}
|
41811
|
-
var
|
41785
|
+
var _a355, _b259, SingleStoreDoubleBuilder, _a356, _b260, SingleStoreDouble;
|
41812
41786
|
var init_double2 = __esm({
|
41813
41787
|
"../drizzle-orm/dist/singlestore-core/columns/double.js"() {
|
41814
41788
|
"use strict";
|
41815
41789
|
init_entity();
|
41816
41790
|
init_utils2();
|
41817
41791
|
init_common5();
|
41818
|
-
SingleStoreDoubleBuilder = class extends (
|
41792
|
+
SingleStoreDoubleBuilder = class extends (_b259 = SingleStoreColumnBuilderWithAutoIncrement, _a355 = entityKind, _b259) {
|
41819
41793
|
constructor(name2, config) {
|
41820
41794
|
super(name2, "number", "SingleStoreDouble");
|
41821
41795
|
this.config.precision = config?.precision;
|
@@ -41830,8 +41804,8 @@ var init_double2 = __esm({
|
|
41830
41804
|
);
|
41831
41805
|
}
|
41832
41806
|
};
|
41833
|
-
__publicField(SingleStoreDoubleBuilder,
|
41834
|
-
SingleStoreDouble = class extends (
|
41807
|
+
__publicField(SingleStoreDoubleBuilder, _a355, "SingleStoreDoubleBuilder");
|
41808
|
+
SingleStoreDouble = class extends (_b260 = SingleStoreColumnWithAutoIncrement, _a356 = entityKind, _b260) {
|
41835
41809
|
constructor() {
|
41836
41810
|
super(...arguments);
|
41837
41811
|
__publicField(this, "precision", this.config.precision);
|
@@ -41850,7 +41824,7 @@ var init_double2 = __esm({
|
|
41850
41824
|
return this.unsigned ? `${type} unsigned` : type;
|
41851
41825
|
}
|
41852
41826
|
};
|
41853
|
-
__publicField(SingleStoreDouble,
|
41827
|
+
__publicField(SingleStoreDouble, _a356, "SingleStoreDouble");
|
41854
41828
|
}
|
41855
41829
|
});
|
41856
41830
|
|
@@ -41862,14 +41836,14 @@ function singlestoreEnum(a, b) {
|
|
41862
41836
|
}
|
41863
41837
|
return new SingleStoreEnumColumnBuilder(name2, values);
|
41864
41838
|
}
|
41865
|
-
var
|
41839
|
+
var _a357, _b261, SingleStoreEnumColumnBuilder, _a358, _b262, SingleStoreEnumColumn;
|
41866
41840
|
var init_enum3 = __esm({
|
41867
41841
|
"../drizzle-orm/dist/singlestore-core/columns/enum.js"() {
|
41868
41842
|
"use strict";
|
41869
41843
|
init_entity();
|
41870
41844
|
init_utils2();
|
41871
41845
|
init_common5();
|
41872
|
-
SingleStoreEnumColumnBuilder = class extends (
|
41846
|
+
SingleStoreEnumColumnBuilder = class extends (_b261 = SingleStoreColumnBuilder, _a357 = entityKind, _b261) {
|
41873
41847
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
41874
41848
|
generatedAlwaysAs(as, config) {
|
41875
41849
|
throw new Error("Method not implemented.");
|
@@ -41886,8 +41860,8 @@ var init_enum3 = __esm({
|
|
41886
41860
|
);
|
41887
41861
|
}
|
41888
41862
|
};
|
41889
|
-
__publicField(SingleStoreEnumColumnBuilder,
|
41890
|
-
SingleStoreEnumColumn = class extends (
|
41863
|
+
__publicField(SingleStoreEnumColumnBuilder, _a357, "SingleStoreEnumColumnBuilder");
|
41864
|
+
SingleStoreEnumColumn = class extends (_b262 = SingleStoreColumn, _a358 = entityKind, _b262) {
|
41891
41865
|
constructor() {
|
41892
41866
|
super(...arguments);
|
41893
41867
|
__publicField(this, "enumValues", this.config.enumValues);
|
@@ -41896,7 +41870,7 @@ var init_enum3 = __esm({
|
|
41896
41870
|
return `enum(${this.enumValues.map((value) => `'${value}'`).join(",")})`;
|
41897
41871
|
}
|
41898
41872
|
};
|
41899
|
-
__publicField(SingleStoreEnumColumn,
|
41873
|
+
__publicField(SingleStoreEnumColumn, _a358, "SingleStoreEnumColumn");
|
41900
41874
|
}
|
41901
41875
|
});
|
41902
41876
|
|
@@ -41905,14 +41879,14 @@ function float2(a, b) {
|
|
41905
41879
|
const { name: name2, config } = getColumnNameAndConfig(a, b);
|
41906
41880
|
return new SingleStoreFloatBuilder(name2, config);
|
41907
41881
|
}
|
41908
|
-
var
|
41882
|
+
var _a359, _b263, SingleStoreFloatBuilder, _a360, _b264, SingleStoreFloat;
|
41909
41883
|
var init_float2 = __esm({
|
41910
41884
|
"../drizzle-orm/dist/singlestore-core/columns/float.js"() {
|
41911
41885
|
"use strict";
|
41912
41886
|
init_entity();
|
41913
41887
|
init_utils2();
|
41914
41888
|
init_common5();
|
41915
|
-
SingleStoreFloatBuilder = class extends (
|
41889
|
+
SingleStoreFloatBuilder = class extends (_b263 = SingleStoreColumnBuilderWithAutoIncrement, _a359 = entityKind, _b263) {
|
41916
41890
|
constructor(name2, config) {
|
41917
41891
|
super(name2, "number", "SingleStoreFloat");
|
41918
41892
|
this.config.precision = config?.precision;
|
@@ -41927,8 +41901,8 @@ var init_float2 = __esm({
|
|
41927
41901
|
);
|
41928
41902
|
}
|
41929
41903
|
};
|
41930
|
-
__publicField(SingleStoreFloatBuilder,
|
41931
|
-
SingleStoreFloat = class extends (
|
41904
|
+
__publicField(SingleStoreFloatBuilder, _a359, "SingleStoreFloatBuilder");
|
41905
|
+
SingleStoreFloat = class extends (_b264 = SingleStoreColumnWithAutoIncrement, _a360 = entityKind, _b264) {
|
41932
41906
|
constructor() {
|
41933
41907
|
super(...arguments);
|
41934
41908
|
__publicField(this, "precision", this.config.precision);
|
@@ -41947,7 +41921,7 @@ var init_float2 = __esm({
|
|
41947
41921
|
return this.unsigned ? `${type} unsigned` : type;
|
41948
41922
|
}
|
41949
41923
|
};
|
41950
|
-
__publicField(SingleStoreFloat,
|
41924
|
+
__publicField(SingleStoreFloat, _a360, "SingleStoreFloat");
|
41951
41925
|
}
|
41952
41926
|
});
|
41953
41927
|
|
@@ -41956,14 +41930,14 @@ function int2(a, b) {
|
|
41956
41930
|
const { name: name2, config } = getColumnNameAndConfig(a, b);
|
41957
41931
|
return new SingleStoreIntBuilder(name2, config);
|
41958
41932
|
}
|
41959
|
-
var
|
41933
|
+
var _a361, _b265, SingleStoreIntBuilder, _a362, _b266, SingleStoreInt;
|
41960
41934
|
var init_int2 = __esm({
|
41961
41935
|
"../drizzle-orm/dist/singlestore-core/columns/int.js"() {
|
41962
41936
|
"use strict";
|
41963
41937
|
init_entity();
|
41964
41938
|
init_utils2();
|
41965
41939
|
init_common5();
|
41966
|
-
SingleStoreIntBuilder = class extends (
|
41940
|
+
SingleStoreIntBuilder = class extends (_b265 = SingleStoreColumnBuilderWithAutoIncrement, _a361 = entityKind, _b265) {
|
41967
41941
|
constructor(name2, config) {
|
41968
41942
|
super(name2, "number", "SingleStoreInt");
|
41969
41943
|
this.config.unsigned = config ? config.unsigned : false;
|
@@ -41976,8 +41950,8 @@ var init_int2 = __esm({
|
|
41976
41950
|
);
|
41977
41951
|
}
|
41978
41952
|
};
|
41979
|
-
__publicField(SingleStoreIntBuilder,
|
41980
|
-
SingleStoreInt = class extends (
|
41953
|
+
__publicField(SingleStoreIntBuilder, _a361, "SingleStoreIntBuilder");
|
41954
|
+
SingleStoreInt = class extends (_b266 = SingleStoreColumnWithAutoIncrement, _a362 = entityKind, _b266) {
|
41981
41955
|
getSQLType() {
|
41982
41956
|
return `int${this.config.unsigned ? " unsigned" : ""}`;
|
41983
41957
|
}
|
@@ -41988,7 +41962,7 @@ var init_int2 = __esm({
|
|
41988
41962
|
return value;
|
41989
41963
|
}
|
41990
41964
|
};
|
41991
|
-
__publicField(SingleStoreInt,
|
41965
|
+
__publicField(SingleStoreInt, _a362, "SingleStoreInt");
|
41992
41966
|
}
|
41993
41967
|
});
|
41994
41968
|
|
@@ -41996,13 +41970,13 @@ var init_int2 = __esm({
|
|
41996
41970
|
function json3(name2) {
|
41997
41971
|
return new SingleStoreJsonBuilder(name2 ?? "");
|
41998
41972
|
}
|
41999
|
-
var
|
41973
|
+
var _a363, _b267, SingleStoreJsonBuilder, _a364, _b268, SingleStoreJson;
|
42000
41974
|
var init_json3 = __esm({
|
42001
41975
|
"../drizzle-orm/dist/singlestore-core/columns/json.js"() {
|
42002
41976
|
"use strict";
|
42003
41977
|
init_entity();
|
42004
41978
|
init_common5();
|
42005
|
-
SingleStoreJsonBuilder = class extends (
|
41979
|
+
SingleStoreJsonBuilder = class extends (_b267 = SingleStoreColumnBuilder, _a363 = entityKind, _b267) {
|
42006
41980
|
constructor(name2) {
|
42007
41981
|
super(name2, "json", "SingleStoreJson");
|
42008
41982
|
}
|
@@ -42014,8 +41988,8 @@ var init_json3 = __esm({
|
|
42014
41988
|
);
|
42015
41989
|
}
|
42016
41990
|
};
|
42017
|
-
__publicField(SingleStoreJsonBuilder,
|
42018
|
-
SingleStoreJson = class extends (
|
41991
|
+
__publicField(SingleStoreJsonBuilder, _a363, "SingleStoreJsonBuilder");
|
41992
|
+
SingleStoreJson = class extends (_b268 = SingleStoreColumn, _a364 = entityKind, _b268) {
|
42019
41993
|
getSQLType() {
|
42020
41994
|
return "json";
|
42021
41995
|
}
|
@@ -42023,7 +41997,7 @@ var init_json3 = __esm({
|
|
42023
41997
|
return JSON.stringify(value);
|
42024
41998
|
}
|
42025
41999
|
};
|
42026
|
-
__publicField(SingleStoreJson,
|
42000
|
+
__publicField(SingleStoreJson, _a364, "SingleStoreJson");
|
42027
42001
|
}
|
42028
42002
|
});
|
42029
42003
|
|
@@ -42032,14 +42006,14 @@ function mediumint2(a, b) {
|
|
42032
42006
|
const { name: name2, config } = getColumnNameAndConfig(a, b);
|
42033
42007
|
return new SingleStoreMediumIntBuilder(name2, config);
|
42034
42008
|
}
|
42035
|
-
var
|
42009
|
+
var _a365, _b269, SingleStoreMediumIntBuilder, _a366, _b270, SingleStoreMediumInt;
|
42036
42010
|
var init_mediumint2 = __esm({
|
42037
42011
|
"../drizzle-orm/dist/singlestore-core/columns/mediumint.js"() {
|
42038
42012
|
"use strict";
|
42039
42013
|
init_entity();
|
42040
42014
|
init_utils2();
|
42041
42015
|
init_common5();
|
42042
|
-
SingleStoreMediumIntBuilder = class extends (
|
42016
|
+
SingleStoreMediumIntBuilder = class extends (_b269 = SingleStoreColumnBuilderWithAutoIncrement, _a365 = entityKind, _b269) {
|
42043
42017
|
constructor(name2, config) {
|
42044
42018
|
super(name2, "number", "SingleStoreMediumInt");
|
42045
42019
|
this.config.unsigned = config ? config.unsigned : false;
|
@@ -42052,8 +42026,8 @@ var init_mediumint2 = __esm({
|
|
42052
42026
|
);
|
42053
42027
|
}
|
42054
42028
|
};
|
42055
|
-
__publicField(SingleStoreMediumIntBuilder,
|
42056
|
-
SingleStoreMediumInt = class extends (
|
42029
|
+
__publicField(SingleStoreMediumIntBuilder, _a365, "SingleStoreMediumIntBuilder");
|
42030
|
+
SingleStoreMediumInt = class extends (_b270 = SingleStoreColumnWithAutoIncrement, _a366 = entityKind, _b270) {
|
42057
42031
|
getSQLType() {
|
42058
42032
|
return `mediumint${this.config.unsigned ? " unsigned" : ""}`;
|
42059
42033
|
}
|
@@ -42064,7 +42038,7 @@ var init_mediumint2 = __esm({
|
|
42064
42038
|
return value;
|
42065
42039
|
}
|
42066
42040
|
};
|
42067
|
-
__publicField(SingleStoreMediumInt,
|
42041
|
+
__publicField(SingleStoreMediumInt, _a366, "SingleStoreMediumInt");
|
42068
42042
|
}
|
42069
42043
|
});
|
42070
42044
|
|
@@ -42073,14 +42047,14 @@ function real4(a, b = {}) {
|
|
42073
42047
|
const { name: name2, config } = getColumnNameAndConfig(a, b);
|
42074
42048
|
return new SingleStoreRealBuilder(name2, config);
|
42075
42049
|
}
|
42076
|
-
var
|
42050
|
+
var _a367, _b271, SingleStoreRealBuilder, _a368, _b272, SingleStoreReal;
|
42077
42051
|
var init_real4 = __esm({
|
42078
42052
|
"../drizzle-orm/dist/singlestore-core/columns/real.js"() {
|
42079
42053
|
"use strict";
|
42080
42054
|
init_entity();
|
42081
42055
|
init_utils2();
|
42082
42056
|
init_common5();
|
42083
|
-
SingleStoreRealBuilder = class extends (
|
42057
|
+
SingleStoreRealBuilder = class extends (_b271 = SingleStoreColumnBuilderWithAutoIncrement, _a367 = entityKind, _b271) {
|
42084
42058
|
constructor(name2, config) {
|
42085
42059
|
super(name2, "number", "SingleStoreReal");
|
42086
42060
|
this.config.precision = config?.precision;
|
@@ -42094,8 +42068,8 @@ var init_real4 = __esm({
|
|
42094
42068
|
);
|
42095
42069
|
}
|
42096
42070
|
};
|
42097
|
-
__publicField(SingleStoreRealBuilder,
|
42098
|
-
SingleStoreReal = class extends (
|
42071
|
+
__publicField(SingleStoreRealBuilder, _a367, "SingleStoreRealBuilder");
|
42072
|
+
SingleStoreReal = class extends (_b272 = SingleStoreColumnWithAutoIncrement, _a368 = entityKind, _b272) {
|
42099
42073
|
constructor() {
|
42100
42074
|
super(...arguments);
|
42101
42075
|
__publicField(this, "precision", this.config.precision);
|
@@ -42111,7 +42085,7 @@ var init_real4 = __esm({
|
|
42111
42085
|
}
|
42112
42086
|
}
|
42113
42087
|
};
|
42114
|
-
__publicField(SingleStoreReal,
|
42088
|
+
__publicField(SingleStoreReal, _a368, "SingleStoreReal");
|
42115
42089
|
}
|
42116
42090
|
});
|
42117
42091
|
|
@@ -42119,13 +42093,13 @@ var init_real4 = __esm({
|
|
42119
42093
|
function serial3(name2) {
|
42120
42094
|
return new SingleStoreSerialBuilder(name2 ?? "");
|
42121
42095
|
}
|
42122
|
-
var
|
42096
|
+
var _a369, _b273, SingleStoreSerialBuilder, _a370, _b274, SingleStoreSerial;
|
42123
42097
|
var init_serial3 = __esm({
|
42124
42098
|
"../drizzle-orm/dist/singlestore-core/columns/serial.js"() {
|
42125
42099
|
"use strict";
|
42126
42100
|
init_entity();
|
42127
42101
|
init_common5();
|
42128
|
-
SingleStoreSerialBuilder = class extends (
|
42102
|
+
SingleStoreSerialBuilder = class extends (_b273 = SingleStoreColumnBuilderWithAutoIncrement, _a369 = entityKind, _b273) {
|
42129
42103
|
constructor(name2) {
|
42130
42104
|
super(name2, "number", "SingleStoreSerial");
|
42131
42105
|
this.config.hasDefault = true;
|
@@ -42139,8 +42113,8 @@ var init_serial3 = __esm({
|
|
42139
42113
|
);
|
42140
42114
|
}
|
42141
42115
|
};
|
42142
|
-
__publicField(SingleStoreSerialBuilder,
|
42143
|
-
SingleStoreSerial = class extends (
|
42116
|
+
__publicField(SingleStoreSerialBuilder, _a369, "SingleStoreSerialBuilder");
|
42117
|
+
SingleStoreSerial = class extends (_b274 = SingleStoreColumnWithAutoIncrement, _a370 = entityKind, _b274) {
|
42144
42118
|
getSQLType() {
|
42145
42119
|
return "serial";
|
42146
42120
|
}
|
@@ -42151,7 +42125,7 @@ var init_serial3 = __esm({
|
|
42151
42125
|
return value;
|
42152
42126
|
}
|
42153
42127
|
};
|
42154
|
-
__publicField(SingleStoreSerial,
|
42128
|
+
__publicField(SingleStoreSerial, _a370, "SingleStoreSerial");
|
42155
42129
|
}
|
42156
42130
|
});
|
42157
42131
|
|
@@ -42160,14 +42134,14 @@ function smallint3(a, b) {
|
|
42160
42134
|
const { name: name2, config } = getColumnNameAndConfig(a, b);
|
42161
42135
|
return new SingleStoreSmallIntBuilder(name2, config);
|
42162
42136
|
}
|
42163
|
-
var
|
42137
|
+
var _a371, _b275, SingleStoreSmallIntBuilder, _a372, _b276, SingleStoreSmallInt;
|
42164
42138
|
var init_smallint3 = __esm({
|
42165
42139
|
"../drizzle-orm/dist/singlestore-core/columns/smallint.js"() {
|
42166
42140
|
"use strict";
|
42167
42141
|
init_entity();
|
42168
42142
|
init_utils2();
|
42169
42143
|
init_common5();
|
42170
|
-
SingleStoreSmallIntBuilder = class extends (
|
42144
|
+
SingleStoreSmallIntBuilder = class extends (_b275 = SingleStoreColumnBuilderWithAutoIncrement, _a371 = entityKind, _b275) {
|
42171
42145
|
constructor(name2, config) {
|
42172
42146
|
super(name2, "number", "SingleStoreSmallInt");
|
42173
42147
|
this.config.unsigned = config ? config.unsigned : false;
|
@@ -42180,8 +42154,8 @@ var init_smallint3 = __esm({
|
|
42180
42154
|
);
|
42181
42155
|
}
|
42182
42156
|
};
|
42183
|
-
__publicField(SingleStoreSmallIntBuilder,
|
42184
|
-
SingleStoreSmallInt = class extends (
|
42157
|
+
__publicField(SingleStoreSmallIntBuilder, _a371, "SingleStoreSmallIntBuilder");
|
42158
|
+
SingleStoreSmallInt = class extends (_b276 = SingleStoreColumnWithAutoIncrement, _a372 = entityKind, _b276) {
|
42185
42159
|
getSQLType() {
|
42186
42160
|
return `smallint${this.config.unsigned ? " unsigned" : ""}`;
|
42187
42161
|
}
|
@@ -42192,7 +42166,7 @@ var init_smallint3 = __esm({
|
|
42192
42166
|
return value;
|
42193
42167
|
}
|
42194
42168
|
};
|
42195
|
-
__publicField(SingleStoreSmallInt,
|
42169
|
+
__publicField(SingleStoreSmallInt, _a372, "SingleStoreSmallInt");
|
42196
42170
|
}
|
42197
42171
|
});
|
42198
42172
|
|
@@ -42213,14 +42187,14 @@ function longtext2(a, b = {}) {
|
|
42213
42187
|
const { name: name2, config } = getColumnNameAndConfig(a, b);
|
42214
42188
|
return new SingleStoreTextBuilder(name2, "longtext", config);
|
42215
42189
|
}
|
42216
|
-
var
|
42190
|
+
var _a373, _b277, SingleStoreTextBuilder, _a374, _b278, SingleStoreText;
|
42217
42191
|
var init_text4 = __esm({
|
42218
42192
|
"../drizzle-orm/dist/singlestore-core/columns/text.js"() {
|
42219
42193
|
"use strict";
|
42220
42194
|
init_entity();
|
42221
42195
|
init_utils2();
|
42222
42196
|
init_common5();
|
42223
|
-
SingleStoreTextBuilder = class extends (
|
42197
|
+
SingleStoreTextBuilder = class extends (_b277 = SingleStoreColumnBuilder, _a373 = entityKind, _b277) {
|
42224
42198
|
constructor(name2, textType, config) {
|
42225
42199
|
super(name2, "string", "SingleStoreText");
|
42226
42200
|
this.config.textType = textType;
|
@@ -42234,8 +42208,8 @@ var init_text4 = __esm({
|
|
42234
42208
|
);
|
42235
42209
|
}
|
42236
42210
|
};
|
42237
|
-
__publicField(SingleStoreTextBuilder,
|
42238
|
-
SingleStoreText = class extends (
|
42211
|
+
__publicField(SingleStoreTextBuilder, _a373, "SingleStoreTextBuilder");
|
42212
|
+
SingleStoreText = class extends (_b278 = SingleStoreColumn, _a374 = entityKind, _b278) {
|
42239
42213
|
constructor() {
|
42240
42214
|
super(...arguments);
|
42241
42215
|
__publicField(this, "textType", this.config.textType);
|
@@ -42245,7 +42219,7 @@ var init_text4 = __esm({
|
|
42245
42219
|
return this.textType;
|
42246
42220
|
}
|
42247
42221
|
};
|
42248
|
-
__publicField(SingleStoreText,
|
42222
|
+
__publicField(SingleStoreText, _a374, "SingleStoreText");
|
42249
42223
|
}
|
42250
42224
|
});
|
42251
42225
|
|
@@ -42253,13 +42227,13 @@ var init_text4 = __esm({
|
|
42253
42227
|
function time3(name2) {
|
42254
42228
|
return new SingleStoreTimeBuilder(name2 ?? "");
|
42255
42229
|
}
|
42256
|
-
var
|
42230
|
+
var _a375, _b279, SingleStoreTimeBuilder, _a376, _b280, SingleStoreTime;
|
42257
42231
|
var init_time3 = __esm({
|
42258
42232
|
"../drizzle-orm/dist/singlestore-core/columns/time.js"() {
|
42259
42233
|
"use strict";
|
42260
42234
|
init_entity();
|
42261
42235
|
init_common5();
|
42262
|
-
SingleStoreTimeBuilder = class extends (
|
42236
|
+
SingleStoreTimeBuilder = class extends (_b279 = SingleStoreColumnBuilder, _a375 = entityKind, _b279) {
|
42263
42237
|
constructor(name2) {
|
42264
42238
|
super(name2, "string", "SingleStoreTime");
|
42265
42239
|
}
|
@@ -42271,25 +42245,25 @@ var init_time3 = __esm({
|
|
42271
42245
|
);
|
42272
42246
|
}
|
42273
42247
|
};
|
42274
|
-
__publicField(SingleStoreTimeBuilder,
|
42275
|
-
SingleStoreTime = class extends (
|
42248
|
+
__publicField(SingleStoreTimeBuilder, _a375, "SingleStoreTimeBuilder");
|
42249
|
+
SingleStoreTime = class extends (_b280 = SingleStoreColumn, _a376 = entityKind, _b280) {
|
42276
42250
|
getSQLType() {
|
42277
42251
|
return `time`;
|
42278
42252
|
}
|
42279
42253
|
};
|
42280
|
-
__publicField(SingleStoreTime,
|
42254
|
+
__publicField(SingleStoreTime, _a376, "SingleStoreTime");
|
42281
42255
|
}
|
42282
42256
|
});
|
42283
42257
|
|
42284
42258
|
// ../drizzle-orm/dist/singlestore-core/columns/date.common.js
|
42285
|
-
var
|
42259
|
+
var _a377, _b281, SingleStoreDateColumnBaseBuilder, _a378, _b282, SingleStoreDateBaseColumn;
|
42286
42260
|
var init_date_common3 = __esm({
|
42287
42261
|
"../drizzle-orm/dist/singlestore-core/columns/date.common.js"() {
|
42288
42262
|
"use strict";
|
42289
42263
|
init_entity();
|
42290
42264
|
init_sql();
|
42291
42265
|
init_common5();
|
42292
|
-
SingleStoreDateColumnBaseBuilder = class extends (
|
42266
|
+
SingleStoreDateColumnBaseBuilder = class extends (_b281 = SingleStoreColumnBuilder, _a377 = entityKind, _b281) {
|
42293
42267
|
defaultNow() {
|
42294
42268
|
return this.default(sql`now()`);
|
42295
42269
|
}
|
@@ -42299,14 +42273,14 @@ var init_date_common3 = __esm({
|
|
42299
42273
|
return this;
|
42300
42274
|
}
|
42301
42275
|
};
|
42302
|
-
__publicField(SingleStoreDateColumnBaseBuilder,
|
42303
|
-
SingleStoreDateBaseColumn = class extends (
|
42276
|
+
__publicField(SingleStoreDateColumnBaseBuilder, _a377, "SingleStoreDateColumnBuilder");
|
42277
|
+
SingleStoreDateBaseColumn = class extends (_b282 = SingleStoreColumn, _a378 = entityKind, _b282) {
|
42304
42278
|
constructor() {
|
42305
42279
|
super(...arguments);
|
42306
42280
|
__publicField(this, "hasOnUpdateNow", this.config.hasOnUpdateNow);
|
42307
42281
|
}
|
42308
42282
|
};
|
42309
|
-
__publicField(SingleStoreDateBaseColumn,
|
42283
|
+
__publicField(SingleStoreDateBaseColumn, _a378, "SingleStoreDateColumn");
|
42310
42284
|
}
|
42311
42285
|
});
|
42312
42286
|
|
@@ -42318,7 +42292,7 @@ function timestamp3(a, b = {}) {
|
|
42318
42292
|
}
|
42319
42293
|
return new SingleStoreTimestampBuilder(name2);
|
42320
42294
|
}
|
42321
|
-
var
|
42295
|
+
var _a379, _b283, SingleStoreTimestampBuilder, _a380, _b284, SingleStoreTimestamp, _a381, _b285, SingleStoreTimestampStringBuilder, _a382, _b286, SingleStoreTimestampString;
|
42322
42296
|
var init_timestamp3 = __esm({
|
42323
42297
|
"../drizzle-orm/dist/singlestore-core/columns/timestamp.js"() {
|
42324
42298
|
"use strict";
|
@@ -42326,7 +42300,7 @@ var init_timestamp3 = __esm({
|
|
42326
42300
|
init_sql();
|
42327
42301
|
init_utils2();
|
42328
42302
|
init_date_common3();
|
42329
|
-
SingleStoreTimestampBuilder = class extends (
|
42303
|
+
SingleStoreTimestampBuilder = class extends (_b283 = SingleStoreDateColumnBaseBuilder, _a379 = entityKind, _b283) {
|
42330
42304
|
constructor(name2) {
|
42331
42305
|
super(name2, "date", "SingleStoreTimestamp");
|
42332
42306
|
}
|
@@ -42341,8 +42315,8 @@ var init_timestamp3 = __esm({
|
|
42341
42315
|
return this.default(sql`CURRENT_TIMESTAMP`);
|
42342
42316
|
}
|
42343
42317
|
};
|
42344
|
-
__publicField(SingleStoreTimestampBuilder,
|
42345
|
-
SingleStoreTimestamp = class extends (
|
42318
|
+
__publicField(SingleStoreTimestampBuilder, _a379, "SingleStoreTimestampBuilder");
|
42319
|
+
SingleStoreTimestamp = class extends (_b284 = SingleStoreDateBaseColumn, _a380 = entityKind, _b284) {
|
42346
42320
|
getSQLType() {
|
42347
42321
|
return `timestamp`;
|
42348
42322
|
}
|
@@ -42353,8 +42327,8 @@ var init_timestamp3 = __esm({
|
|
42353
42327
|
return value.toISOString().slice(0, -1).replace("T", " ");
|
42354
42328
|
}
|
42355
42329
|
};
|
42356
|
-
__publicField(SingleStoreTimestamp,
|
42357
|
-
SingleStoreTimestampStringBuilder = class extends (
|
42330
|
+
__publicField(SingleStoreTimestamp, _a380, "SingleStoreTimestamp");
|
42331
|
+
SingleStoreTimestampStringBuilder = class extends (_b285 = SingleStoreDateColumnBaseBuilder, _a381 = entityKind, _b285) {
|
42358
42332
|
constructor(name2) {
|
42359
42333
|
super(name2, "string", "SingleStoreTimestampString");
|
42360
42334
|
}
|
@@ -42369,13 +42343,13 @@ var init_timestamp3 = __esm({
|
|
42369
42343
|
return this.default(sql`CURRENT_TIMESTAMP`);
|
42370
42344
|
}
|
42371
42345
|
};
|
42372
|
-
__publicField(SingleStoreTimestampStringBuilder,
|
42373
|
-
SingleStoreTimestampString = class extends (
|
42346
|
+
__publicField(SingleStoreTimestampStringBuilder, _a381, "SingleStoreTimestampStringBuilder");
|
42347
|
+
SingleStoreTimestampString = class extends (_b286 = SingleStoreDateBaseColumn, _a382 = entityKind, _b286) {
|
42374
42348
|
getSQLType() {
|
42375
42349
|
return `timestamp`;
|
42376
42350
|
}
|
42377
42351
|
};
|
42378
|
-
__publicField(SingleStoreTimestampString,
|
42352
|
+
__publicField(SingleStoreTimestampString, _a382, "SingleStoreTimestampString");
|
42379
42353
|
}
|
42380
42354
|
});
|
42381
42355
|
|
@@ -42384,14 +42358,14 @@ function tinyint2(a, b) {
|
|
42384
42358
|
const { name: name2, config } = getColumnNameAndConfig(a, b);
|
42385
42359
|
return new SingleStoreTinyIntBuilder(name2, config);
|
42386
42360
|
}
|
42387
|
-
var
|
42361
|
+
var _a383, _b287, SingleStoreTinyIntBuilder, _a384, _b288, SingleStoreTinyInt;
|
42388
42362
|
var init_tinyint2 = __esm({
|
42389
42363
|
"../drizzle-orm/dist/singlestore-core/columns/tinyint.js"() {
|
42390
42364
|
"use strict";
|
42391
42365
|
init_entity();
|
42392
42366
|
init_utils2();
|
42393
42367
|
init_common5();
|
42394
|
-
SingleStoreTinyIntBuilder = class extends (
|
42368
|
+
SingleStoreTinyIntBuilder = class extends (_b287 = SingleStoreColumnBuilderWithAutoIncrement, _a383 = entityKind, _b287) {
|
42395
42369
|
constructor(name2, config) {
|
42396
42370
|
super(name2, "number", "SingleStoreTinyInt");
|
42397
42371
|
this.config.unsigned = config ? config.unsigned : false;
|
@@ -42404,8 +42378,8 @@ var init_tinyint2 = __esm({
|
|
42404
42378
|
);
|
42405
42379
|
}
|
42406
42380
|
};
|
42407
|
-
__publicField(SingleStoreTinyIntBuilder,
|
42408
|
-
SingleStoreTinyInt = class extends (
|
42381
|
+
__publicField(SingleStoreTinyIntBuilder, _a383, "SingleStoreTinyIntBuilder");
|
42382
|
+
SingleStoreTinyInt = class extends (_b288 = SingleStoreColumnWithAutoIncrement, _a384 = entityKind, _b288) {
|
42409
42383
|
getSQLType() {
|
42410
42384
|
return `tinyint${this.config.unsigned ? " unsigned" : ""}`;
|
42411
42385
|
}
|
@@ -42416,7 +42390,7 @@ var init_tinyint2 = __esm({
|
|
42416
42390
|
return value;
|
42417
42391
|
}
|
42418
42392
|
};
|
42419
|
-
__publicField(SingleStoreTinyInt,
|
42393
|
+
__publicField(SingleStoreTinyInt, _a384, "SingleStoreTinyInt");
|
42420
42394
|
}
|
42421
42395
|
});
|
42422
42396
|
|
@@ -42425,14 +42399,14 @@ function varbinary2(a, b) {
|
|
42425
42399
|
const { name: name2, config } = getColumnNameAndConfig(a, b);
|
42426
42400
|
return new SingleStoreVarBinaryBuilder(name2, config);
|
42427
42401
|
}
|
42428
|
-
var
|
42402
|
+
var _a385, _b289, SingleStoreVarBinaryBuilder, _a386, _b290, SingleStoreVarBinary;
|
42429
42403
|
var init_varbinary2 = __esm({
|
42430
42404
|
"../drizzle-orm/dist/singlestore-core/columns/varbinary.js"() {
|
42431
42405
|
"use strict";
|
42432
42406
|
init_entity();
|
42433
42407
|
init_utils2();
|
42434
42408
|
init_common5();
|
42435
|
-
SingleStoreVarBinaryBuilder = class extends (
|
42409
|
+
SingleStoreVarBinaryBuilder = class extends (_b289 = SingleStoreColumnBuilder, _a385 = entityKind, _b289) {
|
42436
42410
|
/** @internal */
|
42437
42411
|
constructor(name2, config) {
|
42438
42412
|
super(name2, "string", "SingleStoreVarBinary");
|
@@ -42446,8 +42420,8 @@ var init_varbinary2 = __esm({
|
|
42446
42420
|
);
|
42447
42421
|
}
|
42448
42422
|
};
|
42449
|
-
__publicField(SingleStoreVarBinaryBuilder,
|
42450
|
-
SingleStoreVarBinary = class extends (
|
42423
|
+
__publicField(SingleStoreVarBinaryBuilder, _a385, "SingleStoreVarBinaryBuilder");
|
42424
|
+
SingleStoreVarBinary = class extends (_b290 = SingleStoreColumn, _a386 = entityKind, _b290) {
|
42451
42425
|
constructor() {
|
42452
42426
|
super(...arguments);
|
42453
42427
|
__publicField(this, "length", this.config.length);
|
@@ -42456,7 +42430,7 @@ var init_varbinary2 = __esm({
|
|
42456
42430
|
return this.length === void 0 ? `varbinary` : `varbinary(${this.length})`;
|
42457
42431
|
}
|
42458
42432
|
};
|
42459
|
-
__publicField(SingleStoreVarBinary,
|
42433
|
+
__publicField(SingleStoreVarBinary, _a386, "SingleStoreVarBinary");
|
42460
42434
|
}
|
42461
42435
|
});
|
42462
42436
|
|
@@ -42465,14 +42439,14 @@ function varchar3(a, b) {
|
|
42465
42439
|
const { name: name2, config } = getColumnNameAndConfig(a, b);
|
42466
42440
|
return new SingleStoreVarCharBuilder(name2, config);
|
42467
42441
|
}
|
42468
|
-
var
|
42442
|
+
var _a387, _b291, SingleStoreVarCharBuilder, _a388, _b292, SingleStoreVarChar;
|
42469
42443
|
var init_varchar3 = __esm({
|
42470
42444
|
"../drizzle-orm/dist/singlestore-core/columns/varchar.js"() {
|
42471
42445
|
"use strict";
|
42472
42446
|
init_entity();
|
42473
42447
|
init_utils2();
|
42474
42448
|
init_common5();
|
42475
|
-
SingleStoreVarCharBuilder = class extends (
|
42449
|
+
SingleStoreVarCharBuilder = class extends (_b291 = SingleStoreColumnBuilder, _a387 = entityKind, _b291) {
|
42476
42450
|
/** @internal */
|
42477
42451
|
constructor(name2, config) {
|
42478
42452
|
super(name2, "string", "SingleStoreVarChar");
|
@@ -42487,8 +42461,8 @@ var init_varchar3 = __esm({
|
|
42487
42461
|
);
|
42488
42462
|
}
|
42489
42463
|
};
|
42490
|
-
__publicField(SingleStoreVarCharBuilder,
|
42491
|
-
SingleStoreVarChar = class extends (
|
42464
|
+
__publicField(SingleStoreVarCharBuilder, _a387, "SingleStoreVarCharBuilder");
|
42465
|
+
SingleStoreVarChar = class extends (_b292 = SingleStoreColumn, _a388 = entityKind, _b292) {
|
42492
42466
|
constructor() {
|
42493
42467
|
super(...arguments);
|
42494
42468
|
__publicField(this, "length", this.config.length);
|
@@ -42498,7 +42472,7 @@ var init_varchar3 = __esm({
|
|
42498
42472
|
return this.length === void 0 ? `varchar` : `varchar(${this.length})`;
|
42499
42473
|
}
|
42500
42474
|
};
|
42501
|
-
__publicField(SingleStoreVarChar,
|
42475
|
+
__publicField(SingleStoreVarChar, _a388, "SingleStoreVarChar");
|
42502
42476
|
}
|
42503
42477
|
});
|
42504
42478
|
|
@@ -42507,14 +42481,14 @@ function vector2(a, b) {
|
|
42507
42481
|
const { name: name2, config } = getColumnNameAndConfig(a, b);
|
42508
42482
|
return new SingleStoreVectorBuilder(name2, config);
|
42509
42483
|
}
|
42510
|
-
var
|
42484
|
+
var _a389, _b293, SingleStoreVectorBuilder, _a390, _b294, SingleStoreVector;
|
42511
42485
|
var init_vector4 = __esm({
|
42512
42486
|
"../drizzle-orm/dist/singlestore-core/columns/vector.js"() {
|
42513
42487
|
"use strict";
|
42514
42488
|
init_entity();
|
42515
42489
|
init_utils2();
|
42516
42490
|
init_common5();
|
42517
|
-
SingleStoreVectorBuilder = class extends (
|
42491
|
+
SingleStoreVectorBuilder = class extends (_b293 = SingleStoreColumnBuilder, _a389 = entityKind, _b293) {
|
42518
42492
|
constructor(name2, config) {
|
42519
42493
|
super(name2, "array", "SingleStoreVector");
|
42520
42494
|
this.config.dimensions = config.dimensions;
|
@@ -42532,8 +42506,8 @@ var init_vector4 = __esm({
|
|
42532
42506
|
throw new Error("not implemented");
|
42533
42507
|
}
|
42534
42508
|
};
|
42535
|
-
__publicField(SingleStoreVectorBuilder,
|
42536
|
-
SingleStoreVector = class extends (
|
42509
|
+
__publicField(SingleStoreVectorBuilder, _a389, "SingleStoreVectorBuilder");
|
42510
|
+
SingleStoreVector = class extends (_b294 = SingleStoreColumn, _a390 = entityKind, _b294) {
|
42537
42511
|
constructor() {
|
42538
42512
|
super(...arguments);
|
42539
42513
|
__publicField(this, "dimensions", this.config.dimensions);
|
@@ -42549,7 +42523,7 @@ var init_vector4 = __esm({
|
|
42549
42523
|
return JSON.parse(value);
|
42550
42524
|
}
|
42551
42525
|
};
|
42552
|
-
__publicField(SingleStoreVector,
|
42526
|
+
__publicField(SingleStoreVector, _a390, "SingleStoreVector");
|
42553
42527
|
}
|
42554
42528
|
});
|
42555
42529
|
|
@@ -42557,13 +42531,13 @@ var init_vector4 = __esm({
|
|
42557
42531
|
function year2(name2) {
|
42558
42532
|
return new SingleStoreYearBuilder(name2 ?? "");
|
42559
42533
|
}
|
42560
|
-
var
|
42534
|
+
var _a391, _b295, SingleStoreYearBuilder, _a392, _b296, SingleStoreYear;
|
42561
42535
|
var init_year2 = __esm({
|
42562
42536
|
"../drizzle-orm/dist/singlestore-core/columns/year.js"() {
|
42563
42537
|
"use strict";
|
42564
42538
|
init_entity();
|
42565
42539
|
init_common5();
|
42566
|
-
SingleStoreYearBuilder = class extends (
|
42540
|
+
SingleStoreYearBuilder = class extends (_b295 = SingleStoreColumnBuilder, _a391 = entityKind, _b295) {
|
42567
42541
|
constructor(name2) {
|
42568
42542
|
super(name2, "number", "SingleStoreYear");
|
42569
42543
|
}
|
@@ -42575,13 +42549,13 @@ var init_year2 = __esm({
|
|
42575
42549
|
);
|
42576
42550
|
}
|
42577
42551
|
};
|
42578
|
-
__publicField(SingleStoreYearBuilder,
|
42579
|
-
SingleStoreYear = class extends (
|
42552
|
+
__publicField(SingleStoreYearBuilder, _a391, "SingleStoreYearBuilder");
|
42553
|
+
SingleStoreYear = class extends (_b296 = SingleStoreColumn, _a392 = entityKind, _b296) {
|
42580
42554
|
getSQLType() {
|
42581
42555
|
return `year`;
|
42582
42556
|
}
|
42583
42557
|
};
|
42584
|
-
__publicField(SingleStoreYear,
|
42558
|
+
__publicField(SingleStoreYear, _a392, "SingleStoreYear");
|
42585
42559
|
}
|
42586
42560
|
});
|
42587
42561
|
|
@@ -42619,17 +42593,17 @@ var init_columns4 = __esm({
|
|
42619
42593
|
});
|
42620
42594
|
|
42621
42595
|
// ../drizzle-orm/dist/singlestore-core/query-builders/count.js
|
42622
|
-
var
|
42596
|
+
var _a393, _b297, _c12, _SingleStoreCountBuilder, SingleStoreCountBuilder;
|
42623
42597
|
var init_count4 = __esm({
|
42624
42598
|
"../drizzle-orm/dist/singlestore-core/query-builders/count.js"() {
|
42625
42599
|
"use strict";
|
42626
42600
|
init_entity();
|
42627
42601
|
init_sql();
|
42628
|
-
_SingleStoreCountBuilder = class _SingleStoreCountBuilder extends (_c12 = SQL,
|
42602
|
+
_SingleStoreCountBuilder = class _SingleStoreCountBuilder extends (_c12 = SQL, _b297 = entityKind, _a393 = Symbol.toStringTag, _c12) {
|
42629
42603
|
constructor(params) {
|
42630
42604
|
super(_SingleStoreCountBuilder.buildEmbeddedCount(params.source, params.filters).queryChunks);
|
42631
42605
|
__publicField(this, "sql");
|
42632
|
-
__publicField(this,
|
42606
|
+
__publicField(this, _a393, "SingleStoreCountBuilder");
|
42633
42607
|
__publicField(this, "session");
|
42634
42608
|
this.params = params;
|
42635
42609
|
this.mapWith(Number);
|
@@ -42667,13 +42641,13 @@ var init_count4 = __esm({
|
|
42667
42641
|
);
|
42668
42642
|
}
|
42669
42643
|
};
|
42670
|
-
__publicField(_SingleStoreCountBuilder,
|
42644
|
+
__publicField(_SingleStoreCountBuilder, _b297, "SingleStoreCountBuilder");
|
42671
42645
|
SingleStoreCountBuilder = _SingleStoreCountBuilder;
|
42672
42646
|
}
|
42673
42647
|
});
|
42674
42648
|
|
42675
42649
|
// ../drizzle-orm/dist/singlestore-core/query-builders/delete.js
|
42676
|
-
var
|
42650
|
+
var _a394, _b298, SingleStoreDeleteBase;
|
42677
42651
|
var init_delete4 = __esm({
|
42678
42652
|
"../drizzle-orm/dist/singlestore-core/query-builders/delete.js"() {
|
42679
42653
|
"use strict";
|
@@ -42681,7 +42655,7 @@ var init_delete4 = __esm({
|
|
42681
42655
|
init_query_promise();
|
42682
42656
|
init_selection_proxy();
|
42683
42657
|
init_table();
|
42684
|
-
SingleStoreDeleteBase = class extends (
|
42658
|
+
SingleStoreDeleteBase = class extends (_b298 = QueryPromise, _a394 = entityKind, _b298) {
|
42685
42659
|
constructor(table5, session, dialect6, withList) {
|
42686
42660
|
super();
|
42687
42661
|
__publicField(this, "config");
|
@@ -42771,12 +42745,12 @@ var init_delete4 = __esm({
|
|
42771
42745
|
return this;
|
42772
42746
|
}
|
42773
42747
|
};
|
42774
|
-
__publicField(SingleStoreDeleteBase,
|
42748
|
+
__publicField(SingleStoreDeleteBase, _a394, "SingleStoreDelete");
|
42775
42749
|
}
|
42776
42750
|
});
|
42777
42751
|
|
42778
42752
|
// ../drizzle-orm/dist/singlestore-core/query-builders/insert.js
|
42779
|
-
var
|
42753
|
+
var _a395, SingleStoreInsertBuilder, _a396, _b299, SingleStoreInsertBase;
|
42780
42754
|
var init_insert4 = __esm({
|
42781
42755
|
"../drizzle-orm/dist/singlestore-core/query-builders/insert.js"() {
|
42782
42756
|
"use strict";
|
@@ -42785,7 +42759,7 @@ var init_insert4 = __esm({
|
|
42785
42759
|
init_sql();
|
42786
42760
|
init_table();
|
42787
42761
|
init_utils2();
|
42788
|
-
|
42762
|
+
_a395 = entityKind;
|
42789
42763
|
SingleStoreInsertBuilder = class {
|
42790
42764
|
constructor(table5, session, dialect6) {
|
42791
42765
|
__publicField(this, "shouldIgnore", false);
|
@@ -42814,8 +42788,8 @@ var init_insert4 = __esm({
|
|
42814
42788
|
return new SingleStoreInsertBase(this.table, mappedValues, this.shouldIgnore, this.session, this.dialect);
|
42815
42789
|
}
|
42816
42790
|
};
|
42817
|
-
__publicField(SingleStoreInsertBuilder,
|
42818
|
-
SingleStoreInsertBase = class extends (
|
42791
|
+
__publicField(SingleStoreInsertBuilder, _a395, "SingleStoreInsertBuilder");
|
42792
|
+
SingleStoreInsertBase = class extends (_b299 = QueryPromise, _a396 = entityKind, _b299) {
|
42819
42793
|
constructor(table5, values, ignore, session, dialect6) {
|
42820
42794
|
super();
|
42821
42795
|
__publicField(this, "config");
|
@@ -42896,7 +42870,7 @@ var init_insert4 = __esm({
|
|
42896
42870
|
return this;
|
42897
42871
|
}
|
42898
42872
|
};
|
42899
|
-
__publicField(SingleStoreInsertBase,
|
42873
|
+
__publicField(SingleStoreInsertBase, _a396, "SingleStoreInsert");
|
42900
42874
|
}
|
42901
42875
|
});
|
42902
42876
|
|
@@ -42984,20 +42958,20 @@ function singlestoreTableWithSchema(name2, columns, extraConfig, schema5, baseNa
|
|
42984
42958
|
}
|
42985
42959
|
return table5;
|
42986
42960
|
}
|
42987
|
-
var
|
42961
|
+
var _a397, _b300, _c13, _d5, SingleStoreTable;
|
42988
42962
|
var init_table5 = __esm({
|
42989
42963
|
"../drizzle-orm/dist/singlestore-core/table.js"() {
|
42990
42964
|
"use strict";
|
42991
42965
|
init_entity();
|
42992
42966
|
init_table();
|
42993
42967
|
init_all4();
|
42994
|
-
SingleStoreTable = class extends (_d5 = Table2, _c13 = entityKind,
|
42968
|
+
SingleStoreTable = class extends (_d5 = Table2, _c13 = entityKind, _b300 = Table2.Symbol.Columns, _a397 = Table2.Symbol.ExtraConfigBuilder, _d5) {
|
42995
42969
|
constructor() {
|
42996
42970
|
super(...arguments);
|
42997
42971
|
/** @internal */
|
42998
|
-
__publicField(this,
|
42972
|
+
__publicField(this, _b300);
|
42999
42973
|
/** @internal */
|
43000
|
-
__publicField(this,
|
42974
|
+
__publicField(this, _a397);
|
43001
42975
|
}
|
43002
42976
|
};
|
43003
42977
|
__publicField(SingleStoreTable, _c13, "SingleStoreTable");
|
@@ -43007,7 +42981,7 @@ var init_table5 = __esm({
|
|
43007
42981
|
});
|
43008
42982
|
|
43009
42983
|
// ../drizzle-orm/dist/singlestore-core/dialect.js
|
43010
|
-
var
|
42984
|
+
var _a398, SingleStoreDialect;
|
43011
42985
|
var init_dialect4 = __esm({
|
43012
42986
|
"../drizzle-orm/dist/singlestore-core/dialect.js"() {
|
43013
42987
|
"use strict";
|
@@ -43025,7 +42999,7 @@ var init_dialect4 = __esm({
|
|
43025
42999
|
init_view_common();
|
43026
43000
|
init_common5();
|
43027
43001
|
init_table5();
|
43028
|
-
|
43002
|
+
_a398 = entityKind;
|
43029
43003
|
SingleStoreDialect = class {
|
43030
43004
|
constructor(config) {
|
43031
43005
|
/** @internal */
|
@@ -43590,7 +43564,7 @@ var init_dialect4 = __esm({
|
|
43590
43564
|
};
|
43591
43565
|
}
|
43592
43566
|
};
|
43593
|
-
__publicField(SingleStoreDialect,
|
43567
|
+
__publicField(SingleStoreDialect, _a398, "SingleStoreDialect");
|
43594
43568
|
}
|
43595
43569
|
});
|
43596
43570
|
|
@@ -43612,7 +43586,7 @@ function createSetOperator4(type, isAll) {
|
|
43612
43586
|
return leftSelect.addSetOperators(setOperators);
|
43613
43587
|
};
|
43614
43588
|
}
|
43615
|
-
var
|
43589
|
+
var _a399, SingleStoreSelectBuilder, _a400, _b301, SingleStoreSelectQueryBuilderBase, _a401, _b302, SingleStoreSelectBase, getSingleStoreSetOperators, union4, unionAll4, intersect4, except4, minus;
|
43616
43590
|
var init_select5 = __esm({
|
43617
43591
|
"../drizzle-orm/dist/singlestore-core/query-builders/select.js"() {
|
43618
43592
|
"use strict";
|
@@ -43624,7 +43598,7 @@ var init_select5 = __esm({
|
|
43624
43598
|
init_subquery();
|
43625
43599
|
init_table();
|
43626
43600
|
init_utils2();
|
43627
|
-
|
43601
|
+
_a399 = entityKind;
|
43628
43602
|
SingleStoreSelectBuilder = class {
|
43629
43603
|
constructor(config) {
|
43630
43604
|
__publicField(this, "fields");
|
@@ -43667,8 +43641,8 @@ var init_select5 = __esm({
|
|
43667
43641
|
);
|
43668
43642
|
}
|
43669
43643
|
};
|
43670
|
-
__publicField(SingleStoreSelectBuilder,
|
43671
|
-
SingleStoreSelectQueryBuilderBase = class extends (
|
43644
|
+
__publicField(SingleStoreSelectBuilder, _a399, "SingleStoreSelectBuilder");
|
43645
|
+
SingleStoreSelectQueryBuilderBase = class extends (_b301 = TypedQueryBuilder, _a400 = entityKind, _b301) {
|
43672
43646
|
constructor({ table: table5, fields, isPartialSelect, session, dialect: dialect6, withList, distinct }) {
|
43673
43647
|
super();
|
43674
43648
|
__publicField(this, "_");
|
@@ -44209,8 +44183,8 @@ var init_select5 = __esm({
|
|
44209
44183
|
return this;
|
44210
44184
|
}
|
44211
44185
|
};
|
44212
|
-
__publicField(SingleStoreSelectQueryBuilderBase,
|
44213
|
-
SingleStoreSelectBase = class extends (
|
44186
|
+
__publicField(SingleStoreSelectQueryBuilderBase, _a400, "SingleStoreSelectQueryBuilder");
|
44187
|
+
SingleStoreSelectBase = class extends (_b302 = SingleStoreSelectQueryBuilderBase, _a401 = entityKind, _b302) {
|
44214
44188
|
constructor() {
|
44215
44189
|
super(...arguments);
|
44216
44190
|
__publicField(this, "execute", (placeholderValues) => {
|
@@ -44234,7 +44208,7 @@ var init_select5 = __esm({
|
|
44234
44208
|
return query;
|
44235
44209
|
}
|
44236
44210
|
};
|
44237
|
-
__publicField(SingleStoreSelectBase,
|
44211
|
+
__publicField(SingleStoreSelectBase, _a401, "SingleStoreSelect");
|
44238
44212
|
applyMixins(SingleStoreSelectBase, [QueryPromise]);
|
44239
44213
|
getSingleStoreSetOperators = () => ({
|
44240
44214
|
union: union4,
|
@@ -44252,7 +44226,7 @@ var init_select5 = __esm({
|
|
44252
44226
|
});
|
44253
44227
|
|
44254
44228
|
// ../drizzle-orm/dist/singlestore-core/query-builders/query-builder.js
|
44255
|
-
var
|
44229
|
+
var _a402, QueryBuilder4;
|
44256
44230
|
var init_query_builder5 = __esm({
|
44257
44231
|
"../drizzle-orm/dist/singlestore-core/query-builders/query-builder.js"() {
|
44258
44232
|
"use strict";
|
@@ -44261,7 +44235,7 @@ var init_query_builder5 = __esm({
|
|
44261
44235
|
init_dialect4();
|
44262
44236
|
init_subquery();
|
44263
44237
|
init_select5();
|
44264
|
-
|
44238
|
+
_a402 = entityKind;
|
44265
44239
|
QueryBuilder4 = class {
|
44266
44240
|
constructor(dialect6) {
|
44267
44241
|
__publicField(this, "dialect");
|
@@ -44331,7 +44305,7 @@ var init_query_builder5 = __esm({
|
|
44331
44305
|
return this.dialect;
|
44332
44306
|
}
|
44333
44307
|
};
|
44334
|
-
__publicField(QueryBuilder4,
|
44308
|
+
__publicField(QueryBuilder4, _a402, "SingleStoreQueryBuilder");
|
44335
44309
|
}
|
44336
44310
|
});
|
44337
44311
|
|
@@ -44343,7 +44317,7 @@ var init_select_types4 = __esm({
|
|
44343
44317
|
});
|
44344
44318
|
|
44345
44319
|
// ../drizzle-orm/dist/singlestore-core/query-builders/update.js
|
44346
|
-
var
|
44320
|
+
var _a403, SingleStoreUpdateBuilder, _a404, _b303, SingleStoreUpdateBase;
|
44347
44321
|
var init_update4 = __esm({
|
44348
44322
|
"../drizzle-orm/dist/singlestore-core/query-builders/update.js"() {
|
44349
44323
|
"use strict";
|
@@ -44352,7 +44326,7 @@ var init_update4 = __esm({
|
|
44352
44326
|
init_selection_proxy();
|
44353
44327
|
init_table();
|
44354
44328
|
init_utils2();
|
44355
|
-
|
44329
|
+
_a403 = entityKind;
|
44356
44330
|
SingleStoreUpdateBuilder = class {
|
44357
44331
|
constructor(table5, session, dialect6, withList) {
|
44358
44332
|
this.table = table5;
|
@@ -44370,8 +44344,8 @@ var init_update4 = __esm({
|
|
44370
44344
|
);
|
44371
44345
|
}
|
44372
44346
|
};
|
44373
|
-
__publicField(SingleStoreUpdateBuilder,
|
44374
|
-
SingleStoreUpdateBase = class extends (
|
44347
|
+
__publicField(SingleStoreUpdateBuilder, _a403, "SingleStoreUpdateBuilder");
|
44348
|
+
SingleStoreUpdateBase = class extends (_b303 = QueryPromise, _a404 = entityKind, _b303) {
|
44375
44349
|
constructor(table5, set, session, dialect6, withList) {
|
44376
44350
|
super();
|
44377
44351
|
__publicField(this, "config");
|
@@ -44464,7 +44438,7 @@ var init_update4 = __esm({
|
|
44464
44438
|
return this;
|
44465
44439
|
}
|
44466
44440
|
};
|
44467
|
-
__publicField(SingleStoreUpdateBase,
|
44441
|
+
__publicField(SingleStoreUpdateBase, _a404, "SingleStoreUpdate");
|
44468
44442
|
}
|
44469
44443
|
});
|
44470
44444
|
|
@@ -44482,7 +44456,7 @@ var init_query_builders4 = __esm({
|
|
44482
44456
|
});
|
44483
44457
|
|
44484
44458
|
// ../drizzle-orm/dist/singlestore-core/db.js
|
44485
|
-
var
|
44459
|
+
var _a405, SingleStoreDatabase;
|
44486
44460
|
var init_db4 = __esm({
|
44487
44461
|
"../drizzle-orm/dist/singlestore-core/db.js"() {
|
44488
44462
|
"use strict";
|
@@ -44492,7 +44466,7 @@ var init_db4 = __esm({
|
|
44492
44466
|
init_subquery();
|
44493
44467
|
init_count4();
|
44494
44468
|
init_query_builders4();
|
44495
|
-
|
44469
|
+
_a405 = entityKind;
|
44496
44470
|
SingleStoreDatabase = class {
|
44497
44471
|
constructor(dialect6, session, schema5) {
|
44498
44472
|
// We are waiting for SingleStore support for `json_array` function
|
@@ -44696,17 +44670,17 @@ var init_db4 = __esm({
|
|
44696
44670
|
return this.session.transaction(transaction, config);
|
44697
44671
|
}
|
44698
44672
|
};
|
44699
|
-
__publicField(SingleStoreDatabase,
|
44673
|
+
__publicField(SingleStoreDatabase, _a405, "SingleStoreDatabase");
|
44700
44674
|
}
|
44701
44675
|
});
|
44702
44676
|
|
44703
44677
|
// ../drizzle-orm/dist/singlestore-core/indexes.js
|
44704
|
-
var
|
44678
|
+
var _a406, IndexBuilderOn4, _a407, IndexBuilder4, _a408, Index6;
|
44705
44679
|
var init_indexes4 = __esm({
|
44706
44680
|
"../drizzle-orm/dist/singlestore-core/indexes.js"() {
|
44707
44681
|
"use strict";
|
44708
44682
|
init_entity();
|
44709
|
-
|
44683
|
+
_a406 = entityKind;
|
44710
44684
|
IndexBuilderOn4 = class {
|
44711
44685
|
constructor(name2, unique) {
|
44712
44686
|
this.name = name2;
|
@@ -44716,8 +44690,8 @@ var init_indexes4 = __esm({
|
|
44716
44690
|
return new IndexBuilder4(this.name, columns, this.unique);
|
44717
44691
|
}
|
44718
44692
|
};
|
44719
|
-
__publicField(IndexBuilderOn4,
|
44720
|
-
|
44693
|
+
__publicField(IndexBuilderOn4, _a406, "SingleStoreIndexBuilderOn");
|
44694
|
+
_a407 = entityKind;
|
44721
44695
|
IndexBuilder4 = class {
|
44722
44696
|
constructor(name2, columns, unique) {
|
44723
44697
|
/** @internal */
|
@@ -44745,26 +44719,26 @@ var init_indexes4 = __esm({
|
|
44745
44719
|
return new Index6(this.config, table5);
|
44746
44720
|
}
|
44747
44721
|
};
|
44748
|
-
__publicField(IndexBuilder4,
|
44749
|
-
|
44722
|
+
__publicField(IndexBuilder4, _a407, "SingleStoreIndexBuilder");
|
44723
|
+
_a408 = entityKind;
|
44750
44724
|
Index6 = class {
|
44751
44725
|
constructor(config, table5) {
|
44752
44726
|
__publicField(this, "config");
|
44753
44727
|
this.config = { ...config, table: table5 };
|
44754
44728
|
}
|
44755
44729
|
};
|
44756
|
-
__publicField(Index6,
|
44730
|
+
__publicField(Index6, _a408, "SingleStoreIndex");
|
44757
44731
|
}
|
44758
44732
|
});
|
44759
44733
|
|
44760
44734
|
// ../drizzle-orm/dist/singlestore-core/primary-keys.js
|
44761
|
-
var
|
44735
|
+
var _a409, PrimaryKeyBuilder4, _a410, PrimaryKey4;
|
44762
44736
|
var init_primary_keys4 = __esm({
|
44763
44737
|
"../drizzle-orm/dist/singlestore-core/primary-keys.js"() {
|
44764
44738
|
"use strict";
|
44765
44739
|
init_entity();
|
44766
44740
|
init_table5();
|
44767
|
-
|
44741
|
+
_a409 = entityKind;
|
44768
44742
|
PrimaryKeyBuilder4 = class {
|
44769
44743
|
constructor(columns, name2) {
|
44770
44744
|
/** @internal */
|
@@ -44779,8 +44753,8 @@ var init_primary_keys4 = __esm({
|
|
44779
44753
|
return new PrimaryKey4(table5, this.columns, this.name);
|
44780
44754
|
}
|
44781
44755
|
};
|
44782
|
-
__publicField(PrimaryKeyBuilder4,
|
44783
|
-
|
44756
|
+
__publicField(PrimaryKeyBuilder4, _a409, "SingleStorePrimaryKeyBuilder");
|
44757
|
+
_a410 = entityKind;
|
44784
44758
|
PrimaryKey4 = class {
|
44785
44759
|
constructor(table5, columns, name2) {
|
44786
44760
|
__publicField(this, "columns");
|
@@ -44793,18 +44767,18 @@ var init_primary_keys4 = __esm({
|
|
44793
44767
|
return this.name ?? `${this.table[SingleStoreTable.Symbol.Name]}_${this.columns.map((column5) => column5.name).join("_")}_pk`;
|
44794
44768
|
}
|
44795
44769
|
};
|
44796
|
-
__publicField(PrimaryKey4,
|
44770
|
+
__publicField(PrimaryKey4, _a410, "SingleStorePrimaryKey");
|
44797
44771
|
}
|
44798
44772
|
});
|
44799
44773
|
|
44800
44774
|
// ../drizzle-orm/dist/singlestore-core/schema.js
|
44801
|
-
var
|
44775
|
+
var _a411, SingleStoreSchema5;
|
44802
44776
|
var init_schema3 = __esm({
|
44803
44777
|
"../drizzle-orm/dist/singlestore-core/schema.js"() {
|
44804
44778
|
"use strict";
|
44805
44779
|
init_entity();
|
44806
44780
|
init_table5();
|
44807
|
-
|
44781
|
+
_a411 = entityKind;
|
44808
44782
|
SingleStoreSchema5 = class {
|
44809
44783
|
constructor(schemaName) {
|
44810
44784
|
__publicField(this, "table", (name2, columns, extraConfig) => {
|
@@ -44817,12 +44791,12 @@ var init_schema3 = __esm({
|
|
44817
44791
|
return singlestoreViewWithSchema(name, columns, this.schemaName);
|
44818
44792
|
}) as typeof singlestoreView; */
|
44819
44793
|
};
|
44820
|
-
__publicField(SingleStoreSchema5,
|
44794
|
+
__publicField(SingleStoreSchema5, _a411, "SingleStoreSchema");
|
44821
44795
|
}
|
44822
44796
|
});
|
44823
44797
|
|
44824
44798
|
// ../drizzle-orm/dist/singlestore-core/session.js
|
44825
|
-
var
|
44799
|
+
var _a412, SingleStorePreparedQuery, _a413, SingleStoreSession, _a414, _b304, SingleStoreTransaction;
|
44826
44800
|
var init_session4 = __esm({
|
44827
44801
|
"../drizzle-orm/dist/singlestore-core/session.js"() {
|
44828
44802
|
"use strict";
|
@@ -44830,15 +44804,15 @@ var init_session4 = __esm({
|
|
44830
44804
|
init_errors();
|
44831
44805
|
init_sql();
|
44832
44806
|
init_db4();
|
44833
|
-
|
44807
|
+
_a412 = entityKind;
|
44834
44808
|
SingleStorePreparedQuery = class {
|
44835
44809
|
constructor() {
|
44836
44810
|
/** @internal */
|
44837
44811
|
__publicField(this, "joinsNotNullableMap");
|
44838
44812
|
}
|
44839
44813
|
};
|
44840
|
-
__publicField(SingleStorePreparedQuery,
|
44841
|
-
|
44814
|
+
__publicField(SingleStorePreparedQuery, _a412, "SingleStorePreparedQuery");
|
44815
|
+
_a413 = entityKind;
|
44842
44816
|
SingleStoreSession = class {
|
44843
44817
|
constructor(dialect6) {
|
44844
44818
|
this.dialect = dialect6;
|
@@ -44873,8 +44847,8 @@ var init_session4 = __esm({
|
|
44873
44847
|
return parts.length ? sql`start transaction ${sql.raw(parts.join(" "))}` : void 0;
|
44874
44848
|
}
|
44875
44849
|
};
|
44876
|
-
__publicField(SingleStoreSession,
|
44877
|
-
SingleStoreTransaction = class extends (
|
44850
|
+
__publicField(SingleStoreSession, _a413, "SingleStoreSession");
|
44851
|
+
SingleStoreTransaction = class extends (_b304 = SingleStoreDatabase, _a414 = entityKind, _b304) {
|
44878
44852
|
constructor(dialect6, session, schema5, nestedIndex) {
|
44879
44853
|
super(dialect6, session, schema5);
|
44880
44854
|
this.schema = schema5;
|
@@ -44884,7 +44858,7 @@ var init_session4 = __esm({
|
|
44884
44858
|
throw new TransactionRollbackError();
|
44885
44859
|
}
|
44886
44860
|
};
|
44887
|
-
__publicField(SingleStoreTransaction,
|
44861
|
+
__publicField(SingleStoreTransaction, _a414, "SingleStoreTransaction");
|
44888
44862
|
}
|
44889
44863
|
});
|
44890
44864
|
|