The nova.virt.baremetal.db.sqlalchemy.api Module

Implementation of SQLAlchemy backend.

model_query(context, *args, **kwargs)

Query helper that accounts for context’s read_deleted field.

Parameters:
  • context – context to query under
  • session – if present, the session to use
  • read_deleted – if present, overrides context’s read_deleted field.
  • project_only – if present and context is user-type, then restrict query to match the context’s project_id.

Previous topic

The nova.virt.baremetal.db.migration Module

Next topic

The nova.virt.baremetal.db.sqlalchemy.migrate_repo.versions.001_init Module

This Page