drizzle-kit 0.30.4-1177ad8 → 0.30.4-4647df7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/api.js +652 -678
- package/api.mjs +652 -678
- package/bin.cjs +1 -1
- package/package.json +1 -1
package/api.mjs
CHANGED
@@ -3474,17 +3474,17 @@ function processCreateParams(params) {
|
|
3474
3474
|
if (errorMap2)
|
3475
3475
|
return { errorMap: errorMap2, description };
|
3476
3476
|
const customMap = (iss, ctx) => {
|
3477
|
-
var
|
3477
|
+
var _a415, _b305;
|
3478
3478
|
const { message } = params;
|
3479
3479
|
if (iss.code === "invalid_enum_value") {
|
3480
3480
|
return { message: message !== null && message !== void 0 ? message : ctx.defaultError };
|
3481
3481
|
}
|
3482
3482
|
if (typeof ctx.data === "undefined") {
|
3483
|
-
return { message: (
|
3483
|
+
return { message: (_a415 = message !== null && message !== void 0 ? message : required_error) !== null && _a415 !== void 0 ? _a415 : ctx.defaultError };
|
3484
3484
|
}
|
3485
3485
|
if (iss.code !== "invalid_type")
|
3486
3486
|
return { message: ctx.defaultError };
|
3487
|
-
return { message: (
|
3487
|
+
return { message: (_b305 = message !== null && message !== void 0 ? message : invalid_type_error) !== null && _b305 !== void 0 ? _b305 : ctx.defaultError };
|
3488
3488
|
};
|
3489
3489
|
return { errorMap: customMap, description };
|
3490
3490
|
}
|
@@ -4146,11 +4146,11 @@ var init_lib = __esm({
|
|
4146
4146
|
throw result.error;
|
4147
4147
|
}
|
4148
4148
|
safeParse(data, params) {
|
4149
|
-
var
|
4149
|
+
var _a415;
|
4150
4150
|
const ctx = {
|
4151
4151
|
common: {
|
4152
4152
|
issues: [],
|
4153
|
-
async: (
|
4153
|
+
async: (_a415 = params === null || params === void 0 ? void 0 : params.async) !== null && _a415 !== void 0 ? _a415 : false,
|
4154
4154
|
contextualErrorMap: params === null || params === void 0 ? void 0 : params.errorMap
|
4155
4155
|
},
|
4156
4156
|
path: (params === null || params === void 0 ? void 0 : params.path) || [],
|
@@ -4472,7 +4472,7 @@ var init_lib = __esm({
|
|
4472
4472
|
} else if (check.kind === "url") {
|
4473
4473
|
try {
|
4474
4474
|
new URL(input.data);
|
4475
|
-
} catch (
|
4475
|
+
} catch (_a415) {
|
4476
4476
|
ctx = this._getOrReturnCtx(input, ctx);
|
4477
4477
|
addIssueToContext(ctx, {
|
4478
4478
|
validation: "url",
|
@@ -4642,7 +4642,7 @@ var init_lib = __esm({
|
|
4642
4642
|
return this._addCheck({ kind: "ip", ...errorUtil.errToObj(options) });
|
4643
4643
|
}
|
4644
4644
|
datetime(options) {
|
4645
|
-
var
|
4645
|
+
var _a415, _b305;
|
4646
4646
|
if (typeof options === "string") {
|
4647
4647
|
return this._addCheck({
|
4648
4648
|
kind: "datetime",
|
@@ -4655,8 +4655,8 @@ var init_lib = __esm({
|
|
4655
4655
|
return this._addCheck({
|
4656
4656
|
kind: "datetime",
|
4657
4657
|
precision: typeof (options === null || options === void 0 ? void 0 : options.precision) === "undefined" ? null : options === null || options === void 0 ? void 0 : options.precision,
|
4658
|
-
offset: (
|
4659
|
-
local: (
|
4658
|
+
offset: (_a415 = options === null || options === void 0 ? void 0 : options.offset) !== null && _a415 !== void 0 ? _a415 : false,
|
4659
|
+
local: (_b305 = options === null || options === void 0 ? void 0 : options.local) !== null && _b305 !== void 0 ? _b305 : false,
|
4660
4660
|
...errorUtil.errToObj(options === null || options === void 0 ? void 0 : options.message)
|
4661
4661
|
});
|
4662
4662
|
}
|
@@ -4819,11 +4819,11 @@ var init_lib = __esm({
|
|
4819
4819
|
}
|
4820
4820
|
};
|
4821
4821
|
ZodString.create = (params) => {
|
4822
|
-
var
|
4822
|
+
var _a415;
|
4823
4823
|
return new ZodString({
|
4824
4824
|
checks: [],
|
4825
4825
|
typeName: ZodFirstPartyTypeKind.ZodString,
|
4826
|
-
coerce: (
|
4826
|
+
coerce: (_a415 = params === null || params === void 0 ? void 0 : params.coerce) !== null && _a415 !== void 0 ? _a415 : false,
|
4827
4827
|
...processCreateParams(params)
|
4828
4828
|
});
|
4829
4829
|
};
|
@@ -5216,11 +5216,11 @@ var init_lib = __esm({
|
|
5216
5216
|
}
|
5217
5217
|
};
|
5218
5218
|
ZodBigInt.create = (params) => {
|
5219
|
-
var
|
5219
|
+
var _a415;
|
5220
5220
|
return new ZodBigInt({
|
5221
5221
|
checks: [],
|
5222
5222
|
typeName: ZodFirstPartyTypeKind.ZodBigInt,
|
5223
|
-
coerce: (
|
5223
|
+
coerce: (_a415 = params === null || params === void 0 ? void 0 : params.coerce) !== null && _a415 !== void 0 ? _a415 : false,
|
5224
5224
|
...processCreateParams(params)
|
5225
5225
|
});
|
5226
5226
|
};
|
@@ -5700,8 +5700,8 @@ var init_lib = __esm({
|
|
5700
5700
|
unknownKeys: "strict",
|
5701
5701
|
...message !== void 0 ? {
|
5702
5702
|
errorMap: (issue, ctx) => {
|
5703
|
-
var
|
5704
|
-
const defaultError = (_c14 = (
|
5703
|
+
var _a415, _b305, _c14, _d6;
|
5704
|
+
const defaultError = (_c14 = (_b305 = (_a415 = this._def).errorMap) === null || _b305 === void 0 ? void 0 : _b305.call(_a415, issue, ctx).message) !== null && _c14 !== void 0 ? _c14 : ctx.defaultError;
|
5705
5705
|
if (issue.code === "unrecognized_keys")
|
5706
5706
|
return {
|
5707
5707
|
message: (_d6 = errorUtil.errToObj(message).message) !== null && _d6 !== void 0 ? _d6 : defaultError
|
@@ -22613,8 +22613,8 @@ var init_sql = __esm({
|
|
22613
22613
|
sql2.param = param2;
|
22614
22614
|
})(sql || (sql = {}));
|
22615
22615
|
((SQL2) => {
|
22616
|
-
var
|
22617
|
-
|
22616
|
+
var _a415;
|
22617
|
+
_a415 = entityKind;
|
22618
22618
|
const _Aliased = class _Aliased {
|
22619
22619
|
constructor(sql2, fieldAlias) {
|
22620
22620
|
/** @internal */
|
@@ -22630,7 +22630,7 @@ var init_sql = __esm({
|
|
22630
22630
|
return new _Aliased(this.sql, this.fieldAlias);
|
22631
22631
|
}
|
22632
22632
|
};
|
22633
|
-
__publicField(_Aliased,
|
22633
|
+
__publicField(_Aliased, _a415, "SQL.Aliased");
|
22634
22634
|
let Aliased = _Aliased;
|
22635
22635
|
SQL2.Aliased = Aliased;
|
22636
22636
|
})(SQL || (SQL = {}));
|
@@ -29517,44 +29517,17 @@ var init_schema = __esm({
|
|
29517
29517
|
}
|
29518
29518
|
});
|
29519
29519
|
|
29520
|
-
// ../drizzle-orm/dist/cache/core/cache.js
|
29521
|
-
var _a159, Cache, _a160, _b113, NoopCache;
|
29522
|
-
var init_cache = __esm({
|
29523
|
-
"../drizzle-orm/dist/cache/core/cache.js"() {
|
29524
|
-
"use strict";
|
29525
|
-
init_entity();
|
29526
|
-
_a159 = entityKind;
|
29527
|
-
Cache = class {
|
29528
|
-
};
|
29529
|
-
__publicField(Cache, _a159, "Cache");
|
29530
|
-
NoopCache = class extends (_b113 = Cache, _a160 = entityKind, _b113) {
|
29531
|
-
strategy() {
|
29532
|
-
return "all";
|
29533
|
-
}
|
29534
|
-
async get(_key) {
|
29535
|
-
return void 0;
|
29536
|
-
}
|
29537
|
-
async put(_hashedQuery, _response, _tables, _config) {
|
29538
|
-
}
|
29539
|
-
async onMutate(_params) {
|
29540
|
-
}
|
29541
|
-
};
|
29542
|
-
__publicField(NoopCache, _a160, "NoopCache");
|
29543
|
-
}
|
29544
|
-
});
|
29545
|
-
|
29546
29520
|
// ../drizzle-orm/dist/pg-core/session.js
|
29547
|
-
var
|
29521
|
+
var _a159, PgPreparedQuery, _a160, PgSession, _a161, _b113, PgTransaction;
|
29548
29522
|
var init_session = __esm({
|
29549
29523
|
"../drizzle-orm/dist/pg-core/session.js"() {
|
29550
29524
|
"use strict";
|
29551
|
-
init_cache();
|
29552
29525
|
init_entity();
|
29553
29526
|
init_errors();
|
29554
29527
|
init_sql2();
|
29555
29528
|
init_tracing();
|
29556
29529
|
init_db();
|
29557
|
-
|
29530
|
+
_a159 = entityKind;
|
29558
29531
|
PgPreparedQuery = class {
|
29559
29532
|
constructor(query, cache, queryMetadata, cacheConfig) {
|
29560
29533
|
__publicField(this, "authToken");
|
@@ -29593,7 +29566,7 @@ var init_session = __esm({
|
|
29593
29566
|
}
|
29594
29567
|
/** @internal */
|
29595
29568
|
async queryWithCache(queryString, params, query) {
|
29596
|
-
if (this.cache === void 0 ||
|
29569
|
+
if (this.cache === void 0 || this.queryMetadata === void 0) {
|
29597
29570
|
return await query();
|
29598
29571
|
}
|
29599
29572
|
if (this.cacheConfig && !this.cacheConfig.enable) {
|
@@ -29610,6 +29583,7 @@ var init_session = __esm({
|
|
29610
29583
|
this.cacheConfig.tag ?? await this.hashQuery(queryString, params)
|
29611
29584
|
);
|
29612
29585
|
if (fromCache === void 0) {
|
29586
|
+
console.log("Cache empty. Querying database", queryString);
|
29613
29587
|
const result = await query();
|
29614
29588
|
await this.cache.put(
|
29615
29589
|
this.cacheConfig.tag ?? await this.hashQuery(queryString, params),
|
@@ -29625,8 +29599,8 @@ var init_session = __esm({
|
|
29625
29599
|
return await query();
|
29626
29600
|
}
|
29627
29601
|
};
|
29628
|
-
__publicField(PgPreparedQuery,
|
29629
|
-
|
29602
|
+
__publicField(PgPreparedQuery, _a159, "PgPreparedQuery");
|
29603
|
+
_a160 = entityKind;
|
29630
29604
|
PgSession = class {
|
29631
29605
|
constructor(dialect6) {
|
29632
29606
|
this.dialect = dialect6;
|
@@ -29661,8 +29635,8 @@ var init_session = __esm({
|
|
29661
29635
|
);
|
29662
29636
|
}
|
29663
29637
|
};
|
29664
|
-
__publicField(PgSession,
|
29665
|
-
PgTransaction = class extends (
|
29638
|
+
__publicField(PgSession, _a160, "PgSession");
|
29639
|
+
PgTransaction = class extends (_b113 = PgDatabase, _a161 = entityKind, _b113) {
|
29666
29640
|
constructor(dialect6, session, schema5, nestedIndex = 0) {
|
29667
29641
|
super(dialect6, session, schema5);
|
29668
29642
|
this.schema = schema5;
|
@@ -29689,7 +29663,7 @@ var init_session = __esm({
|
|
29689
29663
|
return this.session.execute(sql`set transaction ${this.getTransactionConfigSQL(config)}`);
|
29690
29664
|
}
|
29691
29665
|
};
|
29692
|
-
__publicField(PgTransaction,
|
29666
|
+
__publicField(PgTransaction, _a161, "PgTransaction");
|
29693
29667
|
}
|
29694
29668
|
});
|
29695
29669
|
|
@@ -31427,12 +31401,12 @@ var init_alias3 = __esm({
|
|
31427
31401
|
});
|
31428
31402
|
|
31429
31403
|
// ../drizzle-orm/dist/sqlite-core/checks.js
|
31430
|
-
var
|
31404
|
+
var _a162, CheckBuilder2, _a163, Check2;
|
31431
31405
|
var init_checks2 = __esm({
|
31432
31406
|
"../drizzle-orm/dist/sqlite-core/checks.js"() {
|
31433
31407
|
"use strict";
|
31434
31408
|
init_entity();
|
31435
|
-
|
31409
|
+
_a162 = entityKind;
|
31436
31410
|
CheckBuilder2 = class {
|
31437
31411
|
constructor(name2, value) {
|
31438
31412
|
__publicField(this, "brand");
|
@@ -31443,8 +31417,8 @@ var init_checks2 = __esm({
|
|
31443
31417
|
return new Check2(table5, this);
|
31444
31418
|
}
|
31445
31419
|
};
|
31446
|
-
__publicField(CheckBuilder2,
|
31447
|
-
|
31420
|
+
__publicField(CheckBuilder2, _a162, "SQLiteCheckBuilder");
|
31421
|
+
_a163 = entityKind;
|
31448
31422
|
Check2 = class {
|
31449
31423
|
constructor(table5, builder) {
|
31450
31424
|
__publicField(this, "name");
|
@@ -31454,18 +31428,18 @@ var init_checks2 = __esm({
|
|
31454
31428
|
this.value = builder.value;
|
31455
31429
|
}
|
31456
31430
|
};
|
31457
|
-
__publicField(Check2,
|
31431
|
+
__publicField(Check2, _a163, "SQLiteCheck");
|
31458
31432
|
}
|
31459
31433
|
});
|
31460
31434
|
|
31461
31435
|
// ../drizzle-orm/dist/sqlite-core/foreign-keys.js
|
31462
|
-
var
|
31436
|
+
var _a164, ForeignKeyBuilder2, _a165, ForeignKey2;
|
31463
31437
|
var init_foreign_keys2 = __esm({
|
31464
31438
|
"../drizzle-orm/dist/sqlite-core/foreign-keys.js"() {
|
31465
31439
|
"use strict";
|
31466
31440
|
init_entity();
|
31467
31441
|
init_table_utils();
|
31468
|
-
|
31442
|
+
_a164 = entityKind;
|
31469
31443
|
ForeignKeyBuilder2 = class {
|
31470
31444
|
constructor(config, actions) {
|
31471
31445
|
/** @internal */
|
@@ -31496,8 +31470,8 @@ var init_foreign_keys2 = __esm({
|
|
31496
31470
|
return new ForeignKey2(table5, this);
|
31497
31471
|
}
|
31498
31472
|
};
|
31499
|
-
__publicField(ForeignKeyBuilder2,
|
31500
|
-
|
31473
|
+
__publicField(ForeignKeyBuilder2, _a164, "SQLiteForeignKeyBuilder");
|
31474
|
+
_a165 = entityKind;
|
31501
31475
|
ForeignKey2 = class {
|
31502
31476
|
constructor(table5, builder) {
|
31503
31477
|
__publicField(this, "reference");
|
@@ -31521,7 +31495,7 @@ var init_foreign_keys2 = __esm({
|
|
31521
31495
|
return name2 ?? `${chunks.join("_")}_fk`;
|
31522
31496
|
}
|
31523
31497
|
};
|
31524
|
-
__publicField(ForeignKey2,
|
31498
|
+
__publicField(ForeignKey2, _a165, "SQLiteForeignKey");
|
31525
31499
|
}
|
31526
31500
|
});
|
31527
31501
|
|
@@ -31529,13 +31503,13 @@ var init_foreign_keys2 = __esm({
|
|
31529
31503
|
function uniqueKeyName2(table5, columns) {
|
31530
31504
|
return `${table5[TableName]}_${columns.join("_")}_unique`;
|
31531
31505
|
}
|
31532
|
-
var
|
31506
|
+
var _a166, UniqueConstraintBuilder2, _a167, UniqueOnConstraintBuilder2, _a168, UniqueConstraint2;
|
31533
31507
|
var init_unique_constraint2 = __esm({
|
31534
31508
|
"../drizzle-orm/dist/sqlite-core/unique-constraint.js"() {
|
31535
31509
|
"use strict";
|
31536
31510
|
init_entity();
|
31537
31511
|
init_table_utils();
|
31538
|
-
|
31512
|
+
_a166 = entityKind;
|
31539
31513
|
UniqueConstraintBuilder2 = class {
|
31540
31514
|
constructor(columns, name2) {
|
31541
31515
|
/** @internal */
|
@@ -31548,8 +31522,8 @@ var init_unique_constraint2 = __esm({
|
|
31548
31522
|
return new UniqueConstraint2(table5, this.columns, this.name);
|
31549
31523
|
}
|
31550
31524
|
};
|
31551
|
-
__publicField(UniqueConstraintBuilder2,
|
31552
|
-
|
31525
|
+
__publicField(UniqueConstraintBuilder2, _a166, "SQLiteUniqueConstraintBuilder");
|
31526
|
+
_a167 = entityKind;
|
31553
31527
|
UniqueOnConstraintBuilder2 = class {
|
31554
31528
|
constructor(name2) {
|
31555
31529
|
/** @internal */
|
@@ -31560,8 +31534,8 @@ var init_unique_constraint2 = __esm({
|
|
31560
31534
|
return new UniqueConstraintBuilder2(columns, this.name);
|
31561
31535
|
}
|
31562
31536
|
};
|
31563
|
-
__publicField(UniqueOnConstraintBuilder2,
|
31564
|
-
|
31537
|
+
__publicField(UniqueOnConstraintBuilder2, _a167, "SQLiteUniqueOnConstraintBuilder");
|
31538
|
+
_a168 = entityKind;
|
31565
31539
|
UniqueConstraint2 = class {
|
31566
31540
|
constructor(table5, columns, name2) {
|
31567
31541
|
__publicField(this, "columns");
|
@@ -31574,12 +31548,12 @@ var init_unique_constraint2 = __esm({
|
|
31574
31548
|
return this.name;
|
31575
31549
|
}
|
31576
31550
|
};
|
31577
|
-
__publicField(UniqueConstraint2,
|
31551
|
+
__publicField(UniqueConstraint2, _a168, "SQLiteUniqueConstraint");
|
31578
31552
|
}
|
31579
31553
|
});
|
31580
31554
|
|
31581
31555
|
// ../drizzle-orm/dist/sqlite-core/columns/common.js
|
31582
|
-
var
|
31556
|
+
var _a169, _b114, SQLiteColumnBuilder, _a170, _b115, SQLiteColumn;
|
31583
31557
|
var init_common3 = __esm({
|
31584
31558
|
"../drizzle-orm/dist/sqlite-core/columns/common.js"() {
|
31585
31559
|
"use strict";
|
@@ -31588,7 +31562,7 @@ var init_common3 = __esm({
|
|
31588
31562
|
init_entity();
|
31589
31563
|
init_foreign_keys2();
|
31590
31564
|
init_unique_constraint2();
|
31591
|
-
SQLiteColumnBuilder = class extends (
|
31565
|
+
SQLiteColumnBuilder = class extends (_b114 = ColumnBuilder, _a169 = entityKind, _b114) {
|
31592
31566
|
constructor() {
|
31593
31567
|
super(...arguments);
|
31594
31568
|
__publicField(this, "foreignKeyConfigs", []);
|
@@ -31629,8 +31603,8 @@ var init_common3 = __esm({
|
|
31629
31603
|
});
|
31630
31604
|
}
|
31631
31605
|
};
|
31632
|
-
__publicField(SQLiteColumnBuilder,
|
31633
|
-
SQLiteColumn = class extends (
|
31606
|
+
__publicField(SQLiteColumnBuilder, _a169, "SQLiteColumnBuilder");
|
31607
|
+
SQLiteColumn = class extends (_b115 = Column2, _a170 = entityKind, _b115) {
|
31634
31608
|
constructor(table5, config) {
|
31635
31609
|
if (!config.uniqueName) {
|
31636
31610
|
config.uniqueName = uniqueKeyName2(table5, [config.name]);
|
@@ -31639,7 +31613,7 @@ var init_common3 = __esm({
|
|
31639
31613
|
this.table = table5;
|
31640
31614
|
}
|
31641
31615
|
};
|
31642
|
-
__publicField(SQLiteColumn,
|
31616
|
+
__publicField(SQLiteColumn, _a170, "SQLiteColumn");
|
31643
31617
|
}
|
31644
31618
|
});
|
31645
31619
|
|
@@ -31654,14 +31628,14 @@ function blob(a, b) {
|
|
31654
31628
|
}
|
31655
31629
|
return new SQLiteBlobBufferBuilder(name2);
|
31656
31630
|
}
|
31657
|
-
var
|
31631
|
+
var _a171, _b116, SQLiteBigIntBuilder, _a172, _b117, SQLiteBigInt, _a173, _b118, SQLiteBlobJsonBuilder, _a174, _b119, SQLiteBlobJson, _a175, _b120, SQLiteBlobBufferBuilder, _a176, _b121, SQLiteBlobBuffer;
|
31658
31632
|
var init_blob = __esm({
|
31659
31633
|
"../drizzle-orm/dist/sqlite-core/columns/blob.js"() {
|
31660
31634
|
"use strict";
|
31661
31635
|
init_entity();
|
31662
31636
|
init_utils2();
|
31663
31637
|
init_common3();
|
31664
|
-
SQLiteBigIntBuilder = class extends (
|
31638
|
+
SQLiteBigIntBuilder = class extends (_b116 = SQLiteColumnBuilder, _a171 = entityKind, _b116) {
|
31665
31639
|
constructor(name2) {
|
31666
31640
|
super(name2, "bigint", "SQLiteBigInt");
|
31667
31641
|
}
|
@@ -31670,8 +31644,8 @@ var init_blob = __esm({
|
|
31670
31644
|
return new SQLiteBigInt(table5, this.config);
|
31671
31645
|
}
|
31672
31646
|
};
|
31673
|
-
__publicField(SQLiteBigIntBuilder,
|
31674
|
-
SQLiteBigInt = class extends (
|
31647
|
+
__publicField(SQLiteBigIntBuilder, _a171, "SQLiteBigIntBuilder");
|
31648
|
+
SQLiteBigInt = class extends (_b117 = SQLiteColumn, _a172 = entityKind, _b117) {
|
31675
31649
|
getSQLType() {
|
31676
31650
|
return "blob";
|
31677
31651
|
}
|
@@ -31689,8 +31663,8 @@ var init_blob = __esm({
|
|
31689
31663
|
return Buffer.from(value.toString());
|
31690
31664
|
}
|
31691
31665
|
};
|
31692
|
-
__publicField(SQLiteBigInt,
|
31693
|
-
SQLiteBlobJsonBuilder = class extends (
|
31666
|
+
__publicField(SQLiteBigInt, _a172, "SQLiteBigInt");
|
31667
|
+
SQLiteBlobJsonBuilder = class extends (_b118 = SQLiteColumnBuilder, _a173 = entityKind, _b118) {
|
31694
31668
|
constructor(name2) {
|
31695
31669
|
super(name2, "json", "SQLiteBlobJson");
|
31696
31670
|
}
|
@@ -31702,8 +31676,8 @@ var init_blob = __esm({
|
|
31702
31676
|
);
|
31703
31677
|
}
|
31704
31678
|
};
|
31705
|
-
__publicField(SQLiteBlobJsonBuilder,
|
31706
|
-
SQLiteBlobJson = class extends (
|
31679
|
+
__publicField(SQLiteBlobJsonBuilder, _a173, "SQLiteBlobJsonBuilder");
|
31680
|
+
SQLiteBlobJson = class extends (_b119 = SQLiteColumn, _a174 = entityKind, _b119) {
|
31707
31681
|
getSQLType() {
|
31708
31682
|
return "blob";
|
31709
31683
|
}
|
@@ -31721,8 +31695,8 @@ var init_blob = __esm({
|
|
31721
31695
|
return Buffer.from(JSON.stringify(value));
|
31722
31696
|
}
|
31723
31697
|
};
|
31724
|
-
__publicField(SQLiteBlobJson,
|
31725
|
-
SQLiteBlobBufferBuilder = class extends (
|
31698
|
+
__publicField(SQLiteBlobJson, _a174, "SQLiteBlobJson");
|
31699
|
+
SQLiteBlobBufferBuilder = class extends (_b120 = SQLiteColumnBuilder, _a175 = entityKind, _b120) {
|
31726
31700
|
constructor(name2) {
|
31727
31701
|
super(name2, "buffer", "SQLiteBlobBuffer");
|
31728
31702
|
}
|
@@ -31731,13 +31705,13 @@ var init_blob = __esm({
|
|
31731
31705
|
return new SQLiteBlobBuffer(table5, this.config);
|
31732
31706
|
}
|
31733
31707
|
};
|
31734
|
-
__publicField(SQLiteBlobBufferBuilder,
|
31735
|
-
SQLiteBlobBuffer = class extends (
|
31708
|
+
__publicField(SQLiteBlobBufferBuilder, _a175, "SQLiteBlobBufferBuilder");
|
31709
|
+
SQLiteBlobBuffer = class extends (_b121 = SQLiteColumn, _a176 = entityKind, _b121) {
|
31736
31710
|
getSQLType() {
|
31737
31711
|
return "blob";
|
31738
31712
|
}
|
31739
31713
|
};
|
31740
|
-
__publicField(SQLiteBlobBuffer,
|
31714
|
+
__publicField(SQLiteBlobBuffer, _a176, "SQLiteBlobBuffer");
|
31741
31715
|
}
|
31742
31716
|
});
|
31743
31717
|
|
@@ -31752,14 +31726,14 @@ function customType2(customTypeParams) {
|
|
31752
31726
|
);
|
31753
31727
|
};
|
31754
31728
|
}
|
31755
|
-
var
|
31729
|
+
var _a177, _b122, SQLiteCustomColumnBuilder, _a178, _b123, SQLiteCustomColumn;
|
31756
31730
|
var init_custom2 = __esm({
|
31757
31731
|
"../drizzle-orm/dist/sqlite-core/columns/custom.js"() {
|
31758
31732
|
"use strict";
|
31759
31733
|
init_entity();
|
31760
31734
|
init_utils2();
|
31761
31735
|
init_common3();
|
31762
|
-
SQLiteCustomColumnBuilder = class extends (
|
31736
|
+
SQLiteCustomColumnBuilder = class extends (_b122 = SQLiteColumnBuilder, _a177 = entityKind, _b122) {
|
31763
31737
|
constructor(name2, fieldConfig, customTypeParams) {
|
31764
31738
|
super(name2, "custom", "SQLiteCustomColumn");
|
31765
31739
|
this.config.fieldConfig = fieldConfig;
|
@@ -31773,8 +31747,8 @@ var init_custom2 = __esm({
|
|
31773
31747
|
);
|
31774
31748
|
}
|
31775
31749
|
};
|
31776
|
-
__publicField(SQLiteCustomColumnBuilder,
|
31777
|
-
SQLiteCustomColumn = class extends (
|
31750
|
+
__publicField(SQLiteCustomColumnBuilder, _a177, "SQLiteCustomColumnBuilder");
|
31751
|
+
SQLiteCustomColumn = class extends (_b123 = SQLiteColumn, _a178 = entityKind, _b123) {
|
31778
31752
|
constructor(table5, config) {
|
31779
31753
|
super(table5, config);
|
31780
31754
|
__publicField(this, "sqlName");
|
@@ -31794,7 +31768,7 @@ var init_custom2 = __esm({
|
|
31794
31768
|
return typeof this.mapTo === "function" ? this.mapTo(value) : value;
|
31795
31769
|
}
|
31796
31770
|
};
|
31797
|
-
__publicField(SQLiteCustomColumn,
|
31771
|
+
__publicField(SQLiteCustomColumn, _a178, "SQLiteCustomColumn");
|
31798
31772
|
}
|
31799
31773
|
});
|
31800
31774
|
|
@@ -31809,7 +31783,7 @@ function integer2(a, b) {
|
|
31809
31783
|
}
|
31810
31784
|
return new SQLiteIntegerBuilder(name2);
|
31811
31785
|
}
|
31812
|
-
var
|
31786
|
+
var _a179, _b124, SQLiteBaseIntegerBuilder, _a180, _b125, SQLiteBaseInteger, _a181, _b126, SQLiteIntegerBuilder, _a182, _b127, SQLiteInteger, _a183, _b128, SQLiteTimestampBuilder, _a184, _b129, SQLiteTimestamp, _a185, _b130, SQLiteBooleanBuilder, _a186, _b131, SQLiteBoolean;
|
31813
31787
|
var init_integer2 = __esm({
|
31814
31788
|
"../drizzle-orm/dist/sqlite-core/columns/integer.js"() {
|
31815
31789
|
"use strict";
|
@@ -31817,7 +31791,7 @@ var init_integer2 = __esm({
|
|
31817
31791
|
init_sql();
|
31818
31792
|
init_utils2();
|
31819
31793
|
init_common3();
|
31820
|
-
SQLiteBaseIntegerBuilder = class extends (
|
31794
|
+
SQLiteBaseIntegerBuilder = class extends (_b124 = SQLiteColumnBuilder, _a179 = entityKind, _b124) {
|
31821
31795
|
constructor(name2, dataType, columnType) {
|
31822
31796
|
super(name2, dataType, columnType);
|
31823
31797
|
this.config.autoIncrement = false;
|
@@ -31830,8 +31804,8 @@ var init_integer2 = __esm({
|
|
31830
31804
|
return super.primaryKey();
|
31831
31805
|
}
|
31832
31806
|
};
|
31833
|
-
__publicField(SQLiteBaseIntegerBuilder,
|
31834
|
-
SQLiteBaseInteger = class extends (
|
31807
|
+
__publicField(SQLiteBaseIntegerBuilder, _a179, "SQLiteBaseIntegerBuilder");
|
31808
|
+
SQLiteBaseInteger = class extends (_b125 = SQLiteColumn, _a180 = entityKind, _b125) {
|
31835
31809
|
constructor() {
|
31836
31810
|
super(...arguments);
|
31837
31811
|
__publicField(this, "autoIncrement", this.config.autoIncrement);
|
@@ -31840,8 +31814,8 @@ var init_integer2 = __esm({
|
|
31840
31814
|
return "integer";
|
31841
31815
|
}
|
31842
31816
|
};
|
31843
|
-
__publicField(SQLiteBaseInteger,
|
31844
|
-
SQLiteIntegerBuilder = class extends (
|
31817
|
+
__publicField(SQLiteBaseInteger, _a180, "SQLiteBaseInteger");
|
31818
|
+
SQLiteIntegerBuilder = class extends (_b126 = SQLiteBaseIntegerBuilder, _a181 = entityKind, _b126) {
|
31845
31819
|
constructor(name2) {
|
31846
31820
|
super(name2, "number", "SQLiteInteger");
|
31847
31821
|
}
|
@@ -31852,11 +31826,11 @@ var init_integer2 = __esm({
|
|
31852
31826
|
);
|
31853
31827
|
}
|
31854
31828
|
};
|
31855
|
-
__publicField(SQLiteIntegerBuilder,
|
31856
|
-
SQLiteInteger = class extends (
|
31829
|
+
__publicField(SQLiteIntegerBuilder, _a181, "SQLiteIntegerBuilder");
|
31830
|
+
SQLiteInteger = class extends (_b127 = SQLiteBaseInteger, _a182 = entityKind, _b127) {
|
31857
31831
|
};
|
31858
|
-
__publicField(SQLiteInteger,
|
31859
|
-
SQLiteTimestampBuilder = class extends (
|
31832
|
+
__publicField(SQLiteInteger, _a182, "SQLiteInteger");
|
31833
|
+
SQLiteTimestampBuilder = class extends (_b128 = SQLiteBaseIntegerBuilder, _a183 = entityKind, _b128) {
|
31860
31834
|
constructor(name2, mode) {
|
31861
31835
|
super(name2, "date", "SQLiteTimestamp");
|
31862
31836
|
this.config.mode = mode;
|
@@ -31876,8 +31850,8 @@ var init_integer2 = __esm({
|
|
31876
31850
|
);
|
31877
31851
|
}
|
31878
31852
|
};
|
31879
|
-
__publicField(SQLiteTimestampBuilder,
|
31880
|
-
SQLiteTimestamp = class extends (
|
31853
|
+
__publicField(SQLiteTimestampBuilder, _a183, "SQLiteTimestampBuilder");
|
31854
|
+
SQLiteTimestamp = class extends (_b129 = SQLiteBaseInteger, _a184 = entityKind, _b129) {
|
31881
31855
|
constructor() {
|
31882
31856
|
super(...arguments);
|
31883
31857
|
__publicField(this, "mode", this.config.mode);
|
@@ -31896,8 +31870,8 @@ var init_integer2 = __esm({
|
|
31896
31870
|
return unix;
|
31897
31871
|
}
|
31898
31872
|
};
|
31899
|
-
__publicField(SQLiteTimestamp,
|
31900
|
-
SQLiteBooleanBuilder = class extends (
|
31873
|
+
__publicField(SQLiteTimestamp, _a184, "SQLiteTimestamp");
|
31874
|
+
SQLiteBooleanBuilder = class extends (_b130 = SQLiteBaseIntegerBuilder, _a185 = entityKind, _b130) {
|
31901
31875
|
constructor(name2, mode) {
|
31902
31876
|
super(name2, "boolean", "SQLiteBoolean");
|
31903
31877
|
this.config.mode = mode;
|
@@ -31909,8 +31883,8 @@ var init_integer2 = __esm({
|
|
31909
31883
|
);
|
31910
31884
|
}
|
31911
31885
|
};
|
31912
|
-
__publicField(SQLiteBooleanBuilder,
|
31913
|
-
SQLiteBoolean = class extends (
|
31886
|
+
__publicField(SQLiteBooleanBuilder, _a185, "SQLiteBooleanBuilder");
|
31887
|
+
SQLiteBoolean = class extends (_b131 = SQLiteBaseInteger, _a186 = entityKind, _b131) {
|
31914
31888
|
constructor() {
|
31915
31889
|
super(...arguments);
|
31916
31890
|
__publicField(this, "mode", this.config.mode);
|
@@ -31922,7 +31896,7 @@ var init_integer2 = __esm({
|
|
31922
31896
|
return value ? 1 : 0;
|
31923
31897
|
}
|
31924
31898
|
};
|
31925
|
-
__publicField(SQLiteBoolean,
|
31899
|
+
__publicField(SQLiteBoolean, _a186, "SQLiteBoolean");
|
31926
31900
|
}
|
31927
31901
|
});
|
31928
31902
|
|
@@ -31930,13 +31904,13 @@ var init_integer2 = __esm({
|
|
31930
31904
|
function numeric2(name2) {
|
31931
31905
|
return new SQLiteNumericBuilder(name2 ?? "");
|
31932
31906
|
}
|
31933
|
-
var
|
31907
|
+
var _a187, _b132, SQLiteNumericBuilder, _a188, _b133, SQLiteNumeric;
|
31934
31908
|
var init_numeric2 = __esm({
|
31935
31909
|
"../drizzle-orm/dist/sqlite-core/columns/numeric.js"() {
|
31936
31910
|
"use strict";
|
31937
31911
|
init_entity();
|
31938
31912
|
init_common3();
|
31939
|
-
SQLiteNumericBuilder = class extends (
|
31913
|
+
SQLiteNumericBuilder = class extends (_b132 = SQLiteColumnBuilder, _a187 = entityKind, _b132) {
|
31940
31914
|
constructor(name2) {
|
31941
31915
|
super(name2, "string", "SQLiteNumeric");
|
31942
31916
|
}
|
@@ -31948,13 +31922,13 @@ var init_numeric2 = __esm({
|
|
31948
31922
|
);
|
31949
31923
|
}
|
31950
31924
|
};
|
31951
|
-
__publicField(SQLiteNumericBuilder,
|
31952
|
-
SQLiteNumeric = class extends (
|
31925
|
+
__publicField(SQLiteNumericBuilder, _a187, "SQLiteNumericBuilder");
|
31926
|
+
SQLiteNumeric = class extends (_b133 = SQLiteColumn, _a188 = entityKind, _b133) {
|
31953
31927
|
getSQLType() {
|
31954
31928
|
return "numeric";
|
31955
31929
|
}
|
31956
31930
|
};
|
31957
|
-
__publicField(SQLiteNumeric,
|
31931
|
+
__publicField(SQLiteNumeric, _a188, "SQLiteNumeric");
|
31958
31932
|
}
|
31959
31933
|
});
|
31960
31934
|
|
@@ -31962,13 +31936,13 @@ var init_numeric2 = __esm({
|
|
31962
31936
|
function real2(name2) {
|
31963
31937
|
return new SQLiteRealBuilder(name2 ?? "");
|
31964
31938
|
}
|
31965
|
-
var
|
31939
|
+
var _a189, _b134, SQLiteRealBuilder, _a190, _b135, SQLiteReal;
|
31966
31940
|
var init_real2 = __esm({
|
31967
31941
|
"../drizzle-orm/dist/sqlite-core/columns/real.js"() {
|
31968
31942
|
"use strict";
|
31969
31943
|
init_entity();
|
31970
31944
|
init_common3();
|
31971
|
-
SQLiteRealBuilder = class extends (
|
31945
|
+
SQLiteRealBuilder = class extends (_b134 = SQLiteColumnBuilder, _a189 = entityKind, _b134) {
|
31972
31946
|
constructor(name2) {
|
31973
31947
|
super(name2, "number", "SQLiteReal");
|
31974
31948
|
}
|
@@ -31977,13 +31951,13 @@ var init_real2 = __esm({
|
|
31977
31951
|
return new SQLiteReal(table5, this.config);
|
31978
31952
|
}
|
31979
31953
|
};
|
31980
|
-
__publicField(SQLiteRealBuilder,
|
31981
|
-
SQLiteReal = class extends (
|
31954
|
+
__publicField(SQLiteRealBuilder, _a189, "SQLiteRealBuilder");
|
31955
|
+
SQLiteReal = class extends (_b135 = SQLiteColumn, _a190 = entityKind, _b135) {
|
31982
31956
|
getSQLType() {
|
31983
31957
|
return "real";
|
31984
31958
|
}
|
31985
31959
|
};
|
31986
|
-
__publicField(SQLiteReal,
|
31960
|
+
__publicField(SQLiteReal, _a190, "SQLiteReal");
|
31987
31961
|
}
|
31988
31962
|
});
|
31989
31963
|
|
@@ -31995,14 +31969,14 @@ function text2(a, b = {}) {
|
|
31995
31969
|
}
|
31996
31970
|
return new SQLiteTextBuilder(name2, config);
|
31997
31971
|
}
|
31998
|
-
var
|
31972
|
+
var _a191, _b136, SQLiteTextBuilder, _a192, _b137, SQLiteText, _a193, _b138, SQLiteTextJsonBuilder, _a194, _b139, SQLiteTextJson;
|
31999
31973
|
var init_text2 = __esm({
|
32000
31974
|
"../drizzle-orm/dist/sqlite-core/columns/text.js"() {
|
32001
31975
|
"use strict";
|
32002
31976
|
init_entity();
|
32003
31977
|
init_utils2();
|
32004
31978
|
init_common3();
|
32005
|
-
SQLiteTextBuilder = class extends (
|
31979
|
+
SQLiteTextBuilder = class extends (_b136 = SQLiteColumnBuilder, _a191 = entityKind, _b136) {
|
32006
31980
|
constructor(name2, config) {
|
32007
31981
|
super(name2, "string", "SQLiteText");
|
32008
31982
|
this.config.enumValues = config.enum;
|
@@ -32016,8 +31990,8 @@ var init_text2 = __esm({
|
|
32016
31990
|
);
|
32017
31991
|
}
|
32018
31992
|
};
|
32019
|
-
__publicField(SQLiteTextBuilder,
|
32020
|
-
SQLiteText = class extends (
|
31993
|
+
__publicField(SQLiteTextBuilder, _a191, "SQLiteTextBuilder");
|
31994
|
+
SQLiteText = class extends (_b137 = SQLiteColumn, _a192 = entityKind, _b137) {
|
32021
31995
|
constructor(table5, config) {
|
32022
31996
|
super(table5, config);
|
32023
31997
|
__publicField(this, "enumValues", this.config.enumValues);
|
@@ -32027,8 +32001,8 @@ var init_text2 = __esm({
|
|
32027
32001
|
return `text${this.config.length ? `(${this.config.length})` : ""}`;
|
32028
32002
|
}
|
32029
32003
|
};
|
32030
|
-
__publicField(SQLiteText,
|
32031
|
-
SQLiteTextJsonBuilder = class extends (
|
32004
|
+
__publicField(SQLiteText, _a192, "SQLiteText");
|
32005
|
+
SQLiteTextJsonBuilder = class extends (_b138 = SQLiteColumnBuilder, _a193 = entityKind, _b138) {
|
32032
32006
|
constructor(name2) {
|
32033
32007
|
super(name2, "json", "SQLiteTextJson");
|
32034
32008
|
}
|
@@ -32040,8 +32014,8 @@ var init_text2 = __esm({
|
|
32040
32014
|
);
|
32041
32015
|
}
|
32042
32016
|
};
|
32043
|
-
__publicField(SQLiteTextJsonBuilder,
|
32044
|
-
SQLiteTextJson = class extends (
|
32017
|
+
__publicField(SQLiteTextJsonBuilder, _a193, "SQLiteTextJsonBuilder");
|
32018
|
+
SQLiteTextJson = class extends (_b139 = SQLiteColumn, _a194 = entityKind, _b139) {
|
32045
32019
|
getSQLType() {
|
32046
32020
|
return "text";
|
32047
32021
|
}
|
@@ -32052,7 +32026,7 @@ var init_text2 = __esm({
|
|
32052
32026
|
return JSON.stringify(value);
|
32053
32027
|
}
|
32054
32028
|
};
|
32055
|
-
__publicField(SQLiteTextJson,
|
32029
|
+
__publicField(SQLiteTextJson, _a194, "SQLiteTextJson");
|
32056
32030
|
}
|
32057
32031
|
});
|
32058
32032
|
|
@@ -32114,7 +32088,7 @@ function sqliteTableBase(name2, columns, extraConfig, schema5, baseName = name2)
|
|
32114
32088
|
}
|
32115
32089
|
return table5;
|
32116
32090
|
}
|
32117
|
-
var InlineForeignKeys2,
|
32091
|
+
var InlineForeignKeys2, _a195, _b140, _c7, _d3, _e3, SQLiteTable, sqliteTable;
|
32118
32092
|
var init_table3 = __esm({
|
32119
32093
|
"../drizzle-orm/dist/sqlite-core/table.js"() {
|
32120
32094
|
"use strict";
|
@@ -32122,15 +32096,15 @@ var init_table3 = __esm({
|
|
32122
32096
|
init_table();
|
32123
32097
|
init_all2();
|
32124
32098
|
InlineForeignKeys2 = Symbol.for("drizzle:SQLiteInlineForeignKeys");
|
32125
|
-
SQLiteTable = class extends (_e3 = Table2, _d3 = entityKind, _c7 = Table2.Symbol.Columns,
|
32099
|
+
SQLiteTable = class extends (_e3 = Table2, _d3 = entityKind, _c7 = Table2.Symbol.Columns, _b140 = InlineForeignKeys2, _a195 = Table2.Symbol.ExtraConfigBuilder, _e3) {
|
32126
32100
|
constructor() {
|
32127
32101
|
super(...arguments);
|
32128
32102
|
/** @internal */
|
32129
32103
|
__publicField(this, _c7);
|
32130
32104
|
/** @internal */
|
32131
|
-
__publicField(this,
|
32105
|
+
__publicField(this, _b140, []);
|
32132
32106
|
/** @internal */
|
32133
|
-
__publicField(this,
|
32107
|
+
__publicField(this, _a195);
|
32134
32108
|
}
|
32135
32109
|
};
|
32136
32110
|
__publicField(SQLiteTable, _d3, "SQLiteTable");
|
@@ -32145,7 +32119,7 @@ var init_table3 = __esm({
|
|
32145
32119
|
});
|
32146
32120
|
|
32147
32121
|
// ../drizzle-orm/dist/sqlite-core/query-builders/delete.js
|
32148
|
-
var
|
32122
|
+
var _a196, _b141, SQLiteDeleteBase;
|
32149
32123
|
var init_delete2 = __esm({
|
32150
32124
|
"../drizzle-orm/dist/sqlite-core/query-builders/delete.js"() {
|
32151
32125
|
"use strict";
|
@@ -32155,7 +32129,7 @@ var init_delete2 = __esm({
|
|
32155
32129
|
init_table3();
|
32156
32130
|
init_table();
|
32157
32131
|
init_utils2();
|
32158
|
-
SQLiteDeleteBase = class extends (
|
32132
|
+
SQLiteDeleteBase = class extends (_b141 = QueryPromise, _a196 = entityKind, _b141) {
|
32159
32133
|
constructor(table5, session, dialect6, withList) {
|
32160
32134
|
super();
|
32161
32135
|
/** @internal */
|
@@ -32261,25 +32235,25 @@ var init_delete2 = __esm({
|
|
32261
32235
|
return this;
|
32262
32236
|
}
|
32263
32237
|
};
|
32264
|
-
__publicField(SQLiteDeleteBase,
|
32238
|
+
__publicField(SQLiteDeleteBase, _a196, "SQLiteDelete");
|
32265
32239
|
}
|
32266
32240
|
});
|
32267
32241
|
|
32268
32242
|
// ../drizzle-orm/dist/sqlite-core/view-base.js
|
32269
|
-
var
|
32243
|
+
var _a197, _b142, SQLiteViewBase;
|
32270
32244
|
var init_view_base2 = __esm({
|
32271
32245
|
"../drizzle-orm/dist/sqlite-core/view-base.js"() {
|
32272
32246
|
"use strict";
|
32273
32247
|
init_entity();
|
32274
32248
|
init_sql();
|
32275
|
-
SQLiteViewBase = class extends (
|
32249
|
+
SQLiteViewBase = class extends (_b142 = View3, _a197 = entityKind, _b142) {
|
32276
32250
|
};
|
32277
|
-
__publicField(SQLiteViewBase,
|
32251
|
+
__publicField(SQLiteViewBase, _a197, "SQLiteViewBase");
|
32278
32252
|
}
|
32279
32253
|
});
|
32280
32254
|
|
32281
32255
|
// ../drizzle-orm/dist/sqlite-core/dialect.js
|
32282
|
-
var
|
32256
|
+
var _a198, SQLiteDialect, _a199, _b143, SQLiteSyncDialect, _a200, _b144, SQLiteAsyncDialect;
|
32283
32257
|
var init_dialect2 = __esm({
|
32284
32258
|
"../drizzle-orm/dist/sqlite-core/dialect.js"() {
|
32285
32259
|
"use strict";
|
@@ -32298,7 +32272,7 @@ var init_dialect2 = __esm({
|
|
32298
32272
|
init_utils2();
|
32299
32273
|
init_view_common();
|
32300
32274
|
init_view_base2();
|
32301
|
-
|
32275
|
+
_a198 = entityKind;
|
32302
32276
|
SQLiteDialect = class {
|
32303
32277
|
constructor(config) {
|
32304
32278
|
/** @internal */
|
@@ -32840,8 +32814,8 @@ var init_dialect2 = __esm({
|
|
32840
32814
|
};
|
32841
32815
|
}
|
32842
32816
|
};
|
32843
|
-
__publicField(SQLiteDialect,
|
32844
|
-
SQLiteSyncDialect = class extends (
|
32817
|
+
__publicField(SQLiteDialect, _a198, "SQLiteDialect");
|
32818
|
+
SQLiteSyncDialect = class extends (_b143 = SQLiteDialect, _a199 = entityKind, _b143) {
|
32845
32819
|
migrate(migrations, session, config) {
|
32846
32820
|
const migrationsTable = config === void 0 ? "__drizzle_migrations" : typeof config === "string" ? "__drizzle_migrations" : config.migrationsTable ?? "__drizzle_migrations";
|
32847
32821
|
const migrationTableCreate = sql`
|
@@ -32875,8 +32849,8 @@ var init_dialect2 = __esm({
|
|
32875
32849
|
}
|
32876
32850
|
}
|
32877
32851
|
};
|
32878
|
-
__publicField(SQLiteSyncDialect,
|
32879
|
-
SQLiteAsyncDialect = class extends (
|
32852
|
+
__publicField(SQLiteSyncDialect, _a199, "SQLiteSyncDialect");
|
32853
|
+
SQLiteAsyncDialect = class extends (_b144 = SQLiteDialect, _a200 = entityKind, _b144) {
|
32880
32854
|
async migrate(migrations, session, config) {
|
32881
32855
|
const migrationsTable = config === void 0 ? "__drizzle_migrations" : typeof config === "string" ? "__drizzle_migrations" : config.migrationsTable ?? "__drizzle_migrations";
|
32882
32856
|
const migrationTableCreate = sql`
|
@@ -32905,7 +32879,7 @@ var init_dialect2 = __esm({
|
|
32905
32879
|
});
|
32906
32880
|
}
|
32907
32881
|
};
|
32908
|
-
__publicField(SQLiteAsyncDialect,
|
32882
|
+
__publicField(SQLiteAsyncDialect, _a200, "SQLiteAsyncDialect");
|
32909
32883
|
}
|
32910
32884
|
});
|
32911
32885
|
|
@@ -32927,7 +32901,7 @@ function createSetOperator2(type, isAll) {
|
|
32927
32901
|
return leftSelect.addSetOperators(setOperators);
|
32928
32902
|
};
|
32929
32903
|
}
|
32930
|
-
var
|
32904
|
+
var _a201, SQLiteSelectBuilder, _a202, _b145, SQLiteSelectQueryBuilderBase, _a203, _b146, SQLiteSelectBase, getSQLiteSetOperators, union2, unionAll2, intersect2, except2;
|
32931
32905
|
var init_select3 = __esm({
|
32932
32906
|
"../drizzle-orm/dist/sqlite-core/query-builders/select.js"() {
|
32933
32907
|
"use strict";
|
@@ -32941,7 +32915,7 @@ var init_select3 = __esm({
|
|
32941
32915
|
init_utils2();
|
32942
32916
|
init_view_common();
|
32943
32917
|
init_view_base2();
|
32944
|
-
|
32918
|
+
_a201 = entityKind;
|
32945
32919
|
SQLiteSelectBuilder = class {
|
32946
32920
|
constructor(config) {
|
32947
32921
|
__publicField(this, "fields");
|
@@ -32982,8 +32956,8 @@ var init_select3 = __esm({
|
|
32982
32956
|
});
|
32983
32957
|
}
|
32984
32958
|
};
|
32985
|
-
__publicField(SQLiteSelectBuilder,
|
32986
|
-
SQLiteSelectQueryBuilderBase = class extends (
|
32959
|
+
__publicField(SQLiteSelectBuilder, _a201, "SQLiteSelectBuilder");
|
32960
|
+
SQLiteSelectQueryBuilderBase = class extends (_b145 = TypedQueryBuilder, _a202 = entityKind, _b145) {
|
32987
32961
|
constructor({ table: table5, fields, isPartialSelect, session, dialect: dialect6, withList, distinct }) {
|
32988
32962
|
super();
|
32989
32963
|
__publicField(this, "_");
|
@@ -33488,8 +33462,8 @@ var init_select3 = __esm({
|
|
33488
33462
|
return this;
|
33489
33463
|
}
|
33490
33464
|
};
|
33491
|
-
__publicField(SQLiteSelectQueryBuilderBase,
|
33492
|
-
SQLiteSelectBase = class extends (
|
33465
|
+
__publicField(SQLiteSelectQueryBuilderBase, _a202, "SQLiteSelectQueryBuilder");
|
33466
|
+
SQLiteSelectBase = class extends (_b146 = SQLiteSelectQueryBuilderBase, _a203 = entityKind, _b146) {
|
33493
33467
|
constructor() {
|
33494
33468
|
super(...arguments);
|
33495
33469
|
__publicField(this, "run", (placeholderValues) => {
|
@@ -33527,7 +33501,7 @@ var init_select3 = __esm({
|
|
33527
33501
|
return this.all();
|
33528
33502
|
}
|
33529
33503
|
};
|
33530
|
-
__publicField(SQLiteSelectBase,
|
33504
|
+
__publicField(SQLiteSelectBase, _a203, "SQLiteSelect");
|
33531
33505
|
applyMixins(SQLiteSelectBase, [QueryPromise]);
|
33532
33506
|
getSQLiteSetOperators = () => ({
|
33533
33507
|
union: union2,
|
@@ -33543,7 +33517,7 @@ var init_select3 = __esm({
|
|
33543
33517
|
});
|
33544
33518
|
|
33545
33519
|
// ../drizzle-orm/dist/sqlite-core/query-builders/query-builder.js
|
33546
|
-
var
|
33520
|
+
var _a204, QueryBuilder2;
|
33547
33521
|
var init_query_builder3 = __esm({
|
33548
33522
|
"../drizzle-orm/dist/sqlite-core/query-builders/query-builder.js"() {
|
33549
33523
|
"use strict";
|
@@ -33552,7 +33526,7 @@ var init_query_builder3 = __esm({
|
|
33552
33526
|
init_dialect2();
|
33553
33527
|
init_subquery();
|
33554
33528
|
init_select3();
|
33555
|
-
|
33529
|
+
_a204 = entityKind;
|
33556
33530
|
QueryBuilder2 = class {
|
33557
33531
|
constructor(dialect6) {
|
33558
33532
|
__publicField(this, "dialect");
|
@@ -33618,12 +33592,12 @@ var init_query_builder3 = __esm({
|
|
33618
33592
|
return this.dialect;
|
33619
33593
|
}
|
33620
33594
|
};
|
33621
|
-
__publicField(QueryBuilder2,
|
33595
|
+
__publicField(QueryBuilder2, _a204, "SQLiteQueryBuilder");
|
33622
33596
|
}
|
33623
33597
|
});
|
33624
33598
|
|
33625
33599
|
// ../drizzle-orm/dist/sqlite-core/query-builders/insert.js
|
33626
|
-
var
|
33600
|
+
var _a205, SQLiteInsertBuilder, _a206, _b147, SQLiteInsertBase;
|
33627
33601
|
var init_insert2 = __esm({
|
33628
33602
|
"../drizzle-orm/dist/sqlite-core/query-builders/insert.js"() {
|
33629
33603
|
"use strict";
|
@@ -33634,7 +33608,7 @@ var init_insert2 = __esm({
|
|
33634
33608
|
init_table();
|
33635
33609
|
init_utils2();
|
33636
33610
|
init_query_builder3();
|
33637
|
-
|
33611
|
+
_a205 = entityKind;
|
33638
33612
|
SQLiteInsertBuilder = class {
|
33639
33613
|
constructor(table5, session, dialect6, withList) {
|
33640
33614
|
this.table = table5;
|
@@ -33668,8 +33642,8 @@ var init_insert2 = __esm({
|
|
33668
33642
|
return new SQLiteInsertBase(this.table, select, this.session, this.dialect, this.withList, true);
|
33669
33643
|
}
|
33670
33644
|
};
|
33671
|
-
__publicField(SQLiteInsertBuilder,
|
33672
|
-
SQLiteInsertBase = class extends (
|
33645
|
+
__publicField(SQLiteInsertBuilder, _a205, "SQLiteInsertBuilder");
|
33646
|
+
SQLiteInsertBase = class extends (_b147 = QueryPromise, _a206 = entityKind, _b147) {
|
33673
33647
|
constructor(table5, values, session, dialect6, withList, select) {
|
33674
33648
|
super();
|
33675
33649
|
/** @internal */
|
@@ -33802,7 +33776,7 @@ var init_insert2 = __esm({
|
|
33802
33776
|
return this;
|
33803
33777
|
}
|
33804
33778
|
};
|
33805
|
-
__publicField(SQLiteInsertBase,
|
33779
|
+
__publicField(SQLiteInsertBase, _a206, "SQLiteInsert");
|
33806
33780
|
}
|
33807
33781
|
});
|
33808
33782
|
|
@@ -33814,7 +33788,7 @@ var init_select_types2 = __esm({
|
|
33814
33788
|
});
|
33815
33789
|
|
33816
33790
|
// ../drizzle-orm/dist/sqlite-core/query-builders/update.js
|
33817
|
-
var
|
33791
|
+
var _a207, SQLiteUpdateBuilder, _a208, _b148, SQLiteUpdateBase;
|
33818
33792
|
var init_update2 = __esm({
|
33819
33793
|
"../drizzle-orm/dist/sqlite-core/query-builders/update.js"() {
|
33820
33794
|
"use strict";
|
@@ -33827,7 +33801,7 @@ var init_update2 = __esm({
|
|
33827
33801
|
init_utils2();
|
33828
33802
|
init_view_common();
|
33829
33803
|
init_view_base2();
|
33830
|
-
|
33804
|
+
_a207 = entityKind;
|
33831
33805
|
SQLiteUpdateBuilder = class {
|
33832
33806
|
constructor(table5, session, dialect6, withList) {
|
33833
33807
|
this.table = table5;
|
@@ -33845,8 +33819,8 @@ var init_update2 = __esm({
|
|
33845
33819
|
);
|
33846
33820
|
}
|
33847
33821
|
};
|
33848
|
-
__publicField(SQLiteUpdateBuilder,
|
33849
|
-
SQLiteUpdateBase = class extends (
|
33822
|
+
__publicField(SQLiteUpdateBuilder, _a207, "SQLiteUpdateBuilder");
|
33823
|
+
SQLiteUpdateBase = class extends (_b148 = QueryPromise, _a208 = entityKind, _b148) {
|
33850
33824
|
constructor(table5, set, session, dialect6, withList) {
|
33851
33825
|
super();
|
33852
33826
|
/** @internal */
|
@@ -33986,7 +33960,7 @@ var init_update2 = __esm({
|
|
33986
33960
|
return this;
|
33987
33961
|
}
|
33988
33962
|
};
|
33989
|
-
__publicField(SQLiteUpdateBase,
|
33963
|
+
__publicField(SQLiteUpdateBase, _a208, "SQLiteUpdate");
|
33990
33964
|
}
|
33991
33965
|
});
|
33992
33966
|
|
@@ -34004,17 +33978,17 @@ var init_query_builders2 = __esm({
|
|
34004
33978
|
});
|
34005
33979
|
|
34006
33980
|
// ../drizzle-orm/dist/sqlite-core/query-builders/count.js
|
34007
|
-
var
|
33981
|
+
var _a209, _b149, _c8, _SQLiteCountBuilder, SQLiteCountBuilder;
|
34008
33982
|
var init_count2 = __esm({
|
34009
33983
|
"../drizzle-orm/dist/sqlite-core/query-builders/count.js"() {
|
34010
33984
|
"use strict";
|
34011
33985
|
init_entity();
|
34012
33986
|
init_sql();
|
34013
|
-
_SQLiteCountBuilder = class _SQLiteCountBuilder extends (_c8 = SQL,
|
33987
|
+
_SQLiteCountBuilder = class _SQLiteCountBuilder extends (_c8 = SQL, _b149 = entityKind, _a209 = Symbol.toStringTag, _c8) {
|
34014
33988
|
constructor(params) {
|
34015
33989
|
super(_SQLiteCountBuilder.buildEmbeddedCount(params.source, params.filters).queryChunks);
|
34016
33990
|
__publicField(this, "sql");
|
34017
|
-
__publicField(this,
|
33991
|
+
__publicField(this, _a209, "SQLiteCountBuilderAsync");
|
34018
33992
|
__publicField(this, "session");
|
34019
33993
|
this.params = params;
|
34020
33994
|
this.session = params.session;
|
@@ -34051,20 +34025,20 @@ var init_count2 = __esm({
|
|
34051
34025
|
);
|
34052
34026
|
}
|
34053
34027
|
};
|
34054
|
-
__publicField(_SQLiteCountBuilder,
|
34028
|
+
__publicField(_SQLiteCountBuilder, _b149, "SQLiteCountBuilderAsync");
|
34055
34029
|
SQLiteCountBuilder = _SQLiteCountBuilder;
|
34056
34030
|
}
|
34057
34031
|
});
|
34058
34032
|
|
34059
34033
|
// ../drizzle-orm/dist/sqlite-core/query-builders/query.js
|
34060
|
-
var
|
34034
|
+
var _a210, RelationalQueryBuilder2, _a211, _b150, SQLiteRelationalQuery, _a212, _b151, SQLiteSyncRelationalQuery;
|
34061
34035
|
var init_query2 = __esm({
|
34062
34036
|
"../drizzle-orm/dist/sqlite-core/query-builders/query.js"() {
|
34063
34037
|
"use strict";
|
34064
34038
|
init_entity();
|
34065
34039
|
init_query_promise();
|
34066
34040
|
init_relations();
|
34067
|
-
|
34041
|
+
_a210 = entityKind;
|
34068
34042
|
RelationalQueryBuilder2 = class {
|
34069
34043
|
constructor(mode, fullSchema, schema5, tableNamesMap, table5, tableConfig, dialect6, session) {
|
34070
34044
|
this.mode = mode;
|
@@ -34123,8 +34097,8 @@ var init_query2 = __esm({
|
|
34123
34097
|
);
|
34124
34098
|
}
|
34125
34099
|
};
|
34126
|
-
__publicField(RelationalQueryBuilder2,
|
34127
|
-
SQLiteRelationalQuery = class extends (
|
34100
|
+
__publicField(RelationalQueryBuilder2, _a210, "SQLiteAsyncRelationalQueryBuilder");
|
34101
|
+
SQLiteRelationalQuery = class extends (_b150 = QueryPromise, _a211 = entityKind, _b150) {
|
34128
34102
|
constructor(fullSchema, schema5, tableNamesMap, table5, tableConfig, dialect6, session, config, mode) {
|
34129
34103
|
super();
|
34130
34104
|
/** @internal */
|
@@ -34200,24 +34174,24 @@ var init_query2 = __esm({
|
|
34200
34174
|
return this.executeRaw();
|
34201
34175
|
}
|
34202
34176
|
};
|
34203
|
-
__publicField(SQLiteRelationalQuery,
|
34204
|
-
SQLiteSyncRelationalQuery = class extends (
|
34177
|
+
__publicField(SQLiteRelationalQuery, _a211, "SQLiteAsyncRelationalQuery");
|
34178
|
+
SQLiteSyncRelationalQuery = class extends (_b151 = SQLiteRelationalQuery, _a212 = entityKind, _b151) {
|
34205
34179
|
sync() {
|
34206
34180
|
return this.executeRaw();
|
34207
34181
|
}
|
34208
34182
|
};
|
34209
|
-
__publicField(SQLiteSyncRelationalQuery,
|
34183
|
+
__publicField(SQLiteSyncRelationalQuery, _a212, "SQLiteSyncRelationalQuery");
|
34210
34184
|
}
|
34211
34185
|
});
|
34212
34186
|
|
34213
34187
|
// ../drizzle-orm/dist/sqlite-core/query-builders/raw.js
|
34214
|
-
var
|
34188
|
+
var _a213, _b152, SQLiteRaw;
|
34215
34189
|
var init_raw2 = __esm({
|
34216
34190
|
"../drizzle-orm/dist/sqlite-core/query-builders/raw.js"() {
|
34217
34191
|
"use strict";
|
34218
34192
|
init_entity();
|
34219
34193
|
init_query_promise();
|
34220
|
-
SQLiteRaw = class extends (
|
34194
|
+
SQLiteRaw = class extends (_b152 = QueryPromise, _a213 = entityKind, _b152) {
|
34221
34195
|
constructor(execute, getSQL, action, dialect6, mapBatchResult) {
|
34222
34196
|
super();
|
34223
34197
|
/** @internal */
|
@@ -34242,12 +34216,12 @@ var init_raw2 = __esm({
|
|
34242
34216
|
return false;
|
34243
34217
|
}
|
34244
34218
|
};
|
34245
|
-
__publicField(SQLiteRaw,
|
34219
|
+
__publicField(SQLiteRaw, _a213, "SQLiteRaw");
|
34246
34220
|
}
|
34247
34221
|
});
|
34248
34222
|
|
34249
34223
|
// ../drizzle-orm/dist/sqlite-core/db.js
|
34250
|
-
var
|
34224
|
+
var _a214, BaseSQLiteDatabase;
|
34251
34225
|
var init_db2 = __esm({
|
34252
34226
|
"../drizzle-orm/dist/sqlite-core/db.js"() {
|
34253
34227
|
"use strict";
|
@@ -34259,7 +34233,7 @@ var init_db2 = __esm({
|
|
34259
34233
|
init_count2();
|
34260
34234
|
init_query2();
|
34261
34235
|
init_raw2();
|
34262
|
-
|
34236
|
+
_a214 = entityKind;
|
34263
34237
|
BaseSQLiteDatabase = class {
|
34264
34238
|
constructor(resultKind, dialect6, session, schema5) {
|
34265
34239
|
__publicField(this, "query");
|
@@ -34545,17 +34519,17 @@ var init_db2 = __esm({
|
|
34545
34519
|
return this.session.transaction(transaction, config);
|
34546
34520
|
}
|
34547
34521
|
};
|
34548
|
-
__publicField(BaseSQLiteDatabase,
|
34522
|
+
__publicField(BaseSQLiteDatabase, _a214, "BaseSQLiteDatabase");
|
34549
34523
|
}
|
34550
34524
|
});
|
34551
34525
|
|
34552
34526
|
// ../drizzle-orm/dist/sqlite-core/indexes.js
|
34553
|
-
var
|
34527
|
+
var _a215, IndexBuilderOn2, _a216, IndexBuilder2, _a217, Index4;
|
34554
34528
|
var init_indexes2 = __esm({
|
34555
34529
|
"../drizzle-orm/dist/sqlite-core/indexes.js"() {
|
34556
34530
|
"use strict";
|
34557
34531
|
init_entity();
|
34558
|
-
|
34532
|
+
_a215 = entityKind;
|
34559
34533
|
IndexBuilderOn2 = class {
|
34560
34534
|
constructor(name2, unique) {
|
34561
34535
|
this.name = name2;
|
@@ -34565,8 +34539,8 @@ var init_indexes2 = __esm({
|
|
34565
34539
|
return new IndexBuilder2(this.name, columns, this.unique);
|
34566
34540
|
}
|
34567
34541
|
};
|
34568
|
-
__publicField(IndexBuilderOn2,
|
34569
|
-
|
34542
|
+
__publicField(IndexBuilderOn2, _a215, "SQLiteIndexBuilderOn");
|
34543
|
+
_a216 = entityKind;
|
34570
34544
|
IndexBuilder2 = class {
|
34571
34545
|
constructor(name2, columns, unique) {
|
34572
34546
|
/** @internal */
|
@@ -34590,26 +34564,26 @@ var init_indexes2 = __esm({
|
|
34590
34564
|
return new Index4(this.config, table5);
|
34591
34565
|
}
|
34592
34566
|
};
|
34593
|
-
__publicField(IndexBuilder2,
|
34594
|
-
|
34567
|
+
__publicField(IndexBuilder2, _a216, "SQLiteIndexBuilder");
|
34568
|
+
_a217 = entityKind;
|
34595
34569
|
Index4 = class {
|
34596
34570
|
constructor(config, table5) {
|
34597
34571
|
__publicField(this, "config");
|
34598
34572
|
this.config = { ...config, table: table5 };
|
34599
34573
|
}
|
34600
34574
|
};
|
34601
|
-
__publicField(Index4,
|
34575
|
+
__publicField(Index4, _a217, "SQLiteIndex");
|
34602
34576
|
}
|
34603
34577
|
});
|
34604
34578
|
|
34605
34579
|
// ../drizzle-orm/dist/sqlite-core/primary-keys.js
|
34606
|
-
var
|
34580
|
+
var _a218, PrimaryKeyBuilder2, _a219, PrimaryKey2;
|
34607
34581
|
var init_primary_keys2 = __esm({
|
34608
34582
|
"../drizzle-orm/dist/sqlite-core/primary-keys.js"() {
|
34609
34583
|
"use strict";
|
34610
34584
|
init_entity();
|
34611
34585
|
init_table3();
|
34612
|
-
|
34586
|
+
_a218 = entityKind;
|
34613
34587
|
PrimaryKeyBuilder2 = class {
|
34614
34588
|
constructor(columns, name2) {
|
34615
34589
|
/** @internal */
|
@@ -34624,8 +34598,8 @@ var init_primary_keys2 = __esm({
|
|
34624
34598
|
return new PrimaryKey2(table5, this.columns, this.name);
|
34625
34599
|
}
|
34626
34600
|
};
|
34627
|
-
__publicField(PrimaryKeyBuilder2,
|
34628
|
-
|
34601
|
+
__publicField(PrimaryKeyBuilder2, _a218, "SQLitePrimaryKeyBuilder");
|
34602
|
+
_a219 = entityKind;
|
34629
34603
|
PrimaryKey2 = class {
|
34630
34604
|
constructor(table5, columns, name2) {
|
34631
34605
|
__publicField(this, "columns");
|
@@ -34638,12 +34612,12 @@ var init_primary_keys2 = __esm({
|
|
34638
34612
|
return this.name ?? `${this.table[SQLiteTable.Symbol.Name]}_${this.columns.map((column5) => column5.name).join("_")}_pk`;
|
34639
34613
|
}
|
34640
34614
|
};
|
34641
|
-
__publicField(PrimaryKey2,
|
34615
|
+
__publicField(PrimaryKey2, _a219, "SQLitePrimaryKey");
|
34642
34616
|
}
|
34643
34617
|
});
|
34644
34618
|
|
34645
34619
|
// ../drizzle-orm/dist/sqlite-core/session.js
|
34646
|
-
var
|
34620
|
+
var _a220, _b153, ExecuteResultSync, _a221, SQLitePreparedQuery, _a222, SQLiteSession, _a223, _b154, SQLiteTransaction;
|
34647
34621
|
var init_session2 = __esm({
|
34648
34622
|
"../drizzle-orm/dist/sqlite-core/session.js"() {
|
34649
34623
|
"use strict";
|
@@ -34651,7 +34625,7 @@ var init_session2 = __esm({
|
|
34651
34625
|
init_errors();
|
34652
34626
|
init_query_promise();
|
34653
34627
|
init_db2();
|
34654
|
-
ExecuteResultSync = class extends (
|
34628
|
+
ExecuteResultSync = class extends (_b153 = QueryPromise, _a220 = entityKind, _b153) {
|
34655
34629
|
constructor(resultCb) {
|
34656
34630
|
super();
|
34657
34631
|
this.resultCb = resultCb;
|
@@ -34663,8 +34637,8 @@ var init_session2 = __esm({
|
|
34663
34637
|
return this.resultCb();
|
34664
34638
|
}
|
34665
34639
|
};
|
34666
|
-
__publicField(ExecuteResultSync,
|
34667
|
-
|
34640
|
+
__publicField(ExecuteResultSync, _a220, "ExecuteResultSync");
|
34641
|
+
_a221 = entityKind;
|
34668
34642
|
SQLitePreparedQuery = class {
|
34669
34643
|
constructor(mode, executeMethod, query) {
|
34670
34644
|
/** @internal */
|
@@ -34705,8 +34679,8 @@ var init_session2 = __esm({
|
|
34705
34679
|
}
|
34706
34680
|
}
|
34707
34681
|
};
|
34708
|
-
__publicField(SQLitePreparedQuery,
|
34709
|
-
|
34682
|
+
__publicField(SQLitePreparedQuery, _a221, "PreparedQuery");
|
34683
|
+
_a222 = entityKind;
|
34710
34684
|
SQLiteSession = class {
|
34711
34685
|
constructor(dialect6) {
|
34712
34686
|
this.dialect = dialect6;
|
@@ -34752,8 +34726,8 @@ var init_session2 = __esm({
|
|
34752
34726
|
throw new Error("Not implemented");
|
34753
34727
|
}
|
34754
34728
|
};
|
34755
|
-
__publicField(SQLiteSession,
|
34756
|
-
SQLiteTransaction = class extends (
|
34729
|
+
__publicField(SQLiteSession, _a222, "SQLiteSession");
|
34730
|
+
SQLiteTransaction = class extends (_b154 = BaseSQLiteDatabase, _a223 = entityKind, _b154) {
|
34757
34731
|
constructor(resultType, dialect6, session, schema5, nestedIndex = 0) {
|
34758
34732
|
super(resultType, dialect6, session, schema5);
|
34759
34733
|
this.schema = schema5;
|
@@ -34763,7 +34737,7 @@ var init_session2 = __esm({
|
|
34763
34737
|
throw new TransactionRollbackError();
|
34764
34738
|
}
|
34765
34739
|
};
|
34766
|
-
__publicField(SQLiteTransaction,
|
34740
|
+
__publicField(SQLiteTransaction, _a223, "SQLiteTransaction");
|
34767
34741
|
}
|
34768
34742
|
});
|
34769
34743
|
|
@@ -34833,7 +34807,7 @@ var init_utils7 = __esm({
|
|
34833
34807
|
});
|
34834
34808
|
|
34835
34809
|
// ../drizzle-orm/dist/sqlite-core/view.js
|
34836
|
-
var
|
34810
|
+
var _a224, ViewBuilderCore, _a225, _b155, ViewBuilder2, _a226, _b156, ManualViewBuilder2, _a227, _b157, SQLiteView2;
|
34837
34811
|
var init_view2 = __esm({
|
34838
34812
|
"../drizzle-orm/dist/sqlite-core/view.js"() {
|
34839
34813
|
"use strict";
|
@@ -34843,15 +34817,15 @@ var init_view2 = __esm({
|
|
34843
34817
|
init_query_builder3();
|
34844
34818
|
init_table3();
|
34845
34819
|
init_view_base2();
|
34846
|
-
|
34820
|
+
_a224 = entityKind;
|
34847
34821
|
ViewBuilderCore = class {
|
34848
34822
|
constructor(name2) {
|
34849
34823
|
__publicField(this, "config", {});
|
34850
34824
|
this.name = name2;
|
34851
34825
|
}
|
34852
34826
|
};
|
34853
|
-
__publicField(ViewBuilderCore,
|
34854
|
-
ViewBuilder2 = class extends (
|
34827
|
+
__publicField(ViewBuilderCore, _a224, "SQLiteViewBuilderCore");
|
34828
|
+
ViewBuilder2 = class extends (_b155 = ViewBuilderCore, _a225 = entityKind, _b155) {
|
34855
34829
|
as(qb) {
|
34856
34830
|
if (typeof qb === "function") {
|
34857
34831
|
qb = qb(new QueryBuilder2());
|
@@ -34877,8 +34851,8 @@ var init_view2 = __esm({
|
|
34877
34851
|
);
|
34878
34852
|
}
|
34879
34853
|
};
|
34880
|
-
__publicField(ViewBuilder2,
|
34881
|
-
ManualViewBuilder2 = class extends (
|
34854
|
+
__publicField(ViewBuilder2, _a225, "SQLiteViewBuilder");
|
34855
|
+
ManualViewBuilder2 = class extends (_b156 = ViewBuilderCore, _a226 = entityKind, _b156) {
|
34882
34856
|
constructor(name2, columns) {
|
34883
34857
|
super(name2);
|
34884
34858
|
__publicField(this, "columns");
|
@@ -34921,13 +34895,13 @@ var init_view2 = __esm({
|
|
34921
34895
|
);
|
34922
34896
|
}
|
34923
34897
|
};
|
34924
|
-
__publicField(ManualViewBuilder2,
|
34925
|
-
SQLiteView2 = class extends (
|
34898
|
+
__publicField(ManualViewBuilder2, _a226, "SQLiteManualViewBuilder");
|
34899
|
+
SQLiteView2 = class extends (_b157 = SQLiteViewBase, _a227 = entityKind, _b157) {
|
34926
34900
|
constructor({ config }) {
|
34927
34901
|
super(config);
|
34928
34902
|
}
|
34929
34903
|
};
|
34930
|
-
__publicField(SQLiteView2,
|
34904
|
+
__publicField(SQLiteView2, _a227, "SQLiteView");
|
34931
34905
|
}
|
34932
34906
|
});
|
34933
34907
|
|
@@ -35645,12 +35619,12 @@ var init_alias4 = __esm({
|
|
35645
35619
|
});
|
35646
35620
|
|
35647
35621
|
// ../drizzle-orm/dist/mysql-core/checks.js
|
35648
|
-
var
|
35622
|
+
var _a228, CheckBuilder3, _a229, Check3;
|
35649
35623
|
var init_checks3 = __esm({
|
35650
35624
|
"../drizzle-orm/dist/mysql-core/checks.js"() {
|
35651
35625
|
"use strict";
|
35652
35626
|
init_entity();
|
35653
|
-
|
35627
|
+
_a228 = entityKind;
|
35654
35628
|
CheckBuilder3 = class {
|
35655
35629
|
constructor(name2, value) {
|
35656
35630
|
__publicField(this, "brand");
|
@@ -35662,8 +35636,8 @@ var init_checks3 = __esm({
|
|
35662
35636
|
return new Check3(table5, this);
|
35663
35637
|
}
|
35664
35638
|
};
|
35665
|
-
__publicField(CheckBuilder3,
|
35666
|
-
|
35639
|
+
__publicField(CheckBuilder3, _a228, "MySqlCheckBuilder");
|
35640
|
+
_a229 = entityKind;
|
35667
35641
|
Check3 = class {
|
35668
35642
|
constructor(table5, builder) {
|
35669
35643
|
__publicField(this, "name");
|
@@ -35673,18 +35647,18 @@ var init_checks3 = __esm({
|
|
35673
35647
|
this.value = builder.value;
|
35674
35648
|
}
|
35675
35649
|
};
|
35676
|
-
__publicField(Check3,
|
35650
|
+
__publicField(Check3, _a229, "MySqlCheck");
|
35677
35651
|
}
|
35678
35652
|
});
|
35679
35653
|
|
35680
35654
|
// ../drizzle-orm/dist/mysql-core/foreign-keys.js
|
35681
|
-
var
|
35655
|
+
var _a230, ForeignKeyBuilder3, _a231, ForeignKey3;
|
35682
35656
|
var init_foreign_keys3 = __esm({
|
35683
35657
|
"../drizzle-orm/dist/mysql-core/foreign-keys.js"() {
|
35684
35658
|
"use strict";
|
35685
35659
|
init_entity();
|
35686
35660
|
init_table_utils();
|
35687
|
-
|
35661
|
+
_a230 = entityKind;
|
35688
35662
|
ForeignKeyBuilder3 = class {
|
35689
35663
|
constructor(config, actions) {
|
35690
35664
|
/** @internal */
|
@@ -35715,8 +35689,8 @@ var init_foreign_keys3 = __esm({
|
|
35715
35689
|
return new ForeignKey3(table5, this);
|
35716
35690
|
}
|
35717
35691
|
};
|
35718
|
-
__publicField(ForeignKeyBuilder3,
|
35719
|
-
|
35692
|
+
__publicField(ForeignKeyBuilder3, _a230, "MySqlForeignKeyBuilder");
|
35693
|
+
_a231 = entityKind;
|
35720
35694
|
ForeignKey3 = class {
|
35721
35695
|
constructor(table5, builder) {
|
35722
35696
|
__publicField(this, "reference");
|
@@ -35740,7 +35714,7 @@ var init_foreign_keys3 = __esm({
|
|
35740
35714
|
return name2 ?? `${chunks.join("_")}_fk`;
|
35741
35715
|
}
|
35742
35716
|
};
|
35743
|
-
__publicField(ForeignKey3,
|
35717
|
+
__publicField(ForeignKey3, _a231, "MySqlForeignKey");
|
35744
35718
|
}
|
35745
35719
|
});
|
35746
35720
|
|
@@ -35748,13 +35722,13 @@ var init_foreign_keys3 = __esm({
|
|
35748
35722
|
function uniqueKeyName3(table5, columns) {
|
35749
35723
|
return `${table5[TableName]}_${columns.join("_")}_unique`;
|
35750
35724
|
}
|
35751
|
-
var
|
35725
|
+
var _a232, UniqueConstraintBuilder3, _a233, UniqueOnConstraintBuilder3, _a234, UniqueConstraint3;
|
35752
35726
|
var init_unique_constraint3 = __esm({
|
35753
35727
|
"../drizzle-orm/dist/mysql-core/unique-constraint.js"() {
|
35754
35728
|
"use strict";
|
35755
35729
|
init_entity();
|
35756
35730
|
init_table_utils();
|
35757
|
-
|
35731
|
+
_a232 = entityKind;
|
35758
35732
|
UniqueConstraintBuilder3 = class {
|
35759
35733
|
constructor(columns, name2) {
|
35760
35734
|
/** @internal */
|
@@ -35767,8 +35741,8 @@ var init_unique_constraint3 = __esm({
|
|
35767
35741
|
return new UniqueConstraint3(table5, this.columns, this.name);
|
35768
35742
|
}
|
35769
35743
|
};
|
35770
|
-
__publicField(UniqueConstraintBuilder3,
|
35771
|
-
|
35744
|
+
__publicField(UniqueConstraintBuilder3, _a232, "MySqlUniqueConstraintBuilder");
|
35745
|
+
_a233 = entityKind;
|
35772
35746
|
UniqueOnConstraintBuilder3 = class {
|
35773
35747
|
constructor(name2) {
|
35774
35748
|
/** @internal */
|
@@ -35779,8 +35753,8 @@ var init_unique_constraint3 = __esm({
|
|
35779
35753
|
return new UniqueConstraintBuilder3(columns, this.name);
|
35780
35754
|
}
|
35781
35755
|
};
|
35782
|
-
__publicField(UniqueOnConstraintBuilder3,
|
35783
|
-
|
35756
|
+
__publicField(UniqueOnConstraintBuilder3, _a233, "MySqlUniqueOnConstraintBuilder");
|
35757
|
+
_a234 = entityKind;
|
35784
35758
|
UniqueConstraint3 = class {
|
35785
35759
|
constructor(table5, columns, name2) {
|
35786
35760
|
__publicField(this, "columns");
|
@@ -35794,12 +35768,12 @@ var init_unique_constraint3 = __esm({
|
|
35794
35768
|
return this.name;
|
35795
35769
|
}
|
35796
35770
|
};
|
35797
|
-
__publicField(UniqueConstraint3,
|
35771
|
+
__publicField(UniqueConstraint3, _a234, "MySqlUniqueConstraint");
|
35798
35772
|
}
|
35799
35773
|
});
|
35800
35774
|
|
35801
35775
|
// ../drizzle-orm/dist/mysql-core/columns/common.js
|
35802
|
-
var
|
35776
|
+
var _a235, _b158, MySqlColumnBuilder, _a236, _b159, MySqlColumn, _a237, _b160, MySqlColumnBuilderWithAutoIncrement, _a238, _b161, MySqlColumnWithAutoIncrement;
|
35803
35777
|
var init_common4 = __esm({
|
35804
35778
|
"../drizzle-orm/dist/mysql-core/columns/common.js"() {
|
35805
35779
|
"use strict";
|
@@ -35808,7 +35782,7 @@ var init_common4 = __esm({
|
|
35808
35782
|
init_entity();
|
35809
35783
|
init_foreign_keys3();
|
35810
35784
|
init_unique_constraint3();
|
35811
|
-
MySqlColumnBuilder = class extends (
|
35785
|
+
MySqlColumnBuilder = class extends (_b158 = ColumnBuilder, _a235 = entityKind, _b158) {
|
35812
35786
|
constructor() {
|
35813
35787
|
super(...arguments);
|
35814
35788
|
__publicField(this, "foreignKeyConfigs", []);
|
@@ -35849,8 +35823,8 @@ var init_common4 = __esm({
|
|
35849
35823
|
});
|
35850
35824
|
}
|
35851
35825
|
};
|
35852
|
-
__publicField(MySqlColumnBuilder,
|
35853
|
-
MySqlColumn = class extends (
|
35826
|
+
__publicField(MySqlColumnBuilder, _a235, "MySqlColumnBuilder");
|
35827
|
+
MySqlColumn = class extends (_b159 = Column2, _a236 = entityKind, _b159) {
|
35854
35828
|
constructor(table5, config) {
|
35855
35829
|
if (!config.uniqueName) {
|
35856
35830
|
config.uniqueName = uniqueKeyName3(table5, [config.name]);
|
@@ -35859,8 +35833,8 @@ var init_common4 = __esm({
|
|
35859
35833
|
this.table = table5;
|
35860
35834
|
}
|
35861
35835
|
};
|
35862
|
-
__publicField(MySqlColumn,
|
35863
|
-
MySqlColumnBuilderWithAutoIncrement = class extends (
|
35836
|
+
__publicField(MySqlColumn, _a236, "MySqlColumn");
|
35837
|
+
MySqlColumnBuilderWithAutoIncrement = class extends (_b160 = MySqlColumnBuilder, _a237 = entityKind, _b160) {
|
35864
35838
|
constructor(name2, dataType, columnType) {
|
35865
35839
|
super(name2, dataType, columnType);
|
35866
35840
|
this.config.autoIncrement = false;
|
@@ -35871,14 +35845,14 @@ var init_common4 = __esm({
|
|
35871
35845
|
return this;
|
35872
35846
|
}
|
35873
35847
|
};
|
35874
|
-
__publicField(MySqlColumnBuilderWithAutoIncrement,
|
35875
|
-
MySqlColumnWithAutoIncrement = class extends (
|
35848
|
+
__publicField(MySqlColumnBuilderWithAutoIncrement, _a237, "MySqlColumnBuilderWithAutoIncrement");
|
35849
|
+
MySqlColumnWithAutoIncrement = class extends (_b161 = MySqlColumn, _a238 = entityKind, _b161) {
|
35876
35850
|
constructor() {
|
35877
35851
|
super(...arguments);
|
35878
35852
|
__publicField(this, "autoIncrement", this.config.autoIncrement);
|
35879
35853
|
}
|
35880
35854
|
};
|
35881
|
-
__publicField(MySqlColumnWithAutoIncrement,
|
35855
|
+
__publicField(MySqlColumnWithAutoIncrement, _a238, "MySqlColumnWithAutoIncrement");
|
35882
35856
|
}
|
35883
35857
|
});
|
35884
35858
|
|
@@ -35890,14 +35864,14 @@ function bigint2(a, b) {
|
|
35890
35864
|
}
|
35891
35865
|
return new MySqlBigInt64Builder(name2, config.unsigned);
|
35892
35866
|
}
|
35893
|
-
var
|
35867
|
+
var _a239, _b162, MySqlBigInt53Builder, _a240, _b163, MySqlBigInt53, _a241, _b164, MySqlBigInt64Builder, _a242, _b165, MySqlBigInt64;
|
35894
35868
|
var init_bigint2 = __esm({
|
35895
35869
|
"../drizzle-orm/dist/mysql-core/columns/bigint.js"() {
|
35896
35870
|
"use strict";
|
35897
35871
|
init_entity();
|
35898
35872
|
init_utils2();
|
35899
35873
|
init_common4();
|
35900
|
-
MySqlBigInt53Builder = class extends (
|
35874
|
+
MySqlBigInt53Builder = class extends (_b162 = MySqlColumnBuilderWithAutoIncrement, _a239 = entityKind, _b162) {
|
35901
35875
|
constructor(name2, unsigned = false) {
|
35902
35876
|
super(name2, "number", "MySqlBigInt53");
|
35903
35877
|
this.config.unsigned = unsigned;
|
@@ -35910,8 +35884,8 @@ var init_bigint2 = __esm({
|
|
35910
35884
|
);
|
35911
35885
|
}
|
35912
35886
|
};
|
35913
|
-
__publicField(MySqlBigInt53Builder,
|
35914
|
-
MySqlBigInt53 = class extends (
|
35887
|
+
__publicField(MySqlBigInt53Builder, _a239, "MySqlBigInt53Builder");
|
35888
|
+
MySqlBigInt53 = class extends (_b163 = MySqlColumnWithAutoIncrement, _a240 = entityKind, _b163) {
|
35915
35889
|
getSQLType() {
|
35916
35890
|
return `bigint${this.config.unsigned ? " unsigned" : ""}`;
|
35917
35891
|
}
|
@@ -35922,8 +35896,8 @@ var init_bigint2 = __esm({
|
|
35922
35896
|
return Number(value);
|
35923
35897
|
}
|
35924
35898
|
};
|
35925
|
-
__publicField(MySqlBigInt53,
|
35926
|
-
MySqlBigInt64Builder = class extends (
|
35899
|
+
__publicField(MySqlBigInt53, _a240, "MySqlBigInt53");
|
35900
|
+
MySqlBigInt64Builder = class extends (_b164 = MySqlColumnBuilderWithAutoIncrement, _a241 = entityKind, _b164) {
|
35927
35901
|
constructor(name2, unsigned = false) {
|
35928
35902
|
super(name2, "bigint", "MySqlBigInt64");
|
35929
35903
|
this.config.unsigned = unsigned;
|
@@ -35936,8 +35910,8 @@ var init_bigint2 = __esm({
|
|
35936
35910
|
);
|
35937
35911
|
}
|
35938
35912
|
};
|
35939
|
-
__publicField(MySqlBigInt64Builder,
|
35940
|
-
MySqlBigInt64 = class extends (
|
35913
|
+
__publicField(MySqlBigInt64Builder, _a241, "MySqlBigInt64Builder");
|
35914
|
+
MySqlBigInt64 = class extends (_b165 = MySqlColumnWithAutoIncrement, _a242 = entityKind, _b165) {
|
35941
35915
|
getSQLType() {
|
35942
35916
|
return `bigint${this.config.unsigned ? " unsigned" : ""}`;
|
35943
35917
|
}
|
@@ -35946,7 +35920,7 @@ var init_bigint2 = __esm({
|
|
35946
35920
|
return BigInt(value);
|
35947
35921
|
}
|
35948
35922
|
};
|
35949
|
-
__publicField(MySqlBigInt64,
|
35923
|
+
__publicField(MySqlBigInt64, _a242, "MySqlBigInt64");
|
35950
35924
|
}
|
35951
35925
|
});
|
35952
35926
|
|
@@ -35955,14 +35929,14 @@ function binary(a, b = {}) {
|
|
35955
35929
|
const { name: name2, config } = getColumnNameAndConfig(a, b);
|
35956
35930
|
return new MySqlBinaryBuilder(name2, config.length);
|
35957
35931
|
}
|
35958
|
-
var
|
35932
|
+
var _a243, _b166, MySqlBinaryBuilder, _a244, _b167, MySqlBinary;
|
35959
35933
|
var init_binary = __esm({
|
35960
35934
|
"../drizzle-orm/dist/mysql-core/columns/binary.js"() {
|
35961
35935
|
"use strict";
|
35962
35936
|
init_entity();
|
35963
35937
|
init_utils2();
|
35964
35938
|
init_common4();
|
35965
|
-
MySqlBinaryBuilder = class extends (
|
35939
|
+
MySqlBinaryBuilder = class extends (_b166 = MySqlColumnBuilder, _a243 = entityKind, _b166) {
|
35966
35940
|
constructor(name2, length) {
|
35967
35941
|
super(name2, "string", "MySqlBinary");
|
35968
35942
|
this.config.length = length;
|
@@ -35972,8 +35946,8 @@ var init_binary = __esm({
|
|
35972
35946
|
return new MySqlBinary(table5, this.config);
|
35973
35947
|
}
|
35974
35948
|
};
|
35975
|
-
__publicField(MySqlBinaryBuilder,
|
35976
|
-
MySqlBinary = class extends (
|
35949
|
+
__publicField(MySqlBinaryBuilder, _a243, "MySqlBinaryBuilder");
|
35950
|
+
MySqlBinary = class extends (_b167 = MySqlColumn, _a244 = entityKind, _b167) {
|
35977
35951
|
constructor() {
|
35978
35952
|
super(...arguments);
|
35979
35953
|
__publicField(this, "length", this.config.length);
|
@@ -35982,7 +35956,7 @@ var init_binary = __esm({
|
|
35982
35956
|
return this.length === void 0 ? `binary` : `binary(${this.length})`;
|
35983
35957
|
}
|
35984
35958
|
};
|
35985
|
-
__publicField(MySqlBinary,
|
35959
|
+
__publicField(MySqlBinary, _a244, "MySqlBinary");
|
35986
35960
|
}
|
35987
35961
|
});
|
35988
35962
|
|
@@ -35990,13 +35964,13 @@ var init_binary = __esm({
|
|
35990
35964
|
function boolean2(name2) {
|
35991
35965
|
return new MySqlBooleanBuilder(name2 ?? "");
|
35992
35966
|
}
|
35993
|
-
var
|
35967
|
+
var _a245, _b168, MySqlBooleanBuilder, _a246, _b169, MySqlBoolean;
|
35994
35968
|
var init_boolean2 = __esm({
|
35995
35969
|
"../drizzle-orm/dist/mysql-core/columns/boolean.js"() {
|
35996
35970
|
"use strict";
|
35997
35971
|
init_entity();
|
35998
35972
|
init_common4();
|
35999
|
-
MySqlBooleanBuilder = class extends (
|
35973
|
+
MySqlBooleanBuilder = class extends (_b168 = MySqlColumnBuilder, _a245 = entityKind, _b168) {
|
36000
35974
|
constructor(name2) {
|
36001
35975
|
super(name2, "boolean", "MySqlBoolean");
|
36002
35976
|
}
|
@@ -36008,8 +35982,8 @@ var init_boolean2 = __esm({
|
|
36008
35982
|
);
|
36009
35983
|
}
|
36010
35984
|
};
|
36011
|
-
__publicField(MySqlBooleanBuilder,
|
36012
|
-
MySqlBoolean = class extends (
|
35985
|
+
__publicField(MySqlBooleanBuilder, _a245, "MySqlBooleanBuilder");
|
35986
|
+
MySqlBoolean = class extends (_b169 = MySqlColumn, _a246 = entityKind, _b169) {
|
36013
35987
|
getSQLType() {
|
36014
35988
|
return "boolean";
|
36015
35989
|
}
|
@@ -36020,7 +35994,7 @@ var init_boolean2 = __esm({
|
|
36020
35994
|
return value === 1;
|
36021
35995
|
}
|
36022
35996
|
};
|
36023
|
-
__publicField(MySqlBoolean,
|
35997
|
+
__publicField(MySqlBoolean, _a246, "MySqlBoolean");
|
36024
35998
|
}
|
36025
35999
|
});
|
36026
36000
|
|
@@ -36029,14 +36003,14 @@ function char2(a, b = {}) {
|
|
36029
36003
|
const { name: name2, config } = getColumnNameAndConfig(a, b);
|
36030
36004
|
return new MySqlCharBuilder(name2, config);
|
36031
36005
|
}
|
36032
|
-
var
|
36006
|
+
var _a247, _b170, MySqlCharBuilder, _a248, _b171, MySqlChar;
|
36033
36007
|
var init_char2 = __esm({
|
36034
36008
|
"../drizzle-orm/dist/mysql-core/columns/char.js"() {
|
36035
36009
|
"use strict";
|
36036
36010
|
init_entity();
|
36037
36011
|
init_utils2();
|
36038
36012
|
init_common4();
|
36039
|
-
MySqlCharBuilder = class extends (
|
36013
|
+
MySqlCharBuilder = class extends (_b170 = MySqlColumnBuilder, _a247 = entityKind, _b170) {
|
36040
36014
|
constructor(name2, config) {
|
36041
36015
|
super(name2, "string", "MySqlChar");
|
36042
36016
|
this.config.length = config.length;
|
@@ -36050,8 +36024,8 @@ var init_char2 = __esm({
|
|
36050
36024
|
);
|
36051
36025
|
}
|
36052
36026
|
};
|
36053
|
-
__publicField(MySqlCharBuilder,
|
36054
|
-
MySqlChar = class extends (
|
36027
|
+
__publicField(MySqlCharBuilder, _a247, "MySqlCharBuilder");
|
36028
|
+
MySqlChar = class extends (_b171 = MySqlColumn, _a248 = entityKind, _b171) {
|
36055
36029
|
constructor() {
|
36056
36030
|
super(...arguments);
|
36057
36031
|
__publicField(this, "length", this.config.length);
|
@@ -36061,7 +36035,7 @@ var init_char2 = __esm({
|
|
36061
36035
|
return this.length === void 0 ? `char` : `char(${this.length})`;
|
36062
36036
|
}
|
36063
36037
|
};
|
36064
|
-
__publicField(MySqlChar,
|
36038
|
+
__publicField(MySqlChar, _a248, "MySqlChar");
|
36065
36039
|
}
|
36066
36040
|
});
|
36067
36041
|
|
@@ -36072,14 +36046,14 @@ function customType3(customTypeParams) {
|
|
36072
36046
|
return new MySqlCustomColumnBuilder(name2, config, customTypeParams);
|
36073
36047
|
};
|
36074
36048
|
}
|
36075
|
-
var
|
36049
|
+
var _a249, _b172, MySqlCustomColumnBuilder, _a250, _b173, MySqlCustomColumn;
|
36076
36050
|
var init_custom3 = __esm({
|
36077
36051
|
"../drizzle-orm/dist/mysql-core/columns/custom.js"() {
|
36078
36052
|
"use strict";
|
36079
36053
|
init_entity();
|
36080
36054
|
init_utils2();
|
36081
36055
|
init_common4();
|
36082
|
-
MySqlCustomColumnBuilder = class extends (
|
36056
|
+
MySqlCustomColumnBuilder = class extends (_b172 = MySqlColumnBuilder, _a249 = entityKind, _b172) {
|
36083
36057
|
constructor(name2, fieldConfig, customTypeParams) {
|
36084
36058
|
super(name2, "custom", "MySqlCustomColumn");
|
36085
36059
|
this.config.fieldConfig = fieldConfig;
|
@@ -36093,8 +36067,8 @@ var init_custom3 = __esm({
|
|
36093
36067
|
);
|
36094
36068
|
}
|
36095
36069
|
};
|
36096
|
-
__publicField(MySqlCustomColumnBuilder,
|
36097
|
-
MySqlCustomColumn = class extends (
|
36070
|
+
__publicField(MySqlCustomColumnBuilder, _a249, "MySqlCustomColumnBuilder");
|
36071
|
+
MySqlCustomColumn = class extends (_b173 = MySqlColumn, _a250 = entityKind, _b173) {
|
36098
36072
|
constructor(table5, config) {
|
36099
36073
|
super(table5, config);
|
36100
36074
|
__publicField(this, "sqlName");
|
@@ -36114,7 +36088,7 @@ var init_custom3 = __esm({
|
|
36114
36088
|
return typeof this.mapTo === "function" ? this.mapTo(value) : value;
|
36115
36089
|
}
|
36116
36090
|
};
|
36117
|
-
__publicField(MySqlCustomColumn,
|
36091
|
+
__publicField(MySqlCustomColumn, _a250, "MySqlCustomColumn");
|
36118
36092
|
}
|
36119
36093
|
});
|
36120
36094
|
|
@@ -36126,14 +36100,14 @@ function date2(a, b) {
|
|
36126
36100
|
}
|
36127
36101
|
return new MySqlDateBuilder(name2);
|
36128
36102
|
}
|
36129
|
-
var
|
36103
|
+
var _a251, _b174, MySqlDateBuilder, _a252, _b175, MySqlDate, _a253, _b176, MySqlDateStringBuilder, _a254, _b177, MySqlDateString;
|
36130
36104
|
var init_date2 = __esm({
|
36131
36105
|
"../drizzle-orm/dist/mysql-core/columns/date.js"() {
|
36132
36106
|
"use strict";
|
36133
36107
|
init_entity();
|
36134
36108
|
init_utils2();
|
36135
36109
|
init_common4();
|
36136
|
-
MySqlDateBuilder = class extends (
|
36110
|
+
MySqlDateBuilder = class extends (_b174 = MySqlColumnBuilder, _a251 = entityKind, _b174) {
|
36137
36111
|
constructor(name2) {
|
36138
36112
|
super(name2, "date", "MySqlDate");
|
36139
36113
|
}
|
@@ -36142,8 +36116,8 @@ var init_date2 = __esm({
|
|
36142
36116
|
return new MySqlDate(table5, this.config);
|
36143
36117
|
}
|
36144
36118
|
};
|
36145
|
-
__publicField(MySqlDateBuilder,
|
36146
|
-
MySqlDate = class extends (
|
36119
|
+
__publicField(MySqlDateBuilder, _a251, "MySqlDateBuilder");
|
36120
|
+
MySqlDate = class extends (_b175 = MySqlColumn, _a252 = entityKind, _b175) {
|
36147
36121
|
constructor(table5, config) {
|
36148
36122
|
super(table5, config);
|
36149
36123
|
}
|
@@ -36154,8 +36128,8 @@ var init_date2 = __esm({
|
|
36154
36128
|
return new Date(value);
|
36155
36129
|
}
|
36156
36130
|
};
|
36157
|
-
__publicField(MySqlDate,
|
36158
|
-
MySqlDateStringBuilder = class extends (
|
36131
|
+
__publicField(MySqlDate, _a252, "MySqlDate");
|
36132
|
+
MySqlDateStringBuilder = class extends (_b176 = MySqlColumnBuilder, _a253 = entityKind, _b176) {
|
36159
36133
|
constructor(name2) {
|
36160
36134
|
super(name2, "string", "MySqlDateString");
|
36161
36135
|
}
|
@@ -36167,8 +36141,8 @@ var init_date2 = __esm({
|
|
36167
36141
|
);
|
36168
36142
|
}
|
36169
36143
|
};
|
36170
|
-
__publicField(MySqlDateStringBuilder,
|
36171
|
-
MySqlDateString = class extends (
|
36144
|
+
__publicField(MySqlDateStringBuilder, _a253, "MySqlDateStringBuilder");
|
36145
|
+
MySqlDateString = class extends (_b177 = MySqlColumn, _a254 = entityKind, _b177) {
|
36172
36146
|
constructor(table5, config) {
|
36173
36147
|
super(table5, config);
|
36174
36148
|
}
|
@@ -36176,7 +36150,7 @@ var init_date2 = __esm({
|
|
36176
36150
|
return `date`;
|
36177
36151
|
}
|
36178
36152
|
};
|
36179
|
-
__publicField(MySqlDateString,
|
36153
|
+
__publicField(MySqlDateString, _a254, "MySqlDateString");
|
36180
36154
|
}
|
36181
36155
|
});
|
36182
36156
|
|
@@ -36188,14 +36162,14 @@ function datetime(a, b) {
|
|
36188
36162
|
}
|
36189
36163
|
return new MySqlDateTimeBuilder(name2, config);
|
36190
36164
|
}
|
36191
|
-
var
|
36165
|
+
var _a255, _b178, MySqlDateTimeBuilder, _a256, _b179, MySqlDateTime, _a257, _b180, MySqlDateTimeStringBuilder, _a258, _b181, MySqlDateTimeString;
|
36192
36166
|
var init_datetime = __esm({
|
36193
36167
|
"../drizzle-orm/dist/mysql-core/columns/datetime.js"() {
|
36194
36168
|
"use strict";
|
36195
36169
|
init_entity();
|
36196
36170
|
init_utils2();
|
36197
36171
|
init_common4();
|
36198
|
-
MySqlDateTimeBuilder = class extends (
|
36172
|
+
MySqlDateTimeBuilder = class extends (_b178 = MySqlColumnBuilder, _a255 = entityKind, _b178) {
|
36199
36173
|
constructor(name2, config) {
|
36200
36174
|
super(name2, "date", "MySqlDateTime");
|
36201
36175
|
this.config.fsp = config?.fsp;
|
@@ -36208,8 +36182,8 @@ var init_datetime = __esm({
|
|
36208
36182
|
);
|
36209
36183
|
}
|
36210
36184
|
};
|
36211
|
-
__publicField(MySqlDateTimeBuilder,
|
36212
|
-
MySqlDateTime = class extends (
|
36185
|
+
__publicField(MySqlDateTimeBuilder, _a255, "MySqlDateTimeBuilder");
|
36186
|
+
MySqlDateTime = class extends (_b179 = MySqlColumn, _a256 = entityKind, _b179) {
|
36213
36187
|
constructor(table5, config) {
|
36214
36188
|
super(table5, config);
|
36215
36189
|
__publicField(this, "fsp");
|
@@ -36226,8 +36200,8 @@ var init_datetime = __esm({
|
|
36226
36200
|
return /* @__PURE__ */ new Date(value.replace(" ", "T") + "Z");
|
36227
36201
|
}
|
36228
36202
|
};
|
36229
|
-
__publicField(MySqlDateTime,
|
36230
|
-
MySqlDateTimeStringBuilder = class extends (
|
36203
|
+
__publicField(MySqlDateTime, _a256, "MySqlDateTime");
|
36204
|
+
MySqlDateTimeStringBuilder = class extends (_b180 = MySqlColumnBuilder, _a257 = entityKind, _b180) {
|
36231
36205
|
constructor(name2, config) {
|
36232
36206
|
super(name2, "string", "MySqlDateTimeString");
|
36233
36207
|
this.config.fsp = config?.fsp;
|
@@ -36240,8 +36214,8 @@ var init_datetime = __esm({
|
|
36240
36214
|
);
|
36241
36215
|
}
|
36242
36216
|
};
|
36243
|
-
__publicField(MySqlDateTimeStringBuilder,
|
36244
|
-
MySqlDateTimeString = class extends (
|
36217
|
+
__publicField(MySqlDateTimeStringBuilder, _a257, "MySqlDateTimeStringBuilder");
|
36218
|
+
MySqlDateTimeString = class extends (_b181 = MySqlColumn, _a258 = entityKind, _b181) {
|
36245
36219
|
constructor(table5, config) {
|
36246
36220
|
super(table5, config);
|
36247
36221
|
__publicField(this, "fsp");
|
@@ -36252,7 +36226,7 @@ var init_datetime = __esm({
|
|
36252
36226
|
return `datetime${precision}`;
|
36253
36227
|
}
|
36254
36228
|
};
|
36255
|
-
__publicField(MySqlDateTimeString,
|
36229
|
+
__publicField(MySqlDateTimeString, _a258, "MySqlDateTimeString");
|
36256
36230
|
}
|
36257
36231
|
});
|
36258
36232
|
|
@@ -36261,14 +36235,14 @@ function decimal(a, b = {}) {
|
|
36261
36235
|
const { name: name2, config } = getColumnNameAndConfig(a, b);
|
36262
36236
|
return new MySqlDecimalBuilder(name2, config);
|
36263
36237
|
}
|
36264
|
-
var
|
36238
|
+
var _a259, _b182, MySqlDecimalBuilder, _a260, _b183, MySqlDecimal;
|
36265
36239
|
var init_decimal = __esm({
|
36266
36240
|
"../drizzle-orm/dist/mysql-core/columns/decimal.js"() {
|
36267
36241
|
"use strict";
|
36268
36242
|
init_entity();
|
36269
36243
|
init_utils2();
|
36270
36244
|
init_common4();
|
36271
|
-
MySqlDecimalBuilder = class extends (
|
36245
|
+
MySqlDecimalBuilder = class extends (_b182 = MySqlColumnBuilderWithAutoIncrement, _a259 = entityKind, _b182) {
|
36272
36246
|
constructor(name2, config) {
|
36273
36247
|
super(name2, "string", "MySqlDecimal");
|
36274
36248
|
this.config.precision = config?.precision;
|
@@ -36283,8 +36257,8 @@ var init_decimal = __esm({
|
|
36283
36257
|
);
|
36284
36258
|
}
|
36285
36259
|
};
|
36286
|
-
__publicField(MySqlDecimalBuilder,
|
36287
|
-
MySqlDecimal = class extends (
|
36260
|
+
__publicField(MySqlDecimalBuilder, _a259, "MySqlDecimalBuilder");
|
36261
|
+
MySqlDecimal = class extends (_b183 = MySqlColumnWithAutoIncrement, _a260 = entityKind, _b183) {
|
36288
36262
|
constructor() {
|
36289
36263
|
super(...arguments);
|
36290
36264
|
__publicField(this, "precision", this.config.precision);
|
@@ -36304,7 +36278,7 @@ var init_decimal = __esm({
|
|
36304
36278
|
return this.unsigned ? `${type} unsigned` : type;
|
36305
36279
|
}
|
36306
36280
|
};
|
36307
|
-
__publicField(MySqlDecimal,
|
36281
|
+
__publicField(MySqlDecimal, _a260, "MySqlDecimal");
|
36308
36282
|
}
|
36309
36283
|
});
|
36310
36284
|
|
@@ -36313,14 +36287,14 @@ function double(a, b) {
|
|
36313
36287
|
const { name: name2, config } = getColumnNameAndConfig(a, b);
|
36314
36288
|
return new MySqlDoubleBuilder(name2, config);
|
36315
36289
|
}
|
36316
|
-
var
|
36290
|
+
var _a261, _b184, MySqlDoubleBuilder, _a262, _b185, MySqlDouble;
|
36317
36291
|
var init_double = __esm({
|
36318
36292
|
"../drizzle-orm/dist/mysql-core/columns/double.js"() {
|
36319
36293
|
"use strict";
|
36320
36294
|
init_entity();
|
36321
36295
|
init_utils2();
|
36322
36296
|
init_common4();
|
36323
|
-
MySqlDoubleBuilder = class extends (
|
36297
|
+
MySqlDoubleBuilder = class extends (_b184 = MySqlColumnBuilderWithAutoIncrement, _a261 = entityKind, _b184) {
|
36324
36298
|
constructor(name2, config) {
|
36325
36299
|
super(name2, "number", "MySqlDouble");
|
36326
36300
|
this.config.precision = config?.precision;
|
@@ -36332,8 +36306,8 @@ var init_double = __esm({
|
|
36332
36306
|
return new MySqlDouble(table5, this.config);
|
36333
36307
|
}
|
36334
36308
|
};
|
36335
|
-
__publicField(MySqlDoubleBuilder,
|
36336
|
-
MySqlDouble = class extends (
|
36309
|
+
__publicField(MySqlDoubleBuilder, _a261, "MySqlDoubleBuilder");
|
36310
|
+
MySqlDouble = class extends (_b185 = MySqlColumnWithAutoIncrement, _a262 = entityKind, _b185) {
|
36337
36311
|
constructor() {
|
36338
36312
|
super(...arguments);
|
36339
36313
|
__publicField(this, "precision", this.config.precision);
|
@@ -36352,7 +36326,7 @@ var init_double = __esm({
|
|
36352
36326
|
return this.unsigned ? `${type} unsigned` : type;
|
36353
36327
|
}
|
36354
36328
|
};
|
36355
|
-
__publicField(MySqlDouble,
|
36329
|
+
__publicField(MySqlDouble, _a262, "MySqlDouble");
|
36356
36330
|
}
|
36357
36331
|
});
|
36358
36332
|
|
@@ -36364,14 +36338,14 @@ function mysqlEnum(a, b) {
|
|
36364
36338
|
}
|
36365
36339
|
return new MySqlEnumColumnBuilder(name2, values);
|
36366
36340
|
}
|
36367
|
-
var
|
36341
|
+
var _a263, _b186, MySqlEnumColumnBuilder, _a264, _b187, MySqlEnumColumn;
|
36368
36342
|
var init_enum2 = __esm({
|
36369
36343
|
"../drizzle-orm/dist/mysql-core/columns/enum.js"() {
|
36370
36344
|
"use strict";
|
36371
36345
|
init_entity();
|
36372
36346
|
init_utils2();
|
36373
36347
|
init_common4();
|
36374
|
-
MySqlEnumColumnBuilder = class extends (
|
36348
|
+
MySqlEnumColumnBuilder = class extends (_b186 = MySqlColumnBuilder, _a263 = entityKind, _b186) {
|
36375
36349
|
constructor(name2, values) {
|
36376
36350
|
super(name2, "string", "MySqlEnumColumn");
|
36377
36351
|
this.config.enumValues = values;
|
@@ -36384,8 +36358,8 @@ var init_enum2 = __esm({
|
|
36384
36358
|
);
|
36385
36359
|
}
|
36386
36360
|
};
|
36387
|
-
__publicField(MySqlEnumColumnBuilder,
|
36388
|
-
MySqlEnumColumn = class extends (
|
36361
|
+
__publicField(MySqlEnumColumnBuilder, _a263, "MySqlEnumColumnBuilder");
|
36362
|
+
MySqlEnumColumn = class extends (_b187 = MySqlColumn, _a264 = entityKind, _b187) {
|
36389
36363
|
constructor() {
|
36390
36364
|
super(...arguments);
|
36391
36365
|
__publicField(this, "enumValues", this.config.enumValues);
|
@@ -36394,7 +36368,7 @@ var init_enum2 = __esm({
|
|
36394
36368
|
return `enum(${this.enumValues.map((value) => `'${value}'`).join(",")})`;
|
36395
36369
|
}
|
36396
36370
|
};
|
36397
|
-
__publicField(MySqlEnumColumn,
|
36371
|
+
__publicField(MySqlEnumColumn, _a264, "MySqlEnumColumn");
|
36398
36372
|
}
|
36399
36373
|
});
|
36400
36374
|
|
@@ -36403,14 +36377,14 @@ function float(a, b) {
|
|
36403
36377
|
const { name: name2, config } = getColumnNameAndConfig(a, b);
|
36404
36378
|
return new MySqlFloatBuilder(name2, config);
|
36405
36379
|
}
|
36406
|
-
var
|
36380
|
+
var _a265, _b188, MySqlFloatBuilder, _a266, _b189, MySqlFloat;
|
36407
36381
|
var init_float = __esm({
|
36408
36382
|
"../drizzle-orm/dist/mysql-core/columns/float.js"() {
|
36409
36383
|
"use strict";
|
36410
36384
|
init_entity();
|
36411
36385
|
init_utils2();
|
36412
36386
|
init_common4();
|
36413
|
-
MySqlFloatBuilder = class extends (
|
36387
|
+
MySqlFloatBuilder = class extends (_b188 = MySqlColumnBuilderWithAutoIncrement, _a265 = entityKind, _b188) {
|
36414
36388
|
constructor(name2, config) {
|
36415
36389
|
super(name2, "number", "MySqlFloat");
|
36416
36390
|
this.config.precision = config?.precision;
|
@@ -36422,8 +36396,8 @@ var init_float = __esm({
|
|
36422
36396
|
return new MySqlFloat(table5, this.config);
|
36423
36397
|
}
|
36424
36398
|
};
|
36425
|
-
__publicField(MySqlFloatBuilder,
|
36426
|
-
MySqlFloat = class extends (
|
36399
|
+
__publicField(MySqlFloatBuilder, _a265, "MySqlFloatBuilder");
|
36400
|
+
MySqlFloat = class extends (_b189 = MySqlColumnWithAutoIncrement, _a266 = entityKind, _b189) {
|
36427
36401
|
constructor() {
|
36428
36402
|
super(...arguments);
|
36429
36403
|
__publicField(this, "precision", this.config.precision);
|
@@ -36442,7 +36416,7 @@ var init_float = __esm({
|
|
36442
36416
|
return this.unsigned ? `${type} unsigned` : type;
|
36443
36417
|
}
|
36444
36418
|
};
|
36445
|
-
__publicField(MySqlFloat,
|
36419
|
+
__publicField(MySqlFloat, _a266, "MySqlFloat");
|
36446
36420
|
}
|
36447
36421
|
});
|
36448
36422
|
|
@@ -36451,14 +36425,14 @@ function int(a, b) {
|
|
36451
36425
|
const { name: name2, config } = getColumnNameAndConfig(a, b);
|
36452
36426
|
return new MySqlIntBuilder(name2, config);
|
36453
36427
|
}
|
36454
|
-
var
|
36428
|
+
var _a267, _b190, MySqlIntBuilder, _a268, _b191, MySqlInt;
|
36455
36429
|
var init_int = __esm({
|
36456
36430
|
"../drizzle-orm/dist/mysql-core/columns/int.js"() {
|
36457
36431
|
"use strict";
|
36458
36432
|
init_entity();
|
36459
36433
|
init_utils2();
|
36460
36434
|
init_common4();
|
36461
|
-
MySqlIntBuilder = class extends (
|
36435
|
+
MySqlIntBuilder = class extends (_b190 = MySqlColumnBuilderWithAutoIncrement, _a267 = entityKind, _b190) {
|
36462
36436
|
constructor(name2, config) {
|
36463
36437
|
super(name2, "number", "MySqlInt");
|
36464
36438
|
this.config.unsigned = config ? config.unsigned : false;
|
@@ -36468,8 +36442,8 @@ var init_int = __esm({
|
|
36468
36442
|
return new MySqlInt(table5, this.config);
|
36469
36443
|
}
|
36470
36444
|
};
|
36471
|
-
__publicField(MySqlIntBuilder,
|
36472
|
-
MySqlInt = class extends (
|
36445
|
+
__publicField(MySqlIntBuilder, _a267, "MySqlIntBuilder");
|
36446
|
+
MySqlInt = class extends (_b191 = MySqlColumnWithAutoIncrement, _a268 = entityKind, _b191) {
|
36473
36447
|
getSQLType() {
|
36474
36448
|
return `int${this.config.unsigned ? " unsigned" : ""}`;
|
36475
36449
|
}
|
@@ -36480,7 +36454,7 @@ var init_int = __esm({
|
|
36480
36454
|
return value;
|
36481
36455
|
}
|
36482
36456
|
};
|
36483
|
-
__publicField(MySqlInt,
|
36457
|
+
__publicField(MySqlInt, _a268, "MySqlInt");
|
36484
36458
|
}
|
36485
36459
|
});
|
36486
36460
|
|
@@ -36488,13 +36462,13 @@ var init_int = __esm({
|
|
36488
36462
|
function json2(name2) {
|
36489
36463
|
return new MySqlJsonBuilder(name2 ?? "");
|
36490
36464
|
}
|
36491
|
-
var
|
36465
|
+
var _a269, _b192, MySqlJsonBuilder, _a270, _b193, MySqlJson;
|
36492
36466
|
var init_json2 = __esm({
|
36493
36467
|
"../drizzle-orm/dist/mysql-core/columns/json.js"() {
|
36494
36468
|
"use strict";
|
36495
36469
|
init_entity();
|
36496
36470
|
init_common4();
|
36497
|
-
MySqlJsonBuilder = class extends (
|
36471
|
+
MySqlJsonBuilder = class extends (_b192 = MySqlColumnBuilder, _a269 = entityKind, _b192) {
|
36498
36472
|
constructor(name2) {
|
36499
36473
|
super(name2, "json", "MySqlJson");
|
36500
36474
|
}
|
@@ -36503,8 +36477,8 @@ var init_json2 = __esm({
|
|
36503
36477
|
return new MySqlJson(table5, this.config);
|
36504
36478
|
}
|
36505
36479
|
};
|
36506
|
-
__publicField(MySqlJsonBuilder,
|
36507
|
-
MySqlJson = class extends (
|
36480
|
+
__publicField(MySqlJsonBuilder, _a269, "MySqlJsonBuilder");
|
36481
|
+
MySqlJson = class extends (_b193 = MySqlColumn, _a270 = entityKind, _b193) {
|
36508
36482
|
getSQLType() {
|
36509
36483
|
return "json";
|
36510
36484
|
}
|
@@ -36512,7 +36486,7 @@ var init_json2 = __esm({
|
|
36512
36486
|
return JSON.stringify(value);
|
36513
36487
|
}
|
36514
36488
|
};
|
36515
|
-
__publicField(MySqlJson,
|
36489
|
+
__publicField(MySqlJson, _a270, "MySqlJson");
|
36516
36490
|
}
|
36517
36491
|
});
|
36518
36492
|
|
@@ -36521,14 +36495,14 @@ function mediumint(a, b) {
|
|
36521
36495
|
const { name: name2, config } = getColumnNameAndConfig(a, b);
|
36522
36496
|
return new MySqlMediumIntBuilder(name2, config);
|
36523
36497
|
}
|
36524
|
-
var
|
36498
|
+
var _a271, _b194, MySqlMediumIntBuilder, _a272, _b195, MySqlMediumInt;
|
36525
36499
|
var init_mediumint = __esm({
|
36526
36500
|
"../drizzle-orm/dist/mysql-core/columns/mediumint.js"() {
|
36527
36501
|
"use strict";
|
36528
36502
|
init_entity();
|
36529
36503
|
init_utils2();
|
36530
36504
|
init_common4();
|
36531
|
-
MySqlMediumIntBuilder = class extends (
|
36505
|
+
MySqlMediumIntBuilder = class extends (_b194 = MySqlColumnBuilderWithAutoIncrement, _a271 = entityKind, _b194) {
|
36532
36506
|
constructor(name2, config) {
|
36533
36507
|
super(name2, "number", "MySqlMediumInt");
|
36534
36508
|
this.config.unsigned = config ? config.unsigned : false;
|
@@ -36541,8 +36515,8 @@ var init_mediumint = __esm({
|
|
36541
36515
|
);
|
36542
36516
|
}
|
36543
36517
|
};
|
36544
|
-
__publicField(MySqlMediumIntBuilder,
|
36545
|
-
MySqlMediumInt = class extends (
|
36518
|
+
__publicField(MySqlMediumIntBuilder, _a271, "MySqlMediumIntBuilder");
|
36519
|
+
MySqlMediumInt = class extends (_b195 = MySqlColumnWithAutoIncrement, _a272 = entityKind, _b195) {
|
36546
36520
|
getSQLType() {
|
36547
36521
|
return `mediumint${this.config.unsigned ? " unsigned" : ""}`;
|
36548
36522
|
}
|
@@ -36553,7 +36527,7 @@ var init_mediumint = __esm({
|
|
36553
36527
|
return value;
|
36554
36528
|
}
|
36555
36529
|
};
|
36556
|
-
__publicField(MySqlMediumInt,
|
36530
|
+
__publicField(MySqlMediumInt, _a272, "MySqlMediumInt");
|
36557
36531
|
}
|
36558
36532
|
});
|
36559
36533
|
|
@@ -36562,14 +36536,14 @@ function real3(a, b = {}) {
|
|
36562
36536
|
const { name: name2, config } = getColumnNameAndConfig(a, b);
|
36563
36537
|
return new MySqlRealBuilder(name2, config);
|
36564
36538
|
}
|
36565
|
-
var
|
36539
|
+
var _a273, _b196, MySqlRealBuilder, _a274, _b197, MySqlReal;
|
36566
36540
|
var init_real3 = __esm({
|
36567
36541
|
"../drizzle-orm/dist/mysql-core/columns/real.js"() {
|
36568
36542
|
"use strict";
|
36569
36543
|
init_entity();
|
36570
36544
|
init_utils2();
|
36571
36545
|
init_common4();
|
36572
|
-
MySqlRealBuilder = class extends (
|
36546
|
+
MySqlRealBuilder = class extends (_b196 = MySqlColumnBuilderWithAutoIncrement, _a273 = entityKind, _b196) {
|
36573
36547
|
constructor(name2, config) {
|
36574
36548
|
super(name2, "number", "MySqlReal");
|
36575
36549
|
this.config.precision = config?.precision;
|
@@ -36580,8 +36554,8 @@ var init_real3 = __esm({
|
|
36580
36554
|
return new MySqlReal(table5, this.config);
|
36581
36555
|
}
|
36582
36556
|
};
|
36583
|
-
__publicField(MySqlRealBuilder,
|
36584
|
-
MySqlReal = class extends (
|
36557
|
+
__publicField(MySqlRealBuilder, _a273, "MySqlRealBuilder");
|
36558
|
+
MySqlReal = class extends (_b197 = MySqlColumnWithAutoIncrement, _a274 = entityKind, _b197) {
|
36585
36559
|
constructor() {
|
36586
36560
|
super(...arguments);
|
36587
36561
|
__publicField(this, "precision", this.config.precision);
|
@@ -36597,7 +36571,7 @@ var init_real3 = __esm({
|
|
36597
36571
|
}
|
36598
36572
|
}
|
36599
36573
|
};
|
36600
|
-
__publicField(MySqlReal,
|
36574
|
+
__publicField(MySqlReal, _a274, "MySqlReal");
|
36601
36575
|
}
|
36602
36576
|
});
|
36603
36577
|
|
@@ -36605,13 +36579,13 @@ var init_real3 = __esm({
|
|
36605
36579
|
function serial2(name2) {
|
36606
36580
|
return new MySqlSerialBuilder(name2 ?? "");
|
36607
36581
|
}
|
36608
|
-
var
|
36582
|
+
var _a275, _b198, MySqlSerialBuilder, _a276, _b199, MySqlSerial;
|
36609
36583
|
var init_serial2 = __esm({
|
36610
36584
|
"../drizzle-orm/dist/mysql-core/columns/serial.js"() {
|
36611
36585
|
"use strict";
|
36612
36586
|
init_entity();
|
36613
36587
|
init_common4();
|
36614
|
-
MySqlSerialBuilder = class extends (
|
36588
|
+
MySqlSerialBuilder = class extends (_b198 = MySqlColumnBuilderWithAutoIncrement, _a275 = entityKind, _b198) {
|
36615
36589
|
constructor(name2) {
|
36616
36590
|
super(name2, "number", "MySqlSerial");
|
36617
36591
|
this.config.hasDefault = true;
|
@@ -36622,8 +36596,8 @@ var init_serial2 = __esm({
|
|
36622
36596
|
return new MySqlSerial(table5, this.config);
|
36623
36597
|
}
|
36624
36598
|
};
|
36625
|
-
__publicField(MySqlSerialBuilder,
|
36626
|
-
MySqlSerial = class extends (
|
36599
|
+
__publicField(MySqlSerialBuilder, _a275, "MySqlSerialBuilder");
|
36600
|
+
MySqlSerial = class extends (_b199 = MySqlColumnWithAutoIncrement, _a276 = entityKind, _b199) {
|
36627
36601
|
getSQLType() {
|
36628
36602
|
return "serial";
|
36629
36603
|
}
|
@@ -36634,7 +36608,7 @@ var init_serial2 = __esm({
|
|
36634
36608
|
return value;
|
36635
36609
|
}
|
36636
36610
|
};
|
36637
|
-
__publicField(MySqlSerial,
|
36611
|
+
__publicField(MySqlSerial, _a276, "MySqlSerial");
|
36638
36612
|
}
|
36639
36613
|
});
|
36640
36614
|
|
@@ -36643,14 +36617,14 @@ function smallint2(a, b) {
|
|
36643
36617
|
const { name: name2, config } = getColumnNameAndConfig(a, b);
|
36644
36618
|
return new MySqlSmallIntBuilder(name2, config);
|
36645
36619
|
}
|
36646
|
-
var
|
36620
|
+
var _a277, _b200, MySqlSmallIntBuilder, _a278, _b201, MySqlSmallInt;
|
36647
36621
|
var init_smallint2 = __esm({
|
36648
36622
|
"../drizzle-orm/dist/mysql-core/columns/smallint.js"() {
|
36649
36623
|
"use strict";
|
36650
36624
|
init_entity();
|
36651
36625
|
init_utils2();
|
36652
36626
|
init_common4();
|
36653
|
-
MySqlSmallIntBuilder = class extends (
|
36627
|
+
MySqlSmallIntBuilder = class extends (_b200 = MySqlColumnBuilderWithAutoIncrement, _a277 = entityKind, _b200) {
|
36654
36628
|
constructor(name2, config) {
|
36655
36629
|
super(name2, "number", "MySqlSmallInt");
|
36656
36630
|
this.config.unsigned = config ? config.unsigned : false;
|
@@ -36663,8 +36637,8 @@ var init_smallint2 = __esm({
|
|
36663
36637
|
);
|
36664
36638
|
}
|
36665
36639
|
};
|
36666
|
-
__publicField(MySqlSmallIntBuilder,
|
36667
|
-
MySqlSmallInt = class extends (
|
36640
|
+
__publicField(MySqlSmallIntBuilder, _a277, "MySqlSmallIntBuilder");
|
36641
|
+
MySqlSmallInt = class extends (_b201 = MySqlColumnWithAutoIncrement, _a278 = entityKind, _b201) {
|
36668
36642
|
getSQLType() {
|
36669
36643
|
return `smallint${this.config.unsigned ? " unsigned" : ""}`;
|
36670
36644
|
}
|
@@ -36675,7 +36649,7 @@ var init_smallint2 = __esm({
|
|
36675
36649
|
return value;
|
36676
36650
|
}
|
36677
36651
|
};
|
36678
|
-
__publicField(MySqlSmallInt,
|
36652
|
+
__publicField(MySqlSmallInt, _a278, "MySqlSmallInt");
|
36679
36653
|
}
|
36680
36654
|
});
|
36681
36655
|
|
@@ -36696,14 +36670,14 @@ function longtext(a, b = {}) {
|
|
36696
36670
|
const { name: name2, config } = getColumnNameAndConfig(a, b);
|
36697
36671
|
return new MySqlTextBuilder(name2, "longtext", config);
|
36698
36672
|
}
|
36699
|
-
var
|
36673
|
+
var _a279, _b202, MySqlTextBuilder, _a280, _b203, MySqlText;
|
36700
36674
|
var init_text3 = __esm({
|
36701
36675
|
"../drizzle-orm/dist/mysql-core/columns/text.js"() {
|
36702
36676
|
"use strict";
|
36703
36677
|
init_entity();
|
36704
36678
|
init_utils2();
|
36705
36679
|
init_common4();
|
36706
|
-
MySqlTextBuilder = class extends (
|
36680
|
+
MySqlTextBuilder = class extends (_b202 = MySqlColumnBuilder, _a279 = entityKind, _b202) {
|
36707
36681
|
constructor(name2, textType, config) {
|
36708
36682
|
super(name2, "string", "MySqlText");
|
36709
36683
|
this.config.textType = textType;
|
@@ -36714,8 +36688,8 @@ var init_text3 = __esm({
|
|
36714
36688
|
return new MySqlText(table5, this.config);
|
36715
36689
|
}
|
36716
36690
|
};
|
36717
|
-
__publicField(MySqlTextBuilder,
|
36718
|
-
MySqlText = class extends (
|
36691
|
+
__publicField(MySqlTextBuilder, _a279, "MySqlTextBuilder");
|
36692
|
+
MySqlText = class extends (_b203 = MySqlColumn, _a280 = entityKind, _b203) {
|
36719
36693
|
constructor() {
|
36720
36694
|
super(...arguments);
|
36721
36695
|
__publicField(this, "textType", this.config.textType);
|
@@ -36725,7 +36699,7 @@ var init_text3 = __esm({
|
|
36725
36699
|
return this.textType;
|
36726
36700
|
}
|
36727
36701
|
};
|
36728
|
-
__publicField(MySqlText,
|
36702
|
+
__publicField(MySqlText, _a280, "MySqlText");
|
36729
36703
|
}
|
36730
36704
|
});
|
36731
36705
|
|
@@ -36734,14 +36708,14 @@ function time2(a, b) {
|
|
36734
36708
|
const { name: name2, config } = getColumnNameAndConfig(a, b);
|
36735
36709
|
return new MySqlTimeBuilder(name2, config);
|
36736
36710
|
}
|
36737
|
-
var
|
36711
|
+
var _a281, _b204, MySqlTimeBuilder, _a282, _b205, MySqlTime;
|
36738
36712
|
var init_time2 = __esm({
|
36739
36713
|
"../drizzle-orm/dist/mysql-core/columns/time.js"() {
|
36740
36714
|
"use strict";
|
36741
36715
|
init_entity();
|
36742
36716
|
init_utils2();
|
36743
36717
|
init_common4();
|
36744
|
-
MySqlTimeBuilder = class extends (
|
36718
|
+
MySqlTimeBuilder = class extends (_b204 = MySqlColumnBuilder, _a281 = entityKind, _b204) {
|
36745
36719
|
constructor(name2, config) {
|
36746
36720
|
super(name2, "string", "MySqlTime");
|
36747
36721
|
this.config.fsp = config?.fsp;
|
@@ -36751,8 +36725,8 @@ var init_time2 = __esm({
|
|
36751
36725
|
return new MySqlTime(table5, this.config);
|
36752
36726
|
}
|
36753
36727
|
};
|
36754
|
-
__publicField(MySqlTimeBuilder,
|
36755
|
-
MySqlTime = class extends (
|
36728
|
+
__publicField(MySqlTimeBuilder, _a281, "MySqlTimeBuilder");
|
36729
|
+
MySqlTime = class extends (_b205 = MySqlColumn, _a282 = entityKind, _b205) {
|
36756
36730
|
constructor() {
|
36757
36731
|
super(...arguments);
|
36758
36732
|
__publicField(this, "fsp", this.config.fsp);
|
@@ -36762,19 +36736,19 @@ var init_time2 = __esm({
|
|
36762
36736
|
return `time${precision}`;
|
36763
36737
|
}
|
36764
36738
|
};
|
36765
|
-
__publicField(MySqlTime,
|
36739
|
+
__publicField(MySqlTime, _a282, "MySqlTime");
|
36766
36740
|
}
|
36767
36741
|
});
|
36768
36742
|
|
36769
36743
|
// ../drizzle-orm/dist/mysql-core/columns/date.common.js
|
36770
|
-
var
|
36744
|
+
var _a283, _b206, MySqlDateColumnBaseBuilder, _a284, _b207, MySqlDateBaseColumn;
|
36771
36745
|
var init_date_common2 = __esm({
|
36772
36746
|
"../drizzle-orm/dist/mysql-core/columns/date.common.js"() {
|
36773
36747
|
"use strict";
|
36774
36748
|
init_entity();
|
36775
36749
|
init_sql();
|
36776
36750
|
init_common4();
|
36777
|
-
MySqlDateColumnBaseBuilder = class extends (
|
36751
|
+
MySqlDateColumnBaseBuilder = class extends (_b206 = MySqlColumnBuilder, _a283 = entityKind, _b206) {
|
36778
36752
|
defaultNow() {
|
36779
36753
|
return this.default(sql`(now())`);
|
36780
36754
|
}
|
@@ -36785,14 +36759,14 @@ var init_date_common2 = __esm({
|
|
36785
36759
|
return this;
|
36786
36760
|
}
|
36787
36761
|
};
|
36788
|
-
__publicField(MySqlDateColumnBaseBuilder,
|
36789
|
-
MySqlDateBaseColumn = class extends (
|
36762
|
+
__publicField(MySqlDateColumnBaseBuilder, _a283, "MySqlDateColumnBuilder");
|
36763
|
+
MySqlDateBaseColumn = class extends (_b207 = MySqlColumn, _a284 = entityKind, _b207) {
|
36790
36764
|
constructor() {
|
36791
36765
|
super(...arguments);
|
36792
36766
|
__publicField(this, "hasOnUpdateNow", this.config.hasOnUpdateNow);
|
36793
36767
|
}
|
36794
36768
|
};
|
36795
|
-
__publicField(MySqlDateBaseColumn,
|
36769
|
+
__publicField(MySqlDateBaseColumn, _a284, "MySqlDateColumn");
|
36796
36770
|
}
|
36797
36771
|
});
|
36798
36772
|
|
@@ -36804,14 +36778,14 @@ function timestamp2(a, b = {}) {
|
|
36804
36778
|
}
|
36805
36779
|
return new MySqlTimestampBuilder(name2, config);
|
36806
36780
|
}
|
36807
|
-
var
|
36781
|
+
var _a285, _b208, MySqlTimestampBuilder, _a286, _b209, MySqlTimestamp, _a287, _b210, MySqlTimestampStringBuilder, _a288, _b211, MySqlTimestampString;
|
36808
36782
|
var init_timestamp2 = __esm({
|
36809
36783
|
"../drizzle-orm/dist/mysql-core/columns/timestamp.js"() {
|
36810
36784
|
"use strict";
|
36811
36785
|
init_entity();
|
36812
36786
|
init_utils2();
|
36813
36787
|
init_date_common2();
|
36814
|
-
MySqlTimestampBuilder = class extends (
|
36788
|
+
MySqlTimestampBuilder = class extends (_b208 = MySqlDateColumnBaseBuilder, _a285 = entityKind, _b208) {
|
36815
36789
|
constructor(name2, config) {
|
36816
36790
|
super(name2, "date", "MySqlTimestamp");
|
36817
36791
|
this.config.fsp = config?.fsp;
|
@@ -36824,8 +36798,8 @@ var init_timestamp2 = __esm({
|
|
36824
36798
|
);
|
36825
36799
|
}
|
36826
36800
|
};
|
36827
|
-
__publicField(MySqlTimestampBuilder,
|
36828
|
-
MySqlTimestamp = class extends (
|
36801
|
+
__publicField(MySqlTimestampBuilder, _a285, "MySqlTimestampBuilder");
|
36802
|
+
MySqlTimestamp = class extends (_b209 = MySqlDateBaseColumn, _a286 = entityKind, _b209) {
|
36829
36803
|
constructor() {
|
36830
36804
|
super(...arguments);
|
36831
36805
|
__publicField(this, "fsp", this.config.fsp);
|
@@ -36841,8 +36815,8 @@ var init_timestamp2 = __esm({
|
|
36841
36815
|
return value.toISOString().slice(0, -1).replace("T", " ");
|
36842
36816
|
}
|
36843
36817
|
};
|
36844
|
-
__publicField(MySqlTimestamp,
|
36845
|
-
MySqlTimestampStringBuilder = class extends (
|
36818
|
+
__publicField(MySqlTimestamp, _a286, "MySqlTimestamp");
|
36819
|
+
MySqlTimestampStringBuilder = class extends (_b210 = MySqlDateColumnBaseBuilder, _a287 = entityKind, _b210) {
|
36846
36820
|
constructor(name2, config) {
|
36847
36821
|
super(name2, "string", "MySqlTimestampString");
|
36848
36822
|
this.config.fsp = config?.fsp;
|
@@ -36855,8 +36829,8 @@ var init_timestamp2 = __esm({
|
|
36855
36829
|
);
|
36856
36830
|
}
|
36857
36831
|
};
|
36858
|
-
__publicField(MySqlTimestampStringBuilder,
|
36859
|
-
MySqlTimestampString = class extends (
|
36832
|
+
__publicField(MySqlTimestampStringBuilder, _a287, "MySqlTimestampStringBuilder");
|
36833
|
+
MySqlTimestampString = class extends (_b211 = MySqlDateBaseColumn, _a288 = entityKind, _b211) {
|
36860
36834
|
constructor() {
|
36861
36835
|
super(...arguments);
|
36862
36836
|
__publicField(this, "fsp", this.config.fsp);
|
@@ -36866,7 +36840,7 @@ var init_timestamp2 = __esm({
|
|
36866
36840
|
return `timestamp${precision}`;
|
36867
36841
|
}
|
36868
36842
|
};
|
36869
|
-
__publicField(MySqlTimestampString,
|
36843
|
+
__publicField(MySqlTimestampString, _a288, "MySqlTimestampString");
|
36870
36844
|
}
|
36871
36845
|
});
|
36872
36846
|
|
@@ -36875,14 +36849,14 @@ function tinyint(a, b) {
|
|
36875
36849
|
const { name: name2, config } = getColumnNameAndConfig(a, b);
|
36876
36850
|
return new MySqlTinyIntBuilder(name2, config);
|
36877
36851
|
}
|
36878
|
-
var
|
36852
|
+
var _a289, _b212, MySqlTinyIntBuilder, _a290, _b213, MySqlTinyInt;
|
36879
36853
|
var init_tinyint = __esm({
|
36880
36854
|
"../drizzle-orm/dist/mysql-core/columns/tinyint.js"() {
|
36881
36855
|
"use strict";
|
36882
36856
|
init_entity();
|
36883
36857
|
init_utils2();
|
36884
36858
|
init_common4();
|
36885
|
-
MySqlTinyIntBuilder = class extends (
|
36859
|
+
MySqlTinyIntBuilder = class extends (_b212 = MySqlColumnBuilderWithAutoIncrement, _a289 = entityKind, _b212) {
|
36886
36860
|
constructor(name2, config) {
|
36887
36861
|
super(name2, "number", "MySqlTinyInt");
|
36888
36862
|
this.config.unsigned = config ? config.unsigned : false;
|
@@ -36895,8 +36869,8 @@ var init_tinyint = __esm({
|
|
36895
36869
|
);
|
36896
36870
|
}
|
36897
36871
|
};
|
36898
|
-
__publicField(MySqlTinyIntBuilder,
|
36899
|
-
MySqlTinyInt = class extends (
|
36872
|
+
__publicField(MySqlTinyIntBuilder, _a289, "MySqlTinyIntBuilder");
|
36873
|
+
MySqlTinyInt = class extends (_b213 = MySqlColumnWithAutoIncrement, _a290 = entityKind, _b213) {
|
36900
36874
|
getSQLType() {
|
36901
36875
|
return `tinyint${this.config.unsigned ? " unsigned" : ""}`;
|
36902
36876
|
}
|
@@ -36907,7 +36881,7 @@ var init_tinyint = __esm({
|
|
36907
36881
|
return value;
|
36908
36882
|
}
|
36909
36883
|
};
|
36910
|
-
__publicField(MySqlTinyInt,
|
36884
|
+
__publicField(MySqlTinyInt, _a290, "MySqlTinyInt");
|
36911
36885
|
}
|
36912
36886
|
});
|
36913
36887
|
|
@@ -36916,14 +36890,14 @@ function varbinary(a, b) {
|
|
36916
36890
|
const { name: name2, config } = getColumnNameAndConfig(a, b);
|
36917
36891
|
return new MySqlVarBinaryBuilder(name2, config);
|
36918
36892
|
}
|
36919
|
-
var
|
36893
|
+
var _a291, _b214, MySqlVarBinaryBuilder, _a292, _b215, MySqlVarBinary;
|
36920
36894
|
var init_varbinary = __esm({
|
36921
36895
|
"../drizzle-orm/dist/mysql-core/columns/varbinary.js"() {
|
36922
36896
|
"use strict";
|
36923
36897
|
init_entity();
|
36924
36898
|
init_utils2();
|
36925
36899
|
init_common4();
|
36926
|
-
MySqlVarBinaryBuilder = class extends (
|
36900
|
+
MySqlVarBinaryBuilder = class extends (_b214 = MySqlColumnBuilder, _a291 = entityKind, _b214) {
|
36927
36901
|
/** @internal */
|
36928
36902
|
constructor(name2, config) {
|
36929
36903
|
super(name2, "string", "MySqlVarBinary");
|
@@ -36937,8 +36911,8 @@ var init_varbinary = __esm({
|
|
36937
36911
|
);
|
36938
36912
|
}
|
36939
36913
|
};
|
36940
|
-
__publicField(MySqlVarBinaryBuilder,
|
36941
|
-
MySqlVarBinary = class extends (
|
36914
|
+
__publicField(MySqlVarBinaryBuilder, _a291, "MySqlVarBinaryBuilder");
|
36915
|
+
MySqlVarBinary = class extends (_b215 = MySqlColumn, _a292 = entityKind, _b215) {
|
36942
36916
|
constructor() {
|
36943
36917
|
super(...arguments);
|
36944
36918
|
__publicField(this, "length", this.config.length);
|
@@ -36947,7 +36921,7 @@ var init_varbinary = __esm({
|
|
36947
36921
|
return this.length === void 0 ? `varbinary` : `varbinary(${this.length})`;
|
36948
36922
|
}
|
36949
36923
|
};
|
36950
|
-
__publicField(MySqlVarBinary,
|
36924
|
+
__publicField(MySqlVarBinary, _a292, "MySqlVarBinary");
|
36951
36925
|
}
|
36952
36926
|
});
|
36953
36927
|
|
@@ -36956,14 +36930,14 @@ function varchar2(a, b) {
|
|
36956
36930
|
const { name: name2, config } = getColumnNameAndConfig(a, b);
|
36957
36931
|
return new MySqlVarCharBuilder(name2, config);
|
36958
36932
|
}
|
36959
|
-
var
|
36933
|
+
var _a293, _b216, MySqlVarCharBuilder, _a294, _b217, MySqlVarChar;
|
36960
36934
|
var init_varchar2 = __esm({
|
36961
36935
|
"../drizzle-orm/dist/mysql-core/columns/varchar.js"() {
|
36962
36936
|
"use strict";
|
36963
36937
|
init_entity();
|
36964
36938
|
init_utils2();
|
36965
36939
|
init_common4();
|
36966
|
-
MySqlVarCharBuilder = class extends (
|
36940
|
+
MySqlVarCharBuilder = class extends (_b216 = MySqlColumnBuilder, _a293 = entityKind, _b216) {
|
36967
36941
|
/** @internal */
|
36968
36942
|
constructor(name2, config) {
|
36969
36943
|
super(name2, "string", "MySqlVarChar");
|
@@ -36978,8 +36952,8 @@ var init_varchar2 = __esm({
|
|
36978
36952
|
);
|
36979
36953
|
}
|
36980
36954
|
};
|
36981
|
-
__publicField(MySqlVarCharBuilder,
|
36982
|
-
MySqlVarChar = class extends (
|
36955
|
+
__publicField(MySqlVarCharBuilder, _a293, "MySqlVarCharBuilder");
|
36956
|
+
MySqlVarChar = class extends (_b217 = MySqlColumn, _a294 = entityKind, _b217) {
|
36983
36957
|
constructor() {
|
36984
36958
|
super(...arguments);
|
36985
36959
|
__publicField(this, "length", this.config.length);
|
@@ -36989,7 +36963,7 @@ var init_varchar2 = __esm({
|
|
36989
36963
|
return this.length === void 0 ? `varchar` : `varchar(${this.length})`;
|
36990
36964
|
}
|
36991
36965
|
};
|
36992
|
-
__publicField(MySqlVarChar,
|
36966
|
+
__publicField(MySqlVarChar, _a294, "MySqlVarChar");
|
36993
36967
|
}
|
36994
36968
|
});
|
36995
36969
|
|
@@ -36997,13 +36971,13 @@ var init_varchar2 = __esm({
|
|
36997
36971
|
function year(name2) {
|
36998
36972
|
return new MySqlYearBuilder(name2 ?? "");
|
36999
36973
|
}
|
37000
|
-
var
|
36974
|
+
var _a295, _b218, MySqlYearBuilder, _a296, _b219, MySqlYear;
|
37001
36975
|
var init_year = __esm({
|
37002
36976
|
"../drizzle-orm/dist/mysql-core/columns/year.js"() {
|
37003
36977
|
"use strict";
|
37004
36978
|
init_entity();
|
37005
36979
|
init_common4();
|
37006
|
-
MySqlYearBuilder = class extends (
|
36980
|
+
MySqlYearBuilder = class extends (_b218 = MySqlColumnBuilder, _a295 = entityKind, _b218) {
|
37007
36981
|
constructor(name2) {
|
37008
36982
|
super(name2, "number", "MySqlYear");
|
37009
36983
|
}
|
@@ -37012,13 +36986,13 @@ var init_year = __esm({
|
|
37012
36986
|
return new MySqlYear(table5, this.config);
|
37013
36987
|
}
|
37014
36988
|
};
|
37015
|
-
__publicField(MySqlYearBuilder,
|
37016
|
-
MySqlYear = class extends (
|
36989
|
+
__publicField(MySqlYearBuilder, _a295, "MySqlYearBuilder");
|
36990
|
+
MySqlYear = class extends (_b219 = MySqlColumn, _a296 = entityKind, _b219) {
|
37017
36991
|
getSQLType() {
|
37018
36992
|
return `year`;
|
37019
36993
|
}
|
37020
36994
|
};
|
37021
|
-
__publicField(MySqlYear,
|
36995
|
+
__publicField(MySqlYear, _a296, "MySqlYear");
|
37022
36996
|
}
|
37023
36997
|
});
|
37024
36998
|
|
@@ -37055,17 +37029,17 @@ var init_columns3 = __esm({
|
|
37055
37029
|
});
|
37056
37030
|
|
37057
37031
|
// ../drizzle-orm/dist/mysql-core/query-builders/count.js
|
37058
|
-
var
|
37032
|
+
var _a297, _b220, _c9, _MySqlCountBuilder, MySqlCountBuilder;
|
37059
37033
|
var init_count3 = __esm({
|
37060
37034
|
"../drizzle-orm/dist/mysql-core/query-builders/count.js"() {
|
37061
37035
|
"use strict";
|
37062
37036
|
init_entity();
|
37063
37037
|
init_sql();
|
37064
|
-
_MySqlCountBuilder = class _MySqlCountBuilder extends (_c9 = SQL,
|
37038
|
+
_MySqlCountBuilder = class _MySqlCountBuilder extends (_c9 = SQL, _b220 = entityKind, _a297 = Symbol.toStringTag, _c9) {
|
37065
37039
|
constructor(params) {
|
37066
37040
|
super(_MySqlCountBuilder.buildEmbeddedCount(params.source, params.filters).queryChunks);
|
37067
37041
|
__publicField(this, "sql");
|
37068
|
-
__publicField(this,
|
37042
|
+
__publicField(this, _a297, "MySqlCountBuilder");
|
37069
37043
|
__publicField(this, "session");
|
37070
37044
|
this.params = params;
|
37071
37045
|
this.mapWith(Number);
|
@@ -37103,13 +37077,13 @@ var init_count3 = __esm({
|
|
37103
37077
|
);
|
37104
37078
|
}
|
37105
37079
|
};
|
37106
|
-
__publicField(_MySqlCountBuilder,
|
37080
|
+
__publicField(_MySqlCountBuilder, _b220, "MySqlCountBuilder");
|
37107
37081
|
MySqlCountBuilder = _MySqlCountBuilder;
|
37108
37082
|
}
|
37109
37083
|
});
|
37110
37084
|
|
37111
37085
|
// ../drizzle-orm/dist/mysql-core/query-builders/delete.js
|
37112
|
-
var
|
37086
|
+
var _a298, _b221, MySqlDeleteBase;
|
37113
37087
|
var init_delete3 = __esm({
|
37114
37088
|
"../drizzle-orm/dist/mysql-core/query-builders/delete.js"() {
|
37115
37089
|
"use strict";
|
@@ -37117,7 +37091,7 @@ var init_delete3 = __esm({
|
|
37117
37091
|
init_query_promise();
|
37118
37092
|
init_selection_proxy();
|
37119
37093
|
init_table();
|
37120
|
-
MySqlDeleteBase = class extends (
|
37094
|
+
MySqlDeleteBase = class extends (_b221 = QueryPromise, _a298 = entityKind, _b221) {
|
37121
37095
|
constructor(table5, session, dialect6, withList) {
|
37122
37096
|
super();
|
37123
37097
|
__publicField(this, "config");
|
@@ -37207,7 +37181,7 @@ var init_delete3 = __esm({
|
|
37207
37181
|
return this;
|
37208
37182
|
}
|
37209
37183
|
};
|
37210
|
-
__publicField(MySqlDeleteBase,
|
37184
|
+
__publicField(MySqlDeleteBase, _a298, "MySqlDelete");
|
37211
37185
|
}
|
37212
37186
|
});
|
37213
37187
|
|
@@ -37294,7 +37268,7 @@ function mysqlTableWithSchema(name2, columns, extraConfig, schema5, baseName = n
|
|
37294
37268
|
}
|
37295
37269
|
return table5;
|
37296
37270
|
}
|
37297
|
-
var InlineForeignKeys3,
|
37271
|
+
var InlineForeignKeys3, _a299, _b222, _c10, _d4, _e4, MySqlTable, mysqlTable;
|
37298
37272
|
var init_table4 = __esm({
|
37299
37273
|
"../drizzle-orm/dist/mysql-core/table.js"() {
|
37300
37274
|
"use strict";
|
@@ -37302,15 +37276,15 @@ var init_table4 = __esm({
|
|
37302
37276
|
init_table();
|
37303
37277
|
init_all3();
|
37304
37278
|
InlineForeignKeys3 = Symbol.for("drizzle:MySqlInlineForeignKeys");
|
37305
|
-
MySqlTable = class extends (_e4 = Table2, _d4 = entityKind, _c10 = Table2.Symbol.Columns,
|
37279
|
+
MySqlTable = class extends (_e4 = Table2, _d4 = entityKind, _c10 = Table2.Symbol.Columns, _b222 = InlineForeignKeys3, _a299 = Table2.Symbol.ExtraConfigBuilder, _e4) {
|
37306
37280
|
constructor() {
|
37307
37281
|
super(...arguments);
|
37308
37282
|
/** @internal */
|
37309
37283
|
__publicField(this, _c10);
|
37310
37284
|
/** @internal */
|
37311
|
-
__publicField(this,
|
37285
|
+
__publicField(this, _b222, []);
|
37312
37286
|
/** @internal */
|
37313
|
-
__publicField(this,
|
37287
|
+
__publicField(this, _a299);
|
37314
37288
|
}
|
37315
37289
|
};
|
37316
37290
|
__publicField(MySqlTable, _d4, "MySqlTable");
|
@@ -37325,20 +37299,20 @@ var init_table4 = __esm({
|
|
37325
37299
|
});
|
37326
37300
|
|
37327
37301
|
// ../drizzle-orm/dist/mysql-core/view-base.js
|
37328
|
-
var
|
37302
|
+
var _a300, _b223, MySqlViewBase;
|
37329
37303
|
var init_view_base3 = __esm({
|
37330
37304
|
"../drizzle-orm/dist/mysql-core/view-base.js"() {
|
37331
37305
|
"use strict";
|
37332
37306
|
init_entity();
|
37333
37307
|
init_sql();
|
37334
|
-
MySqlViewBase = class extends (
|
37308
|
+
MySqlViewBase = class extends (_b223 = View3, _a300 = entityKind, _b223) {
|
37335
37309
|
};
|
37336
|
-
__publicField(MySqlViewBase,
|
37310
|
+
__publicField(MySqlViewBase, _a300, "MySqlViewBase");
|
37337
37311
|
}
|
37338
37312
|
});
|
37339
37313
|
|
37340
37314
|
// ../drizzle-orm/dist/mysql-core/dialect.js
|
37341
|
-
var
|
37315
|
+
var _a301, MySqlDialect;
|
37342
37316
|
var init_dialect3 = __esm({
|
37343
37317
|
"../drizzle-orm/dist/mysql-core/dialect.js"() {
|
37344
37318
|
"use strict";
|
@@ -37357,7 +37331,7 @@ var init_dialect3 = __esm({
|
|
37357
37331
|
init_common4();
|
37358
37332
|
init_table4();
|
37359
37333
|
init_view_base3();
|
37360
|
-
|
37334
|
+
_a301 = entityKind;
|
37361
37335
|
MySqlDialect = class {
|
37362
37336
|
constructor(config) {
|
37363
37337
|
/** @internal */
|
@@ -38169,17 +38143,17 @@ var init_dialect3 = __esm({
|
|
38169
38143
|
};
|
38170
38144
|
}
|
38171
38145
|
};
|
38172
|
-
__publicField(MySqlDialect,
|
38146
|
+
__publicField(MySqlDialect, _a301, "MySqlDialect");
|
38173
38147
|
}
|
38174
38148
|
});
|
38175
38149
|
|
38176
38150
|
// ../drizzle-orm/dist/mysql-core/indexes.js
|
38177
|
-
var
|
38151
|
+
var _a302, IndexBuilderOn3, _a303, IndexBuilder3, _a304, Index5;
|
38178
38152
|
var init_indexes3 = __esm({
|
38179
38153
|
"../drizzle-orm/dist/mysql-core/indexes.js"() {
|
38180
38154
|
"use strict";
|
38181
38155
|
init_entity();
|
38182
|
-
|
38156
|
+
_a302 = entityKind;
|
38183
38157
|
IndexBuilderOn3 = class {
|
38184
38158
|
constructor(name2, unique) {
|
38185
38159
|
this.name = name2;
|
@@ -38189,8 +38163,8 @@ var init_indexes3 = __esm({
|
|
38189
38163
|
return new IndexBuilder3(this.name, columns, this.unique);
|
38190
38164
|
}
|
38191
38165
|
};
|
38192
|
-
__publicField(IndexBuilderOn3,
|
38193
|
-
|
38166
|
+
__publicField(IndexBuilderOn3, _a302, "MySqlIndexBuilderOn");
|
38167
|
+
_a303 = entityKind;
|
38194
38168
|
IndexBuilder3 = class {
|
38195
38169
|
constructor(name2, columns, unique) {
|
38196
38170
|
/** @internal */
|
@@ -38218,26 +38192,26 @@ var init_indexes3 = __esm({
|
|
38218
38192
|
return new Index5(this.config, table5);
|
38219
38193
|
}
|
38220
38194
|
};
|
38221
|
-
__publicField(IndexBuilder3,
|
38222
|
-
|
38195
|
+
__publicField(IndexBuilder3, _a303, "MySqlIndexBuilder");
|
38196
|
+
_a304 = entityKind;
|
38223
38197
|
Index5 = class {
|
38224
38198
|
constructor(config, table5) {
|
38225
38199
|
__publicField(this, "config");
|
38226
38200
|
this.config = { ...config, table: table5 };
|
38227
38201
|
}
|
38228
38202
|
};
|
38229
|
-
__publicField(Index5,
|
38203
|
+
__publicField(Index5, _a304, "MySqlIndex");
|
38230
38204
|
}
|
38231
38205
|
});
|
38232
38206
|
|
38233
38207
|
// ../drizzle-orm/dist/mysql-core/primary-keys.js
|
38234
|
-
var
|
38208
|
+
var _a305, PrimaryKeyBuilder3, _a306, PrimaryKey3;
|
38235
38209
|
var init_primary_keys3 = __esm({
|
38236
38210
|
"../drizzle-orm/dist/mysql-core/primary-keys.js"() {
|
38237
38211
|
"use strict";
|
38238
38212
|
init_entity();
|
38239
38213
|
init_table4();
|
38240
|
-
|
38214
|
+
_a305 = entityKind;
|
38241
38215
|
PrimaryKeyBuilder3 = class {
|
38242
38216
|
constructor(columns, name2) {
|
38243
38217
|
/** @internal */
|
@@ -38252,8 +38226,8 @@ var init_primary_keys3 = __esm({
|
|
38252
38226
|
return new PrimaryKey3(table5, this.columns, this.name);
|
38253
38227
|
}
|
38254
38228
|
};
|
38255
|
-
__publicField(PrimaryKeyBuilder3,
|
38256
|
-
|
38229
|
+
__publicField(PrimaryKeyBuilder3, _a305, "MySqlPrimaryKeyBuilder");
|
38230
|
+
_a306 = entityKind;
|
38257
38231
|
PrimaryKey3 = class {
|
38258
38232
|
constructor(table5, columns, name2) {
|
38259
38233
|
__publicField(this, "columns");
|
@@ -38266,7 +38240,7 @@ var init_primary_keys3 = __esm({
|
|
38266
38240
|
return this.name ?? `${this.table[MySqlTable.Symbol.Name]}_${this.columns.map((column5) => column5.name).join("_")}_pk`;
|
38267
38241
|
}
|
38268
38242
|
};
|
38269
|
-
__publicField(PrimaryKey3,
|
38243
|
+
__publicField(PrimaryKey3, _a306, "MySqlPrimaryKey");
|
38270
38244
|
}
|
38271
38245
|
});
|
38272
38246
|
|
@@ -38368,7 +38342,7 @@ function createSetOperator3(type, isAll) {
|
|
38368
38342
|
return leftSelect.addSetOperators(setOperators);
|
38369
38343
|
};
|
38370
38344
|
}
|
38371
|
-
var
|
38345
|
+
var _a307, MySqlSelectBuilder, _a308, _b224, MySqlSelectQueryBuilderBase, _a309, _b225, MySqlSelectBase, getMySqlSetOperators, union3, unionAll3, intersect3, intersectAll2, except3, exceptAll2;
|
38372
38346
|
var init_select4 = __esm({
|
38373
38347
|
"../drizzle-orm/dist/mysql-core/query-builders/select.js"() {
|
38374
38348
|
"use strict";
|
@@ -38384,7 +38358,7 @@ var init_select4 = __esm({
|
|
38384
38358
|
init_view_common();
|
38385
38359
|
init_utils8();
|
38386
38360
|
init_view_base3();
|
38387
|
-
|
38361
|
+
_a307 = entityKind;
|
38388
38362
|
MySqlSelectBuilder = class {
|
38389
38363
|
constructor(config) {
|
38390
38364
|
__publicField(this, "fields");
|
@@ -38446,8 +38420,8 @@ var init_select4 = __esm({
|
|
38446
38420
|
);
|
38447
38421
|
}
|
38448
38422
|
};
|
38449
|
-
__publicField(MySqlSelectBuilder,
|
38450
|
-
MySqlSelectQueryBuilderBase = class extends (
|
38423
|
+
__publicField(MySqlSelectBuilder, _a307, "MySqlSelectBuilder");
|
38424
|
+
MySqlSelectQueryBuilderBase = class extends (_b224 = TypedQueryBuilder, _a308 = entityKind, _b224) {
|
38451
38425
|
constructor({ table: table5, fields, isPartialSelect, session, dialect: dialect6, withList, distinct, useIndex, forceIndex, ignoreIndex }) {
|
38452
38426
|
super();
|
38453
38427
|
__publicField(this, "_");
|
@@ -39105,8 +39079,8 @@ var init_select4 = __esm({
|
|
39105
39079
|
return this;
|
39106
39080
|
}
|
39107
39081
|
};
|
39108
|
-
__publicField(MySqlSelectQueryBuilderBase,
|
39109
|
-
MySqlSelectBase = class extends (
|
39082
|
+
__publicField(MySqlSelectQueryBuilderBase, _a308, "MySqlSelectQueryBuilder");
|
39083
|
+
MySqlSelectBase = class extends (_b225 = MySqlSelectQueryBuilderBase, _a309 = entityKind, _b225) {
|
39110
39084
|
constructor() {
|
39111
39085
|
super(...arguments);
|
39112
39086
|
__publicField(this, "execute", (placeholderValues) => {
|
@@ -39130,7 +39104,7 @@ var init_select4 = __esm({
|
|
39130
39104
|
return query;
|
39131
39105
|
}
|
39132
39106
|
};
|
39133
|
-
__publicField(MySqlSelectBase,
|
39107
|
+
__publicField(MySqlSelectBase, _a309, "MySqlSelect");
|
39134
39108
|
applyMixins(MySqlSelectBase, [QueryPromise]);
|
39135
39109
|
getMySqlSetOperators = () => ({
|
39136
39110
|
union: union3,
|
@@ -39150,7 +39124,7 @@ var init_select4 = __esm({
|
|
39150
39124
|
});
|
39151
39125
|
|
39152
39126
|
// ../drizzle-orm/dist/mysql-core/query-builders/query-builder.js
|
39153
|
-
var
|
39127
|
+
var _a310, QueryBuilder3;
|
39154
39128
|
var init_query_builder4 = __esm({
|
39155
39129
|
"../drizzle-orm/dist/mysql-core/query-builders/query-builder.js"() {
|
39156
39130
|
"use strict";
|
@@ -39159,7 +39133,7 @@ var init_query_builder4 = __esm({
|
|
39159
39133
|
init_selection_proxy();
|
39160
39134
|
init_subquery();
|
39161
39135
|
init_select4();
|
39162
|
-
|
39136
|
+
_a310 = entityKind;
|
39163
39137
|
QueryBuilder3 = class {
|
39164
39138
|
constructor(dialect6) {
|
39165
39139
|
__publicField(this, "dialect");
|
@@ -39225,12 +39199,12 @@ var init_query_builder4 = __esm({
|
|
39225
39199
|
return this.dialect;
|
39226
39200
|
}
|
39227
39201
|
};
|
39228
|
-
__publicField(QueryBuilder3,
|
39202
|
+
__publicField(QueryBuilder3, _a310, "MySqlQueryBuilder");
|
39229
39203
|
}
|
39230
39204
|
});
|
39231
39205
|
|
39232
39206
|
// ../drizzle-orm/dist/mysql-core/query-builders/insert.js
|
39233
|
-
var
|
39207
|
+
var _a311, MySqlInsertBuilder, _a312, _b226, MySqlInsertBase;
|
39234
39208
|
var init_insert3 = __esm({
|
39235
39209
|
"../drizzle-orm/dist/mysql-core/query-builders/insert.js"() {
|
39236
39210
|
"use strict";
|
@@ -39240,7 +39214,7 @@ var init_insert3 = __esm({
|
|
39240
39214
|
init_table();
|
39241
39215
|
init_utils2();
|
39242
39216
|
init_query_builder4();
|
39243
|
-
|
39217
|
+
_a311 = entityKind;
|
39244
39218
|
MySqlInsertBuilder = class {
|
39245
39219
|
constructor(table5, session, dialect6) {
|
39246
39220
|
__publicField(this, "shouldIgnore", false);
|
@@ -39278,8 +39252,8 @@ var init_insert3 = __esm({
|
|
39278
39252
|
return new MySqlInsertBase(this.table, select, this.shouldIgnore, this.session, this.dialect, true);
|
39279
39253
|
}
|
39280
39254
|
};
|
39281
|
-
__publicField(MySqlInsertBuilder,
|
39282
|
-
MySqlInsertBase = class extends (
|
39255
|
+
__publicField(MySqlInsertBuilder, _a311, "MySqlInsertBuilder");
|
39256
|
+
MySqlInsertBase = class extends (_b226 = QueryPromise, _a312 = entityKind, _b226) {
|
39283
39257
|
constructor(table5, values, ignore, session, dialect6, select) {
|
39284
39258
|
super();
|
39285
39259
|
__publicField(this, "config");
|
@@ -39360,7 +39334,7 @@ var init_insert3 = __esm({
|
|
39360
39334
|
return this;
|
39361
39335
|
}
|
39362
39336
|
};
|
39363
|
-
__publicField(MySqlInsertBase,
|
39337
|
+
__publicField(MySqlInsertBase, _a312, "MySqlInsert");
|
39364
39338
|
}
|
39365
39339
|
});
|
39366
39340
|
|
@@ -39372,7 +39346,7 @@ var init_select_types3 = __esm({
|
|
39372
39346
|
});
|
39373
39347
|
|
39374
39348
|
// ../drizzle-orm/dist/mysql-core/query-builders/update.js
|
39375
|
-
var
|
39349
|
+
var _a313, MySqlUpdateBuilder, _a314, _b227, MySqlUpdateBase;
|
39376
39350
|
var init_update3 = __esm({
|
39377
39351
|
"../drizzle-orm/dist/mysql-core/query-builders/update.js"() {
|
39378
39352
|
"use strict";
|
@@ -39381,7 +39355,7 @@ var init_update3 = __esm({
|
|
39381
39355
|
init_selection_proxy();
|
39382
39356
|
init_table();
|
39383
39357
|
init_utils2();
|
39384
|
-
|
39358
|
+
_a313 = entityKind;
|
39385
39359
|
MySqlUpdateBuilder = class {
|
39386
39360
|
constructor(table5, session, dialect6, withList) {
|
39387
39361
|
this.table = table5;
|
@@ -39393,8 +39367,8 @@ var init_update3 = __esm({
|
|
39393
39367
|
return new MySqlUpdateBase(this.table, mapUpdateSet(this.table, values), this.session, this.dialect, this.withList);
|
39394
39368
|
}
|
39395
39369
|
};
|
39396
|
-
__publicField(MySqlUpdateBuilder,
|
39397
|
-
MySqlUpdateBase = class extends (
|
39370
|
+
__publicField(MySqlUpdateBuilder, _a313, "MySqlUpdateBuilder");
|
39371
|
+
MySqlUpdateBase = class extends (_b227 = QueryPromise, _a314 = entityKind, _b227) {
|
39398
39372
|
constructor(table5, set, session, dialect6, withList) {
|
39399
39373
|
super();
|
39400
39374
|
__publicField(this, "config");
|
@@ -39487,7 +39461,7 @@ var init_update3 = __esm({
|
|
39487
39461
|
return this;
|
39488
39462
|
}
|
39489
39463
|
};
|
39490
|
-
__publicField(MySqlUpdateBase,
|
39464
|
+
__publicField(MySqlUpdateBase, _a314, "MySqlUpdate");
|
39491
39465
|
}
|
39492
39466
|
});
|
39493
39467
|
|
@@ -39505,14 +39479,14 @@ var init_query_builders3 = __esm({
|
|
39505
39479
|
});
|
39506
39480
|
|
39507
39481
|
// ../drizzle-orm/dist/mysql-core/query-builders/query.js
|
39508
|
-
var
|
39482
|
+
var _a315, RelationalQueryBuilder3, _a316, _b228, MySqlRelationalQuery;
|
39509
39483
|
var init_query3 = __esm({
|
39510
39484
|
"../drizzle-orm/dist/mysql-core/query-builders/query.js"() {
|
39511
39485
|
"use strict";
|
39512
39486
|
init_entity();
|
39513
39487
|
init_query_promise();
|
39514
39488
|
init_relations();
|
39515
|
-
|
39489
|
+
_a315 = entityKind;
|
39516
39490
|
RelationalQueryBuilder3 = class {
|
39517
39491
|
constructor(fullSchema, schema5, tableNamesMap, table5, tableConfig, dialect6, session, mode) {
|
39518
39492
|
this.fullSchema = fullSchema;
|
@@ -39553,8 +39527,8 @@ var init_query3 = __esm({
|
|
39553
39527
|
);
|
39554
39528
|
}
|
39555
39529
|
};
|
39556
|
-
__publicField(RelationalQueryBuilder3,
|
39557
|
-
MySqlRelationalQuery = class extends (
|
39530
|
+
__publicField(RelationalQueryBuilder3, _a315, "MySqlRelationalQueryBuilder");
|
39531
|
+
MySqlRelationalQuery = class extends (_b228 = QueryPromise, _a316 = entityKind, _b228) {
|
39558
39532
|
constructor(fullSchema, schema5, tableNamesMap, table5, tableConfig, dialect6, session, config, queryMode, mode) {
|
39559
39533
|
super();
|
39560
39534
|
this.fullSchema = fullSchema;
|
@@ -39618,12 +39592,12 @@ var init_query3 = __esm({
|
|
39618
39592
|
return this.prepare().execute();
|
39619
39593
|
}
|
39620
39594
|
};
|
39621
|
-
__publicField(MySqlRelationalQuery,
|
39595
|
+
__publicField(MySqlRelationalQuery, _a316, "MySqlRelationalQuery");
|
39622
39596
|
}
|
39623
39597
|
});
|
39624
39598
|
|
39625
39599
|
// ../drizzle-orm/dist/mysql-core/db.js
|
39626
|
-
var
|
39600
|
+
var _a317, MySqlDatabase;
|
39627
39601
|
var init_db3 = __esm({
|
39628
39602
|
"../drizzle-orm/dist/mysql-core/db.js"() {
|
39629
39603
|
"use strict";
|
@@ -39634,7 +39608,7 @@ var init_db3 = __esm({
|
|
39634
39608
|
init_count3();
|
39635
39609
|
init_query_builders3();
|
39636
39610
|
init_query3();
|
39637
|
-
|
39611
|
+
_a317 = entityKind;
|
39638
39612
|
MySqlDatabase = class {
|
39639
39613
|
constructor(dialect6, session, schema5, mode) {
|
39640
39614
|
__publicField(this, "query");
|
@@ -39851,7 +39825,7 @@ var init_db3 = __esm({
|
|
39851
39825
|
return this.session.transaction(transaction, config);
|
39852
39826
|
}
|
39853
39827
|
};
|
39854
|
-
__publicField(MySqlDatabase,
|
39828
|
+
__publicField(MySqlDatabase, _a317, "MySqlDatabase");
|
39855
39829
|
}
|
39856
39830
|
});
|
39857
39831
|
|
@@ -39862,7 +39836,7 @@ function mysqlViewWithSchema(name2, selection, schema5) {
|
|
39862
39836
|
}
|
39863
39837
|
return new ViewBuilder3(name2, schema5);
|
39864
39838
|
}
|
39865
|
-
var
|
39839
|
+
var _a318, ViewBuilderCore2, _a319, _b229, ViewBuilder3, _a320, _b230, ManualViewBuilder3, _a321, _b231, _c11, MySqlView2;
|
39866
39840
|
var init_view3 = __esm({
|
39867
39841
|
"../drizzle-orm/dist/mysql-core/view.js"() {
|
39868
39842
|
"use strict";
|
@@ -39873,7 +39847,7 @@ var init_view3 = __esm({
|
|
39873
39847
|
init_table4();
|
39874
39848
|
init_view_base3();
|
39875
39849
|
init_view_common3();
|
39876
|
-
|
39850
|
+
_a318 = entityKind;
|
39877
39851
|
ViewBuilderCore2 = class {
|
39878
39852
|
constructor(name2, schema5) {
|
39879
39853
|
__publicField(this, "config", {});
|
@@ -39893,8 +39867,8 @@ var init_view3 = __esm({
|
|
39893
39867
|
return this;
|
39894
39868
|
}
|
39895
39869
|
};
|
39896
|
-
__publicField(ViewBuilderCore2,
|
39897
|
-
ViewBuilder3 = class extends (
|
39870
|
+
__publicField(ViewBuilderCore2, _a318, "MySqlViewBuilder");
|
39871
|
+
ViewBuilder3 = class extends (_b229 = ViewBuilderCore2, _a319 = entityKind, _b229) {
|
39898
39872
|
as(qb) {
|
39899
39873
|
if (typeof qb === "function") {
|
39900
39874
|
qb = qb(new QueryBuilder3());
|
@@ -39920,8 +39894,8 @@ var init_view3 = __esm({
|
|
39920
39894
|
);
|
39921
39895
|
}
|
39922
39896
|
};
|
39923
|
-
__publicField(ViewBuilder3,
|
39924
|
-
ManualViewBuilder3 = class extends (
|
39897
|
+
__publicField(ViewBuilder3, _a319, "MySqlViewBuilder");
|
39898
|
+
ManualViewBuilder3 = class extends (_b230 = ViewBuilderCore2, _a320 = entityKind, _b230) {
|
39925
39899
|
constructor(name2, columns, schema5) {
|
39926
39900
|
super(name2, schema5);
|
39927
39901
|
__publicField(this, "columns");
|
@@ -39966,27 +39940,27 @@ var init_view3 = __esm({
|
|
39966
39940
|
);
|
39967
39941
|
}
|
39968
39942
|
};
|
39969
|
-
__publicField(ManualViewBuilder3,
|
39970
|
-
MySqlView2 = class extends (_c11 = MySqlViewBase,
|
39943
|
+
__publicField(ManualViewBuilder3, _a320, "MySqlManualViewBuilder");
|
39944
|
+
MySqlView2 = class extends (_c11 = MySqlViewBase, _b231 = entityKind, _a321 = MySqlViewConfig, _c11) {
|
39971
39945
|
constructor({ mysqlConfig, config }) {
|
39972
39946
|
super(config);
|
39973
|
-
__publicField(this,
|
39947
|
+
__publicField(this, _a321);
|
39974
39948
|
this[MySqlViewConfig] = mysqlConfig;
|
39975
39949
|
}
|
39976
39950
|
};
|
39977
|
-
__publicField(MySqlView2,
|
39951
|
+
__publicField(MySqlView2, _b231, "MySqlView");
|
39978
39952
|
}
|
39979
39953
|
});
|
39980
39954
|
|
39981
39955
|
// ../drizzle-orm/dist/mysql-core/schema.js
|
39982
|
-
var
|
39956
|
+
var _a322, MySqlSchema5;
|
39983
39957
|
var init_schema2 = __esm({
|
39984
39958
|
"../drizzle-orm/dist/mysql-core/schema.js"() {
|
39985
39959
|
"use strict";
|
39986
39960
|
init_entity();
|
39987
39961
|
init_table4();
|
39988
39962
|
init_view3();
|
39989
|
-
|
39963
|
+
_a322 = entityKind;
|
39990
39964
|
MySqlSchema5 = class {
|
39991
39965
|
constructor(schemaName) {
|
39992
39966
|
__publicField(this, "table", (name2, columns, extraConfig) => {
|
@@ -39998,12 +39972,12 @@ var init_schema2 = __esm({
|
|
39998
39972
|
this.schemaName = schemaName;
|
39999
39973
|
}
|
40000
39974
|
};
|
40001
|
-
__publicField(MySqlSchema5,
|
39975
|
+
__publicField(MySqlSchema5, _a322, "MySqlSchema");
|
40002
39976
|
}
|
40003
39977
|
});
|
40004
39978
|
|
40005
39979
|
// ../drizzle-orm/dist/mysql-core/session.js
|
40006
|
-
var
|
39980
|
+
var _a323, MySqlPreparedQuery, _a324, MySqlSession, _a325, _b232, MySqlTransaction;
|
40007
39981
|
var init_session3 = __esm({
|
40008
39982
|
"../drizzle-orm/dist/mysql-core/session.js"() {
|
40009
39983
|
"use strict";
|
@@ -40011,15 +39985,15 @@ var init_session3 = __esm({
|
|
40011
39985
|
init_errors();
|
40012
39986
|
init_sql();
|
40013
39987
|
init_db3();
|
40014
|
-
|
39988
|
+
_a323 = entityKind;
|
40015
39989
|
MySqlPreparedQuery = class {
|
40016
39990
|
constructor() {
|
40017
39991
|
/** @internal */
|
40018
39992
|
__publicField(this, "joinsNotNullableMap");
|
40019
39993
|
}
|
40020
39994
|
};
|
40021
|
-
__publicField(MySqlPreparedQuery,
|
40022
|
-
|
39995
|
+
__publicField(MySqlPreparedQuery, _a323, "MySqlPreparedQuery");
|
39996
|
+
_a324 = entityKind;
|
40023
39997
|
MySqlSession = class {
|
40024
39998
|
constructor(dialect6) {
|
40025
39999
|
this.dialect = dialect6;
|
@@ -40054,8 +40028,8 @@ var init_session3 = __esm({
|
|
40054
40028
|
return parts.length ? sql`start transaction ${sql.raw(parts.join(" "))}` : void 0;
|
40055
40029
|
}
|
40056
40030
|
};
|
40057
|
-
__publicField(MySqlSession,
|
40058
|
-
MySqlTransaction = class extends (
|
40031
|
+
__publicField(MySqlSession, _a324, "MySqlSession");
|
40032
|
+
MySqlTransaction = class extends (_b232 = MySqlDatabase, _a325 = entityKind, _b232) {
|
40059
40033
|
constructor(dialect6, session, schema5, nestedIndex, mode) {
|
40060
40034
|
super(dialect6, session, schema5, mode);
|
40061
40035
|
this.schema = schema5;
|
@@ -40065,7 +40039,7 @@ var init_session3 = __esm({
|
|
40065
40039
|
throw new TransactionRollbackError();
|
40066
40040
|
}
|
40067
40041
|
};
|
40068
|
-
__publicField(MySqlTransaction,
|
40042
|
+
__publicField(MySqlTransaction, _a325, "MySqlTransaction");
|
40069
40043
|
}
|
40070
40044
|
});
|
40071
40045
|
|
@@ -41262,13 +41236,13 @@ var init_alias5 = __esm({
|
|
41262
41236
|
function uniqueKeyName4(table5, columns) {
|
41263
41237
|
return `${table5[TableName]}_${columns.join("_")}_unique`;
|
41264
41238
|
}
|
41265
|
-
var
|
41239
|
+
var _a326, UniqueConstraintBuilder4, _a327, UniqueOnConstraintBuilder4, _a328, UniqueConstraint4;
|
41266
41240
|
var init_unique_constraint4 = __esm({
|
41267
41241
|
"../drizzle-orm/dist/singlestore-core/unique-constraint.js"() {
|
41268
41242
|
"use strict";
|
41269
41243
|
init_entity();
|
41270
41244
|
init_table_utils();
|
41271
|
-
|
41245
|
+
_a326 = entityKind;
|
41272
41246
|
UniqueConstraintBuilder4 = class {
|
41273
41247
|
constructor(columns, name2) {
|
41274
41248
|
/** @internal */
|
@@ -41281,8 +41255,8 @@ var init_unique_constraint4 = __esm({
|
|
41281
41255
|
return new UniqueConstraint4(table5, this.columns, this.name);
|
41282
41256
|
}
|
41283
41257
|
};
|
41284
|
-
__publicField(UniqueConstraintBuilder4,
|
41285
|
-
|
41258
|
+
__publicField(UniqueConstraintBuilder4, _a326, "SingleStoreUniqueConstraintBuilder");
|
41259
|
+
_a327 = entityKind;
|
41286
41260
|
UniqueOnConstraintBuilder4 = class {
|
41287
41261
|
constructor(name2) {
|
41288
41262
|
/** @internal */
|
@@ -41293,8 +41267,8 @@ var init_unique_constraint4 = __esm({
|
|
41293
41267
|
return new UniqueConstraintBuilder4(columns, this.name);
|
41294
41268
|
}
|
41295
41269
|
};
|
41296
|
-
__publicField(UniqueOnConstraintBuilder4,
|
41297
|
-
|
41270
|
+
__publicField(UniqueOnConstraintBuilder4, _a327, "SingleStoreUniqueOnConstraintBuilder");
|
41271
|
+
_a328 = entityKind;
|
41298
41272
|
UniqueConstraint4 = class {
|
41299
41273
|
constructor(table5, columns, name2) {
|
41300
41274
|
__publicField(this, "columns");
|
@@ -41308,12 +41282,12 @@ var init_unique_constraint4 = __esm({
|
|
41308
41282
|
return this.name;
|
41309
41283
|
}
|
41310
41284
|
};
|
41311
|
-
__publicField(UniqueConstraint4,
|
41285
|
+
__publicField(UniqueConstraint4, _a328, "SingleStoreUniqueConstraint");
|
41312
41286
|
}
|
41313
41287
|
});
|
41314
41288
|
|
41315
41289
|
// ../drizzle-orm/dist/singlestore-core/columns/common.js
|
41316
|
-
var
|
41290
|
+
var _a329, _b233, SingleStoreColumnBuilder, _a330, _b234, SingleStoreColumn, _a331, _b235, SingleStoreColumnBuilderWithAutoIncrement, _a332, _b236, SingleStoreColumnWithAutoIncrement;
|
41317
41291
|
var init_common5 = __esm({
|
41318
41292
|
"../drizzle-orm/dist/singlestore-core/columns/common.js"() {
|
41319
41293
|
"use strict";
|
@@ -41321,7 +41295,7 @@ var init_common5 = __esm({
|
|
41321
41295
|
init_column();
|
41322
41296
|
init_entity();
|
41323
41297
|
init_unique_constraint4();
|
41324
|
-
SingleStoreColumnBuilder = class extends (
|
41298
|
+
SingleStoreColumnBuilder = class extends (_b233 = ColumnBuilder, _a329 = entityKind, _b233) {
|
41325
41299
|
unique(name2) {
|
41326
41300
|
this.config.isUnique = true;
|
41327
41301
|
this.config.uniqueName = name2;
|
@@ -41338,8 +41312,8 @@ var init_common5 = __esm({
|
|
41338
41312
|
return this;
|
41339
41313
|
}
|
41340
41314
|
};
|
41341
|
-
__publicField(SingleStoreColumnBuilder,
|
41342
|
-
SingleStoreColumn = class extends (
|
41315
|
+
__publicField(SingleStoreColumnBuilder, _a329, "SingleStoreColumnBuilder");
|
41316
|
+
SingleStoreColumn = class extends (_b234 = Column2, _a330 = entityKind, _b234) {
|
41343
41317
|
constructor(table5, config) {
|
41344
41318
|
if (!config.uniqueName) {
|
41345
41319
|
config.uniqueName = uniqueKeyName4(table5, [config.name]);
|
@@ -41348,8 +41322,8 @@ var init_common5 = __esm({
|
|
41348
41322
|
this.table = table5;
|
41349
41323
|
}
|
41350
41324
|
};
|
41351
|
-
__publicField(SingleStoreColumn,
|
41352
|
-
SingleStoreColumnBuilderWithAutoIncrement = class extends (
|
41325
|
+
__publicField(SingleStoreColumn, _a330, "SingleStoreColumn");
|
41326
|
+
SingleStoreColumnBuilderWithAutoIncrement = class extends (_b235 = SingleStoreColumnBuilder, _a331 = entityKind, _b235) {
|
41353
41327
|
constructor(name2, dataType, columnType) {
|
41354
41328
|
super(name2, dataType, columnType);
|
41355
41329
|
this.config.autoIncrement = false;
|
@@ -41360,14 +41334,14 @@ var init_common5 = __esm({
|
|
41360
41334
|
return this;
|
41361
41335
|
}
|
41362
41336
|
};
|
41363
|
-
__publicField(SingleStoreColumnBuilderWithAutoIncrement,
|
41364
|
-
SingleStoreColumnWithAutoIncrement = class extends (
|
41337
|
+
__publicField(SingleStoreColumnBuilderWithAutoIncrement, _a331, "SingleStoreColumnBuilderWithAutoIncrement");
|
41338
|
+
SingleStoreColumnWithAutoIncrement = class extends (_b236 = SingleStoreColumn, _a332 = entityKind, _b236) {
|
41365
41339
|
constructor() {
|
41366
41340
|
super(...arguments);
|
41367
41341
|
__publicField(this, "autoIncrement", this.config.autoIncrement);
|
41368
41342
|
}
|
41369
41343
|
};
|
41370
|
-
__publicField(SingleStoreColumnWithAutoIncrement,
|
41344
|
+
__publicField(SingleStoreColumnWithAutoIncrement, _a332, "SingleStoreColumnWithAutoIncrement");
|
41371
41345
|
}
|
41372
41346
|
});
|
41373
41347
|
|
@@ -41379,14 +41353,14 @@ function bigint3(a, b) {
|
|
41379
41353
|
}
|
41380
41354
|
return new SingleStoreBigInt64Builder(name2, config.unsigned);
|
41381
41355
|
}
|
41382
|
-
var
|
41356
|
+
var _a333, _b237, SingleStoreBigInt53Builder, _a334, _b238, SingleStoreBigInt53, _a335, _b239, SingleStoreBigInt64Builder, _a336, _b240, SingleStoreBigInt64;
|
41383
41357
|
var init_bigint3 = __esm({
|
41384
41358
|
"../drizzle-orm/dist/singlestore-core/columns/bigint.js"() {
|
41385
41359
|
"use strict";
|
41386
41360
|
init_entity();
|
41387
41361
|
init_utils2();
|
41388
41362
|
init_common5();
|
41389
|
-
SingleStoreBigInt53Builder = class extends (
|
41363
|
+
SingleStoreBigInt53Builder = class extends (_b237 = SingleStoreColumnBuilderWithAutoIncrement, _a333 = entityKind, _b237) {
|
41390
41364
|
constructor(name2, unsigned = false) {
|
41391
41365
|
super(name2, "number", "SingleStoreBigInt53");
|
41392
41366
|
this.config.unsigned = unsigned;
|
@@ -41399,8 +41373,8 @@ var init_bigint3 = __esm({
|
|
41399
41373
|
);
|
41400
41374
|
}
|
41401
41375
|
};
|
41402
|
-
__publicField(SingleStoreBigInt53Builder,
|
41403
|
-
SingleStoreBigInt53 = class extends (
|
41376
|
+
__publicField(SingleStoreBigInt53Builder, _a333, "SingleStoreBigInt53Builder");
|
41377
|
+
SingleStoreBigInt53 = class extends (_b238 = SingleStoreColumnWithAutoIncrement, _a334 = entityKind, _b238) {
|
41404
41378
|
getSQLType() {
|
41405
41379
|
return `bigint${this.config.unsigned ? " unsigned" : ""}`;
|
41406
41380
|
}
|
@@ -41411,8 +41385,8 @@ var init_bigint3 = __esm({
|
|
41411
41385
|
return Number(value);
|
41412
41386
|
}
|
41413
41387
|
};
|
41414
|
-
__publicField(SingleStoreBigInt53,
|
41415
|
-
SingleStoreBigInt64Builder = class extends (
|
41388
|
+
__publicField(SingleStoreBigInt53, _a334, "SingleStoreBigInt53");
|
41389
|
+
SingleStoreBigInt64Builder = class extends (_b239 = SingleStoreColumnBuilderWithAutoIncrement, _a335 = entityKind, _b239) {
|
41416
41390
|
constructor(name2, unsigned = false) {
|
41417
41391
|
super(name2, "bigint", "SingleStoreBigInt64");
|
41418
41392
|
this.config.unsigned = unsigned;
|
@@ -41425,8 +41399,8 @@ var init_bigint3 = __esm({
|
|
41425
41399
|
);
|
41426
41400
|
}
|
41427
41401
|
};
|
41428
|
-
__publicField(SingleStoreBigInt64Builder,
|
41429
|
-
SingleStoreBigInt64 = class extends (
|
41402
|
+
__publicField(SingleStoreBigInt64Builder, _a335, "SingleStoreBigInt64Builder");
|
41403
|
+
SingleStoreBigInt64 = class extends (_b240 = SingleStoreColumnWithAutoIncrement, _a336 = entityKind, _b240) {
|
41430
41404
|
getSQLType() {
|
41431
41405
|
return `bigint${this.config.unsigned ? " unsigned" : ""}`;
|
41432
41406
|
}
|
@@ -41435,7 +41409,7 @@ var init_bigint3 = __esm({
|
|
41435
41409
|
return BigInt(value);
|
41436
41410
|
}
|
41437
41411
|
};
|
41438
|
-
__publicField(SingleStoreBigInt64,
|
41412
|
+
__publicField(SingleStoreBigInt64, _a336, "SingleStoreBigInt64");
|
41439
41413
|
}
|
41440
41414
|
});
|
41441
41415
|
|
@@ -41444,14 +41418,14 @@ function binary2(a, b = {}) {
|
|
41444
41418
|
const { name: name2, config } = getColumnNameAndConfig(a, b);
|
41445
41419
|
return new SingleStoreBinaryBuilder(name2, config.length);
|
41446
41420
|
}
|
41447
|
-
var
|
41421
|
+
var _a337, _b241, SingleStoreBinaryBuilder, _a338, _b242, SingleStoreBinary;
|
41448
41422
|
var init_binary2 = __esm({
|
41449
41423
|
"../drizzle-orm/dist/singlestore-core/columns/binary.js"() {
|
41450
41424
|
"use strict";
|
41451
41425
|
init_entity();
|
41452
41426
|
init_utils2();
|
41453
41427
|
init_common5();
|
41454
|
-
SingleStoreBinaryBuilder = class extends (
|
41428
|
+
SingleStoreBinaryBuilder = class extends (_b241 = SingleStoreColumnBuilder, _a337 = entityKind, _b241) {
|
41455
41429
|
constructor(name2, length) {
|
41456
41430
|
super(name2, "string", "SingleStoreBinary");
|
41457
41431
|
this.config.length = length;
|
@@ -41464,8 +41438,8 @@ var init_binary2 = __esm({
|
|
41464
41438
|
);
|
41465
41439
|
}
|
41466
41440
|
};
|
41467
|
-
__publicField(SingleStoreBinaryBuilder,
|
41468
|
-
SingleStoreBinary = class extends (
|
41441
|
+
__publicField(SingleStoreBinaryBuilder, _a337, "SingleStoreBinaryBuilder");
|
41442
|
+
SingleStoreBinary = class extends (_b242 = SingleStoreColumn, _a338 = entityKind, _b242) {
|
41469
41443
|
constructor() {
|
41470
41444
|
super(...arguments);
|
41471
41445
|
__publicField(this, "length", this.config.length);
|
@@ -41474,7 +41448,7 @@ var init_binary2 = __esm({
|
|
41474
41448
|
return this.length === void 0 ? `binary` : `binary(${this.length})`;
|
41475
41449
|
}
|
41476
41450
|
};
|
41477
|
-
__publicField(SingleStoreBinary,
|
41451
|
+
__publicField(SingleStoreBinary, _a338, "SingleStoreBinary");
|
41478
41452
|
}
|
41479
41453
|
});
|
41480
41454
|
|
@@ -41482,13 +41456,13 @@ var init_binary2 = __esm({
|
|
41482
41456
|
function boolean3(name2) {
|
41483
41457
|
return new SingleStoreBooleanBuilder(name2 ?? "");
|
41484
41458
|
}
|
41485
|
-
var
|
41459
|
+
var _a339, _b243, SingleStoreBooleanBuilder, _a340, _b244, SingleStoreBoolean;
|
41486
41460
|
var init_boolean3 = __esm({
|
41487
41461
|
"../drizzle-orm/dist/singlestore-core/columns/boolean.js"() {
|
41488
41462
|
"use strict";
|
41489
41463
|
init_entity();
|
41490
41464
|
init_common5();
|
41491
|
-
SingleStoreBooleanBuilder = class extends (
|
41465
|
+
SingleStoreBooleanBuilder = class extends (_b243 = SingleStoreColumnBuilder, _a339 = entityKind, _b243) {
|
41492
41466
|
constructor(name2) {
|
41493
41467
|
super(name2, "boolean", "SingleStoreBoolean");
|
41494
41468
|
}
|
@@ -41500,8 +41474,8 @@ var init_boolean3 = __esm({
|
|
41500
41474
|
);
|
41501
41475
|
}
|
41502
41476
|
};
|
41503
|
-
__publicField(SingleStoreBooleanBuilder,
|
41504
|
-
SingleStoreBoolean = class extends (
|
41477
|
+
__publicField(SingleStoreBooleanBuilder, _a339, "SingleStoreBooleanBuilder");
|
41478
|
+
SingleStoreBoolean = class extends (_b244 = SingleStoreColumn, _a340 = entityKind, _b244) {
|
41505
41479
|
getSQLType() {
|
41506
41480
|
return "boolean";
|
41507
41481
|
}
|
@@ -41512,7 +41486,7 @@ var init_boolean3 = __esm({
|
|
41512
41486
|
return value === 1;
|
41513
41487
|
}
|
41514
41488
|
};
|
41515
|
-
__publicField(SingleStoreBoolean,
|
41489
|
+
__publicField(SingleStoreBoolean, _a340, "SingleStoreBoolean");
|
41516
41490
|
}
|
41517
41491
|
});
|
41518
41492
|
|
@@ -41521,14 +41495,14 @@ function char3(a, b = {}) {
|
|
41521
41495
|
const { name: name2, config } = getColumnNameAndConfig(a, b);
|
41522
41496
|
return new SingleStoreCharBuilder(name2, config);
|
41523
41497
|
}
|
41524
|
-
var
|
41498
|
+
var _a341, _b245, SingleStoreCharBuilder, _a342, _b246, SingleStoreChar;
|
41525
41499
|
var init_char3 = __esm({
|
41526
41500
|
"../drizzle-orm/dist/singlestore-core/columns/char.js"() {
|
41527
41501
|
"use strict";
|
41528
41502
|
init_entity();
|
41529
41503
|
init_utils2();
|
41530
41504
|
init_common5();
|
41531
|
-
SingleStoreCharBuilder = class extends (
|
41505
|
+
SingleStoreCharBuilder = class extends (_b245 = SingleStoreColumnBuilder, _a341 = entityKind, _b245) {
|
41532
41506
|
constructor(name2, config) {
|
41533
41507
|
super(name2, "string", "SingleStoreChar");
|
41534
41508
|
this.config.length = config.length;
|
@@ -41542,8 +41516,8 @@ var init_char3 = __esm({
|
|
41542
41516
|
);
|
41543
41517
|
}
|
41544
41518
|
};
|
41545
|
-
__publicField(SingleStoreCharBuilder,
|
41546
|
-
SingleStoreChar = class extends (
|
41519
|
+
__publicField(SingleStoreCharBuilder, _a341, "SingleStoreCharBuilder");
|
41520
|
+
SingleStoreChar = class extends (_b246 = SingleStoreColumn, _a342 = entityKind, _b246) {
|
41547
41521
|
constructor() {
|
41548
41522
|
super(...arguments);
|
41549
41523
|
__publicField(this, "length", this.config.length);
|
@@ -41553,7 +41527,7 @@ var init_char3 = __esm({
|
|
41553
41527
|
return this.length === void 0 ? `char` : `char(${this.length})`;
|
41554
41528
|
}
|
41555
41529
|
};
|
41556
|
-
__publicField(SingleStoreChar,
|
41530
|
+
__publicField(SingleStoreChar, _a342, "SingleStoreChar");
|
41557
41531
|
}
|
41558
41532
|
});
|
41559
41533
|
|
@@ -41564,14 +41538,14 @@ function customType4(customTypeParams) {
|
|
41564
41538
|
return new SingleStoreCustomColumnBuilder(name2, config, customTypeParams);
|
41565
41539
|
};
|
41566
41540
|
}
|
41567
|
-
var
|
41541
|
+
var _a343, _b247, SingleStoreCustomColumnBuilder, _a344, _b248, SingleStoreCustomColumn;
|
41568
41542
|
var init_custom4 = __esm({
|
41569
41543
|
"../drizzle-orm/dist/singlestore-core/columns/custom.js"() {
|
41570
41544
|
"use strict";
|
41571
41545
|
init_entity();
|
41572
41546
|
init_utils2();
|
41573
41547
|
init_common5();
|
41574
|
-
SingleStoreCustomColumnBuilder = class extends (
|
41548
|
+
SingleStoreCustomColumnBuilder = class extends (_b247 = SingleStoreColumnBuilder, _a343 = entityKind, _b247) {
|
41575
41549
|
constructor(name2, fieldConfig, customTypeParams) {
|
41576
41550
|
super(name2, "custom", "SingleStoreCustomColumn");
|
41577
41551
|
this.config.fieldConfig = fieldConfig;
|
@@ -41585,8 +41559,8 @@ var init_custom4 = __esm({
|
|
41585
41559
|
);
|
41586
41560
|
}
|
41587
41561
|
};
|
41588
|
-
__publicField(SingleStoreCustomColumnBuilder,
|
41589
|
-
SingleStoreCustomColumn = class extends (
|
41562
|
+
__publicField(SingleStoreCustomColumnBuilder, _a343, "SingleStoreCustomColumnBuilder");
|
41563
|
+
SingleStoreCustomColumn = class extends (_b248 = SingleStoreColumn, _a344 = entityKind, _b248) {
|
41590
41564
|
constructor(table5, config) {
|
41591
41565
|
super(table5, config);
|
41592
41566
|
__publicField(this, "sqlName");
|
@@ -41606,7 +41580,7 @@ var init_custom4 = __esm({
|
|
41606
41580
|
return typeof this.mapTo === "function" ? this.mapTo(value) : value;
|
41607
41581
|
}
|
41608
41582
|
};
|
41609
|
-
__publicField(SingleStoreCustomColumn,
|
41583
|
+
__publicField(SingleStoreCustomColumn, _a344, "SingleStoreCustomColumn");
|
41610
41584
|
}
|
41611
41585
|
});
|
41612
41586
|
|
@@ -41618,14 +41592,14 @@ function date3(a, b) {
|
|
41618
41592
|
}
|
41619
41593
|
return new SingleStoreDateBuilder(name2);
|
41620
41594
|
}
|
41621
|
-
var
|
41595
|
+
var _a345, _b249, SingleStoreDateBuilder, _a346, _b250, SingleStoreDate, _a347, _b251, SingleStoreDateStringBuilder, _a348, _b252, SingleStoreDateString;
|
41622
41596
|
var init_date3 = __esm({
|
41623
41597
|
"../drizzle-orm/dist/singlestore-core/columns/date.js"() {
|
41624
41598
|
"use strict";
|
41625
41599
|
init_entity();
|
41626
41600
|
init_utils2();
|
41627
41601
|
init_common5();
|
41628
|
-
SingleStoreDateBuilder = class extends (
|
41602
|
+
SingleStoreDateBuilder = class extends (_b249 = SingleStoreColumnBuilder, _a345 = entityKind, _b249) {
|
41629
41603
|
constructor(name2) {
|
41630
41604
|
super(name2, "date", "SingleStoreDate");
|
41631
41605
|
}
|
@@ -41637,8 +41611,8 @@ var init_date3 = __esm({
|
|
41637
41611
|
);
|
41638
41612
|
}
|
41639
41613
|
};
|
41640
|
-
__publicField(SingleStoreDateBuilder,
|
41641
|
-
SingleStoreDate = class extends (
|
41614
|
+
__publicField(SingleStoreDateBuilder, _a345, "SingleStoreDateBuilder");
|
41615
|
+
SingleStoreDate = class extends (_b250 = SingleStoreColumn, _a346 = entityKind, _b250) {
|
41642
41616
|
constructor(table5, config) {
|
41643
41617
|
super(table5, config);
|
41644
41618
|
}
|
@@ -41649,8 +41623,8 @@ var init_date3 = __esm({
|
|
41649
41623
|
return new Date(value);
|
41650
41624
|
}
|
41651
41625
|
};
|
41652
|
-
__publicField(SingleStoreDate,
|
41653
|
-
SingleStoreDateStringBuilder = class extends (
|
41626
|
+
__publicField(SingleStoreDate, _a346, "SingleStoreDate");
|
41627
|
+
SingleStoreDateStringBuilder = class extends (_b251 = SingleStoreColumnBuilder, _a347 = entityKind, _b251) {
|
41654
41628
|
constructor(name2) {
|
41655
41629
|
super(name2, "string", "SingleStoreDateString");
|
41656
41630
|
}
|
@@ -41662,8 +41636,8 @@ var init_date3 = __esm({
|
|
41662
41636
|
);
|
41663
41637
|
}
|
41664
41638
|
};
|
41665
|
-
__publicField(SingleStoreDateStringBuilder,
|
41666
|
-
SingleStoreDateString = class extends (
|
41639
|
+
__publicField(SingleStoreDateStringBuilder, _a347, "SingleStoreDateStringBuilder");
|
41640
|
+
SingleStoreDateString = class extends (_b252 = SingleStoreColumn, _a348 = entityKind, _b252) {
|
41667
41641
|
constructor(table5, config) {
|
41668
41642
|
super(table5, config);
|
41669
41643
|
}
|
@@ -41671,7 +41645,7 @@ var init_date3 = __esm({
|
|
41671
41645
|
return `date`;
|
41672
41646
|
}
|
41673
41647
|
};
|
41674
|
-
__publicField(SingleStoreDateString,
|
41648
|
+
__publicField(SingleStoreDateString, _a348, "SingleStoreDateString");
|
41675
41649
|
}
|
41676
41650
|
});
|
41677
41651
|
|
@@ -41683,14 +41657,14 @@ function datetime2(a, b) {
|
|
41683
41657
|
}
|
41684
41658
|
return new SingleStoreDateTimeBuilder(name2);
|
41685
41659
|
}
|
41686
|
-
var
|
41660
|
+
var _a349, _b253, SingleStoreDateTimeBuilder, _a350, _b254, SingleStoreDateTime, _a351, _b255, SingleStoreDateTimeStringBuilder, _a352, _b256, SingleStoreDateTimeString;
|
41687
41661
|
var init_datetime2 = __esm({
|
41688
41662
|
"../drizzle-orm/dist/singlestore-core/columns/datetime.js"() {
|
41689
41663
|
"use strict";
|
41690
41664
|
init_entity();
|
41691
41665
|
init_utils2();
|
41692
41666
|
init_common5();
|
41693
|
-
SingleStoreDateTimeBuilder = class extends (
|
41667
|
+
SingleStoreDateTimeBuilder = class extends (_b253 = SingleStoreColumnBuilder, _a349 = entityKind, _b253) {
|
41694
41668
|
/** @internal */
|
41695
41669
|
// TODO: we need to add a proper support for SingleStore
|
41696
41670
|
generatedAlwaysAs(_as, _config) {
|
@@ -41707,8 +41681,8 @@ var init_datetime2 = __esm({
|
|
41707
41681
|
);
|
41708
41682
|
}
|
41709
41683
|
};
|
41710
|
-
__publicField(SingleStoreDateTimeBuilder,
|
41711
|
-
SingleStoreDateTime = class extends (
|
41684
|
+
__publicField(SingleStoreDateTimeBuilder, _a349, "SingleStoreDateTimeBuilder");
|
41685
|
+
SingleStoreDateTime = class extends (_b254 = SingleStoreColumn, _a350 = entityKind, _b254) {
|
41712
41686
|
constructor(table5, config) {
|
41713
41687
|
super(table5, config);
|
41714
41688
|
}
|
@@ -41722,8 +41696,8 @@ var init_datetime2 = __esm({
|
|
41722
41696
|
return /* @__PURE__ */ new Date(value.replace(" ", "T") + "Z");
|
41723
41697
|
}
|
41724
41698
|
};
|
41725
|
-
__publicField(SingleStoreDateTime,
|
41726
|
-
SingleStoreDateTimeStringBuilder = class extends (
|
41699
|
+
__publicField(SingleStoreDateTime, _a350, "SingleStoreDateTime");
|
41700
|
+
SingleStoreDateTimeStringBuilder = class extends (_b255 = SingleStoreColumnBuilder, _a351 = entityKind, _b255) {
|
41727
41701
|
/** @internal */
|
41728
41702
|
// TODO: we need to add a proper support for SingleStore
|
41729
41703
|
generatedAlwaysAs(_as, _config) {
|
@@ -41740,8 +41714,8 @@ var init_datetime2 = __esm({
|
|
41740
41714
|
);
|
41741
41715
|
}
|
41742
41716
|
};
|
41743
|
-
__publicField(SingleStoreDateTimeStringBuilder,
|
41744
|
-
SingleStoreDateTimeString = class extends (
|
41717
|
+
__publicField(SingleStoreDateTimeStringBuilder, _a351, "SingleStoreDateTimeStringBuilder");
|
41718
|
+
SingleStoreDateTimeString = class extends (_b256 = SingleStoreColumn, _a352 = entityKind, _b256) {
|
41745
41719
|
constructor(table5, config) {
|
41746
41720
|
super(table5, config);
|
41747
41721
|
}
|
@@ -41749,7 +41723,7 @@ var init_datetime2 = __esm({
|
|
41749
41723
|
return `datetime`;
|
41750
41724
|
}
|
41751
41725
|
};
|
41752
|
-
__publicField(SingleStoreDateTimeString,
|
41726
|
+
__publicField(SingleStoreDateTimeString, _a352, "SingleStoreDateTimeString");
|
41753
41727
|
}
|
41754
41728
|
});
|
41755
41729
|
|
@@ -41761,14 +41735,14 @@ function decimal2(a, b = {}) {
|
|
41761
41735
|
);
|
41762
41736
|
return new SingleStoreDecimalBuilder(name2, config);
|
41763
41737
|
}
|
41764
|
-
var
|
41738
|
+
var _a353, _b257, SingleStoreDecimalBuilder, _a354, _b258, SingleStoreDecimal;
|
41765
41739
|
var init_decimal2 = __esm({
|
41766
41740
|
"../drizzle-orm/dist/singlestore-core/columns/decimal.js"() {
|
41767
41741
|
"use strict";
|
41768
41742
|
init_entity();
|
41769
41743
|
init_utils2();
|
41770
41744
|
init_common5();
|
41771
|
-
SingleStoreDecimalBuilder = class extends (
|
41745
|
+
SingleStoreDecimalBuilder = class extends (_b257 = SingleStoreColumnBuilderWithAutoIncrement, _a353 = entityKind, _b257) {
|
41772
41746
|
constructor(name2, config) {
|
41773
41747
|
super(name2, "string", "SingleStoreDecimal");
|
41774
41748
|
this.config.precision = config?.precision;
|
@@ -41783,8 +41757,8 @@ var init_decimal2 = __esm({
|
|
41783
41757
|
);
|
41784
41758
|
}
|
41785
41759
|
};
|
41786
|
-
__publicField(SingleStoreDecimalBuilder,
|
41787
|
-
SingleStoreDecimal = class extends (
|
41760
|
+
__publicField(SingleStoreDecimalBuilder, _a353, "SingleStoreDecimalBuilder");
|
41761
|
+
SingleStoreDecimal = class extends (_b258 = SingleStoreColumnWithAutoIncrement, _a354 = entityKind, _b258) {
|
41788
41762
|
constructor() {
|
41789
41763
|
super(...arguments);
|
41790
41764
|
__publicField(this, "precision", this.config.precision);
|
@@ -41804,7 +41778,7 @@ var init_decimal2 = __esm({
|
|
41804
41778
|
return this.unsigned ? `${type} unsigned` : type;
|
41805
41779
|
}
|
41806
41780
|
};
|
41807
|
-
__publicField(SingleStoreDecimal,
|
41781
|
+
__publicField(SingleStoreDecimal, _a354, "SingleStoreDecimal");
|
41808
41782
|
}
|
41809
41783
|
});
|
41810
41784
|
|
@@ -41813,14 +41787,14 @@ function double2(a, b) {
|
|
41813
41787
|
const { name: name2, config } = getColumnNameAndConfig(a, b);
|
41814
41788
|
return new SingleStoreDoubleBuilder(name2, config);
|
41815
41789
|
}
|
41816
|
-
var
|
41790
|
+
var _a355, _b259, SingleStoreDoubleBuilder, _a356, _b260, SingleStoreDouble;
|
41817
41791
|
var init_double2 = __esm({
|
41818
41792
|
"../drizzle-orm/dist/singlestore-core/columns/double.js"() {
|
41819
41793
|
"use strict";
|
41820
41794
|
init_entity();
|
41821
41795
|
init_utils2();
|
41822
41796
|
init_common5();
|
41823
|
-
SingleStoreDoubleBuilder = class extends (
|
41797
|
+
SingleStoreDoubleBuilder = class extends (_b259 = SingleStoreColumnBuilderWithAutoIncrement, _a355 = entityKind, _b259) {
|
41824
41798
|
constructor(name2, config) {
|
41825
41799
|
super(name2, "number", "SingleStoreDouble");
|
41826
41800
|
this.config.precision = config?.precision;
|
@@ -41835,8 +41809,8 @@ var init_double2 = __esm({
|
|
41835
41809
|
);
|
41836
41810
|
}
|
41837
41811
|
};
|
41838
|
-
__publicField(SingleStoreDoubleBuilder,
|
41839
|
-
SingleStoreDouble = class extends (
|
41812
|
+
__publicField(SingleStoreDoubleBuilder, _a355, "SingleStoreDoubleBuilder");
|
41813
|
+
SingleStoreDouble = class extends (_b260 = SingleStoreColumnWithAutoIncrement, _a356 = entityKind, _b260) {
|
41840
41814
|
constructor() {
|
41841
41815
|
super(...arguments);
|
41842
41816
|
__publicField(this, "precision", this.config.precision);
|
@@ -41855,7 +41829,7 @@ var init_double2 = __esm({
|
|
41855
41829
|
return this.unsigned ? `${type} unsigned` : type;
|
41856
41830
|
}
|
41857
41831
|
};
|
41858
|
-
__publicField(SingleStoreDouble,
|
41832
|
+
__publicField(SingleStoreDouble, _a356, "SingleStoreDouble");
|
41859
41833
|
}
|
41860
41834
|
});
|
41861
41835
|
|
@@ -41867,14 +41841,14 @@ function singlestoreEnum(a, b) {
|
|
41867
41841
|
}
|
41868
41842
|
return new SingleStoreEnumColumnBuilder(name2, values);
|
41869
41843
|
}
|
41870
|
-
var
|
41844
|
+
var _a357, _b261, SingleStoreEnumColumnBuilder, _a358, _b262, SingleStoreEnumColumn;
|
41871
41845
|
var init_enum3 = __esm({
|
41872
41846
|
"../drizzle-orm/dist/singlestore-core/columns/enum.js"() {
|
41873
41847
|
"use strict";
|
41874
41848
|
init_entity();
|
41875
41849
|
init_utils2();
|
41876
41850
|
init_common5();
|
41877
|
-
SingleStoreEnumColumnBuilder = class extends (
|
41851
|
+
SingleStoreEnumColumnBuilder = class extends (_b261 = SingleStoreColumnBuilder, _a357 = entityKind, _b261) {
|
41878
41852
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
41879
41853
|
generatedAlwaysAs(as, config) {
|
41880
41854
|
throw new Error("Method not implemented.");
|
@@ -41891,8 +41865,8 @@ var init_enum3 = __esm({
|
|
41891
41865
|
);
|
41892
41866
|
}
|
41893
41867
|
};
|
41894
|
-
__publicField(SingleStoreEnumColumnBuilder,
|
41895
|
-
SingleStoreEnumColumn = class extends (
|
41868
|
+
__publicField(SingleStoreEnumColumnBuilder, _a357, "SingleStoreEnumColumnBuilder");
|
41869
|
+
SingleStoreEnumColumn = class extends (_b262 = SingleStoreColumn, _a358 = entityKind, _b262) {
|
41896
41870
|
constructor() {
|
41897
41871
|
super(...arguments);
|
41898
41872
|
__publicField(this, "enumValues", this.config.enumValues);
|
@@ -41901,7 +41875,7 @@ var init_enum3 = __esm({
|
|
41901
41875
|
return `enum(${this.enumValues.map((value) => `'${value}'`).join(",")})`;
|
41902
41876
|
}
|
41903
41877
|
};
|
41904
|
-
__publicField(SingleStoreEnumColumn,
|
41878
|
+
__publicField(SingleStoreEnumColumn, _a358, "SingleStoreEnumColumn");
|
41905
41879
|
}
|
41906
41880
|
});
|
41907
41881
|
|
@@ -41910,14 +41884,14 @@ function float2(a, b) {
|
|
41910
41884
|
const { name: name2, config } = getColumnNameAndConfig(a, b);
|
41911
41885
|
return new SingleStoreFloatBuilder(name2, config);
|
41912
41886
|
}
|
41913
|
-
var
|
41887
|
+
var _a359, _b263, SingleStoreFloatBuilder, _a360, _b264, SingleStoreFloat;
|
41914
41888
|
var init_float2 = __esm({
|
41915
41889
|
"../drizzle-orm/dist/singlestore-core/columns/float.js"() {
|
41916
41890
|
"use strict";
|
41917
41891
|
init_entity();
|
41918
41892
|
init_utils2();
|
41919
41893
|
init_common5();
|
41920
|
-
SingleStoreFloatBuilder = class extends (
|
41894
|
+
SingleStoreFloatBuilder = class extends (_b263 = SingleStoreColumnBuilderWithAutoIncrement, _a359 = entityKind, _b263) {
|
41921
41895
|
constructor(name2, config) {
|
41922
41896
|
super(name2, "number", "SingleStoreFloat");
|
41923
41897
|
this.config.precision = config?.precision;
|
@@ -41932,8 +41906,8 @@ var init_float2 = __esm({
|
|
41932
41906
|
);
|
41933
41907
|
}
|
41934
41908
|
};
|
41935
|
-
__publicField(SingleStoreFloatBuilder,
|
41936
|
-
SingleStoreFloat = class extends (
|
41909
|
+
__publicField(SingleStoreFloatBuilder, _a359, "SingleStoreFloatBuilder");
|
41910
|
+
SingleStoreFloat = class extends (_b264 = SingleStoreColumnWithAutoIncrement, _a360 = entityKind, _b264) {
|
41937
41911
|
constructor() {
|
41938
41912
|
super(...arguments);
|
41939
41913
|
__publicField(this, "precision", this.config.precision);
|
@@ -41952,7 +41926,7 @@ var init_float2 = __esm({
|
|
41952
41926
|
return this.unsigned ? `${type} unsigned` : type;
|
41953
41927
|
}
|
41954
41928
|
};
|
41955
|
-
__publicField(SingleStoreFloat,
|
41929
|
+
__publicField(SingleStoreFloat, _a360, "SingleStoreFloat");
|
41956
41930
|
}
|
41957
41931
|
});
|
41958
41932
|
|
@@ -41961,14 +41935,14 @@ function int2(a, b) {
|
|
41961
41935
|
const { name: name2, config } = getColumnNameAndConfig(a, b);
|
41962
41936
|
return new SingleStoreIntBuilder(name2, config);
|
41963
41937
|
}
|
41964
|
-
var
|
41938
|
+
var _a361, _b265, SingleStoreIntBuilder, _a362, _b266, SingleStoreInt;
|
41965
41939
|
var init_int2 = __esm({
|
41966
41940
|
"../drizzle-orm/dist/singlestore-core/columns/int.js"() {
|
41967
41941
|
"use strict";
|
41968
41942
|
init_entity();
|
41969
41943
|
init_utils2();
|
41970
41944
|
init_common5();
|
41971
|
-
SingleStoreIntBuilder = class extends (
|
41945
|
+
SingleStoreIntBuilder = class extends (_b265 = SingleStoreColumnBuilderWithAutoIncrement, _a361 = entityKind, _b265) {
|
41972
41946
|
constructor(name2, config) {
|
41973
41947
|
super(name2, "number", "SingleStoreInt");
|
41974
41948
|
this.config.unsigned = config ? config.unsigned : false;
|
@@ -41981,8 +41955,8 @@ var init_int2 = __esm({
|
|
41981
41955
|
);
|
41982
41956
|
}
|
41983
41957
|
};
|
41984
|
-
__publicField(SingleStoreIntBuilder,
|
41985
|
-
SingleStoreInt = class extends (
|
41958
|
+
__publicField(SingleStoreIntBuilder, _a361, "SingleStoreIntBuilder");
|
41959
|
+
SingleStoreInt = class extends (_b266 = SingleStoreColumnWithAutoIncrement, _a362 = entityKind, _b266) {
|
41986
41960
|
getSQLType() {
|
41987
41961
|
return `int${this.config.unsigned ? " unsigned" : ""}`;
|
41988
41962
|
}
|
@@ -41993,7 +41967,7 @@ var init_int2 = __esm({
|
|
41993
41967
|
return value;
|
41994
41968
|
}
|
41995
41969
|
};
|
41996
|
-
__publicField(SingleStoreInt,
|
41970
|
+
__publicField(SingleStoreInt, _a362, "SingleStoreInt");
|
41997
41971
|
}
|
41998
41972
|
});
|
41999
41973
|
|
@@ -42001,13 +41975,13 @@ var init_int2 = __esm({
|
|
42001
41975
|
function json3(name2) {
|
42002
41976
|
return new SingleStoreJsonBuilder(name2 ?? "");
|
42003
41977
|
}
|
42004
|
-
var
|
41978
|
+
var _a363, _b267, SingleStoreJsonBuilder, _a364, _b268, SingleStoreJson;
|
42005
41979
|
var init_json3 = __esm({
|
42006
41980
|
"../drizzle-orm/dist/singlestore-core/columns/json.js"() {
|
42007
41981
|
"use strict";
|
42008
41982
|
init_entity();
|
42009
41983
|
init_common5();
|
42010
|
-
SingleStoreJsonBuilder = class extends (
|
41984
|
+
SingleStoreJsonBuilder = class extends (_b267 = SingleStoreColumnBuilder, _a363 = entityKind, _b267) {
|
42011
41985
|
constructor(name2) {
|
42012
41986
|
super(name2, "json", "SingleStoreJson");
|
42013
41987
|
}
|
@@ -42019,8 +41993,8 @@ var init_json3 = __esm({
|
|
42019
41993
|
);
|
42020
41994
|
}
|
42021
41995
|
};
|
42022
|
-
__publicField(SingleStoreJsonBuilder,
|
42023
|
-
SingleStoreJson = class extends (
|
41996
|
+
__publicField(SingleStoreJsonBuilder, _a363, "SingleStoreJsonBuilder");
|
41997
|
+
SingleStoreJson = class extends (_b268 = SingleStoreColumn, _a364 = entityKind, _b268) {
|
42024
41998
|
getSQLType() {
|
42025
41999
|
return "json";
|
42026
42000
|
}
|
@@ -42028,7 +42002,7 @@ var init_json3 = __esm({
|
|
42028
42002
|
return JSON.stringify(value);
|
42029
42003
|
}
|
42030
42004
|
};
|
42031
|
-
__publicField(SingleStoreJson,
|
42005
|
+
__publicField(SingleStoreJson, _a364, "SingleStoreJson");
|
42032
42006
|
}
|
42033
42007
|
});
|
42034
42008
|
|
@@ -42037,14 +42011,14 @@ function mediumint2(a, b) {
|
|
42037
42011
|
const { name: name2, config } = getColumnNameAndConfig(a, b);
|
42038
42012
|
return new SingleStoreMediumIntBuilder(name2, config);
|
42039
42013
|
}
|
42040
|
-
var
|
42014
|
+
var _a365, _b269, SingleStoreMediumIntBuilder, _a366, _b270, SingleStoreMediumInt;
|
42041
42015
|
var init_mediumint2 = __esm({
|
42042
42016
|
"../drizzle-orm/dist/singlestore-core/columns/mediumint.js"() {
|
42043
42017
|
"use strict";
|
42044
42018
|
init_entity();
|
42045
42019
|
init_utils2();
|
42046
42020
|
init_common5();
|
42047
|
-
SingleStoreMediumIntBuilder = class extends (
|
42021
|
+
SingleStoreMediumIntBuilder = class extends (_b269 = SingleStoreColumnBuilderWithAutoIncrement, _a365 = entityKind, _b269) {
|
42048
42022
|
constructor(name2, config) {
|
42049
42023
|
super(name2, "number", "SingleStoreMediumInt");
|
42050
42024
|
this.config.unsigned = config ? config.unsigned : false;
|
@@ -42057,8 +42031,8 @@ var init_mediumint2 = __esm({
|
|
42057
42031
|
);
|
42058
42032
|
}
|
42059
42033
|
};
|
42060
|
-
__publicField(SingleStoreMediumIntBuilder,
|
42061
|
-
SingleStoreMediumInt = class extends (
|
42034
|
+
__publicField(SingleStoreMediumIntBuilder, _a365, "SingleStoreMediumIntBuilder");
|
42035
|
+
SingleStoreMediumInt = class extends (_b270 = SingleStoreColumnWithAutoIncrement, _a366 = entityKind, _b270) {
|
42062
42036
|
getSQLType() {
|
42063
42037
|
return `mediumint${this.config.unsigned ? " unsigned" : ""}`;
|
42064
42038
|
}
|
@@ -42069,7 +42043,7 @@ var init_mediumint2 = __esm({
|
|
42069
42043
|
return value;
|
42070
42044
|
}
|
42071
42045
|
};
|
42072
|
-
__publicField(SingleStoreMediumInt,
|
42046
|
+
__publicField(SingleStoreMediumInt, _a366, "SingleStoreMediumInt");
|
42073
42047
|
}
|
42074
42048
|
});
|
42075
42049
|
|
@@ -42078,14 +42052,14 @@ function real4(a, b = {}) {
|
|
42078
42052
|
const { name: name2, config } = getColumnNameAndConfig(a, b);
|
42079
42053
|
return new SingleStoreRealBuilder(name2, config);
|
42080
42054
|
}
|
42081
|
-
var
|
42055
|
+
var _a367, _b271, SingleStoreRealBuilder, _a368, _b272, SingleStoreReal;
|
42082
42056
|
var init_real4 = __esm({
|
42083
42057
|
"../drizzle-orm/dist/singlestore-core/columns/real.js"() {
|
42084
42058
|
"use strict";
|
42085
42059
|
init_entity();
|
42086
42060
|
init_utils2();
|
42087
42061
|
init_common5();
|
42088
|
-
SingleStoreRealBuilder = class extends (
|
42062
|
+
SingleStoreRealBuilder = class extends (_b271 = SingleStoreColumnBuilderWithAutoIncrement, _a367 = entityKind, _b271) {
|
42089
42063
|
constructor(name2, config) {
|
42090
42064
|
super(name2, "number", "SingleStoreReal");
|
42091
42065
|
this.config.precision = config?.precision;
|
@@ -42099,8 +42073,8 @@ var init_real4 = __esm({
|
|
42099
42073
|
);
|
42100
42074
|
}
|
42101
42075
|
};
|
42102
|
-
__publicField(SingleStoreRealBuilder,
|
42103
|
-
SingleStoreReal = class extends (
|
42076
|
+
__publicField(SingleStoreRealBuilder, _a367, "SingleStoreRealBuilder");
|
42077
|
+
SingleStoreReal = class extends (_b272 = SingleStoreColumnWithAutoIncrement, _a368 = entityKind, _b272) {
|
42104
42078
|
constructor() {
|
42105
42079
|
super(...arguments);
|
42106
42080
|
__publicField(this, "precision", this.config.precision);
|
@@ -42116,7 +42090,7 @@ var init_real4 = __esm({
|
|
42116
42090
|
}
|
42117
42091
|
}
|
42118
42092
|
};
|
42119
|
-
__publicField(SingleStoreReal,
|
42093
|
+
__publicField(SingleStoreReal, _a368, "SingleStoreReal");
|
42120
42094
|
}
|
42121
42095
|
});
|
42122
42096
|
|
@@ -42124,13 +42098,13 @@ var init_real4 = __esm({
|
|
42124
42098
|
function serial3(name2) {
|
42125
42099
|
return new SingleStoreSerialBuilder(name2 ?? "");
|
42126
42100
|
}
|
42127
|
-
var
|
42101
|
+
var _a369, _b273, SingleStoreSerialBuilder, _a370, _b274, SingleStoreSerial;
|
42128
42102
|
var init_serial3 = __esm({
|
42129
42103
|
"../drizzle-orm/dist/singlestore-core/columns/serial.js"() {
|
42130
42104
|
"use strict";
|
42131
42105
|
init_entity();
|
42132
42106
|
init_common5();
|
42133
|
-
SingleStoreSerialBuilder = class extends (
|
42107
|
+
SingleStoreSerialBuilder = class extends (_b273 = SingleStoreColumnBuilderWithAutoIncrement, _a369 = entityKind, _b273) {
|
42134
42108
|
constructor(name2) {
|
42135
42109
|
super(name2, "number", "SingleStoreSerial");
|
42136
42110
|
this.config.hasDefault = true;
|
@@ -42144,8 +42118,8 @@ var init_serial3 = __esm({
|
|
42144
42118
|
);
|
42145
42119
|
}
|
42146
42120
|
};
|
42147
|
-
__publicField(SingleStoreSerialBuilder,
|
42148
|
-
SingleStoreSerial = class extends (
|
42121
|
+
__publicField(SingleStoreSerialBuilder, _a369, "SingleStoreSerialBuilder");
|
42122
|
+
SingleStoreSerial = class extends (_b274 = SingleStoreColumnWithAutoIncrement, _a370 = entityKind, _b274) {
|
42149
42123
|
getSQLType() {
|
42150
42124
|
return "serial";
|
42151
42125
|
}
|
@@ -42156,7 +42130,7 @@ var init_serial3 = __esm({
|
|
42156
42130
|
return value;
|
42157
42131
|
}
|
42158
42132
|
};
|
42159
|
-
__publicField(SingleStoreSerial,
|
42133
|
+
__publicField(SingleStoreSerial, _a370, "SingleStoreSerial");
|
42160
42134
|
}
|
42161
42135
|
});
|
42162
42136
|
|
@@ -42165,14 +42139,14 @@ function smallint3(a, b) {
|
|
42165
42139
|
const { name: name2, config } = getColumnNameAndConfig(a, b);
|
42166
42140
|
return new SingleStoreSmallIntBuilder(name2, config);
|
42167
42141
|
}
|
42168
|
-
var
|
42142
|
+
var _a371, _b275, SingleStoreSmallIntBuilder, _a372, _b276, SingleStoreSmallInt;
|
42169
42143
|
var init_smallint3 = __esm({
|
42170
42144
|
"../drizzle-orm/dist/singlestore-core/columns/smallint.js"() {
|
42171
42145
|
"use strict";
|
42172
42146
|
init_entity();
|
42173
42147
|
init_utils2();
|
42174
42148
|
init_common5();
|
42175
|
-
SingleStoreSmallIntBuilder = class extends (
|
42149
|
+
SingleStoreSmallIntBuilder = class extends (_b275 = SingleStoreColumnBuilderWithAutoIncrement, _a371 = entityKind, _b275) {
|
42176
42150
|
constructor(name2, config) {
|
42177
42151
|
super(name2, "number", "SingleStoreSmallInt");
|
42178
42152
|
this.config.unsigned = config ? config.unsigned : false;
|
@@ -42185,8 +42159,8 @@ var init_smallint3 = __esm({
|
|
42185
42159
|
);
|
42186
42160
|
}
|
42187
42161
|
};
|
42188
|
-
__publicField(SingleStoreSmallIntBuilder,
|
42189
|
-
SingleStoreSmallInt = class extends (
|
42162
|
+
__publicField(SingleStoreSmallIntBuilder, _a371, "SingleStoreSmallIntBuilder");
|
42163
|
+
SingleStoreSmallInt = class extends (_b276 = SingleStoreColumnWithAutoIncrement, _a372 = entityKind, _b276) {
|
42190
42164
|
getSQLType() {
|
42191
42165
|
return `smallint${this.config.unsigned ? " unsigned" : ""}`;
|
42192
42166
|
}
|
@@ -42197,7 +42171,7 @@ var init_smallint3 = __esm({
|
|
42197
42171
|
return value;
|
42198
42172
|
}
|
42199
42173
|
};
|
42200
|
-
__publicField(SingleStoreSmallInt,
|
42174
|
+
__publicField(SingleStoreSmallInt, _a372, "SingleStoreSmallInt");
|
42201
42175
|
}
|
42202
42176
|
});
|
42203
42177
|
|
@@ -42218,14 +42192,14 @@ function longtext2(a, b = {}) {
|
|
42218
42192
|
const { name: name2, config } = getColumnNameAndConfig(a, b);
|
42219
42193
|
return new SingleStoreTextBuilder(name2, "longtext", config);
|
42220
42194
|
}
|
42221
|
-
var
|
42195
|
+
var _a373, _b277, SingleStoreTextBuilder, _a374, _b278, SingleStoreText;
|
42222
42196
|
var init_text4 = __esm({
|
42223
42197
|
"../drizzle-orm/dist/singlestore-core/columns/text.js"() {
|
42224
42198
|
"use strict";
|
42225
42199
|
init_entity();
|
42226
42200
|
init_utils2();
|
42227
42201
|
init_common5();
|
42228
|
-
SingleStoreTextBuilder = class extends (
|
42202
|
+
SingleStoreTextBuilder = class extends (_b277 = SingleStoreColumnBuilder, _a373 = entityKind, _b277) {
|
42229
42203
|
constructor(name2, textType, config) {
|
42230
42204
|
super(name2, "string", "SingleStoreText");
|
42231
42205
|
this.config.textType = textType;
|
@@ -42239,8 +42213,8 @@ var init_text4 = __esm({
|
|
42239
42213
|
);
|
42240
42214
|
}
|
42241
42215
|
};
|
42242
|
-
__publicField(SingleStoreTextBuilder,
|
42243
|
-
SingleStoreText = class extends (
|
42216
|
+
__publicField(SingleStoreTextBuilder, _a373, "SingleStoreTextBuilder");
|
42217
|
+
SingleStoreText = class extends (_b278 = SingleStoreColumn, _a374 = entityKind, _b278) {
|
42244
42218
|
constructor() {
|
42245
42219
|
super(...arguments);
|
42246
42220
|
__publicField(this, "textType", this.config.textType);
|
@@ -42250,7 +42224,7 @@ var init_text4 = __esm({
|
|
42250
42224
|
return this.textType;
|
42251
42225
|
}
|
42252
42226
|
};
|
42253
|
-
__publicField(SingleStoreText,
|
42227
|
+
__publicField(SingleStoreText, _a374, "SingleStoreText");
|
42254
42228
|
}
|
42255
42229
|
});
|
42256
42230
|
|
@@ -42258,13 +42232,13 @@ var init_text4 = __esm({
|
|
42258
42232
|
function time3(name2) {
|
42259
42233
|
return new SingleStoreTimeBuilder(name2 ?? "");
|
42260
42234
|
}
|
42261
|
-
var
|
42235
|
+
var _a375, _b279, SingleStoreTimeBuilder, _a376, _b280, SingleStoreTime;
|
42262
42236
|
var init_time3 = __esm({
|
42263
42237
|
"../drizzle-orm/dist/singlestore-core/columns/time.js"() {
|
42264
42238
|
"use strict";
|
42265
42239
|
init_entity();
|
42266
42240
|
init_common5();
|
42267
|
-
SingleStoreTimeBuilder = class extends (
|
42241
|
+
SingleStoreTimeBuilder = class extends (_b279 = SingleStoreColumnBuilder, _a375 = entityKind, _b279) {
|
42268
42242
|
constructor(name2) {
|
42269
42243
|
super(name2, "string", "SingleStoreTime");
|
42270
42244
|
}
|
@@ -42276,25 +42250,25 @@ var init_time3 = __esm({
|
|
42276
42250
|
);
|
42277
42251
|
}
|
42278
42252
|
};
|
42279
|
-
__publicField(SingleStoreTimeBuilder,
|
42280
|
-
SingleStoreTime = class extends (
|
42253
|
+
__publicField(SingleStoreTimeBuilder, _a375, "SingleStoreTimeBuilder");
|
42254
|
+
SingleStoreTime = class extends (_b280 = SingleStoreColumn, _a376 = entityKind, _b280) {
|
42281
42255
|
getSQLType() {
|
42282
42256
|
return `time`;
|
42283
42257
|
}
|
42284
42258
|
};
|
42285
|
-
__publicField(SingleStoreTime,
|
42259
|
+
__publicField(SingleStoreTime, _a376, "SingleStoreTime");
|
42286
42260
|
}
|
42287
42261
|
});
|
42288
42262
|
|
42289
42263
|
// ../drizzle-orm/dist/singlestore-core/columns/date.common.js
|
42290
|
-
var
|
42264
|
+
var _a377, _b281, SingleStoreDateColumnBaseBuilder, _a378, _b282, SingleStoreDateBaseColumn;
|
42291
42265
|
var init_date_common3 = __esm({
|
42292
42266
|
"../drizzle-orm/dist/singlestore-core/columns/date.common.js"() {
|
42293
42267
|
"use strict";
|
42294
42268
|
init_entity();
|
42295
42269
|
init_sql();
|
42296
42270
|
init_common5();
|
42297
|
-
SingleStoreDateColumnBaseBuilder = class extends (
|
42271
|
+
SingleStoreDateColumnBaseBuilder = class extends (_b281 = SingleStoreColumnBuilder, _a377 = entityKind, _b281) {
|
42298
42272
|
defaultNow() {
|
42299
42273
|
return this.default(sql`now()`);
|
42300
42274
|
}
|
@@ -42304,14 +42278,14 @@ var init_date_common3 = __esm({
|
|
42304
42278
|
return this;
|
42305
42279
|
}
|
42306
42280
|
};
|
42307
|
-
__publicField(SingleStoreDateColumnBaseBuilder,
|
42308
|
-
SingleStoreDateBaseColumn = class extends (
|
42281
|
+
__publicField(SingleStoreDateColumnBaseBuilder, _a377, "SingleStoreDateColumnBuilder");
|
42282
|
+
SingleStoreDateBaseColumn = class extends (_b282 = SingleStoreColumn, _a378 = entityKind, _b282) {
|
42309
42283
|
constructor() {
|
42310
42284
|
super(...arguments);
|
42311
42285
|
__publicField(this, "hasOnUpdateNow", this.config.hasOnUpdateNow);
|
42312
42286
|
}
|
42313
42287
|
};
|
42314
|
-
__publicField(SingleStoreDateBaseColumn,
|
42288
|
+
__publicField(SingleStoreDateBaseColumn, _a378, "SingleStoreDateColumn");
|
42315
42289
|
}
|
42316
42290
|
});
|
42317
42291
|
|
@@ -42323,7 +42297,7 @@ function timestamp3(a, b = {}) {
|
|
42323
42297
|
}
|
42324
42298
|
return new SingleStoreTimestampBuilder(name2);
|
42325
42299
|
}
|
42326
|
-
var
|
42300
|
+
var _a379, _b283, SingleStoreTimestampBuilder, _a380, _b284, SingleStoreTimestamp, _a381, _b285, SingleStoreTimestampStringBuilder, _a382, _b286, SingleStoreTimestampString;
|
42327
42301
|
var init_timestamp3 = __esm({
|
42328
42302
|
"../drizzle-orm/dist/singlestore-core/columns/timestamp.js"() {
|
42329
42303
|
"use strict";
|
@@ -42331,7 +42305,7 @@ var init_timestamp3 = __esm({
|
|
42331
42305
|
init_sql();
|
42332
42306
|
init_utils2();
|
42333
42307
|
init_date_common3();
|
42334
|
-
SingleStoreTimestampBuilder = class extends (
|
42308
|
+
SingleStoreTimestampBuilder = class extends (_b283 = SingleStoreDateColumnBaseBuilder, _a379 = entityKind, _b283) {
|
42335
42309
|
constructor(name2) {
|
42336
42310
|
super(name2, "date", "SingleStoreTimestamp");
|
42337
42311
|
}
|
@@ -42346,8 +42320,8 @@ var init_timestamp3 = __esm({
|
|
42346
42320
|
return this.default(sql`CURRENT_TIMESTAMP`);
|
42347
42321
|
}
|
42348
42322
|
};
|
42349
|
-
__publicField(SingleStoreTimestampBuilder,
|
42350
|
-
SingleStoreTimestamp = class extends (
|
42323
|
+
__publicField(SingleStoreTimestampBuilder, _a379, "SingleStoreTimestampBuilder");
|
42324
|
+
SingleStoreTimestamp = class extends (_b284 = SingleStoreDateBaseColumn, _a380 = entityKind, _b284) {
|
42351
42325
|
getSQLType() {
|
42352
42326
|
return `timestamp`;
|
42353
42327
|
}
|
@@ -42358,8 +42332,8 @@ var init_timestamp3 = __esm({
|
|
42358
42332
|
return value.toISOString().slice(0, -1).replace("T", " ");
|
42359
42333
|
}
|
42360
42334
|
};
|
42361
|
-
__publicField(SingleStoreTimestamp,
|
42362
|
-
SingleStoreTimestampStringBuilder = class extends (
|
42335
|
+
__publicField(SingleStoreTimestamp, _a380, "SingleStoreTimestamp");
|
42336
|
+
SingleStoreTimestampStringBuilder = class extends (_b285 = SingleStoreDateColumnBaseBuilder, _a381 = entityKind, _b285) {
|
42363
42337
|
constructor(name2) {
|
42364
42338
|
super(name2, "string", "SingleStoreTimestampString");
|
42365
42339
|
}
|
@@ -42374,13 +42348,13 @@ var init_timestamp3 = __esm({
|
|
42374
42348
|
return this.default(sql`CURRENT_TIMESTAMP`);
|
42375
42349
|
}
|
42376
42350
|
};
|
42377
|
-
__publicField(SingleStoreTimestampStringBuilder,
|
42378
|
-
SingleStoreTimestampString = class extends (
|
42351
|
+
__publicField(SingleStoreTimestampStringBuilder, _a381, "SingleStoreTimestampStringBuilder");
|
42352
|
+
SingleStoreTimestampString = class extends (_b286 = SingleStoreDateBaseColumn, _a382 = entityKind, _b286) {
|
42379
42353
|
getSQLType() {
|
42380
42354
|
return `timestamp`;
|
42381
42355
|
}
|
42382
42356
|
};
|
42383
|
-
__publicField(SingleStoreTimestampString,
|
42357
|
+
__publicField(SingleStoreTimestampString, _a382, "SingleStoreTimestampString");
|
42384
42358
|
}
|
42385
42359
|
});
|
42386
42360
|
|
@@ -42389,14 +42363,14 @@ function tinyint2(a, b) {
|
|
42389
42363
|
const { name: name2, config } = getColumnNameAndConfig(a, b);
|
42390
42364
|
return new SingleStoreTinyIntBuilder(name2, config);
|
42391
42365
|
}
|
42392
|
-
var
|
42366
|
+
var _a383, _b287, SingleStoreTinyIntBuilder, _a384, _b288, SingleStoreTinyInt;
|
42393
42367
|
var init_tinyint2 = __esm({
|
42394
42368
|
"../drizzle-orm/dist/singlestore-core/columns/tinyint.js"() {
|
42395
42369
|
"use strict";
|
42396
42370
|
init_entity();
|
42397
42371
|
init_utils2();
|
42398
42372
|
init_common5();
|
42399
|
-
SingleStoreTinyIntBuilder = class extends (
|
42373
|
+
SingleStoreTinyIntBuilder = class extends (_b287 = SingleStoreColumnBuilderWithAutoIncrement, _a383 = entityKind, _b287) {
|
42400
42374
|
constructor(name2, config) {
|
42401
42375
|
super(name2, "number", "SingleStoreTinyInt");
|
42402
42376
|
this.config.unsigned = config ? config.unsigned : false;
|
@@ -42409,8 +42383,8 @@ var init_tinyint2 = __esm({
|
|
42409
42383
|
);
|
42410
42384
|
}
|
42411
42385
|
};
|
42412
|
-
__publicField(SingleStoreTinyIntBuilder,
|
42413
|
-
SingleStoreTinyInt = class extends (
|
42386
|
+
__publicField(SingleStoreTinyIntBuilder, _a383, "SingleStoreTinyIntBuilder");
|
42387
|
+
SingleStoreTinyInt = class extends (_b288 = SingleStoreColumnWithAutoIncrement, _a384 = entityKind, _b288) {
|
42414
42388
|
getSQLType() {
|
42415
42389
|
return `tinyint${this.config.unsigned ? " unsigned" : ""}`;
|
42416
42390
|
}
|
@@ -42421,7 +42395,7 @@ var init_tinyint2 = __esm({
|
|
42421
42395
|
return value;
|
42422
42396
|
}
|
42423
42397
|
};
|
42424
|
-
__publicField(SingleStoreTinyInt,
|
42398
|
+
__publicField(SingleStoreTinyInt, _a384, "SingleStoreTinyInt");
|
42425
42399
|
}
|
42426
42400
|
});
|
42427
42401
|
|
@@ -42430,14 +42404,14 @@ function varbinary2(a, b) {
|
|
42430
42404
|
const { name: name2, config } = getColumnNameAndConfig(a, b);
|
42431
42405
|
return new SingleStoreVarBinaryBuilder(name2, config);
|
42432
42406
|
}
|
42433
|
-
var
|
42407
|
+
var _a385, _b289, SingleStoreVarBinaryBuilder, _a386, _b290, SingleStoreVarBinary;
|
42434
42408
|
var init_varbinary2 = __esm({
|
42435
42409
|
"../drizzle-orm/dist/singlestore-core/columns/varbinary.js"() {
|
42436
42410
|
"use strict";
|
42437
42411
|
init_entity();
|
42438
42412
|
init_utils2();
|
42439
42413
|
init_common5();
|
42440
|
-
SingleStoreVarBinaryBuilder = class extends (
|
42414
|
+
SingleStoreVarBinaryBuilder = class extends (_b289 = SingleStoreColumnBuilder, _a385 = entityKind, _b289) {
|
42441
42415
|
/** @internal */
|
42442
42416
|
constructor(name2, config) {
|
42443
42417
|
super(name2, "string", "SingleStoreVarBinary");
|
@@ -42451,8 +42425,8 @@ var init_varbinary2 = __esm({
|
|
42451
42425
|
);
|
42452
42426
|
}
|
42453
42427
|
};
|
42454
|
-
__publicField(SingleStoreVarBinaryBuilder,
|
42455
|
-
SingleStoreVarBinary = class extends (
|
42428
|
+
__publicField(SingleStoreVarBinaryBuilder, _a385, "SingleStoreVarBinaryBuilder");
|
42429
|
+
SingleStoreVarBinary = class extends (_b290 = SingleStoreColumn, _a386 = entityKind, _b290) {
|
42456
42430
|
constructor() {
|
42457
42431
|
super(...arguments);
|
42458
42432
|
__publicField(this, "length", this.config.length);
|
@@ -42461,7 +42435,7 @@ var init_varbinary2 = __esm({
|
|
42461
42435
|
return this.length === void 0 ? `varbinary` : `varbinary(${this.length})`;
|
42462
42436
|
}
|
42463
42437
|
};
|
42464
|
-
__publicField(SingleStoreVarBinary,
|
42438
|
+
__publicField(SingleStoreVarBinary, _a386, "SingleStoreVarBinary");
|
42465
42439
|
}
|
42466
42440
|
});
|
42467
42441
|
|
@@ -42470,14 +42444,14 @@ function varchar3(a, b) {
|
|
42470
42444
|
const { name: name2, config } = getColumnNameAndConfig(a, b);
|
42471
42445
|
return new SingleStoreVarCharBuilder(name2, config);
|
42472
42446
|
}
|
42473
|
-
var
|
42447
|
+
var _a387, _b291, SingleStoreVarCharBuilder, _a388, _b292, SingleStoreVarChar;
|
42474
42448
|
var init_varchar3 = __esm({
|
42475
42449
|
"../drizzle-orm/dist/singlestore-core/columns/varchar.js"() {
|
42476
42450
|
"use strict";
|
42477
42451
|
init_entity();
|
42478
42452
|
init_utils2();
|
42479
42453
|
init_common5();
|
42480
|
-
SingleStoreVarCharBuilder = class extends (
|
42454
|
+
SingleStoreVarCharBuilder = class extends (_b291 = SingleStoreColumnBuilder, _a387 = entityKind, _b291) {
|
42481
42455
|
/** @internal */
|
42482
42456
|
constructor(name2, config) {
|
42483
42457
|
super(name2, "string", "SingleStoreVarChar");
|
@@ -42492,8 +42466,8 @@ var init_varchar3 = __esm({
|
|
42492
42466
|
);
|
42493
42467
|
}
|
42494
42468
|
};
|
42495
|
-
__publicField(SingleStoreVarCharBuilder,
|
42496
|
-
SingleStoreVarChar = class extends (
|
42469
|
+
__publicField(SingleStoreVarCharBuilder, _a387, "SingleStoreVarCharBuilder");
|
42470
|
+
SingleStoreVarChar = class extends (_b292 = SingleStoreColumn, _a388 = entityKind, _b292) {
|
42497
42471
|
constructor() {
|
42498
42472
|
super(...arguments);
|
42499
42473
|
__publicField(this, "length", this.config.length);
|
@@ -42503,7 +42477,7 @@ var init_varchar3 = __esm({
|
|
42503
42477
|
return this.length === void 0 ? `varchar` : `varchar(${this.length})`;
|
42504
42478
|
}
|
42505
42479
|
};
|
42506
|
-
__publicField(SingleStoreVarChar,
|
42480
|
+
__publicField(SingleStoreVarChar, _a388, "SingleStoreVarChar");
|
42507
42481
|
}
|
42508
42482
|
});
|
42509
42483
|
|
@@ -42512,14 +42486,14 @@ function vector2(a, b) {
|
|
42512
42486
|
const { name: name2, config } = getColumnNameAndConfig(a, b);
|
42513
42487
|
return new SingleStoreVectorBuilder(name2, config);
|
42514
42488
|
}
|
42515
|
-
var
|
42489
|
+
var _a389, _b293, SingleStoreVectorBuilder, _a390, _b294, SingleStoreVector;
|
42516
42490
|
var init_vector4 = __esm({
|
42517
42491
|
"../drizzle-orm/dist/singlestore-core/columns/vector.js"() {
|
42518
42492
|
"use strict";
|
42519
42493
|
init_entity();
|
42520
42494
|
init_utils2();
|
42521
42495
|
init_common5();
|
42522
|
-
SingleStoreVectorBuilder = class extends (
|
42496
|
+
SingleStoreVectorBuilder = class extends (_b293 = SingleStoreColumnBuilder, _a389 = entityKind, _b293) {
|
42523
42497
|
constructor(name2, config) {
|
42524
42498
|
super(name2, "array", "SingleStoreVector");
|
42525
42499
|
this.config.dimensions = config.dimensions;
|
@@ -42537,8 +42511,8 @@ var init_vector4 = __esm({
|
|
42537
42511
|
throw new Error("not implemented");
|
42538
42512
|
}
|
42539
42513
|
};
|
42540
|
-
__publicField(SingleStoreVectorBuilder,
|
42541
|
-
SingleStoreVector = class extends (
|
42514
|
+
__publicField(SingleStoreVectorBuilder, _a389, "SingleStoreVectorBuilder");
|
42515
|
+
SingleStoreVector = class extends (_b294 = SingleStoreColumn, _a390 = entityKind, _b294) {
|
42542
42516
|
constructor() {
|
42543
42517
|
super(...arguments);
|
42544
42518
|
__publicField(this, "dimensions", this.config.dimensions);
|
@@ -42554,7 +42528,7 @@ var init_vector4 = __esm({
|
|
42554
42528
|
return JSON.parse(value);
|
42555
42529
|
}
|
42556
42530
|
};
|
42557
|
-
__publicField(SingleStoreVector,
|
42531
|
+
__publicField(SingleStoreVector, _a390, "SingleStoreVector");
|
42558
42532
|
}
|
42559
42533
|
});
|
42560
42534
|
|
@@ -42562,13 +42536,13 @@ var init_vector4 = __esm({
|
|
42562
42536
|
function year2(name2) {
|
42563
42537
|
return new SingleStoreYearBuilder(name2 ?? "");
|
42564
42538
|
}
|
42565
|
-
var
|
42539
|
+
var _a391, _b295, SingleStoreYearBuilder, _a392, _b296, SingleStoreYear;
|
42566
42540
|
var init_year2 = __esm({
|
42567
42541
|
"../drizzle-orm/dist/singlestore-core/columns/year.js"() {
|
42568
42542
|
"use strict";
|
42569
42543
|
init_entity();
|
42570
42544
|
init_common5();
|
42571
|
-
SingleStoreYearBuilder = class extends (
|
42545
|
+
SingleStoreYearBuilder = class extends (_b295 = SingleStoreColumnBuilder, _a391 = entityKind, _b295) {
|
42572
42546
|
constructor(name2) {
|
42573
42547
|
super(name2, "number", "SingleStoreYear");
|
42574
42548
|
}
|
@@ -42580,13 +42554,13 @@ var init_year2 = __esm({
|
|
42580
42554
|
);
|
42581
42555
|
}
|
42582
42556
|
};
|
42583
|
-
__publicField(SingleStoreYearBuilder,
|
42584
|
-
SingleStoreYear = class extends (
|
42557
|
+
__publicField(SingleStoreYearBuilder, _a391, "SingleStoreYearBuilder");
|
42558
|
+
SingleStoreYear = class extends (_b296 = SingleStoreColumn, _a392 = entityKind, _b296) {
|
42585
42559
|
getSQLType() {
|
42586
42560
|
return `year`;
|
42587
42561
|
}
|
42588
42562
|
};
|
42589
|
-
__publicField(SingleStoreYear,
|
42563
|
+
__publicField(SingleStoreYear, _a392, "SingleStoreYear");
|
42590
42564
|
}
|
42591
42565
|
});
|
42592
42566
|
|
@@ -42624,17 +42598,17 @@ var init_columns4 = __esm({
|
|
42624
42598
|
});
|
42625
42599
|
|
42626
42600
|
// ../drizzle-orm/dist/singlestore-core/query-builders/count.js
|
42627
|
-
var
|
42601
|
+
var _a393, _b297, _c12, _SingleStoreCountBuilder, SingleStoreCountBuilder;
|
42628
42602
|
var init_count4 = __esm({
|
42629
42603
|
"../drizzle-orm/dist/singlestore-core/query-builders/count.js"() {
|
42630
42604
|
"use strict";
|
42631
42605
|
init_entity();
|
42632
42606
|
init_sql();
|
42633
|
-
_SingleStoreCountBuilder = class _SingleStoreCountBuilder extends (_c12 = SQL,
|
42607
|
+
_SingleStoreCountBuilder = class _SingleStoreCountBuilder extends (_c12 = SQL, _b297 = entityKind, _a393 = Symbol.toStringTag, _c12) {
|
42634
42608
|
constructor(params) {
|
42635
42609
|
super(_SingleStoreCountBuilder.buildEmbeddedCount(params.source, params.filters).queryChunks);
|
42636
42610
|
__publicField(this, "sql");
|
42637
|
-
__publicField(this,
|
42611
|
+
__publicField(this, _a393, "SingleStoreCountBuilder");
|
42638
42612
|
__publicField(this, "session");
|
42639
42613
|
this.params = params;
|
42640
42614
|
this.mapWith(Number);
|
@@ -42672,13 +42646,13 @@ var init_count4 = __esm({
|
|
42672
42646
|
);
|
42673
42647
|
}
|
42674
42648
|
};
|
42675
|
-
__publicField(_SingleStoreCountBuilder,
|
42649
|
+
__publicField(_SingleStoreCountBuilder, _b297, "SingleStoreCountBuilder");
|
42676
42650
|
SingleStoreCountBuilder = _SingleStoreCountBuilder;
|
42677
42651
|
}
|
42678
42652
|
});
|
42679
42653
|
|
42680
42654
|
// ../drizzle-orm/dist/singlestore-core/query-builders/delete.js
|
42681
|
-
var
|
42655
|
+
var _a394, _b298, SingleStoreDeleteBase;
|
42682
42656
|
var init_delete4 = __esm({
|
42683
42657
|
"../drizzle-orm/dist/singlestore-core/query-builders/delete.js"() {
|
42684
42658
|
"use strict";
|
@@ -42686,7 +42660,7 @@ var init_delete4 = __esm({
|
|
42686
42660
|
init_query_promise();
|
42687
42661
|
init_selection_proxy();
|
42688
42662
|
init_table();
|
42689
|
-
SingleStoreDeleteBase = class extends (
|
42663
|
+
SingleStoreDeleteBase = class extends (_b298 = QueryPromise, _a394 = entityKind, _b298) {
|
42690
42664
|
constructor(table5, session, dialect6, withList) {
|
42691
42665
|
super();
|
42692
42666
|
__publicField(this, "config");
|
@@ -42776,12 +42750,12 @@ var init_delete4 = __esm({
|
|
42776
42750
|
return this;
|
42777
42751
|
}
|
42778
42752
|
};
|
42779
|
-
__publicField(SingleStoreDeleteBase,
|
42753
|
+
__publicField(SingleStoreDeleteBase, _a394, "SingleStoreDelete");
|
42780
42754
|
}
|
42781
42755
|
});
|
42782
42756
|
|
42783
42757
|
// ../drizzle-orm/dist/singlestore-core/query-builders/insert.js
|
42784
|
-
var
|
42758
|
+
var _a395, SingleStoreInsertBuilder, _a396, _b299, SingleStoreInsertBase;
|
42785
42759
|
var init_insert4 = __esm({
|
42786
42760
|
"../drizzle-orm/dist/singlestore-core/query-builders/insert.js"() {
|
42787
42761
|
"use strict";
|
@@ -42790,7 +42764,7 @@ var init_insert4 = __esm({
|
|
42790
42764
|
init_sql();
|
42791
42765
|
init_table();
|
42792
42766
|
init_utils2();
|
42793
|
-
|
42767
|
+
_a395 = entityKind;
|
42794
42768
|
SingleStoreInsertBuilder = class {
|
42795
42769
|
constructor(table5, session, dialect6) {
|
42796
42770
|
__publicField(this, "shouldIgnore", false);
|
@@ -42819,8 +42793,8 @@ var init_insert4 = __esm({
|
|
42819
42793
|
return new SingleStoreInsertBase(this.table, mappedValues, this.shouldIgnore, this.session, this.dialect);
|
42820
42794
|
}
|
42821
42795
|
};
|
42822
|
-
__publicField(SingleStoreInsertBuilder,
|
42823
|
-
SingleStoreInsertBase = class extends (
|
42796
|
+
__publicField(SingleStoreInsertBuilder, _a395, "SingleStoreInsertBuilder");
|
42797
|
+
SingleStoreInsertBase = class extends (_b299 = QueryPromise, _a396 = entityKind, _b299) {
|
42824
42798
|
constructor(table5, values, ignore, session, dialect6) {
|
42825
42799
|
super();
|
42826
42800
|
__publicField(this, "config");
|
@@ -42901,7 +42875,7 @@ var init_insert4 = __esm({
|
|
42901
42875
|
return this;
|
42902
42876
|
}
|
42903
42877
|
};
|
42904
|
-
__publicField(SingleStoreInsertBase,
|
42878
|
+
__publicField(SingleStoreInsertBase, _a396, "SingleStoreInsert");
|
42905
42879
|
}
|
42906
42880
|
});
|
42907
42881
|
|
@@ -42989,20 +42963,20 @@ function singlestoreTableWithSchema(name2, columns, extraConfig, schema5, baseNa
|
|
42989
42963
|
}
|
42990
42964
|
return table5;
|
42991
42965
|
}
|
42992
|
-
var
|
42966
|
+
var _a397, _b300, _c13, _d5, SingleStoreTable;
|
42993
42967
|
var init_table5 = __esm({
|
42994
42968
|
"../drizzle-orm/dist/singlestore-core/table.js"() {
|
42995
42969
|
"use strict";
|
42996
42970
|
init_entity();
|
42997
42971
|
init_table();
|
42998
42972
|
init_all4();
|
42999
|
-
SingleStoreTable = class extends (_d5 = Table2, _c13 = entityKind,
|
42973
|
+
SingleStoreTable = class extends (_d5 = Table2, _c13 = entityKind, _b300 = Table2.Symbol.Columns, _a397 = Table2.Symbol.ExtraConfigBuilder, _d5) {
|
43000
42974
|
constructor() {
|
43001
42975
|
super(...arguments);
|
43002
42976
|
/** @internal */
|
43003
|
-
__publicField(this,
|
42977
|
+
__publicField(this, _b300);
|
43004
42978
|
/** @internal */
|
43005
|
-
__publicField(this,
|
42979
|
+
__publicField(this, _a397);
|
43006
42980
|
}
|
43007
42981
|
};
|
43008
42982
|
__publicField(SingleStoreTable, _c13, "SingleStoreTable");
|
@@ -43012,7 +42986,7 @@ var init_table5 = __esm({
|
|
43012
42986
|
});
|
43013
42987
|
|
43014
42988
|
// ../drizzle-orm/dist/singlestore-core/dialect.js
|
43015
|
-
var
|
42989
|
+
var _a398, SingleStoreDialect;
|
43016
42990
|
var init_dialect4 = __esm({
|
43017
42991
|
"../drizzle-orm/dist/singlestore-core/dialect.js"() {
|
43018
42992
|
"use strict";
|
@@ -43030,7 +43004,7 @@ var init_dialect4 = __esm({
|
|
43030
43004
|
init_view_common();
|
43031
43005
|
init_common5();
|
43032
43006
|
init_table5();
|
43033
|
-
|
43007
|
+
_a398 = entityKind;
|
43034
43008
|
SingleStoreDialect = class {
|
43035
43009
|
constructor(config) {
|
43036
43010
|
/** @internal */
|
@@ -43595,7 +43569,7 @@ var init_dialect4 = __esm({
|
|
43595
43569
|
};
|
43596
43570
|
}
|
43597
43571
|
};
|
43598
|
-
__publicField(SingleStoreDialect,
|
43572
|
+
__publicField(SingleStoreDialect, _a398, "SingleStoreDialect");
|
43599
43573
|
}
|
43600
43574
|
});
|
43601
43575
|
|
@@ -43617,7 +43591,7 @@ function createSetOperator4(type, isAll) {
|
|
43617
43591
|
return leftSelect.addSetOperators(setOperators);
|
43618
43592
|
};
|
43619
43593
|
}
|
43620
|
-
var
|
43594
|
+
var _a399, SingleStoreSelectBuilder, _a400, _b301, SingleStoreSelectQueryBuilderBase, _a401, _b302, SingleStoreSelectBase, getSingleStoreSetOperators, union4, unionAll4, intersect4, except4, minus;
|
43621
43595
|
var init_select5 = __esm({
|
43622
43596
|
"../drizzle-orm/dist/singlestore-core/query-builders/select.js"() {
|
43623
43597
|
"use strict";
|
@@ -43629,7 +43603,7 @@ var init_select5 = __esm({
|
|
43629
43603
|
init_subquery();
|
43630
43604
|
init_table();
|
43631
43605
|
init_utils2();
|
43632
|
-
|
43606
|
+
_a399 = entityKind;
|
43633
43607
|
SingleStoreSelectBuilder = class {
|
43634
43608
|
constructor(config) {
|
43635
43609
|
__publicField(this, "fields");
|
@@ -43672,8 +43646,8 @@ var init_select5 = __esm({
|
|
43672
43646
|
);
|
43673
43647
|
}
|
43674
43648
|
};
|
43675
|
-
__publicField(SingleStoreSelectBuilder,
|
43676
|
-
SingleStoreSelectQueryBuilderBase = class extends (
|
43649
|
+
__publicField(SingleStoreSelectBuilder, _a399, "SingleStoreSelectBuilder");
|
43650
|
+
SingleStoreSelectQueryBuilderBase = class extends (_b301 = TypedQueryBuilder, _a400 = entityKind, _b301) {
|
43677
43651
|
constructor({ table: table5, fields, isPartialSelect, session, dialect: dialect6, withList, distinct }) {
|
43678
43652
|
super();
|
43679
43653
|
__publicField(this, "_");
|
@@ -44214,8 +44188,8 @@ var init_select5 = __esm({
|
|
44214
44188
|
return this;
|
44215
44189
|
}
|
44216
44190
|
};
|
44217
|
-
__publicField(SingleStoreSelectQueryBuilderBase,
|
44218
|
-
SingleStoreSelectBase = class extends (
|
44191
|
+
__publicField(SingleStoreSelectQueryBuilderBase, _a400, "SingleStoreSelectQueryBuilder");
|
44192
|
+
SingleStoreSelectBase = class extends (_b302 = SingleStoreSelectQueryBuilderBase, _a401 = entityKind, _b302) {
|
44219
44193
|
constructor() {
|
44220
44194
|
super(...arguments);
|
44221
44195
|
__publicField(this, "execute", (placeholderValues) => {
|
@@ -44239,7 +44213,7 @@ var init_select5 = __esm({
|
|
44239
44213
|
return query;
|
44240
44214
|
}
|
44241
44215
|
};
|
44242
|
-
__publicField(SingleStoreSelectBase,
|
44216
|
+
__publicField(SingleStoreSelectBase, _a401, "SingleStoreSelect");
|
44243
44217
|
applyMixins(SingleStoreSelectBase, [QueryPromise]);
|
44244
44218
|
getSingleStoreSetOperators = () => ({
|
44245
44219
|
union: union4,
|
@@ -44257,7 +44231,7 @@ var init_select5 = __esm({
|
|
44257
44231
|
});
|
44258
44232
|
|
44259
44233
|
// ../drizzle-orm/dist/singlestore-core/query-builders/query-builder.js
|
44260
|
-
var
|
44234
|
+
var _a402, QueryBuilder4;
|
44261
44235
|
var init_query_builder5 = __esm({
|
44262
44236
|
"../drizzle-orm/dist/singlestore-core/query-builders/query-builder.js"() {
|
44263
44237
|
"use strict";
|
@@ -44266,7 +44240,7 @@ var init_query_builder5 = __esm({
|
|
44266
44240
|
init_dialect4();
|
44267
44241
|
init_subquery();
|
44268
44242
|
init_select5();
|
44269
|
-
|
44243
|
+
_a402 = entityKind;
|
44270
44244
|
QueryBuilder4 = class {
|
44271
44245
|
constructor(dialect6) {
|
44272
44246
|
__publicField(this, "dialect");
|
@@ -44336,7 +44310,7 @@ var init_query_builder5 = __esm({
|
|
44336
44310
|
return this.dialect;
|
44337
44311
|
}
|
44338
44312
|
};
|
44339
|
-
__publicField(QueryBuilder4,
|
44313
|
+
__publicField(QueryBuilder4, _a402, "SingleStoreQueryBuilder");
|
44340
44314
|
}
|
44341
44315
|
});
|
44342
44316
|
|
@@ -44348,7 +44322,7 @@ var init_select_types4 = __esm({
|
|
44348
44322
|
});
|
44349
44323
|
|
44350
44324
|
// ../drizzle-orm/dist/singlestore-core/query-builders/update.js
|
44351
|
-
var
|
44325
|
+
var _a403, SingleStoreUpdateBuilder, _a404, _b303, SingleStoreUpdateBase;
|
44352
44326
|
var init_update4 = __esm({
|
44353
44327
|
"../drizzle-orm/dist/singlestore-core/query-builders/update.js"() {
|
44354
44328
|
"use strict";
|
@@ -44357,7 +44331,7 @@ var init_update4 = __esm({
|
|
44357
44331
|
init_selection_proxy();
|
44358
44332
|
init_table();
|
44359
44333
|
init_utils2();
|
44360
|
-
|
44334
|
+
_a403 = entityKind;
|
44361
44335
|
SingleStoreUpdateBuilder = class {
|
44362
44336
|
constructor(table5, session, dialect6, withList) {
|
44363
44337
|
this.table = table5;
|
@@ -44375,8 +44349,8 @@ var init_update4 = __esm({
|
|
44375
44349
|
);
|
44376
44350
|
}
|
44377
44351
|
};
|
44378
|
-
__publicField(SingleStoreUpdateBuilder,
|
44379
|
-
SingleStoreUpdateBase = class extends (
|
44352
|
+
__publicField(SingleStoreUpdateBuilder, _a403, "SingleStoreUpdateBuilder");
|
44353
|
+
SingleStoreUpdateBase = class extends (_b303 = QueryPromise, _a404 = entityKind, _b303) {
|
44380
44354
|
constructor(table5, set, session, dialect6, withList) {
|
44381
44355
|
super();
|
44382
44356
|
__publicField(this, "config");
|
@@ -44469,7 +44443,7 @@ var init_update4 = __esm({
|
|
44469
44443
|
return this;
|
44470
44444
|
}
|
44471
44445
|
};
|
44472
|
-
__publicField(SingleStoreUpdateBase,
|
44446
|
+
__publicField(SingleStoreUpdateBase, _a404, "SingleStoreUpdate");
|
44473
44447
|
}
|
44474
44448
|
});
|
44475
44449
|
|
@@ -44487,7 +44461,7 @@ var init_query_builders4 = __esm({
|
|
44487
44461
|
});
|
44488
44462
|
|
44489
44463
|
// ../drizzle-orm/dist/singlestore-core/db.js
|
44490
|
-
var
|
44464
|
+
var _a405, SingleStoreDatabase;
|
44491
44465
|
var init_db4 = __esm({
|
44492
44466
|
"../drizzle-orm/dist/singlestore-core/db.js"() {
|
44493
44467
|
"use strict";
|
@@ -44497,7 +44471,7 @@ var init_db4 = __esm({
|
|
44497
44471
|
init_subquery();
|
44498
44472
|
init_count4();
|
44499
44473
|
init_query_builders4();
|
44500
|
-
|
44474
|
+
_a405 = entityKind;
|
44501
44475
|
SingleStoreDatabase = class {
|
44502
44476
|
constructor(dialect6, session, schema5) {
|
44503
44477
|
// We are waiting for SingleStore support for `json_array` function
|
@@ -44701,17 +44675,17 @@ var init_db4 = __esm({
|
|
44701
44675
|
return this.session.transaction(transaction, config);
|
44702
44676
|
}
|
44703
44677
|
};
|
44704
|
-
__publicField(SingleStoreDatabase,
|
44678
|
+
__publicField(SingleStoreDatabase, _a405, "SingleStoreDatabase");
|
44705
44679
|
}
|
44706
44680
|
});
|
44707
44681
|
|
44708
44682
|
// ../drizzle-orm/dist/singlestore-core/indexes.js
|
44709
|
-
var
|
44683
|
+
var _a406, IndexBuilderOn4, _a407, IndexBuilder4, _a408, Index6;
|
44710
44684
|
var init_indexes4 = __esm({
|
44711
44685
|
"../drizzle-orm/dist/singlestore-core/indexes.js"() {
|
44712
44686
|
"use strict";
|
44713
44687
|
init_entity();
|
44714
|
-
|
44688
|
+
_a406 = entityKind;
|
44715
44689
|
IndexBuilderOn4 = class {
|
44716
44690
|
constructor(name2, unique) {
|
44717
44691
|
this.name = name2;
|
@@ -44721,8 +44695,8 @@ var init_indexes4 = __esm({
|
|
44721
44695
|
return new IndexBuilder4(this.name, columns, this.unique);
|
44722
44696
|
}
|
44723
44697
|
};
|
44724
|
-
__publicField(IndexBuilderOn4,
|
44725
|
-
|
44698
|
+
__publicField(IndexBuilderOn4, _a406, "SingleStoreIndexBuilderOn");
|
44699
|
+
_a407 = entityKind;
|
44726
44700
|
IndexBuilder4 = class {
|
44727
44701
|
constructor(name2, columns, unique) {
|
44728
44702
|
/** @internal */
|
@@ -44750,26 +44724,26 @@ var init_indexes4 = __esm({
|
|
44750
44724
|
return new Index6(this.config, table5);
|
44751
44725
|
}
|
44752
44726
|
};
|
44753
|
-
__publicField(IndexBuilder4,
|
44754
|
-
|
44727
|
+
__publicField(IndexBuilder4, _a407, "SingleStoreIndexBuilder");
|
44728
|
+
_a408 = entityKind;
|
44755
44729
|
Index6 = class {
|
44756
44730
|
constructor(config, table5) {
|
44757
44731
|
__publicField(this, "config");
|
44758
44732
|
this.config = { ...config, table: table5 };
|
44759
44733
|
}
|
44760
44734
|
};
|
44761
|
-
__publicField(Index6,
|
44735
|
+
__publicField(Index6, _a408, "SingleStoreIndex");
|
44762
44736
|
}
|
44763
44737
|
});
|
44764
44738
|
|
44765
44739
|
// ../drizzle-orm/dist/singlestore-core/primary-keys.js
|
44766
|
-
var
|
44740
|
+
var _a409, PrimaryKeyBuilder4, _a410, PrimaryKey4;
|
44767
44741
|
var init_primary_keys4 = __esm({
|
44768
44742
|
"../drizzle-orm/dist/singlestore-core/primary-keys.js"() {
|
44769
44743
|
"use strict";
|
44770
44744
|
init_entity();
|
44771
44745
|
init_table5();
|
44772
|
-
|
44746
|
+
_a409 = entityKind;
|
44773
44747
|
PrimaryKeyBuilder4 = class {
|
44774
44748
|
constructor(columns, name2) {
|
44775
44749
|
/** @internal */
|
@@ -44784,8 +44758,8 @@ var init_primary_keys4 = __esm({
|
|
44784
44758
|
return new PrimaryKey4(table5, this.columns, this.name);
|
44785
44759
|
}
|
44786
44760
|
};
|
44787
|
-
__publicField(PrimaryKeyBuilder4,
|
44788
|
-
|
44761
|
+
__publicField(PrimaryKeyBuilder4, _a409, "SingleStorePrimaryKeyBuilder");
|
44762
|
+
_a410 = entityKind;
|
44789
44763
|
PrimaryKey4 = class {
|
44790
44764
|
constructor(table5, columns, name2) {
|
44791
44765
|
__publicField(this, "columns");
|
@@ -44798,18 +44772,18 @@ var init_primary_keys4 = __esm({
|
|
44798
44772
|
return this.name ?? `${this.table[SingleStoreTable.Symbol.Name]}_${this.columns.map((column5) => column5.name).join("_")}_pk`;
|
44799
44773
|
}
|
44800
44774
|
};
|
44801
|
-
__publicField(PrimaryKey4,
|
44775
|
+
__publicField(PrimaryKey4, _a410, "SingleStorePrimaryKey");
|
44802
44776
|
}
|
44803
44777
|
});
|
44804
44778
|
|
44805
44779
|
// ../drizzle-orm/dist/singlestore-core/schema.js
|
44806
|
-
var
|
44780
|
+
var _a411, SingleStoreSchema5;
|
44807
44781
|
var init_schema3 = __esm({
|
44808
44782
|
"../drizzle-orm/dist/singlestore-core/schema.js"() {
|
44809
44783
|
"use strict";
|
44810
44784
|
init_entity();
|
44811
44785
|
init_table5();
|
44812
|
-
|
44786
|
+
_a411 = entityKind;
|
44813
44787
|
SingleStoreSchema5 = class {
|
44814
44788
|
constructor(schemaName) {
|
44815
44789
|
__publicField(this, "table", (name2, columns, extraConfig) => {
|
@@ -44822,12 +44796,12 @@ var init_schema3 = __esm({
|
|
44822
44796
|
return singlestoreViewWithSchema(name, columns, this.schemaName);
|
44823
44797
|
}) as typeof singlestoreView; */
|
44824
44798
|
};
|
44825
|
-
__publicField(SingleStoreSchema5,
|
44799
|
+
__publicField(SingleStoreSchema5, _a411, "SingleStoreSchema");
|
44826
44800
|
}
|
44827
44801
|
});
|
44828
44802
|
|
44829
44803
|
// ../drizzle-orm/dist/singlestore-core/session.js
|
44830
|
-
var
|
44804
|
+
var _a412, SingleStorePreparedQuery, _a413, SingleStoreSession, _a414, _b304, SingleStoreTransaction;
|
44831
44805
|
var init_session4 = __esm({
|
44832
44806
|
"../drizzle-orm/dist/singlestore-core/session.js"() {
|
44833
44807
|
"use strict";
|
@@ -44835,15 +44809,15 @@ var init_session4 = __esm({
|
|
44835
44809
|
init_errors();
|
44836
44810
|
init_sql();
|
44837
44811
|
init_db4();
|
44838
|
-
|
44812
|
+
_a412 = entityKind;
|
44839
44813
|
SingleStorePreparedQuery = class {
|
44840
44814
|
constructor() {
|
44841
44815
|
/** @internal */
|
44842
44816
|
__publicField(this, "joinsNotNullableMap");
|
44843
44817
|
}
|
44844
44818
|
};
|
44845
|
-
__publicField(SingleStorePreparedQuery,
|
44846
|
-
|
44819
|
+
__publicField(SingleStorePreparedQuery, _a412, "SingleStorePreparedQuery");
|
44820
|
+
_a413 = entityKind;
|
44847
44821
|
SingleStoreSession = class {
|
44848
44822
|
constructor(dialect6) {
|
44849
44823
|
this.dialect = dialect6;
|
@@ -44878,8 +44852,8 @@ var init_session4 = __esm({
|
|
44878
44852
|
return parts.length ? sql`start transaction ${sql.raw(parts.join(" "))}` : void 0;
|
44879
44853
|
}
|
44880
44854
|
};
|
44881
|
-
__publicField(SingleStoreSession,
|
44882
|
-
SingleStoreTransaction = class extends (
|
44855
|
+
__publicField(SingleStoreSession, _a413, "SingleStoreSession");
|
44856
|
+
SingleStoreTransaction = class extends (_b304 = SingleStoreDatabase, _a414 = entityKind, _b304) {
|
44883
44857
|
constructor(dialect6, session, schema5, nestedIndex) {
|
44884
44858
|
super(dialect6, session, schema5);
|
44885
44859
|
this.schema = schema5;
|
@@ -44889,7 +44863,7 @@ var init_session4 = __esm({
|
|
44889
44863
|
throw new TransactionRollbackError();
|
44890
44864
|
}
|
44891
44865
|
};
|
44892
|
-
__publicField(SingleStoreTransaction,
|
44866
|
+
__publicField(SingleStoreTransaction, _a414, "SingleStoreTransaction");
|
44893
44867
|
}
|
44894
44868
|
});
|
44895
44869
|
|