Documentation
¶
Overview ¶
Package dbinspect captures the database schema state (tables, row counts, indexes) so every benchmark snapshot records what indexes existed BEFORE the run. Inspection uses the raw (unproxied) driver so its own queries never pollute the SQL statistics.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Index ¶
type Index struct {
Name string `json:"name"`
Columns string `json:"columns"`
Unique bool `json:"unique"`
}
Index is one index on a table.
type Schema ¶
type Schema struct {
Flavor string `json:"flavor"`
CapturedAt string `json:"captured_at"`
Error string `json:"error,omitempty"`
Tables []Table `json:"tables"`
}
Schema is the captured database state. Error is set instead of failing: inspection is best-effort and must never break measurement.
Click to show internal directories.
Click to hide internal directories.