tkp.db.consistency – Database integrity checking

check database for consistency

tkp.db.consistency.check()[source]

Checks for any inconsistent values in tables.

Returns False if any inconsistency is found, otherwise True.

tkp.db.consistency.isconsistent(query)[source]

Counting rows should return 0, otherwise database is in an inconsistent state.

If the database is consistent we return True, otherwise False.