Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
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
- integrityCheckFullCodebase :: Transaction IntegrityResult
- integrityCheckAllBranches :: Transaction IntegrityResult
- integrityCheckAllCausals :: Transaction IntegrityResult
- prettyPrintIntegrityErrors :: Foldable f => f IntegrityError -> Pretty ColorText
- data IntegrityResult
- = IntegrityErrorDetected (NESet IntegrityError)
- | NoIntegrityErrors
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 #
IntegrityErrorDetected (NESet IntegrityError) | |
NoIntegrityErrors |