pyre.db.Persistent

Module Contents

class pyre.db.Persistent.Persistent(name, bases, attributes, schema=None, **kwds)

Bases: pyre.patterns.AttributeClassifier.AttributeClassifier

Metaclass that enables the creation of classes whose instances store part of their attributes in relational database tables.

{Persistent} and its instance {Object} provide the necessary layer to bridge object oriented semantics with the relational model. The goal is to make the existence of the relational tables more transparent to the developer of database applications by removing as much of the grunt work of storing and retrieving object state as possible.

__call__(self, **kwds)

Create one of my instances