drizzle-kit 0.25.0-cd0b1a2 → 0.25.0-d11d7bb

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. package/api.js +20 -23
  2. package/api.mjs +20 -23
  3. package/bin.cjs +1 -1
  4. package/package.json +1 -1
package/api.js CHANGED
@@ -29099,7 +29099,6 @@ var init_db = __esm({
29099
29099
  init_entity();
29100
29100
  init_query_builders();
29101
29101
  init_selection_proxy();
29102
- init_sql();
29103
29102
  init_subquery();
29104
29103
  init_count();
29105
29104
  init_query();
@@ -29354,8 +29353,8 @@ var init_db = __esm({
29354
29353
  return new PgRefreshMaterializedView(view, this.session, this.dialect);
29355
29354
  }
29356
29355
  execute(query) {
29357
- const sequel = typeof query === "string" ? sql.raw(query) : query.getSQL();
29358
- const builtQuery = this.dialect.sqlToQuery(sequel);
29356
+ const sql3 = query.getSQL();
29357
+ const builtQuery = this.dialect.sqlToQuery(sql3);
29359
29358
  const prepared = this.session.prepareQuery(
29360
29359
  builtQuery,
29361
29360
  void 0,
@@ -29364,7 +29363,7 @@ var init_db = __esm({
29364
29363
  );
29365
29364
  return new PgRaw(
29366
29365
  () => prepared.execute(),
29367
- sequel,
29366
+ sql3,
29368
29367
  builtQuery,
29369
29368
  (result) => prepared.mapResult(result, true)
29370
29369
  );
@@ -52114,7 +52113,6 @@ var init_db2 = __esm({
52114
52113
  "use strict";
52115
52114
  init_entity();
52116
52115
  init_selection_proxy();
52117
- init_sql();
52118
52116
  init_query_builders2();
52119
52117
  init_subquery();
52120
52118
  init_count2();
@@ -52346,56 +52344,56 @@ var init_db2 = __esm({
52346
52344
  return new SQLiteDeleteBase(from, this.session, this.dialect);
52347
52345
  }
52348
52346
  run(query) {
52349
- const sequel = typeof query === "string" ? sql.raw(query) : query.getSQL();
52347
+ const sql3 = query.getSQL();
52350
52348
  if (this.resultKind === "async") {
52351
52349
  return new SQLiteRaw(
52352
- async () => this.session.run(sequel),
52353
- () => sequel,
52350
+ async () => this.session.run(sql3),
52351
+ () => sql3,
52354
52352
  "run",
52355
52353
  this.dialect,
52356
52354
  this.session.extractRawRunValueFromBatchResult.bind(this.session)
52357
52355
  );
52358
52356
  }
52359
- return this.session.run(sequel);
52357
+ return this.session.run(sql3);
52360
52358
  }
52361
52359
  all(query) {
52362
- const sequel = typeof query === "string" ? sql.raw(query) : query.getSQL();
52360
+ const sql3 = query.getSQL();
52363
52361
  if (this.resultKind === "async") {
52364
52362
  return new SQLiteRaw(
52365
- async () => this.session.all(sequel),
52366
- () => sequel,
52363
+ async () => this.session.all(sql3),
52364
+ () => sql3,
52367
52365
  "all",
52368
52366
  this.dialect,
52369
52367
  this.session.extractRawAllValueFromBatchResult.bind(this.session)
52370
52368
  );
52371
52369
  }
52372
- return this.session.all(sequel);
52370
+ return this.session.all(sql3);
52373
52371
  }
52374
52372
  get(query) {
52375
- const sequel = typeof query === "string" ? sql.raw(query) : query.getSQL();
52373
+ const sql3 = query.getSQL();
52376
52374
  if (this.resultKind === "async") {
52377
52375
  return new SQLiteRaw(
52378
- async () => this.session.get(sequel),
52379
- () => sequel,
52376
+ async () => this.session.get(sql3),
52377
+ () => sql3,
52380
52378
  "get",
52381
52379
  this.dialect,
52382
52380
  this.session.extractRawGetValueFromBatchResult.bind(this.session)
52383
52381
  );
52384
52382
  }
52385
- return this.session.get(sequel);
52383
+ return this.session.get(sql3);
52386
52384
  }
52387
52385
  values(query) {
52388
- const sequel = typeof query === "string" ? sql.raw(query) : query.getSQL();
52386
+ const sql3 = query.getSQL();
52389
52387
  if (this.resultKind === "async") {
52390
52388
  return new SQLiteRaw(
52391
- async () => this.session.values(sequel),
52392
- () => sequel,
52389
+ async () => this.session.values(sql3),
52390
+ () => sql3,
52393
52391
  "values",
52394
52392
  this.dialect,
52395
52393
  this.session.extractRawValuesValueFromBatchResult.bind(this.session)
52396
52394
  );
52397
52395
  }
52398
- return this.session.values(sequel);
52396
+ return this.session.values(sql3);
52399
52397
  }
52400
52398
  transaction(transaction, config) {
52401
52399
  return this.session.transaction(transaction, config);
@@ -85319,7 +85317,6 @@ var init_db3 = __esm({
85319
85317
  "use strict";
85320
85318
  init_entity();
85321
85319
  init_selection_proxy();
85322
- init_sql();
85323
85320
  init_subquery();
85324
85321
  init_count3();
85325
85322
  init_query_builders3();
@@ -85530,7 +85527,7 @@ var init_db3 = __esm({
85530
85527
  return new MySqlDeleteBase(table4, this.session, this.dialect);
85531
85528
  }
85532
85529
  execute(query) {
85533
- return this.session.execute(typeof query === "string" ? sql.raw(query) : query.getSQL());
85530
+ return this.session.execute(query.getSQL());
85534
85531
  }
85535
85532
  transaction(transaction, config) {
85536
85533
  return this.session.transaction(transaction, config);
package/api.mjs CHANGED
@@ -29104,7 +29104,6 @@ var init_db = __esm({
29104
29104
  init_entity();
29105
29105
  init_query_builders();
29106
29106
  init_selection_proxy();
29107
- init_sql();
29108
29107
  init_subquery();
29109
29108
  init_count();
29110
29109
  init_query();
@@ -29359,8 +29358,8 @@ var init_db = __esm({
29359
29358
  return new PgRefreshMaterializedView(view, this.session, this.dialect);
29360
29359
  }
29361
29360
  execute(query) {
29362
- const sequel = typeof query === "string" ? sql.raw(query) : query.getSQL();
29363
- const builtQuery = this.dialect.sqlToQuery(sequel);
29361
+ const sql3 = query.getSQL();
29362
+ const builtQuery = this.dialect.sqlToQuery(sql3);
29364
29363
  const prepared = this.session.prepareQuery(
29365
29364
  builtQuery,
29366
29365
  void 0,
@@ -29369,7 +29368,7 @@ var init_db = __esm({
29369
29368
  );
29370
29369
  return new PgRaw(
29371
29370
  () => prepared.execute(),
29372
- sequel,
29371
+ sql3,
29373
29372
  builtQuery,
29374
29373
  (result) => prepared.mapResult(result, true)
29375
29374
  );
@@ -52118,7 +52117,6 @@ var init_db2 = __esm({
52118
52117
  "use strict";
52119
52118
  init_entity();
52120
52119
  init_selection_proxy();
52121
- init_sql();
52122
52120
  init_query_builders2();
52123
52121
  init_subquery();
52124
52122
  init_count2();
@@ -52350,56 +52348,56 @@ var init_db2 = __esm({
52350
52348
  return new SQLiteDeleteBase(from, this.session, this.dialect);
52351
52349
  }
52352
52350
  run(query) {
52353
- const sequel = typeof query === "string" ? sql.raw(query) : query.getSQL();
52351
+ const sql3 = query.getSQL();
52354
52352
  if (this.resultKind === "async") {
52355
52353
  return new SQLiteRaw(
52356
- async () => this.session.run(sequel),
52357
- () => sequel,
52354
+ async () => this.session.run(sql3),
52355
+ () => sql3,
52358
52356
  "run",
52359
52357
  this.dialect,
52360
52358
  this.session.extractRawRunValueFromBatchResult.bind(this.session)
52361
52359
  );
52362
52360
  }
52363
- return this.session.run(sequel);
52361
+ return this.session.run(sql3);
52364
52362
  }
52365
52363
  all(query) {
52366
- const sequel = typeof query === "string" ? sql.raw(query) : query.getSQL();
52364
+ const sql3 = query.getSQL();
52367
52365
  if (this.resultKind === "async") {
52368
52366
  return new SQLiteRaw(
52369
- async () => this.session.all(sequel),
52370
- () => sequel,
52367
+ async () => this.session.all(sql3),
52368
+ () => sql3,
52371
52369
  "all",
52372
52370
  this.dialect,
52373
52371
  this.session.extractRawAllValueFromBatchResult.bind(this.session)
52374
52372
  );
52375
52373
  }
52376
- return this.session.all(sequel);
52374
+ return this.session.all(sql3);
52377
52375
  }
52378
52376
  get(query) {
52379
- const sequel = typeof query === "string" ? sql.raw(query) : query.getSQL();
52377
+ const sql3 = query.getSQL();
52380
52378
  if (this.resultKind === "async") {
52381
52379
  return new SQLiteRaw(
52382
- async () => this.session.get(sequel),
52383
- () => sequel,
52380
+ async () => this.session.get(sql3),
52381
+ () => sql3,
52384
52382
  "get",
52385
52383
  this.dialect,
52386
52384
  this.session.extractRawGetValueFromBatchResult.bind(this.session)
52387
52385
  );
52388
52386
  }
52389
- return this.session.get(sequel);
52387
+ return this.session.get(sql3);
52390
52388
  }
52391
52389
  values(query) {
52392
- const sequel = typeof query === "string" ? sql.raw(query) : query.getSQL();
52390
+ const sql3 = query.getSQL();
52393
52391
  if (this.resultKind === "async") {
52394
52392
  return new SQLiteRaw(
52395
- async () => this.session.values(sequel),
52396
- () => sequel,
52393
+ async () => this.session.values(sql3),
52394
+ () => sql3,
52397
52395
  "values",
52398
52396
  this.dialect,
52399
52397
  this.session.extractRawValuesValueFromBatchResult.bind(this.session)
52400
52398
  );
52401
52399
  }
52402
- return this.session.values(sequel);
52400
+ return this.session.values(sql3);
52403
52401
  }
52404
52402
  transaction(transaction, config) {
52405
52403
  return this.session.transaction(transaction, config);
@@ -85323,7 +85321,6 @@ var init_db3 = __esm({
85323
85321
  "use strict";
85324
85322
  init_entity();
85325
85323
  init_selection_proxy();
85326
- init_sql();
85327
85324
  init_subquery();
85328
85325
  init_count3();
85329
85326
  init_query_builders3();
@@ -85534,7 +85531,7 @@ var init_db3 = __esm({
85534
85531
  return new MySqlDeleteBase(table4, this.session, this.dialect);
85535
85532
  }
85536
85533
  execute(query) {
85537
- return this.session.execute(typeof query === "string" ? sql.raw(query) : query.getSQL());
85534
+ return this.session.execute(query.getSQL());
85538
85535
  }
85539
85536
  transaction(transaction, config) {
85540
85537
  return this.session.transaction(transaction, config);
package/bin.cjs CHANGED
@@ -85222,7 +85222,7 @@ init_utils2();
85222
85222
  var version2 = async () => {
85223
85223
  const { npmVersion } = await ormCoreVersions();
85224
85224
  const ormVersion = npmVersion ? `drizzle-orm: v${npmVersion}` : "";
85225
- const envVersion = "0.25.0-cd0b1a2";
85225
+ const envVersion = "0.25.0-d11d7bb";
85226
85226
  const kitVersion = envVersion ? `v${envVersion}` : "--";
85227
85227
  const versions = `drizzle-kit: ${kitVersion}
85228
85228
  ${ormVersion}`;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "drizzle-kit",
3
- "version": "0.25.0-cd0b1a2",
3
+ "version": "0.25.0-d11d7bb",
4
4
  "homepage": "https://orm.drizzle.team",
5
5
  "keywords": [
6
6
  "drizzle",