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, schema_name=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.
schema_name
The schema name to use in the database for the cache.