@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.cjs CHANGED
@@ -1555,6 +1555,16 @@ var _Statistics = class _Statistics {
1555
1555
  restoreStats(tx) {
1556
1556
  return this.restoreStats17(tx);
1557
1557
  }
1558
+ approximateTotalRows() {
1559
+ if (!this.exportedMetadata) {
1560
+ return 0;
1561
+ }
1562
+ let totalRows = 0;
1563
+ for (const table of this.exportedMetadata) {
1564
+ totalRows += table.reltuples;
1565
+ }
1566
+ return totalRows;
1567
+ }
1558
1568
  /**
1559
1569
  * We have to cast stavaluesN to the correct type
1560
1570
  * This derives that type for us so it can be used in `array_in`