drizzle-kit 1.0.0-beta.2-1be5069 → 1.0.0-beta.2-ec83fa8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/api-mysql.js CHANGED
@@ -140430,7 +140430,7 @@ To link your project, please refer https://docs.geldata.com/reference/cli/gel_in
140430
140430
  /actual time=([0-9.eE+-]+)\.\.([0-9.eE+-]+)/
140431
140431
  );
140432
140432
  const lastRowTime = Number(timeMatch[2]);
140433
- const executionTime = lastRowTime;
140433
+ let executionTime = lastRowTime;
140434
140434
  let querySentAt = 0n;
140435
140435
  let firstDataAt = 0n;
140436
140436
  let lastDataAt = 0n;
@@ -140478,7 +140478,17 @@ To link your project, please refer https://docs.geldata.com/reference/cli/gel_in
140478
140478
  });
140479
140479
  });
140480
140480
  queryCompletedAt = process.hrtime.bigint();
140481
- const querySentTime = ms(querySentAt, firstDataAt) - executionTime;
140481
+ let querySentTime = ms(querySentAt, firstDataAt) - executionTime;
140482
+ if (querySentTime < 0) {
140483
+ const percent = 0.1;
140484
+ const overflow = -querySentTime;
140485
+ const keepForSent = overflow * percent;
140486
+ const adjustedOverflow = overflow * (1 + percent);
140487
+ const total2 = executionTime;
140488
+ const ratioExecution = executionTime / total2;
140489
+ executionTime -= adjustedOverflow * ratioExecution;
140490
+ querySentTime = keepForSent;
140491
+ }
140482
140492
  const networkLatencyBefore = querySentTime / 2;
140483
140493
  const networkLatencyAfter = querySentTime / 2;
140484
140494
  const downloadTime = ms(firstDataAt, lastDataAt) - (rowCount > 1 ? parseTime - parseTime / rowCount : 0);
package/api-mysql.mjs CHANGED
@@ -140439,7 +140439,7 @@ To link your project, please refer https://docs.geldata.com/reference/cli/gel_in
140439
140439
  /actual time=([0-9.eE+-]+)\.\.([0-9.eE+-]+)/
140440
140440
  );
140441
140441
  const lastRowTime = Number(timeMatch[2]);
140442
- const executionTime = lastRowTime;
140442
+ let executionTime = lastRowTime;
140443
140443
  let querySentAt = 0n;
140444
140444
  let firstDataAt = 0n;
140445
140445
  let lastDataAt = 0n;
@@ -140487,7 +140487,17 @@ To link your project, please refer https://docs.geldata.com/reference/cli/gel_in
140487
140487
  });
140488
140488
  });
140489
140489
  queryCompletedAt = process.hrtime.bigint();
140490
- const querySentTime = ms(querySentAt, firstDataAt) - executionTime;
140490
+ let querySentTime = ms(querySentAt, firstDataAt) - executionTime;
140491
+ if (querySentTime < 0) {
140492
+ const percent = 0.1;
140493
+ const overflow = -querySentTime;
140494
+ const keepForSent = overflow * percent;
140495
+ const adjustedOverflow = overflow * (1 + percent);
140496
+ const total2 = executionTime;
140497
+ const ratioExecution = executionTime / total2;
140498
+ executionTime -= adjustedOverflow * ratioExecution;
140499
+ querySentTime = keepForSent;
140500
+ }
140491
140501
  const networkLatencyBefore = querySentTime / 2;
140492
140502
  const networkLatencyAfter = querySentTime / 2;
140493
140503
  const downloadTime = ms(firstDataAt, lastDataAt) - (rowCount > 1 ? parseTime - parseTime / rowCount : 0);
package/api-postgres.js CHANGED
@@ -146108,7 +146108,7 @@ To link your project, please refer https://docs.geldata.com/reference/cli/gel_in
146108
146108
  /actual time=([0-9.eE+-]+)\.\.([0-9.eE+-]+)/
146109
146109
  );
146110
146110
  const lastRowTime = Number(timeMatch[2]);
146111
- const executionTime = lastRowTime;
146111
+ let executionTime = lastRowTime;
146112
146112
  let querySentAt = 0n;
146113
146113
  let firstDataAt = 0n;
146114
146114
  let lastDataAt = 0n;
@@ -146156,7 +146156,17 @@ To link your project, please refer https://docs.geldata.com/reference/cli/gel_in
146156
146156
  });
146157
146157
  });
146158
146158
  queryCompletedAt = process.hrtime.bigint();
146159
- const querySentTime = ms(querySentAt, firstDataAt) - executionTime;
146159
+ let querySentTime = ms(querySentAt, firstDataAt) - executionTime;
146160
+ if (querySentTime < 0) {
146161
+ const percent = 0.1;
146162
+ const overflow = -querySentTime;
146163
+ const keepForSent = overflow * percent;
146164
+ const adjustedOverflow = overflow * (1 + percent);
146165
+ const total2 = executionTime;
146166
+ const ratioExecution = executionTime / total2;
146167
+ executionTime -= adjustedOverflow * ratioExecution;
146168
+ querySentTime = keepForSent;
146169
+ }
146160
146170
  const networkLatencyBefore = querySentTime / 2;
146161
146171
  const networkLatencyAfter = querySentTime / 2;
146162
146172
  const downloadTime = ms(firstDataAt, lastDataAt) - (rowCount > 1 ? parseTime - parseTime / rowCount : 0);
package/api-postgres.mjs CHANGED
@@ -146141,7 +146141,7 @@ To link your project, please refer https://docs.geldata.com/reference/cli/gel_in
146141
146141
  /actual time=([0-9.eE+-]+)\.\.([0-9.eE+-]+)/
146142
146142
  );
146143
146143
  const lastRowTime = Number(timeMatch[2]);
146144
- const executionTime = lastRowTime;
146144
+ let executionTime = lastRowTime;
146145
146145
  let querySentAt = 0n;
146146
146146
  let firstDataAt = 0n;
146147
146147
  let lastDataAt = 0n;
@@ -146189,7 +146189,17 @@ To link your project, please refer https://docs.geldata.com/reference/cli/gel_in
146189
146189
  });
146190
146190
  });
146191
146191
  queryCompletedAt = process.hrtime.bigint();
146192
- const querySentTime = ms(querySentAt, firstDataAt) - executionTime;
146192
+ let querySentTime = ms(querySentAt, firstDataAt) - executionTime;
146193
+ if (querySentTime < 0) {
146194
+ const percent = 0.1;
146195
+ const overflow = -querySentTime;
146196
+ const keepForSent = overflow * percent;
146197
+ const adjustedOverflow = overflow * (1 + percent);
146198
+ const total2 = executionTime;
146199
+ const ratioExecution = executionTime / total2;
146200
+ executionTime -= adjustedOverflow * ratioExecution;
146201
+ querySentTime = keepForSent;
146202
+ }
146193
146203
  const networkLatencyBefore = querySentTime / 2;
146194
146204
  const networkLatencyAfter = querySentTime / 2;
146195
146205
  const downloadTime = ms(firstDataAt, lastDataAt) - (rowCount > 1 ? parseTime - parseTime / rowCount : 0);
package/api-sqlite.js CHANGED
@@ -140430,7 +140430,7 @@ To link your project, please refer https://docs.geldata.com/reference/cli/gel_in
140430
140430
  /actual time=([0-9.eE+-]+)\.\.([0-9.eE+-]+)/
140431
140431
  );
140432
140432
  const lastRowTime = Number(timeMatch[2]);
140433
- const executionTime = lastRowTime;
140433
+ let executionTime = lastRowTime;
140434
140434
  let querySentAt = 0n;
140435
140435
  let firstDataAt = 0n;
140436
140436
  let lastDataAt = 0n;
@@ -140478,7 +140478,17 @@ To link your project, please refer https://docs.geldata.com/reference/cli/gel_in
140478
140478
  });
140479
140479
  });
140480
140480
  queryCompletedAt = process.hrtime.bigint();
140481
- const querySentTime = ms(querySentAt, firstDataAt) - executionTime;
140481
+ let querySentTime = ms(querySentAt, firstDataAt) - executionTime;
140482
+ if (querySentTime < 0) {
140483
+ const percent = 0.1;
140484
+ const overflow = -querySentTime;
140485
+ const keepForSent = overflow * percent;
140486
+ const adjustedOverflow = overflow * (1 + percent);
140487
+ const total2 = executionTime;
140488
+ const ratioExecution = executionTime / total2;
140489
+ executionTime -= adjustedOverflow * ratioExecution;
140490
+ querySentTime = keepForSent;
140491
+ }
140482
140492
  const networkLatencyBefore = querySentTime / 2;
140483
140493
  const networkLatencyAfter = querySentTime / 2;
140484
140494
  const downloadTime = ms(firstDataAt, lastDataAt) - (rowCount > 1 ? parseTime - parseTime / rowCount : 0);
package/api-sqlite.mjs CHANGED
@@ -140439,7 +140439,7 @@ To link your project, please refer https://docs.geldata.com/reference/cli/gel_in
140439
140439
  /actual time=([0-9.eE+-]+)\.\.([0-9.eE+-]+)/
140440
140440
  );
140441
140441
  const lastRowTime = Number(timeMatch[2]);
140442
- const executionTime = lastRowTime;
140442
+ let executionTime = lastRowTime;
140443
140443
  let querySentAt = 0n;
140444
140444
  let firstDataAt = 0n;
140445
140445
  let lastDataAt = 0n;
@@ -140487,7 +140487,17 @@ To link your project, please refer https://docs.geldata.com/reference/cli/gel_in
140487
140487
  });
140488
140488
  });
140489
140489
  queryCompletedAt = process.hrtime.bigint();
140490
- const querySentTime = ms(querySentAt, firstDataAt) - executionTime;
140490
+ let querySentTime = ms(querySentAt, firstDataAt) - executionTime;
140491
+ if (querySentTime < 0) {
140492
+ const percent = 0.1;
140493
+ const overflow = -querySentTime;
140494
+ const keepForSent = overflow * percent;
140495
+ const adjustedOverflow = overflow * (1 + percent);
140496
+ const total2 = executionTime;
140497
+ const ratioExecution = executionTime / total2;
140498
+ executionTime -= adjustedOverflow * ratioExecution;
140499
+ querySentTime = keepForSent;
140500
+ }
140491
140501
  const networkLatencyBefore = querySentTime / 2;
140492
140502
  const networkLatencyAfter = querySentTime / 2;
140493
140503
  const downloadTime = ms(firstDataAt, lastDataAt) - (rowCount > 1 ? parseTime - parseTime / rowCount : 0);
package/bin.cjs CHANGED
@@ -165151,7 +165151,7 @@ To link your project, please refer https://docs.geldata.com/reference/cli/gel_in
165151
165151
  /actual time=([0-9.eE+-]+)\.\.([0-9.eE+-]+)/
165152
165152
  );
165153
165153
  const lastRowTime = Number(timeMatch[2]);
165154
- const executionTime = lastRowTime;
165154
+ let executionTime = lastRowTime;
165155
165155
  let querySentAt = 0n;
165156
165156
  let firstDataAt = 0n;
165157
165157
  let lastDataAt = 0n;
@@ -165199,7 +165199,17 @@ To link your project, please refer https://docs.geldata.com/reference/cli/gel_in
165199
165199
  });
165200
165200
  });
165201
165201
  queryCompletedAt = process.hrtime.bigint();
165202
- const querySentTime = ms(querySentAt, firstDataAt) - executionTime;
165202
+ let querySentTime = ms(querySentAt, firstDataAt) - executionTime;
165203
+ if (querySentTime < 0) {
165204
+ const percent = 0.1;
165205
+ const overflow = -querySentTime;
165206
+ const keepForSent = overflow * percent;
165207
+ const adjustedOverflow = overflow * (1 + percent);
165208
+ const total2 = executionTime;
165209
+ const ratioExecution = executionTime / total2;
165210
+ executionTime -= adjustedOverflow * ratioExecution;
165211
+ querySentTime = keepForSent;
165212
+ }
165203
165213
  const networkLatencyBefore = querySentTime / 2;
165204
165214
  const networkLatencyAfter = querySentTime / 2;
165205
165215
  const downloadTime = ms(firstDataAt, lastDataAt) - (rowCount > 1 ? parseTime - parseTime / rowCount : 0);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "drizzle-kit",
3
- "version": "1.0.0-beta.2-1be5069",
3
+ "version": "1.0.0-beta.2-ec83fa8",
4
4
  "homepage": "https://orm.drizzle.team",
5
5
  "keywords": [
6
6
  "drizzle",