Welcome | Get started | Dive | Contribute | Topics | Reference | Changes | More

lino.utils.dbhash

Utilities around a “database hash”. See The lino.utils.dbhash module.

Functions

check_virgin([restore, verbose])

Verify whether the database is virgin.

compute_dbhash()

Return a dictionary with a hash value of the current database content.

fmn(m)

load_dbhash()

Load the dbhash that was saved in dbhash.json

mark_virgin()

Mark the database as virgin.

lino.utils.dbhash.compute_dbhash()

Return a dictionary with a hash value of the current database content.

lino.utils.dbhash.mark_virgin()

Mark the database as virgin. This is called by prep.

lino.utils.dbhash.load_dbhash()

Load the dbhash that was saved in dbhash.json

lino.utils.dbhash.check_virgin(restore=True, verbose=True)

Verify whether the database is virgin. Print the differences if there are any.