drizzle-kit 0.30.4-4647df7 → 0.30.4-610a691

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