[Zodb-checkins] CVS: ZODB4/BDBStorage/Doc - custom_zodb.py:1.1

Barry Warsaw barry@wooz.org
Wed, 4 Dec 2002 14:29:46 -0500


Update of /cvs-repository/ZODB4/BDBStorage/Doc
In directory cvs.zope.org:/tmp/cvs-serv13778

Added Files:
	custom_zodb.py 
Log Message:
Updated to the new naming scheme


=== Added File ZODB4/BDBStorage/Doc/custom_zodb.py ===
import os
from BDBStorage.BerkeleyBase import BerkeleyConfig
from BDBStorage.BDBFullStorage import BDBFullStorage
from BDBStorage.BDBMinimalStorage import BDBMinimalStorage

# Pick one
Class = BDBFullStorage
#Class = BDBMinimalStorage

# The config instance has several attributes which can be used to tune Full
# storage.  See the BerkeleyConfig class docstring for details.  You should
# consider at least setting logdir and frequency.
config = BerkeleyConfig()
config.logdir = '/directory/on/different/disk'
config.frequency = 3600

envpath = os.path.join('var', 'full')
Storage = Class(envpath, config=config)