Documentation
¶
Overview ¶
Package maintenance defines the data shapes and option vocabulary for den's admin-side operations — notably engine.DropStaleIndexes, the post-schema-change cleanup that drops indexes Den previously created but no longer recognises.
Application code reaches these as den.DropStaleIndexes, den.DryRun, den.StaleIndex, etc. Direct imports of this package are useful when writing helper tooling that itself takes ...maintenance.Option or returns a maintenance.DropStaleResult.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
DryRun bool
}
Config holds the resolved option state for DropStaleIndexes. Exported so engine.DropStaleIndexes (and any future tooling) can read the flags it produced via Resolve.
type DropStaleResult ¶
type DropStaleResult struct {
Dropped []StaleIndex
Kept []StaleIndex
}
DropStaleResult summarizes a DropStaleIndexes call. Dropped contains the indexes that were (or would be, under DryRun) removed. Kept contains indexes that are still referenced by a current IndexDefinition.