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