@query-doctor/core 0.0.4 → 0.0.5

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
@@ -1132,9 +1132,12 @@ var _IndexOptimizer = class _IndexOptimizer {
1132
1132
  await this.db.transaction(async (tx) => {
1133
1133
  await f?.(tx);
1134
1134
  await this.statistics.restoreStats(tx);
1135
- const flags = ["format json", "trace"];
1135
+ const flags = ["format json"];
1136
1136
  if (options && !options.genericPlan) {
1137
1137
  flags.push("analyze");
1138
+ if (this.config.trace) {
1139
+ flags.push("trace");
1140
+ }
1138
1141
  } else {
1139
1142
  flags.push("generic_plan");
1140
1143
  }