beaker.ext.database – Database Container and NameSpace Manager classes

Module Contents

class beaker.ext.database.DatabaseContainer
class beaker.ext.database.DatabaseNamespaceManager(namespace, url=None, sa_opts=None, optimistic=False, table_name='beaker_cache', data_dir=None, lock_dir=None, **params)

Creates a database namespace manager

url
SQLAlchemy compliant db url
sa_opts
A dictionary of SQLAlchemy keyword options to initialize the engine with.
optimistic
Use optimistic session locking, note that this will result in an additional select when updating a cache value to compare version numbers.
table_name
The table name to use in the database for the cache.

Project Versions

Table Of Contents

Previous topic

beaker.util – Beaker Utilities

Next topic

beaker.ext.google – Google Container and NameSpace Manager classes

This Page