Welcome | Get started | Dive into Lino | Contribute | Reference

Database overview

Import and setup execution context for demonstration purposes.

>>> from lino import startup
>>> startup('lino_book.projects.db_overview.settings')
>>> from lino.utils.diag import analyzer
>>> print(analyzer.show_db_overview())
... 
7 apps: lino, staticfiles, about, jinja, bootstrap3, extjs, db_overview.
1 models:
==================== ========================= ========= =======
 Name                 Default table             #fields   #rows
-------------------- ------------------------- --------- -------
 db_overview.Potato   db_overview.PotatoTable   4         0
==================== ========================= ========= =======

Found 1 model with duplicate bases
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Model:
         lino_book.projects.db_overview.models.Potato
Duplicate base:
         Food
Inheritance trees:
         Food.Potato
         Food.Vegetable.Potato