unison-parser-typechecker-0.0.0
Safe HaskellSafe-Inferred
LanguageHaskell2010

Unison.Codebase.IntegrityCheck

Description

There are many invariants we expect to hold in our sqlite database and on codebase objects which we can't maintain using database checks. This module performs checks for some of these invariants, which can be useful to run after performing potentially dangerous operations like migrations.

Synopsis

Documentation

integrityCheckFullCodebase :: Transaction IntegrityResult Source #

Performs all available integrity checks.

integrityCheckAllBranches :: Transaction IntegrityResult Source #

Performs a bevy of checks on branch objects and their relation to causals.

integrityCheckAllCausals :: Transaction IntegrityResult Source #

Performs a bevy of checks on causals.

data IntegrityResult Source #

Constructors

IntegrityErrorDetected (NESet IntegrityError) 
NoIntegrityErrors