beaker.ext.sqla – SqlAlchemy Container and NameSpace Manager classes

Module Contents

beaker.ext.sqla.make_cache_table(metadata, table_name='beaker_cache')

Return a Table object suitable for storing cached values for the namespace manager. Do not create the table.

class beaker.ext.sqla.SqlaContainer
class beaker.ext.sqla.SqlaNamespaceManager(namespace, bind, table, data_dir=None, lock_dir=None, **kwargs)

Create a namespace manager for use with a database table via SQLAlchemy.

bind
SQLAlchemy Engine or Connection object
table
SQLAlchemy Table object in which to store namespace data. This should usually be something created by make_cache_table.