The nova.openstack.common.db.sqlalchemy.models Module

SQLAlchemy models.

class ModelBase

Bases: object

Base class for models.

created_at = Column(None, DateTime(), table=None, default=ColumnDefault(<function <lambda> at 0xc9d02a8>))
get(key, default=None)
iteritems()

Make the model object behave like a dict.

Includes attributes from joins.

metadata = None
next()
save(session=None)

Save this object.

update(values)

Make the model object behave like a dict.

updated_at = Column(None, DateTime(), table=None, onupdate=ColumnDefault(<function <lambda> at 0xc9d0320>))
class SoftDeleteMixin

Bases: object

deleted = Column(None, Integer(), table=None, default=ColumnDefault(0))
deleted_at = Column(None, DateTime(), table=None)
soft_delete(session=None)

Mark this object as deleted.

Previous topic

The nova.openstack.common.db.exception Module

Next topic

The nova.openstack.common.db.sqlalchemy.session Module

This Page