@culpritsql/plan-viewer 0.0.0 → 0.5.6

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.
Files changed (199) hide show
  1. package/package.json +38 -3
  2. package/pkg/ActualSummary.d.ts +10 -0
  3. package/pkg/ActualSummary.js +72 -0
  4. package/pkg/DeadlockGraph.d.ts +9 -0
  5. package/pkg/DeadlockGraph.js +135 -0
  6. package/pkg/DeadlockViewer.d.ts +20 -0
  7. package/pkg/DeadlockViewer.js +62 -0
  8. package/pkg/DocdbWork.d.ts +7 -0
  9. package/pkg/DocdbWork.js +37 -0
  10. package/pkg/NodeDetails.d.ts +15 -0
  11. package/pkg/NodeDetails.js +161 -0
  12. package/pkg/OpIcon.d.ts +9 -0
  13. package/pkg/OpIcon.js +54 -0
  14. package/pkg/PlanAssessmentNotes.d.ts +3 -0
  15. package/pkg/PlanAssessmentNotes.js +8 -0
  16. package/pkg/PlanCanvas.d.ts +47 -0
  17. package/pkg/PlanCanvas.js +9 -0
  18. package/pkg/PlanDiagram.d.ts +47 -0
  19. package/pkg/PlanDiagram.js +534 -0
  20. package/pkg/PlanDiffViewer.d.ts +31 -0
  21. package/pkg/PlanDiffViewer.js +317 -0
  22. package/pkg/PlanInsights.d.ts +6 -0
  23. package/pkg/PlanInsights.js +100 -0
  24. package/pkg/PlanObjects.d.ts +7 -0
  25. package/pkg/PlanObjects.js +138 -0
  26. package/pkg/PlanOperations.d.ts +8 -0
  27. package/pkg/PlanOperations.js +114 -0
  28. package/pkg/PlanRaw.d.ts +4 -0
  29. package/pkg/PlanRaw.js +35 -0
  30. package/pkg/PlanSurface.d.ts +21 -0
  31. package/pkg/PlanSurface.js +66 -0
  32. package/pkg/PlanTypeSchema.d.ts +5 -0
  33. package/pkg/PlanTypeSchema.js +62 -0
  34. package/pkg/PlanView.d.ts +27 -0
  35. package/pkg/PlanView.js +160 -0
  36. package/pkg/PlanViewer.d.ts +30 -0
  37. package/pkg/PlanViewer.js +19 -0
  38. package/pkg/Prose.d.ts +4 -0
  39. package/pkg/Prose.js +6 -0
  40. package/pkg/Sql.d.ts +5 -0
  41. package/pkg/Sql.js +7 -0
  42. package/pkg/THIRD-PARTY-LICENSES.txt +9021 -0
  43. package/pkg/build-report.json +907 -0
  44. package/pkg/defaults.d.ts +29 -0
  45. package/pkg/defaults.js +438 -0
  46. package/pkg/host.d.ts +118 -0
  47. package/pkg/host.js +593 -0
  48. package/pkg/index.d.ts +22 -1
  49. package/pkg/index.js +21 -1
  50. package/pkg/models/Ability.d.ts +6 -0
  51. package/pkg/models/ActualSummary.d.ts +16 -0
  52. package/pkg/models/CachedStatementContext.d.ts +9 -0
  53. package/pkg/models/CachedStatementIdentity.d.ts +7 -0
  54. package/pkg/models/ChangeKind.d.ts +3 -0
  55. package/pkg/models/CleanupEvidence.d.ts +6 -0
  56. package/pkg/models/CollectionTarget.d.ts +5 -0
  57. package/pkg/models/CompilationMemory.d.ts +3 -0
  58. package/pkg/models/CompileHistory.d.ts +13 -0
  59. package/pkg/models/Connect.d.ts +22 -0
  60. package/pkg/models/ConnectionSecurityMode.d.ts +3 -0
  61. package/pkg/models/ConnectionSecuritySpec.d.ts +4 -0
  62. package/pkg/models/ConstraintValidation.d.ts +6 -0
  63. package/pkg/models/DatabaseIdentity.d.ts +5 -0
  64. package/pkg/models/DatabaseLocation.d.ts +3 -0
  65. package/pkg/models/DatabaseProduct.d.ts +6 -0
  66. package/pkg/models/Deadlock.d.ts +23 -0
  67. package/pkg/models/DeadlockFix.d.ts +16 -0
  68. package/pkg/models/DeadlockFixKind.d.ts +6 -0
  69. package/pkg/models/DeadlockPattern.d.ts +3 -0
  70. package/pkg/models/DeadlockProcess.d.ts +23 -0
  71. package/pkg/models/DeadlockResource.d.ts +12 -0
  72. package/pkg/models/DistributionPopulation.d.ts +3 -0
  73. package/pkg/models/DocdbMetrics.d.ts +7 -0
  74. package/pkg/models/Engine.d.ts +3 -0
  75. package/pkg/models/EngineAbilities.d.ts +46 -0
  76. package/pkg/models/EngineFacts.d.ts +28 -0
  77. package/pkg/models/EvidencePresentation.d.ts +4 -0
  78. package/pkg/models/ExecutionProtection.d.ts +3 -0
  79. package/pkg/models/Guess.d.ts +6 -0
  80. package/pkg/models/InsightArea.d.ts +6 -0
  81. package/pkg/models/LocalizedText.d.ts +4 -0
  82. package/pkg/models/LockHolder.d.ts +3 -0
  83. package/pkg/models/LogRateGovernanceReason.d.ts +7 -0
  84. package/pkg/models/Message.d.ts +4 -0
  85. package/pkg/models/MessageValue.d.ts +4 -0
  86. package/pkg/models/Metric.d.ts +10 -0
  87. package/pkg/models/MssqlCatalogIndexColumn.d.ts +3 -0
  88. package/pkg/models/MssqlCurrentTableType.d.ts +10 -0
  89. package/pkg/models/MssqlCurrentTypeColumn.d.ts +7 -0
  90. package/pkg/models/MssqlCurrentTypeIndex.d.ts +4 -0
  91. package/pkg/models/MssqlCurrentTypeModule.d.ts +4 -0
  92. package/pkg/models/MssqlCurrentTypeParameter.d.ts +3 -0
  93. package/pkg/models/MssqlCurrentTypeSchema.d.ts +11 -0
  94. package/pkg/models/MssqlCurrentTypeSchemaStatus.d.ts +3 -0
  95. package/pkg/models/MssqlIndexParentKind.d.ts +3 -0
  96. package/pkg/models/MssqlObjectIdentity.d.ts +7 -0
  97. package/pkg/models/NativeIdentity.d.ts +3 -0
  98. package/pkg/models/NativePlanIdentity.d.ts +4 -0
  99. package/pkg/models/NativeQueryIdentity.d.ts +3 -0
  100. package/pkg/models/NativeReadContext.d.ts +13 -0
  101. package/pkg/models/NodeKind.d.ts +3 -0
  102. package/pkg/models/NodeMatch.d.ts +3 -0
  103. package/pkg/models/NodeRuntime.d.ts +28 -0
  104. package/pkg/models/PageServerReadAvailability.d.ts +3 -0
  105. package/pkg/models/PageServerReadStatistics.d.ts +8 -0
  106. package/pkg/models/PageServerReadSummary.d.ts +19 -0
  107. package/pkg/models/PartitionTail.d.ts +6 -0
  108. package/pkg/models/Plan.d.ts +11 -0
  109. package/pkg/models/PlanAccessRows.d.ts +13 -0
  110. package/pkg/models/PlanAutomaticIndex.d.ts +3 -0
  111. package/pkg/models/PlanChange.d.ts +17 -0
  112. package/pkg/models/PlanChangedColumn.d.ts +3 -0
  113. package/pkg/models/PlanConversion.d.ts +4 -0
  114. package/pkg/models/PlanConversionIssue.d.ts +3 -0
  115. package/pkg/models/PlanCurrentTypeSchemaView.d.ts +6 -0
  116. package/pkg/models/PlanDiff.d.ts +13 -0
  117. package/pkg/models/PlanExecutionMode.d.ts +3 -0
  118. package/pkg/models/PlanFacts.d.ts +36 -0
  119. package/pkg/models/PlanHistory.d.ts +6 -0
  120. package/pkg/models/PlanHistoryKind.d.ts +3 -0
  121. package/pkg/models/PlanIndexColumns.d.ts +3 -0
  122. package/pkg/models/PlanIndexHint.d.ts +3 -0
  123. package/pkg/models/PlanInsight.d.ts +44 -0
  124. package/pkg/models/PlanInsightShare.d.ts +3 -0
  125. package/pkg/models/PlanInsights.d.ts +8 -0
  126. package/pkg/models/PlanKind.d.ts +3 -0
  127. package/pkg/models/PlanMeasurementRef.d.ts +3 -0
  128. package/pkg/models/PlanMemoryGrantFeedback.d.ts +15 -0
  129. package/pkg/models/PlanMemoryGrantFeedbackIssue.d.ts +3 -0
  130. package/pkg/models/PlanMemoryGrantFeedbackState.d.ts +3 -0
  131. package/pkg/models/PlanNode.d.ts +7 -0
  132. package/pkg/models/PlanNodeFacts.d.ts +63 -0
  133. package/pkg/models/PlanOperatorView.d.ts +5 -0
  134. package/pkg/models/PlanPageServerIo.d.ts +16 -0
  135. package/pkg/models/PlanPageServerIoIssue.d.ts +4 -0
  136. package/pkg/models/PlanPageServerIoView.d.ts +7 -0
  137. package/pkg/models/PlanPageServerMetric.d.ts +3 -0
  138. package/pkg/models/PlanParameter.d.ts +10 -0
  139. package/pkg/models/PlanParameterComparison.d.ts +3 -0
  140. package/pkg/models/PlanParameterContext.d.ts +15 -0
  141. package/pkg/models/PlanParameterIssue.d.ts +3 -0
  142. package/pkg/models/PlanParameterUse.d.ts +4 -0
  143. package/pkg/models/PlanParameterUseKind.d.ts +3 -0
  144. package/pkg/models/PlanParameterValueState.d.ts +3 -0
  145. package/pkg/models/PlanParentRelationship.d.ts +3 -0
  146. package/pkg/models/PlanRegion.d.ts +7 -0
  147. package/pkg/models/PlanSampleSource.d.ts +6 -0
  148. package/pkg/models/PlanScanCompletion.d.ts +8 -0
  149. package/pkg/models/PlanScanThread.d.ts +3 -0
  150. package/pkg/models/PlanTemporaryTableUse.d.ts +7 -0
  151. package/pkg/models/PlanVariant.d.ts +23 -0
  152. package/pkg/models/PlanView.d.ts +9 -0
  153. package/pkg/models/PlanWarning.d.ts +3 -0
  154. package/pkg/models/PlanningStep.d.ts +7 -0
  155. package/pkg/models/ProductFacts.d.ts +11 -0
  156. package/pkg/models/QueryCosts.d.ts +62 -0
  157. package/pkg/models/QueryStat.d.ts +69 -0
  158. package/pkg/models/QueryTrend.d.ts +7 -0
  159. package/pkg/models/QueryVariantFamily.d.ts +9 -0
  160. package/pkg/models/QueryWaitCoverage.d.ts +8 -0
  161. package/pkg/models/ReadUnit.d.ts +7 -0
  162. package/pkg/models/Refusal.d.ts +7 -0
  163. package/pkg/models/RelationalInput.d.ts +5 -0
  164. package/pkg/models/RelationalInputKind.d.ts +3 -0
  165. package/pkg/models/RelationalInputProvenance.d.ts +3 -0
  166. package/pkg/models/RequestEvidence.d.ts +7 -0
  167. package/pkg/models/RetainedPlanProvenance.d.ts +11 -0
  168. package/pkg/models/RuntimeDistribution.d.ts +16 -0
  169. package/pkg/models/RuntimeDistributionIssue.d.ts +3 -0
  170. package/pkg/models/RuntimeDistributionOrigin.d.ts +3 -0
  171. package/pkg/models/RuntimeDuration.d.ts +3 -0
  172. package/pkg/models/RuntimeHistogramBucket.d.ts +8 -0
  173. package/pkg/models/RuntimeQuantile.d.ts +4 -0
  174. package/pkg/models/Scenario.d.ts +11 -0
  175. package/pkg/models/ScenarioKind.d.ts +3 -0
  176. package/pkg/models/SessionAction.d.ts +6 -0
  177. package/pkg/models/SessionIdFormat.d.ts +6 -0
  178. package/pkg/models/Severity.d.ts +3 -0
  179. package/pkg/models/SharedResourceIdentity.d.ts +11 -0
  180. package/pkg/models/SharedResourceKind.d.ts +3 -0
  181. package/pkg/models/SourcePartition.d.ts +8 -0
  182. package/pkg/models/Spread.d.ts +18 -0
  183. package/pkg/models/SqlSyntax.d.ts +6 -0
  184. package/pkg/models/StatementMetrics.d.ts +32 -0
  185. package/pkg/models/StatementOrigin.d.ts +6 -0
  186. package/pkg/models/StatementTemporaryWork.d.ts +3 -0
  187. package/pkg/models/StatisticsFreshness.d.ts +3 -0
  188. package/pkg/models/TriggerTiming.d.ts +3 -0
  189. package/pkg/models/Unit.d.ts +3 -0
  190. package/pkg/models/WaitClass.d.ts +3 -0
  191. package/pkg/models/WaitMechanism.d.ts +4 -0
  192. package/pkg/models/WaitSampling.d.ts +3 -0
  193. package/pkg/models/WaitStat.d.ts +4 -0
  194. package/pkg/models/WorkerSkew.d.ts +3 -0
  195. package/pkg/models/WriteLog.d.ts +7 -0
  196. package/pkg/models/WriteRows.d.ts +7 -0
  197. package/pkg/styles.css +3273 -0
  198. package/pkg/types.d.ts +29 -0
  199. package/pkg/types.js +1 -0
@@ -0,0 +1,7 @@
1
+ // This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
2
+
3
+ /**
4
+ * One query's database time and executions in each bucket of the workload timeline. `None` marks a bucket the
5
+ * source can't account for (an earlier scan didn't track this query, or its counters were reset).
6
+ */
7
+ export type QueryTrend = { time_ms: Array<number | null>, executions: Array<number | null>, };
@@ -0,0 +1,9 @@
1
+ // This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
2
+ import type { NativePlanIdentity } from "./NativePlanIdentity.js";
3
+ import type { NativeQueryIdentity } from "./NativeQueryIdentity.js";
4
+
5
+ /**
6
+ * Native query-variant metadata within the captured database/source namespace. A dispatcher can have no runtime
7
+ * rows while its child runs; these identities therefore never substitute for or add to the child's statistics.
8
+ */
9
+ export type QueryVariantFamily = { variant: NativeQueryIdentity, parent: NativeQueryIdentity, dispatcher: NativePlanIdentity, };
@@ -0,0 +1,8 @@
1
+ // This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
2
+ import type { WaitClass } from "./WaitClass.js";
3
+
4
+ /**
5
+ * Qualification of query wait classes, independent of their positive observed totals. A source can measure only
6
+ * some classes; an enabled, completely read I/O source does not establish zero lock waiting.
7
+ */
8
+ export type QueryWaitCoverage = { classes: Array<WaitClass>, complete: boolean, };
@@ -0,0 +1,7 @@
1
+ // This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
2
+
3
+ /**
4
+ * What a statement's reads are counted in: pages on most engines, rows examined on MySQL and MariaDB (the rows the
5
+ * storage engine handed to the server). Messages `select` on it.
6
+ */
7
+ export type ReadUnit = "pages" | "rows_examined";
@@ -0,0 +1,7 @@
1
+ // This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
2
+
3
+ /**
4
+ * Why an engine can't do something: the message and, when there's one, what to do instead, as message keys. Each is
5
+ * said with the engine's label as `{engine}` and the ability's id as `{ability}` ([`Engine::refused`]).
6
+ */
7
+ export type Refusal = { message: string, hint: string | null, };
@@ -0,0 +1,5 @@
1
+ // This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
2
+ import type { RelationalInputKind } from "./RelationalInputKind.js";
3
+ import type { RelationalInputProvenance } from "./RelationalInputProvenance.js";
4
+
5
+ export type RelationalInput = { kind: RelationalInputKind, provenance: RelationalInputProvenance, };
@@ -0,0 +1,3 @@
1
+ // This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
2
+
3
+ export type RelationalInputKind = "table-valued-parameter" | "local-table-variable" | "temporary-table" | "table-valued-function" | "unknown";
@@ -0,0 +1,3 @@
1
+ // This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
2
+
3
+ export type RelationalInputProvenance = "native-plan" | "native-declaration" | "native-parameter-metadata" | "unresolved";
@@ -0,0 +1,7 @@
1
+ // This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
2
+
3
+ export type RequestEvidence = {
4
+ /**
5
+ * Counts describe the bounded set of request identifiers actually present in the log.
6
+ */
7
+ requests: number, repeated_requests: number, most_calls: number, sample_truncated: boolean, };
@@ -0,0 +1,11 @@
1
+ // This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
2
+ import type { CachedStatementContext } from "./CachedStatementContext.js";
3
+ import type { NativePlanIdentity } from "./NativePlanIdentity.js";
4
+ import type { NativeQueryIdentity } from "./NativeQueryIdentity.js";
5
+ import type { NativeReadContext } from "./NativeReadContext.js";
6
+
7
+ export type RetainedPlanProvenance = { read: NativeReadContext, statement: CachedStatementContext,
8
+ /**
9
+ * A source-established CURRENT statement relation; it does not transfer historical runtime or schema facts.
10
+ */
11
+ query: NativeQueryIdentity | null, native_plan: NativePlanIdentity | null, };
@@ -0,0 +1,16 @@
1
+ // This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
2
+ import type { DistributionPopulation } from "./DistributionPopulation.js";
3
+ import type { RuntimeDistributionIssue } from "./RuntimeDistributionIssue.js";
4
+ import type { RuntimeDistributionOrigin } from "./RuntimeDistributionOrigin.js";
5
+ import type { RuntimeHistogramBucket } from "./RuntimeHistogramBucket.js";
6
+ import type { RuntimeQuantile } from "./RuntimeQuantile.js";
7
+
8
+ export type RuntimeDistribution = {
9
+ /**
10
+ * Declared native source identifier; never a translated label or a selector for analysis behavior.
11
+ */
12
+ source: string, origin: RuntimeDistributionOrigin, population: DistributionPopulation, p50: RuntimeQuantile | null, p95: RuntimeQuantile | null, p99: RuntimeQuantile | null, histogram: Array<RuntimeHistogramBucket>,
13
+ /**
14
+ * Independent valid observations remain available when another source cannot be read or decoded.
15
+ */
16
+ issue: RuntimeDistributionIssue | null, };
@@ -0,0 +1,3 @@
1
+ // This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
2
+
3
+ export type RuntimeDistributionIssue = "read-unavailable" | "invalid-native-values" | "inconsistent-population";
@@ -0,0 +1,3 @@
1
+ // This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
2
+
3
+ export type RuntimeDistributionOrigin = "statement-summary" | "native-histogram" | "captured-runs";
@@ -0,0 +1,3 @@
1
+ // This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
2
+
3
+ export type RuntimeDuration = { "unit": "milliseconds", value: number, } | { "unit": "picoseconds", value: string, };
@@ -0,0 +1,8 @@
1
+ // This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
2
+ import type { RuntimeDuration } from "./RuntimeDuration.js";
3
+
4
+ export type RuntimeHistogramBucket = { lower: RuntimeDuration, upper: RuntimeDuration,
5
+ /**
6
+ * Exact native or captured-sample count, never a rounded JavaScript number.
7
+ */
8
+ samples: string, };
@@ -0,0 +1,4 @@
1
+ // This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
2
+ import type { RuntimeDuration } from "./RuntimeDuration.js";
3
+
4
+ export type RuntimeQuantile = { "kind": "sample-value", value: RuntimeDuration, } | { "kind": "histogram-upper-bound", lower: RuntimeDuration | null, upper: RuntimeDuration, };
@@ -0,0 +1,11 @@
1
+ // This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
2
+ import type { ScenarioKind } from "./ScenarioKind.js";
3
+
4
+ /**
5
+ * One condition that differs between the plans, with what it does to the plan.
6
+ */
7
+ export type Scenario = { kind: ScenarioKind, title: string, detail: string | null,
8
+ /**
9
+ * Node in plan A this is about, when it is about one.
10
+ */
11
+ a: number | null, b: number | null, };
@@ -0,0 +1,3 @@
1
+ // This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
2
+
3
+ export type ScenarioKind = "statement" | "plan-kind" | "estimator" | "parameters" | "estimates" | "index" | "conversion" | "parallelism" | "memory";
@@ -0,0 +1,6 @@
1
+ // This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
2
+
3
+ /**
4
+ * Something Live can do to another session. Never offered on production connections.
5
+ */
6
+ export type SessionAction = "cancel" | "terminate";
@@ -0,0 +1,6 @@
1
+ // This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
2
+
3
+ /**
4
+ * How Live labels an already qualified native actor. This formats an identity; it does not discover one.
5
+ */
6
+ export type SessionIdFormat = "native-id" | "native-id-and-generation";
@@ -0,0 +1,3 @@
1
+ // This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
2
+
3
+ export type Severity = "low" | "medium" | "high";
@@ -0,0 +1,11 @@
1
+ // This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
2
+ import type { Engine } from "./Engine.js";
3
+ import type { NativeIdentity } from "./NativeIdentity.js";
4
+ import type { SharedResourceKind } from "./SharedResourceKind.js";
5
+
6
+ /**
7
+ * The adapter supplies both the resource's native identity and its namespace. A pool name, node number,
8
+ * or process-local identifier alone cannot establish identity across unrelated servers or clusters.
9
+ * Resource incarnation belongs here; counter resets and process/session lifetimes remain measurement evidence.
10
+ */
11
+ export type SharedResourceIdentity = { engine: Engine, kind: SharedResourceKind, namespace: NativeIdentity, native: NativeIdentity, };
@@ -0,0 +1,3 @@
1
+ // This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
2
+
3
+ export type SharedResourceKind = "instance" | "pool" | "cluster" | "node";
@@ -0,0 +1,8 @@
1
+ // This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
2
+ import type { SharedResourceIdentity } from "./SharedResourceIdentity.js";
3
+
4
+ export type SourcePartition = { "kind": "target" } | { "kind": "instance-local", member: SharedResourceIdentity | null,
5
+ /**
6
+ * A source-owned native generation, separate from replica role and collector ownership epochs.
7
+ */
8
+ epoch: string | null, };
@@ -0,0 +1,18 @@
1
+ // This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
2
+ import type { RuntimeDistribution } from "./RuntimeDistribution.js";
3
+
4
+ /**
5
+ * How a statement's run times spread. Every engine keeps something different: SQL Server and Postgres the fastest
6
+ * run, MySQL percentiles and a run-time histogram (8.0.19+). Missing values are `None`, never zero.
7
+ */
8
+ export type Spread = { min_ms: number | null,
9
+ /**
10
+ * Each distribution owns its quantile representation and population; independent observations stay separate.
11
+ */
12
+ distributions: Array<RuntimeDistribution>,
13
+ /**
14
+ * Time spent waiting for locks across all runs (MySQL).
15
+ * Native accumulated lock timer. Its source may cover only table-lock acquisition and may use a different
16
+ * clock from statement execution; a scalar value establishes neither all lock classes nor an elapsed share.
17
+ */
18
+ lock_ms: number | null, };
@@ -0,0 +1,6 @@
1
+ // This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
2
+
3
+ /**
4
+ * The SQL grammar a server speaks, independently of its storage engine and measurements.
5
+ */
6
+ export type SqlSyntax = "mssql" | "postgres" | "mysql" | "sqlite";
@@ -0,0 +1,32 @@
1
+ // This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
2
+ import type { PlanningStep } from "./PlanningStep.js";
3
+ import type { ReadUnit } from "./ReadUnit.js";
4
+ import type { WriteLog } from "./WriteLog.js";
5
+ import type { WriteRows } from "./WriteRows.js";
6
+
7
+ /**
8
+ * Counter semantics shared with the app. Optional facts describe support; a particular scan may still lack data. Its
9
+ * words are message keys, said with [`i18n::t`]; a note's `{engine}` is the server's display name, including product
10
+ * variants such as MariaDB.
11
+ */
12
+ export type StatementMetrics = { planning: PlanningStep,
13
+ /**
14
+ * Message key: what [`StatementMetrics::planning`] is called ("Compiling").
15
+ */
16
+ planning_label: string, planning_setting: string | null, compilation_history: boolean, reads: ReadUnit,
17
+ /**
18
+ * Message key: a run's reads ("Pages read per run").
19
+ */
20
+ reads_label: string,
21
+ /**
22
+ * What a write's row count means; `None` where the engine counts no rows for a write (MySQL).
23
+ */
24
+ write_rows: WriteRows | null, lock_time: boolean, log: WriteLog,
25
+ /**
26
+ * Message key: [`StatementMetrics::log`] in a sentence ("WAL").
27
+ */
28
+ log_name: string,
29
+ /**
30
+ * Message key: the label of what a statement wrote to it ("WAL written").
31
+ */
32
+ log_label: string, missing_costs_note: string | null, errors_note: string | null, runtime_note: string, runtime_histogram_note: string | null, runtime_cache_note: string | null, };
@@ -0,0 +1,6 @@
1
+ // This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
2
+
3
+ /**
4
+ * Native provenance is a fact, independent of redacted text and analytical workload selection.
5
+ */
6
+ export type StatementOrigin = "application" | "culprit-monitoring" | "culprit" | "engine-internal" | "unknown";
@@ -0,0 +1,3 @@
1
+ // This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
2
+
3
+ export type StatementTemporaryWork = { "kind": "block-io", source: string, bytes_per_block: number | null, read_blocks: string | null, written_blocks: string | null, read_time_ms: number | null, write_time_ms: number | null, } | { "kind": "table-creation", source: string, created_tables: string | null, disk_tables: string | null, sort_merge_passes: string | null, } | { "kind": "space-usage", source: string, bytes_per_page: number, usage_pages_total: number, };
@@ -0,0 +1,3 @@
1
+ // This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
2
+
3
+ export type StatisticsFreshness = "per-object" | "per-table" | "unavailable";
@@ -0,0 +1,3 @@
1
+ // This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
2
+
3
+ export type TriggerTiming = { name: string, relation: string | null, time_ms: number, calls: number | null, };
@@ -0,0 +1,3 @@
1
+ // This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
2
+
3
+ export type Unit = "ms" | "count" | "bytes" | "ratio" | "rows" | "pages" | "days" | "text";
@@ -0,0 +1,3 @@
1
+ // This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
2
+
3
+ export type WaitClass = "cpu" | "workers" | "rpc" | "storage" | "io" | "rows" | "lock" | "latch" | "log" | "log-governance" | "network" | "parallelism" | "memory" | "compilation" | "other";
@@ -0,0 +1,4 @@
1
+ // This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
2
+ import type { LogRateGovernanceReason } from "./LogRateGovernanceReason.js";
3
+
4
+ export type WaitMechanism = { "kind": "log-rate-governance", "reason": LogRateGovernanceReason } | { "kind": "client-result-output" };
@@ -0,0 +1,3 @@
1
+ // This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
2
+
3
+ export type WaitSampling = "sessions" | "counters";
@@ -0,0 +1,4 @@
1
+ // This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
2
+ import type { WaitMechanism } from "./WaitMechanism.js";
3
+
4
+ export type WaitStat = { mechanism: WaitMechanism | null, category: string, wait_type: string | null, wait_ms: number, tasks: number | null, };
@@ -0,0 +1,3 @@
1
+ // This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
2
+
3
+ export type WorkerSkew = { node: number, busiest: number, threads: number, };
@@ -0,0 +1,7 @@
1
+ // This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
2
+
3
+ /**
4
+ * The log a statement's changes are written to before they reach the data files: PostgreSQL's WAL, the others'
5
+ * transaction log. Messages `select` on it (`{log, select, wal {..} other {..}}`).
6
+ */
7
+ export type WriteLog = "wal" | "transaction_log";
@@ -0,0 +1,7 @@
1
+ // This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
2
+
3
+ /**
4
+ * What the row count of a statement that writes means: the rows it touched, the rows it changed, or (where the engine
5
+ * counts nothing else) the rows it returned.
6
+ */
7
+ export type WriteRows = "rows" | "changed" | "returned";