Skip to content

Latest commit

 

History

History
14 lines (12 loc) · 744 Bytes

direct.rst

File metadata and controls

14 lines (12 loc) · 744 Bytes

Directly querying in Django

If you know how AiiDA stores the data internally in the database, you can directly use Django to query the database (or even use directly SQL commands, if you really feel the urge to do so). Documentation on how queries work in Django can be found on the official Django documentation. The models can be found in :pyaiida.backends.djsite.db.models and is directly accessible as models in the verdi shell via verdi run.

Directly querying in SQLAlchemy

Check out the documentation on <http://www.sqlalchemy.org/>. Models are in :pyaiida.backends.sqlalchemy.models