Versions in this module Expand all Collapse all v1 v1.3.0 Aug 28, 2026 Changes in this version + const SentinelFileName + func CheckDatabase(ctx *sql.Context, dbName string, ddb *doltdb.DoltDB) error + func ChildAddresses(pm *serial.ProllyTreeNode) []hash.Hash + func DescFingerprint(kd, vd *val.TupleDesc) uint64 + func GetTreeNodeMessage(ctx context.Context, cs chunks.ChunkStore, addr hash.Hash) (serial.Message, error) + func HasValidSentinel(fs filesys.Filesys, doltDir string) bool + func WriteSentinel(fs filesys.Filesys, doltDir string) error + type CacheKey struct + Addr hash.Hash + Desc uint64 + type CorruptionError struct + Branch string + Commit string + Database string + Stats *Stats + Table string + func (e *CorruptionError) Error() string + type InternalKeyAnalysis struct + Corrupt bool + CorruptValues uint64 + OutOfBandValues uint64 + UnexpectedOffsets uint64 + func AnalyzeInternalKeys(pm *serial.ProllyTreeNode, kd *val.TupleDesc) (*InternalKeyAnalysis, error) + type LeafAnalysis struct + Corrupt bool + KeyOOBAddrs []hash.Hash + Stats Stats + ValueOOBAddrs []hash.Hash + func AnalyzeLeaf(pm *serial.ProllyTreeNode, kd, vd *val.TupleDesc) (*LeafAnalysis, error) + type Scanner struct + CacheHits uint64 + Cs chunks.ChunkStore + func NewScanner(cs chunks.ChunkStore) *Scanner + func (s *Scanner) ScanRootNode(ctx context.Context, root *tree.Node, kd, vd *val.TupleDesc) (*Stats, error) + func (s *Scanner) ScanTable(ctx context.Context, ti *TableInfo) (*Stats, error) + func (s *Scanner) ScanTree(ctx context.Context, addr hash.Hash, kd, vd *val.TupleDesc) (*Stats, error) + type Stats struct + AdaptiveValues uint64 + Chunks uint64 + CorruptChunks uint64 + CorruptRows uint64 + CorruptValues uint64 + InternalKeyCorruptValues uint64 + InternalKeyOutOfBandValues uint64 + KeyAdaptiveValues uint64 + KeyCorruptValues uint64 + KeyOutOfBandValues uint64 + LeafChunks uint64 + MissingChunks uint64 + OutOfBandValues uint64 + Rows uint64 + UnexpectedOffsets uint64 + func (s *Stats) Add(o *Stats) + type TableInfo struct + AdaptiveKeyCols []string + AdaptiveValueCols []string + KeyDesc *val.TupleDesc + Name doltdb.TableName + Sch schema.Schema + Tbl *doltdb.Table + ValDesc *val.TupleDesc + func TablesForRoot(sctx *sql.Context, root doltdb.RootValue, ns tree.NodeStore) ([]*TableInfo, error) + func (ti *TableInfo) KeyColsImpacted() bool + func (ti *TableInfo) RowMap(ctx context.Context) (prolly.Map, error) + func (ti *TableInfo) ValColsImpacted() bool