@query-doctor/core 0.1.10 → 0.1.11

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/dist/index.js CHANGED
@@ -1505,6 +1505,16 @@ var _Statistics = class _Statistics {
1505
1505
  restoreStats(tx) {
1506
1506
  return this.restoreStats17(tx);
1507
1507
  }
1508
+ approximateTotalRows() {
1509
+ if (!this.exportedMetadata) {
1510
+ return 0;
1511
+ }
1512
+ let totalRows = 0;
1513
+ for (const table of this.exportedMetadata) {
1514
+ totalRows += table.reltuples;
1515
+ }
1516
+ return totalRows;
1517
+ }
1508
1518
  /**
1509
1519
  * We have to cast stavaluesN to the correct type
1510
1520
  * This derives that type for us so it can be used in `array_in`