BigBrotherBot v1.9.0
System Development Information for the BigBrotherBot project.

b3::lib::beaker::ext::database::DatabaseNamespaceManager Class Reference

Inheritance diagram for b3::lib::beaker::ext::database::DatabaseNamespaceManager:
b3::lib::beaker::container::OpenResourceNamespaceManager b3::lib::beaker::container::NamespaceManager

List of all members.

Public Member Functions

def __init__
def get_access_lock
def get_creation_lock
def do_open
def do_close
def do_remove
def __getitem__
def __contains__
def __setitem__
def __delitem__
def keys

Public Attributes

 lock_dir
 hash
 loaded
 cache
 flags

Static Public Attributes

tuple metadatas = SyncDict()
tuple tables = SyncDict()

Private Member Functions

def _init_dependencies

Private Attributes

 _is_new

Constructor & Destructor Documentation

def b3::lib::beaker::ext::database::DatabaseNamespaceManager::__init__ (   self,
  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.

Member Function Documentation

def b3::lib::beaker::ext::database::DatabaseNamespaceManager::__contains__ (   self,
  key 
)
def b3::lib::beaker::ext::database::DatabaseNamespaceManager::__delitem__ (   self,
  key 
)
def b3::lib::beaker::ext::database::DatabaseNamespaceManager::__getitem__ (   self,
  key 
)
def b3::lib::beaker::ext::database::DatabaseNamespaceManager::__setitem__ (   self,
  key,
  value 
)
def b3::lib::beaker::ext::database::DatabaseNamespaceManager::_init_dependencies (   cls) [private]
def b3::lib::beaker::ext::database::DatabaseNamespaceManager::do_close (   self)
def b3::lib::beaker::ext::database::DatabaseNamespaceManager::do_open (   self,
  flags 
)
def b3::lib::beaker::ext::database::DatabaseNamespaceManager::do_remove (   self)
def b3::lib::beaker::ext::database::DatabaseNamespaceManager::get_access_lock (   self)
def b3::lib::beaker::ext::database::DatabaseNamespaceManager::get_creation_lock (   self,
  key 
)
def b3::lib::beaker::ext::database::DatabaseNamespaceManager::keys (   self)

Member Data Documentation


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Properties