everest.resources.entitystores

Entity stores.

class everest.resources.entitystores.CachingEntityStore(name, join_transaction=False)[source]

Bases: everest.resources.entitystores.EntityStore

An entity store that caches all entities in memory.

copy()[source]

Returns a deep copy of the entire entity cache.

class everest.resources.entitystores.DataManager(session)[source]

Bases: object

Data manager to plug an InMemorySession into a zope transaction.

__weakref__

list of weak references to the object (if defined)

class everest.resources.entitystores.EntityStore(name, join_transaction=False)[source]

Bases: object

Base class for all entity stores.

An entity store is responsible for configuration and initialization of a storage backend for entities. It also creates and holds a session factory which is used to create a (thread-local) session. The session alone provides access to the entities loaded from the entity store.

__weakref__

list of weak references to the object (if defined)

configuration[source]

Returns a copy of the configuration for this entity store.

class everest.resources.entitystores.FileSystemEntityStore(name, join_transaction=True)[source]

Bases: everest.resources.entitystores.CachingEntityStore

EntityStore using the file system as storage.

On initialization, this entity store loads resource representations from files into the root repository. Each commit operation writes the specified resource back to file.

commit(session)[source]

Dump all resources that were modified by the given session back into the store.

class everest.resources.entitystores.OrmEntityStore(name, join_transaction=True)[source]

Bases: everest.resources.entitystores.EntityStore

EntityStore connected to an ORM backend.

Project Versions

Previous topic

everest.resources.descriptors

Next topic

everest.resources.interfaces

This Page