drizzle-kit 0.29.0-3f3eb73 → 0.29.1

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 +31 -42
  2. package/api.mjs +31 -42
  3. package/bin.cjs +2 -2
  4. package/package.json +1 -1
package/api.js CHANGED
@@ -5695,8 +5695,8 @@ var init_lib = __esm({
5695
5695
  unknownKeys: "strict",
5696
5696
  ...message !== void 0 ? {
5697
5697
  errorMap: (issue, ctx) => {
5698
- var _a413, _b303, _c14, _d6;
5699
- const defaultError = (_c14 = (_b303 = (_a413 = this._def).errorMap) === null || _b303 === void 0 ? void 0 : _b303.call(_a413, issue, ctx).message) !== null && _c14 !== void 0 ? _c14 : ctx.defaultError;
5698
+ var _a413, _b303, _c13, _d6;
5699
+ const defaultError = (_c13 = (_b303 = (_a413 = this._def).errorMap) === null || _b303 === void 0 ? void 0 : _b303.call(_a413, issue, ctx).message) !== null && _c13 !== void 0 ? _c13 : ctx.defaultError;
5700
5700
  if (issue.code === "unrecognized_keys")
5701
5701
  return {
5702
5702
  message: (_d6 = errorUtil.errToObj(message).message) !== null && _d6 !== void 0 ? _d6 : defaultError
@@ -22168,10 +22168,7 @@ function fillPlaceholders(params, values) {
22168
22168
  return p;
22169
22169
  });
22170
22170
  }
22171
- function isView(view4) {
22172
- return typeof view4 === "object" && view4 !== null && IsDrizzleView in view4;
22173
- }
22174
- var _a19, FakePrimitiveParam, _a20, StringChunk, _a21, _SQL, SQL, _a22, Name, noopDecoder, noopEncoder, noopMapper, _a23, Param, _a24, Placeholder, IsDrizzleView, _a25, _b10, _c2, View3;
22171
+ var _a19, FakePrimitiveParam, _a20, StringChunk, _a21, _SQL, SQL, _a22, Name, noopDecoder, noopEncoder, noopMapper, _a23, Param, _a24, Placeholder, _a25, _b10, View3;
22175
22172
  var init_sql = __esm({
22176
22173
  "../drizzle-orm/dist/sql/sql.js"() {
22177
22174
  "use strict";
@@ -22496,14 +22493,11 @@ var init_sql = __esm({
22496
22493
  }
22497
22494
  };
22498
22495
  __publicField(Placeholder, _a24, "Placeholder");
22499
- IsDrizzleView = Symbol.for("drizzle:IsDrizzleView");
22500
- _c2 = entityKind, _b10 = ViewBaseConfig, _a25 = IsDrizzleView;
22496
+ _b10 = entityKind, _a25 = ViewBaseConfig;
22501
22497
  View3 = class {
22502
22498
  constructor({ name: name2, schema: schema5, selectedFields, query }) {
22503
22499
  /** @internal */
22504
- __publicField(this, _b10);
22505
- /** @internal */
22506
- __publicField(this, _a25, true);
22500
+ __publicField(this, _a25);
22507
22501
  this[ViewBaseConfig] = {
22508
22502
  name: name2,
22509
22503
  originalName: name2,
@@ -22518,7 +22512,7 @@ var init_sql = __esm({
22518
22512
  return new SQL([this]);
22519
22513
  }
22520
22514
  };
22521
- __publicField(View3, _c2, "View");
22515
+ __publicField(View3, _b10, "View");
22522
22516
  Column2.prototype.getSQL = function() {
22523
22517
  return new SQL([this]);
22524
22518
  };
@@ -23039,9 +23033,6 @@ function applyMixins(baseClass, extendedClasses) {
23039
23033
  function getTableColumns(table5) {
23040
23034
  return table5[Table2.Symbol.Columns];
23041
23035
  }
23042
- function getViewSelectedFields(view4) {
23043
- return view4[ViewBaseConfig].selectedFields;
23044
- }
23045
23036
  function getTableLikeName(table5) {
23046
23037
  return is(table5, Subquery) ? table5._.alias : is(table5, View3) ? table5[ViewBaseConfig].name : is(table5, SQL) ? void 0 : table5[Table2.Symbol.IsAlias] ? table5[Table2.Symbol.Name] : table5[Table2.Symbol.BaseName];
23047
23038
  }
@@ -24760,7 +24751,7 @@ function pgTableWithSchema(name2, columns, extraConfig, schema5, baseName = name
24760
24751
  }
24761
24752
  });
24762
24753
  }
24763
- var InlineForeignKeys, EnableRLS, _a115, _b94, _c3, _d2, _e2, PgTable, pgTable;
24754
+ var InlineForeignKeys, EnableRLS, _a115, _b94, _c2, _d2, _e2, PgTable, pgTable;
24764
24755
  var init_table2 = __esm({
24765
24756
  "../drizzle-orm/dist/pg-core/table.js"() {
24766
24757
  "use strict";
@@ -24769,11 +24760,11 @@ var init_table2 = __esm({
24769
24760
  init_all();
24770
24761
  InlineForeignKeys = Symbol.for("drizzle:PgInlineForeignKeys");
24771
24762
  EnableRLS = Symbol.for("drizzle:EnableRLS");
24772
- PgTable = class extends (_e2 = Table2, _d2 = entityKind, _c3 = InlineForeignKeys, _b94 = EnableRLS, _a115 = Table2.Symbol.ExtraConfigBuilder, _e2) {
24763
+ PgTable = class extends (_e2 = Table2, _d2 = entityKind, _c2 = InlineForeignKeys, _b94 = EnableRLS, _a115 = Table2.Symbol.ExtraConfigBuilder, _e2) {
24773
24764
  constructor() {
24774
24765
  super(...arguments);
24775
24766
  /**@internal */
24776
- __publicField(this, _c3, []);
24767
+ __publicField(this, _c2, []);
24777
24768
  /** @internal */
24778
24769
  __publicField(this, _b94, false);
24779
24770
  /** @internal */
@@ -25288,7 +25279,6 @@ __export(dist_exports, {
25288
25279
  getTableLikeName: () => getTableLikeName,
25289
25280
  getTableName: () => getTableName,
25290
25281
  getTableUniqueName: () => getTableUniqueName,
25291
- getViewSelectedFields: () => getViewSelectedFields,
25292
25282
  gt: () => gt,
25293
25283
  gte: () => gte,
25294
25284
  hammingDistance: () => hammingDistance,
@@ -25304,7 +25294,6 @@ __export(dist_exports, {
25304
25294
  isNull: () => isNull,
25305
25295
  isSQLWrapper: () => isSQLWrapper,
25306
25296
  isTable: () => isTable,
25307
- isView: () => isView,
25308
25297
  jaccardDistance: () => jaccardDistance,
25309
25298
  l1Distance: () => l1Distance,
25310
25299
  l2Distance: () => l2Distance,
@@ -28154,13 +28143,13 @@ var init_query_builders = __esm({
28154
28143
  });
28155
28144
 
28156
28145
  // ../drizzle-orm/dist/pg-core/query-builders/count.js
28157
- var _a139, _b104, _c4, _PgCountBuilder, PgCountBuilder;
28146
+ var _a139, _b104, _c3, _PgCountBuilder, PgCountBuilder;
28158
28147
  var init_count = __esm({
28159
28148
  "../drizzle-orm/dist/pg-core/query-builders/count.js"() {
28160
28149
  "use strict";
28161
28150
  init_entity();
28162
28151
  init_sql();
28163
- _PgCountBuilder = class _PgCountBuilder extends (_c4 = SQL, _b104 = entityKind, _a139 = Symbol.toStringTag, _c4) {
28152
+ _PgCountBuilder = class _PgCountBuilder extends (_c3 = SQL, _b104 = entityKind, _a139 = Symbol.toStringTag, _c3) {
28164
28153
  constructor(params) {
28165
28154
  super(_PgCountBuilder.buildEmbeddedCount(params.source, params.filters).queryChunks);
28166
28155
  __publicField(this, "sql");
@@ -28899,7 +28888,7 @@ function isPgView(obj) {
28899
28888
  function isPgMaterializedView(obj) {
28900
28889
  return is(obj, PgMaterializedView);
28901
28890
  }
28902
- var _a150, DefaultViewBuilderCore, _a151, _b107, ViewBuilder, _a152, _b108, ManualViewBuilder, _a153, MaterializedViewBuilderCore, _a154, _b109, MaterializedViewBuilder, _a155, _b110, ManualMaterializedViewBuilder, _a156, _b111, _c5, PgView2, PgMaterializedViewConfig, _a157, _b112, _c6, PgMaterializedView;
28891
+ var _a150, DefaultViewBuilderCore, _a151, _b107, ViewBuilder, _a152, _b108, ManualViewBuilder, _a153, MaterializedViewBuilderCore, _a154, _b109, MaterializedViewBuilder, _a155, _b110, ManualMaterializedViewBuilder, _a156, _b111, _c4, PgView2, PgMaterializedViewConfig, _a157, _b112, _c5, PgMaterializedView;
28903
28892
  var init_view = __esm({
28904
28893
  "../drizzle-orm/dist/pg-core/view.js"() {
28905
28894
  "use strict";
@@ -29109,7 +29098,7 @@ var init_view = __esm({
29109
29098
  }
29110
29099
  };
29111
29100
  __publicField(ManualMaterializedViewBuilder, _a155, "PgManualMaterializedViewBuilder");
29112
- PgView2 = class extends (_c5 = PgViewBase, _b111 = entityKind, _a156 = PgViewConfig, _c5) {
29101
+ PgView2 = class extends (_c4 = PgViewBase, _b111 = entityKind, _a156 = PgViewConfig, _c4) {
29113
29102
  constructor({ pgConfig, config }) {
29114
29103
  super(config);
29115
29104
  __publicField(this, _a156);
@@ -29122,7 +29111,7 @@ var init_view = __esm({
29122
29111
  };
29123
29112
  __publicField(PgView2, _b111, "PgView");
29124
29113
  PgMaterializedViewConfig = Symbol.for("drizzle:PgMaterializedViewConfig");
29125
- PgMaterializedView = class extends (_c6 = PgViewBase, _b112 = entityKind, _a157 = PgMaterializedViewConfig, _c6) {
29114
+ PgMaterializedView = class extends (_c5 = PgViewBase, _b112 = entityKind, _a157 = PgMaterializedViewConfig, _c5) {
29126
29115
  constructor({ pgConfig, config }) {
29127
29116
  super(config);
29128
29117
  __publicField(this, _a157);
@@ -31771,7 +31760,7 @@ function sqliteTableBase(name2, columns, extraConfig, schema5, baseName = name2)
31771
31760
  }
31772
31761
  return table5;
31773
31762
  }
31774
- var InlineForeignKeys2, _a195, _b140, _c7, _d3, _e3, SQLiteTable, sqliteTable;
31763
+ var InlineForeignKeys2, _a195, _b140, _c6, _d3, _e3, SQLiteTable, sqliteTable;
31775
31764
  var init_table3 = __esm({
31776
31765
  "../drizzle-orm/dist/sqlite-core/table.js"() {
31777
31766
  "use strict";
@@ -31779,11 +31768,11 @@ var init_table3 = __esm({
31779
31768
  init_table();
31780
31769
  init_all2();
31781
31770
  InlineForeignKeys2 = Symbol.for("drizzle:SQLiteInlineForeignKeys");
31782
- SQLiteTable = class extends (_e3 = Table2, _d3 = entityKind, _c7 = Table2.Symbol.Columns, _b140 = InlineForeignKeys2, _a195 = Table2.Symbol.ExtraConfigBuilder, _e3) {
31771
+ SQLiteTable = class extends (_e3 = Table2, _d3 = entityKind, _c6 = Table2.Symbol.Columns, _b140 = InlineForeignKeys2, _a195 = Table2.Symbol.ExtraConfigBuilder, _e3) {
31783
31772
  constructor() {
31784
31773
  super(...arguments);
31785
31774
  /** @internal */
31786
- __publicField(this, _c7);
31775
+ __publicField(this, _c6);
31787
31776
  /** @internal */
31788
31777
  __publicField(this, _b140, []);
31789
31778
  /** @internal */
@@ -33651,13 +33640,13 @@ var init_query_builders2 = __esm({
33651
33640
  });
33652
33641
 
33653
33642
  // ../drizzle-orm/dist/sqlite-core/query-builders/count.js
33654
- var _a209, _b149, _c8, _SQLiteCountBuilder, SQLiteCountBuilder;
33643
+ var _a209, _b149, _c7, _SQLiteCountBuilder, SQLiteCountBuilder;
33655
33644
  var init_count2 = __esm({
33656
33645
  "../drizzle-orm/dist/sqlite-core/query-builders/count.js"() {
33657
33646
  "use strict";
33658
33647
  init_entity();
33659
33648
  init_sql();
33660
- _SQLiteCountBuilder = class _SQLiteCountBuilder extends (_c8 = SQL, _b149 = entityKind, _a209 = Symbol.toStringTag, _c8) {
33649
+ _SQLiteCountBuilder = class _SQLiteCountBuilder extends (_c7 = SQL, _b149 = entityKind, _a209 = Symbol.toStringTag, _c7) {
33661
33650
  constructor(params) {
33662
33651
  super(_SQLiteCountBuilder.buildEmbeddedCount(params.source, params.filters).queryChunks);
33663
33652
  __publicField(this, "sql");
@@ -36685,13 +36674,13 @@ var init_columns3 = __esm({
36685
36674
  });
36686
36675
 
36687
36676
  // ../drizzle-orm/dist/mysql-core/query-builders/count.js
36688
- var _a297, _b220, _c9, _MySqlCountBuilder, MySqlCountBuilder;
36677
+ var _a297, _b220, _c8, _MySqlCountBuilder, MySqlCountBuilder;
36689
36678
  var init_count3 = __esm({
36690
36679
  "../drizzle-orm/dist/mysql-core/query-builders/count.js"() {
36691
36680
  "use strict";
36692
36681
  init_entity();
36693
36682
  init_sql();
36694
- _MySqlCountBuilder = class _MySqlCountBuilder extends (_c9 = SQL, _b220 = entityKind, _a297 = Symbol.toStringTag, _c9) {
36683
+ _MySqlCountBuilder = class _MySqlCountBuilder extends (_c8 = SQL, _b220 = entityKind, _a297 = Symbol.toStringTag, _c8) {
36695
36684
  constructor(params) {
36696
36685
  super(_MySqlCountBuilder.buildEmbeddedCount(params.source, params.filters).queryChunks);
36697
36686
  __publicField(this, "sql");
@@ -36921,7 +36910,7 @@ function mysqlTableWithSchema(name2, columns, extraConfig, schema5, baseName = n
36921
36910
  }
36922
36911
  return table5;
36923
36912
  }
36924
- var InlineForeignKeys3, _a299, _b222, _c10, _d4, _e4, MySqlTable, mysqlTable;
36913
+ var InlineForeignKeys3, _a299, _b222, _c9, _d4, _e4, MySqlTable, mysqlTable;
36925
36914
  var init_table4 = __esm({
36926
36915
  "../drizzle-orm/dist/mysql-core/table.js"() {
36927
36916
  "use strict";
@@ -36929,11 +36918,11 @@ var init_table4 = __esm({
36929
36918
  init_table();
36930
36919
  init_all3();
36931
36920
  InlineForeignKeys3 = Symbol.for("drizzle:MySqlInlineForeignKeys");
36932
- MySqlTable = class extends (_e4 = Table2, _d4 = entityKind, _c10 = Table2.Symbol.Columns, _b222 = InlineForeignKeys3, _a299 = Table2.Symbol.ExtraConfigBuilder, _e4) {
36921
+ MySqlTable = class extends (_e4 = Table2, _d4 = entityKind, _c9 = Table2.Symbol.Columns, _b222 = InlineForeignKeys3, _a299 = Table2.Symbol.ExtraConfigBuilder, _e4) {
36933
36922
  constructor() {
36934
36923
  super(...arguments);
36935
36924
  /** @internal */
36936
- __publicField(this, _c10);
36925
+ __publicField(this, _c9);
36937
36926
  /** @internal */
36938
36927
  __publicField(this, _b222, []);
36939
36928
  /** @internal */
@@ -39320,7 +39309,7 @@ function mysqlViewWithSchema(name2, selection, schema5) {
39320
39309
  }
39321
39310
  return new ViewBuilder3(name2, schema5);
39322
39311
  }
39323
- var _a318, ViewBuilderCore2, _a319, _b229, ViewBuilder3, _a320, _b230, ManualViewBuilder3, _a321, _b231, _c11, MySqlView2;
39312
+ var _a318, ViewBuilderCore2, _a319, _b229, ViewBuilder3, _a320, _b230, ManualViewBuilder3, _a321, _b231, _c10, MySqlView2;
39324
39313
  var init_view3 = __esm({
39325
39314
  "../drizzle-orm/dist/mysql-core/view.js"() {
39326
39315
  "use strict";
@@ -39425,7 +39414,7 @@ var init_view3 = __esm({
39425
39414
  }
39426
39415
  };
39427
39416
  __publicField(ManualViewBuilder3, _a320, "MySqlManualViewBuilder");
39428
- MySqlView2 = class extends (_c11 = MySqlViewBase, _b231 = entityKind, _a321 = MySqlViewConfig, _c11) {
39417
+ MySqlView2 = class extends (_c10 = MySqlViewBase, _b231 = entityKind, _a321 = MySqlViewConfig, _c10) {
39429
39418
  constructor({ mysqlConfig, config }) {
39430
39419
  super(config);
39431
39420
  __publicField(this, _a321);
@@ -42080,13 +42069,13 @@ var init_columns4 = __esm({
42080
42069
  });
42081
42070
 
42082
42071
  // ../drizzle-orm/dist/singlestore-core/query-builders/count.js
42083
- var _a391, _b295, _c12, _SingleStoreCountBuilder, SingleStoreCountBuilder;
42072
+ var _a391, _b295, _c11, _SingleStoreCountBuilder, SingleStoreCountBuilder;
42084
42073
  var init_count4 = __esm({
42085
42074
  "../drizzle-orm/dist/singlestore-core/query-builders/count.js"() {
42086
42075
  "use strict";
42087
42076
  init_entity();
42088
42077
  init_sql();
42089
- _SingleStoreCountBuilder = class _SingleStoreCountBuilder extends (_c12 = SQL, _b295 = entityKind, _a391 = Symbol.toStringTag, _c12) {
42078
+ _SingleStoreCountBuilder = class _SingleStoreCountBuilder extends (_c11 = SQL, _b295 = entityKind, _a391 = Symbol.toStringTag, _c11) {
42090
42079
  constructor(params) {
42091
42080
  super(_SingleStoreCountBuilder.buildEmbeddedCount(params.source, params.filters).queryChunks);
42092
42081
  __publicField(this, "sql");
@@ -42440,14 +42429,14 @@ function singlestoreTableWithSchema(name2, columns, extraConfig, schema5, baseNa
42440
42429
  }
42441
42430
  return table5;
42442
42431
  }
42443
- var _a395, _b298, _c13, _d5, SingleStoreTable;
42432
+ var _a395, _b298, _c12, _d5, SingleStoreTable;
42444
42433
  var init_table5 = __esm({
42445
42434
  "../drizzle-orm/dist/singlestore-core/table.js"() {
42446
42435
  "use strict";
42447
42436
  init_entity();
42448
42437
  init_table();
42449
42438
  init_all4();
42450
- SingleStoreTable = class extends (_d5 = Table2, _c13 = entityKind, _b298 = Table2.Symbol.Columns, _a395 = Table2.Symbol.ExtraConfigBuilder, _d5) {
42439
+ SingleStoreTable = class extends (_d5 = Table2, _c12 = entityKind, _b298 = Table2.Symbol.Columns, _a395 = Table2.Symbol.ExtraConfigBuilder, _d5) {
42451
42440
  constructor() {
42452
42441
  super(...arguments);
42453
42442
  /** @internal */
@@ -42456,7 +42445,7 @@ var init_table5 = __esm({
42456
42445
  __publicField(this, _a395);
42457
42446
  }
42458
42447
  };
42459
- __publicField(SingleStoreTable, _c13, "SingleStoreTable");
42448
+ __publicField(SingleStoreTable, _c12, "SingleStoreTable");
42460
42449
  /** @internal */
42461
42450
  __publicField(SingleStoreTable, "Symbol", Object.assign({}, Table2.Symbol, {}));
42462
42451
  }
package/api.mjs CHANGED
@@ -5700,8 +5700,8 @@ var init_lib = __esm({
5700
5700
  unknownKeys: "strict",
5701
5701
  ...message !== void 0 ? {
5702
5702
  errorMap: (issue, ctx) => {
5703
- var _a413, _b303, _c14, _d6;
5704
- const defaultError = (_c14 = (_b303 = (_a413 = this._def).errorMap) === null || _b303 === void 0 ? void 0 : _b303.call(_a413, issue, ctx).message) !== null && _c14 !== void 0 ? _c14 : ctx.defaultError;
5703
+ var _a413, _b303, _c13, _d6;
5704
+ const defaultError = (_c13 = (_b303 = (_a413 = this._def).errorMap) === null || _b303 === void 0 ? void 0 : _b303.call(_a413, issue, ctx).message) !== null && _c13 !== void 0 ? _c13 : 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
@@ -22173,10 +22173,7 @@ function fillPlaceholders(params, values) {
22173
22173
  return p;
22174
22174
  });
22175
22175
  }
22176
- function isView(view4) {
22177
- return typeof view4 === "object" && view4 !== null && IsDrizzleView in view4;
22178
- }
22179
- var _a19, FakePrimitiveParam, _a20, StringChunk, _a21, _SQL, SQL, _a22, Name, noopDecoder, noopEncoder, noopMapper, _a23, Param, _a24, Placeholder, IsDrizzleView, _a25, _b10, _c2, View3;
22176
+ var _a19, FakePrimitiveParam, _a20, StringChunk, _a21, _SQL, SQL, _a22, Name, noopDecoder, noopEncoder, noopMapper, _a23, Param, _a24, Placeholder, _a25, _b10, View3;
22180
22177
  var init_sql = __esm({
22181
22178
  "../drizzle-orm/dist/sql/sql.js"() {
22182
22179
  "use strict";
@@ -22501,14 +22498,11 @@ var init_sql = __esm({
22501
22498
  }
22502
22499
  };
22503
22500
  __publicField(Placeholder, _a24, "Placeholder");
22504
- IsDrizzleView = Symbol.for("drizzle:IsDrizzleView");
22505
- _c2 = entityKind, _b10 = ViewBaseConfig, _a25 = IsDrizzleView;
22501
+ _b10 = entityKind, _a25 = ViewBaseConfig;
22506
22502
  View3 = class {
22507
22503
  constructor({ name: name2, schema: schema5, selectedFields, query }) {
22508
22504
  /** @internal */
22509
- __publicField(this, _b10);
22510
- /** @internal */
22511
- __publicField(this, _a25, true);
22505
+ __publicField(this, _a25);
22512
22506
  this[ViewBaseConfig] = {
22513
22507
  name: name2,
22514
22508
  originalName: name2,
@@ -22523,7 +22517,7 @@ var init_sql = __esm({
22523
22517
  return new SQL([this]);
22524
22518
  }
22525
22519
  };
22526
- __publicField(View3, _c2, "View");
22520
+ __publicField(View3, _b10, "View");
22527
22521
  Column2.prototype.getSQL = function() {
22528
22522
  return new SQL([this]);
22529
22523
  };
@@ -23044,9 +23038,6 @@ function applyMixins(baseClass, extendedClasses) {
23044
23038
  function getTableColumns(table5) {
23045
23039
  return table5[Table2.Symbol.Columns];
23046
23040
  }
23047
- function getViewSelectedFields(view4) {
23048
- return view4[ViewBaseConfig].selectedFields;
23049
- }
23050
23041
  function getTableLikeName(table5) {
23051
23042
  return is(table5, Subquery) ? table5._.alias : is(table5, View3) ? table5[ViewBaseConfig].name : is(table5, SQL) ? void 0 : table5[Table2.Symbol.IsAlias] ? table5[Table2.Symbol.Name] : table5[Table2.Symbol.BaseName];
23052
23043
  }
@@ -24765,7 +24756,7 @@ function pgTableWithSchema(name2, columns, extraConfig, schema5, baseName = name
24765
24756
  }
24766
24757
  });
24767
24758
  }
24768
- var InlineForeignKeys, EnableRLS, _a115, _b94, _c3, _d2, _e2, PgTable, pgTable;
24759
+ var InlineForeignKeys, EnableRLS, _a115, _b94, _c2, _d2, _e2, PgTable, pgTable;
24769
24760
  var init_table2 = __esm({
24770
24761
  "../drizzle-orm/dist/pg-core/table.js"() {
24771
24762
  "use strict";
@@ -24774,11 +24765,11 @@ var init_table2 = __esm({
24774
24765
  init_all();
24775
24766
  InlineForeignKeys = Symbol.for("drizzle:PgInlineForeignKeys");
24776
24767
  EnableRLS = Symbol.for("drizzle:EnableRLS");
24777
- PgTable = class extends (_e2 = Table2, _d2 = entityKind, _c3 = InlineForeignKeys, _b94 = EnableRLS, _a115 = Table2.Symbol.ExtraConfigBuilder, _e2) {
24768
+ PgTable = class extends (_e2 = Table2, _d2 = entityKind, _c2 = InlineForeignKeys, _b94 = EnableRLS, _a115 = Table2.Symbol.ExtraConfigBuilder, _e2) {
24778
24769
  constructor() {
24779
24770
  super(...arguments);
24780
24771
  /**@internal */
24781
- __publicField(this, _c3, []);
24772
+ __publicField(this, _c2, []);
24782
24773
  /** @internal */
24783
24774
  __publicField(this, _b94, false);
24784
24775
  /** @internal */
@@ -25293,7 +25284,6 @@ __export(dist_exports, {
25293
25284
  getTableLikeName: () => getTableLikeName,
25294
25285
  getTableName: () => getTableName,
25295
25286
  getTableUniqueName: () => getTableUniqueName,
25296
- getViewSelectedFields: () => getViewSelectedFields,
25297
25287
  gt: () => gt,
25298
25288
  gte: () => gte,
25299
25289
  hammingDistance: () => hammingDistance,
@@ -25309,7 +25299,6 @@ __export(dist_exports, {
25309
25299
  isNull: () => isNull,
25310
25300
  isSQLWrapper: () => isSQLWrapper,
25311
25301
  isTable: () => isTable,
25312
- isView: () => isView,
25313
25302
  jaccardDistance: () => jaccardDistance,
25314
25303
  l1Distance: () => l1Distance,
25315
25304
  l2Distance: () => l2Distance,
@@ -28159,13 +28148,13 @@ var init_query_builders = __esm({
28159
28148
  });
28160
28149
 
28161
28150
  // ../drizzle-orm/dist/pg-core/query-builders/count.js
28162
- var _a139, _b104, _c4, _PgCountBuilder, PgCountBuilder;
28151
+ var _a139, _b104, _c3, _PgCountBuilder, PgCountBuilder;
28163
28152
  var init_count = __esm({
28164
28153
  "../drizzle-orm/dist/pg-core/query-builders/count.js"() {
28165
28154
  "use strict";
28166
28155
  init_entity();
28167
28156
  init_sql();
28168
- _PgCountBuilder = class _PgCountBuilder extends (_c4 = SQL, _b104 = entityKind, _a139 = Symbol.toStringTag, _c4) {
28157
+ _PgCountBuilder = class _PgCountBuilder extends (_c3 = SQL, _b104 = entityKind, _a139 = Symbol.toStringTag, _c3) {
28169
28158
  constructor(params) {
28170
28159
  super(_PgCountBuilder.buildEmbeddedCount(params.source, params.filters).queryChunks);
28171
28160
  __publicField(this, "sql");
@@ -28904,7 +28893,7 @@ function isPgView(obj) {
28904
28893
  function isPgMaterializedView(obj) {
28905
28894
  return is(obj, PgMaterializedView);
28906
28895
  }
28907
- var _a150, DefaultViewBuilderCore, _a151, _b107, ViewBuilder, _a152, _b108, ManualViewBuilder, _a153, MaterializedViewBuilderCore, _a154, _b109, MaterializedViewBuilder, _a155, _b110, ManualMaterializedViewBuilder, _a156, _b111, _c5, PgView2, PgMaterializedViewConfig, _a157, _b112, _c6, PgMaterializedView;
28896
+ var _a150, DefaultViewBuilderCore, _a151, _b107, ViewBuilder, _a152, _b108, ManualViewBuilder, _a153, MaterializedViewBuilderCore, _a154, _b109, MaterializedViewBuilder, _a155, _b110, ManualMaterializedViewBuilder, _a156, _b111, _c4, PgView2, PgMaterializedViewConfig, _a157, _b112, _c5, PgMaterializedView;
28908
28897
  var init_view = __esm({
28909
28898
  "../drizzle-orm/dist/pg-core/view.js"() {
28910
28899
  "use strict";
@@ -29114,7 +29103,7 @@ var init_view = __esm({
29114
29103
  }
29115
29104
  };
29116
29105
  __publicField(ManualMaterializedViewBuilder, _a155, "PgManualMaterializedViewBuilder");
29117
- PgView2 = class extends (_c5 = PgViewBase, _b111 = entityKind, _a156 = PgViewConfig, _c5) {
29106
+ PgView2 = class extends (_c4 = PgViewBase, _b111 = entityKind, _a156 = PgViewConfig, _c4) {
29118
29107
  constructor({ pgConfig, config }) {
29119
29108
  super(config);
29120
29109
  __publicField(this, _a156);
@@ -29127,7 +29116,7 @@ var init_view = __esm({
29127
29116
  };
29128
29117
  __publicField(PgView2, _b111, "PgView");
29129
29118
  PgMaterializedViewConfig = Symbol.for("drizzle:PgMaterializedViewConfig");
29130
- PgMaterializedView = class extends (_c6 = PgViewBase, _b112 = entityKind, _a157 = PgMaterializedViewConfig, _c6) {
29119
+ PgMaterializedView = class extends (_c5 = PgViewBase, _b112 = entityKind, _a157 = PgMaterializedViewConfig, _c5) {
29131
29120
  constructor({ pgConfig, config }) {
29132
29121
  super(config);
29133
29122
  __publicField(this, _a157);
@@ -31776,7 +31765,7 @@ function sqliteTableBase(name2, columns, extraConfig, schema5, baseName = name2)
31776
31765
  }
31777
31766
  return table5;
31778
31767
  }
31779
- var InlineForeignKeys2, _a195, _b140, _c7, _d3, _e3, SQLiteTable, sqliteTable;
31768
+ var InlineForeignKeys2, _a195, _b140, _c6, _d3, _e3, SQLiteTable, sqliteTable;
31780
31769
  var init_table3 = __esm({
31781
31770
  "../drizzle-orm/dist/sqlite-core/table.js"() {
31782
31771
  "use strict";
@@ -31784,11 +31773,11 @@ var init_table3 = __esm({
31784
31773
  init_table();
31785
31774
  init_all2();
31786
31775
  InlineForeignKeys2 = Symbol.for("drizzle:SQLiteInlineForeignKeys");
31787
- SQLiteTable = class extends (_e3 = Table2, _d3 = entityKind, _c7 = Table2.Symbol.Columns, _b140 = InlineForeignKeys2, _a195 = Table2.Symbol.ExtraConfigBuilder, _e3) {
31776
+ SQLiteTable = class extends (_e3 = Table2, _d3 = entityKind, _c6 = Table2.Symbol.Columns, _b140 = InlineForeignKeys2, _a195 = Table2.Symbol.ExtraConfigBuilder, _e3) {
31788
31777
  constructor() {
31789
31778
  super(...arguments);
31790
31779
  /** @internal */
31791
- __publicField(this, _c7);
31780
+ __publicField(this, _c6);
31792
31781
  /** @internal */
31793
31782
  __publicField(this, _b140, []);
31794
31783
  /** @internal */
@@ -33656,13 +33645,13 @@ var init_query_builders2 = __esm({
33656
33645
  });
33657
33646
 
33658
33647
  // ../drizzle-orm/dist/sqlite-core/query-builders/count.js
33659
- var _a209, _b149, _c8, _SQLiteCountBuilder, SQLiteCountBuilder;
33648
+ var _a209, _b149, _c7, _SQLiteCountBuilder, SQLiteCountBuilder;
33660
33649
  var init_count2 = __esm({
33661
33650
  "../drizzle-orm/dist/sqlite-core/query-builders/count.js"() {
33662
33651
  "use strict";
33663
33652
  init_entity();
33664
33653
  init_sql();
33665
- _SQLiteCountBuilder = class _SQLiteCountBuilder extends (_c8 = SQL, _b149 = entityKind, _a209 = Symbol.toStringTag, _c8) {
33654
+ _SQLiteCountBuilder = class _SQLiteCountBuilder extends (_c7 = SQL, _b149 = entityKind, _a209 = Symbol.toStringTag, _c7) {
33666
33655
  constructor(params) {
33667
33656
  super(_SQLiteCountBuilder.buildEmbeddedCount(params.source, params.filters).queryChunks);
33668
33657
  __publicField(this, "sql");
@@ -36690,13 +36679,13 @@ var init_columns3 = __esm({
36690
36679
  });
36691
36680
 
36692
36681
  // ../drizzle-orm/dist/mysql-core/query-builders/count.js
36693
- var _a297, _b220, _c9, _MySqlCountBuilder, MySqlCountBuilder;
36682
+ var _a297, _b220, _c8, _MySqlCountBuilder, MySqlCountBuilder;
36694
36683
  var init_count3 = __esm({
36695
36684
  "../drizzle-orm/dist/mysql-core/query-builders/count.js"() {
36696
36685
  "use strict";
36697
36686
  init_entity();
36698
36687
  init_sql();
36699
- _MySqlCountBuilder = class _MySqlCountBuilder extends (_c9 = SQL, _b220 = entityKind, _a297 = Symbol.toStringTag, _c9) {
36688
+ _MySqlCountBuilder = class _MySqlCountBuilder extends (_c8 = SQL, _b220 = entityKind, _a297 = Symbol.toStringTag, _c8) {
36700
36689
  constructor(params) {
36701
36690
  super(_MySqlCountBuilder.buildEmbeddedCount(params.source, params.filters).queryChunks);
36702
36691
  __publicField(this, "sql");
@@ -36926,7 +36915,7 @@ function mysqlTableWithSchema(name2, columns, extraConfig, schema5, baseName = n
36926
36915
  }
36927
36916
  return table5;
36928
36917
  }
36929
- var InlineForeignKeys3, _a299, _b222, _c10, _d4, _e4, MySqlTable, mysqlTable;
36918
+ var InlineForeignKeys3, _a299, _b222, _c9, _d4, _e4, MySqlTable, mysqlTable;
36930
36919
  var init_table4 = __esm({
36931
36920
  "../drizzle-orm/dist/mysql-core/table.js"() {
36932
36921
  "use strict";
@@ -36934,11 +36923,11 @@ var init_table4 = __esm({
36934
36923
  init_table();
36935
36924
  init_all3();
36936
36925
  InlineForeignKeys3 = Symbol.for("drizzle:MySqlInlineForeignKeys");
36937
- MySqlTable = class extends (_e4 = Table2, _d4 = entityKind, _c10 = Table2.Symbol.Columns, _b222 = InlineForeignKeys3, _a299 = Table2.Symbol.ExtraConfigBuilder, _e4) {
36926
+ MySqlTable = class extends (_e4 = Table2, _d4 = entityKind, _c9 = Table2.Symbol.Columns, _b222 = InlineForeignKeys3, _a299 = Table2.Symbol.ExtraConfigBuilder, _e4) {
36938
36927
  constructor() {
36939
36928
  super(...arguments);
36940
36929
  /** @internal */
36941
- __publicField(this, _c10);
36930
+ __publicField(this, _c9);
36942
36931
  /** @internal */
36943
36932
  __publicField(this, _b222, []);
36944
36933
  /** @internal */
@@ -39325,7 +39314,7 @@ function mysqlViewWithSchema(name2, selection, schema5) {
39325
39314
  }
39326
39315
  return new ViewBuilder3(name2, schema5);
39327
39316
  }
39328
- var _a318, ViewBuilderCore2, _a319, _b229, ViewBuilder3, _a320, _b230, ManualViewBuilder3, _a321, _b231, _c11, MySqlView2;
39317
+ var _a318, ViewBuilderCore2, _a319, _b229, ViewBuilder3, _a320, _b230, ManualViewBuilder3, _a321, _b231, _c10, MySqlView2;
39329
39318
  var init_view3 = __esm({
39330
39319
  "../drizzle-orm/dist/mysql-core/view.js"() {
39331
39320
  "use strict";
@@ -39430,7 +39419,7 @@ var init_view3 = __esm({
39430
39419
  }
39431
39420
  };
39432
39421
  __publicField(ManualViewBuilder3, _a320, "MySqlManualViewBuilder");
39433
- MySqlView2 = class extends (_c11 = MySqlViewBase, _b231 = entityKind, _a321 = MySqlViewConfig, _c11) {
39422
+ MySqlView2 = class extends (_c10 = MySqlViewBase, _b231 = entityKind, _a321 = MySqlViewConfig, _c10) {
39434
39423
  constructor({ mysqlConfig, config }) {
39435
39424
  super(config);
39436
39425
  __publicField(this, _a321);
@@ -42085,13 +42074,13 @@ var init_columns4 = __esm({
42085
42074
  });
42086
42075
 
42087
42076
  // ../drizzle-orm/dist/singlestore-core/query-builders/count.js
42088
- var _a391, _b295, _c12, _SingleStoreCountBuilder, SingleStoreCountBuilder;
42077
+ var _a391, _b295, _c11, _SingleStoreCountBuilder, SingleStoreCountBuilder;
42089
42078
  var init_count4 = __esm({
42090
42079
  "../drizzle-orm/dist/singlestore-core/query-builders/count.js"() {
42091
42080
  "use strict";
42092
42081
  init_entity();
42093
42082
  init_sql();
42094
- _SingleStoreCountBuilder = class _SingleStoreCountBuilder extends (_c12 = SQL, _b295 = entityKind, _a391 = Symbol.toStringTag, _c12) {
42083
+ _SingleStoreCountBuilder = class _SingleStoreCountBuilder extends (_c11 = SQL, _b295 = entityKind, _a391 = Symbol.toStringTag, _c11) {
42095
42084
  constructor(params) {
42096
42085
  super(_SingleStoreCountBuilder.buildEmbeddedCount(params.source, params.filters).queryChunks);
42097
42086
  __publicField(this, "sql");
@@ -42445,14 +42434,14 @@ function singlestoreTableWithSchema(name2, columns, extraConfig, schema5, baseNa
42445
42434
  }
42446
42435
  return table5;
42447
42436
  }
42448
- var _a395, _b298, _c13, _d5, SingleStoreTable;
42437
+ var _a395, _b298, _c12, _d5, SingleStoreTable;
42449
42438
  var init_table5 = __esm({
42450
42439
  "../drizzle-orm/dist/singlestore-core/table.js"() {
42451
42440
  "use strict";
42452
42441
  init_entity();
42453
42442
  init_table();
42454
42443
  init_all4();
42455
- SingleStoreTable = class extends (_d5 = Table2, _c13 = entityKind, _b298 = Table2.Symbol.Columns, _a395 = Table2.Symbol.ExtraConfigBuilder, _d5) {
42444
+ SingleStoreTable = class extends (_d5 = Table2, _c12 = entityKind, _b298 = Table2.Symbol.Columns, _a395 = Table2.Symbol.ExtraConfigBuilder, _d5) {
42456
42445
  constructor() {
42457
42446
  super(...arguments);
42458
42447
  /** @internal */
@@ -42461,7 +42450,7 @@ var init_table5 = __esm({
42461
42450
  __publicField(this, _a395);
42462
42451
  }
42463
42452
  };
42464
- __publicField(SingleStoreTable, _c13, "SingleStoreTable");
42453
+ __publicField(SingleStoreTable, _c12, "SingleStoreTable");
42465
42454
  /** @internal */
42466
42455
  __publicField(SingleStoreTable, "Symbol", Object.assign({}, Table2.Symbol, {}));
42467
42456
  }
package/bin.cjs CHANGED
@@ -91840,7 +91840,7 @@ var generate = command2({
91840
91840
  } else if (dialect6 === "turso") {
91841
91841
  await prepareAndMigrateLibSQL2(opts);
91842
91842
  } else if (dialect6 === "singlestore") {
91843
- await prepareAndMigrateSqlite2(opts);
91843
+ await prepareAndMigrateSingleStore2(opts);
91844
91844
  } else {
91845
91845
  assertUnreachable(dialect6);
91846
91846
  }
@@ -92435,7 +92435,7 @@ init_utils5();
92435
92435
  var version2 = async () => {
92436
92436
  const { npmVersion } = await ormCoreVersions();
92437
92437
  const ormVersion = npmVersion ? `drizzle-orm: v${npmVersion}` : "";
92438
- const envVersion = "0.29.0-3f3eb73";
92438
+ const envVersion = "0.29.1";
92439
92439
  const kitVersion = envVersion ? `v${envVersion}` : "--";
92440
92440
  const versions = `drizzle-kit: ${kitVersion}
92441
92441
  ${ormVersion}`;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "drizzle-kit",
3
- "version": "0.29.0-3f3eb73",
3
+ "version": "0.29.1",
4
4
  "homepage": "https://orm.drizzle.team",
5
5
  "keywords": [
6
6
  "drizzle",