bsddb.db (version 4.2.9)
index
/usr/local/lib/python2.4/bsddb/db.py
Module Docs

#----------------------------------------------------------------------
#  Copyright (c) 1999-2001, Digital Creations, Fredericksburg, VA, USA
#  and Andrew Kuchling. All rights reserved.
#
#  Redistribution and use in source and binary forms, with or without
#  modification, are permitted provided that the following conditions are
#  met:
#
#    o Redistributions of source code must retain the above copyright
#      notice, this list of conditions, and the disclaimer that follows.
#
#    o Redistributions in binary form must reproduce the above copyright
#      notice, this list of conditions, and the following disclaimer in
#      the documentation and/or other materials provided with the
#      distribution.
#
#    o Neither the name of Digital Creations nor the names of its
#      contributors may be used to endorse or promote products derived
#      from this software without specific prior written permission.
#
#  THIS SOFTWARE IS PROVIDED BY DIGITAL CREATIONS AND CONTRIBUTORS *AS
#  IS* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
#  TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
#  PARTICULAR PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL DIGITAL
#  CREATIONS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
#  INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
#  BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
#  OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
#  ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR
#  TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE
#  USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH
#  DAMAGE.
#----------------------------------------------------------------------

 
Classes
       
exceptions.Exception
bsddb._db.DBError
bsddb._db.DBAccessError
bsddb._db.DBAgainError
bsddb._db.DBBusyError
bsddb._db.DBCursorClosedError
bsddb._db.DBFileExistsError
bsddb._db.DBInvalidArgError
bsddb._db.DBKeyEmptyError
bsddb._db.DBKeyExistError
bsddb._db.DBLockDeadlockError
bsddb._db.DBLockNotGrantedError
bsddb._db.DBNoMemoryError
bsddb._db.DBNoServerError
bsddb._db.DBNoServerHomeError
bsddb._db.DBNoServerIDError
bsddb._db.DBNoSpaceError
bsddb._db.DBNoSuchFileError
bsddb._db.DBOldVersionError
bsddb._db.DBPageNotFoundError
bsddb._db.DBPermissionsError
bsddb._db.DBRunRecoveryError
bsddb._db.DBSecondaryBadError
bsddb._db.DBVerifyBadError

 
class DBAccessError(DBError)
    
Method resolution order:
DBAccessError
DBError
exceptions.Exception

Methods inherited from exceptions.Exception:
__getitem__(...)
__init__(...)
__str__(...)

 
class DBAgainError(DBError)
    
Method resolution order:
DBAgainError
DBError
exceptions.Exception

Methods inherited from exceptions.Exception:
__getitem__(...)
__init__(...)
__str__(...)

 
class DBBusyError(DBError)
    
Method resolution order:
DBBusyError
DBError
exceptions.Exception

Methods inherited from exceptions.Exception:
__getitem__(...)
__init__(...)
__str__(...)

 
class DBCursorClosedError(DBError)
    
Method resolution order:
DBCursorClosedError
DBError
exceptions.Exception

Methods inherited from exceptions.Exception:
__getitem__(...)
__init__(...)
__str__(...)

 
class DBError(exceptions.Exception)
     Methods inherited from exceptions.Exception:
__getitem__(...)
__init__(...)
__str__(...)

 
class DBFileExistsError(DBError)
    
Method resolution order:
DBFileExistsError
DBError
exceptions.Exception

Methods inherited from exceptions.Exception:
__getitem__(...)
__init__(...)
__str__(...)

 
class DBInvalidArgError(DBError)
    
Method resolution order:
DBInvalidArgError
DBError
exceptions.Exception

Methods inherited from exceptions.Exception:
__getitem__(...)
__init__(...)
__str__(...)

 
class DBKeyEmptyError(DBError)
    
Method resolution order:
DBKeyEmptyError
DBError
exceptions.Exception

Methods inherited from exceptions.Exception:
__getitem__(...)
__init__(...)
__str__(...)

 
class DBKeyExistError(DBError)
    
Method resolution order:
DBKeyExistError
DBError
exceptions.Exception

Methods inherited from exceptions.Exception:
__getitem__(...)
__init__(...)
__str__(...)

 
class DBLockDeadlockError(DBError)
    
Method resolution order:
DBLockDeadlockError
DBError
exceptions.Exception

Methods inherited from exceptions.Exception:
__getitem__(...)
__init__(...)
__str__(...)

 
class DBLockNotGrantedError(DBError)
    
Method resolution order:
DBLockNotGrantedError
DBError
exceptions.Exception

Methods inherited from exceptions.Exception:
__getitem__(...)
__init__(...)
__str__(...)

 
class DBNoMemoryError(DBError)
    
Method resolution order:
DBNoMemoryError
DBError
exceptions.Exception

Methods inherited from exceptions.Exception:
__getitem__(...)
__init__(...)
__str__(...)

 
class DBNoServerError(DBError)
    
Method resolution order:
DBNoServerError
DBError
exceptions.Exception

Methods inherited from exceptions.Exception:
__getitem__(...)
__init__(...)
__str__(...)

 
class DBNoServerHomeError(DBError)
    
Method resolution order:
DBNoServerHomeError
DBError
exceptions.Exception

Methods inherited from exceptions.Exception:
__getitem__(...)
__init__(...)
__str__(...)

 
class DBNoServerIDError(DBError)
    
Method resolution order:
DBNoServerIDError
DBError
exceptions.Exception

Methods inherited from exceptions.Exception:
__getitem__(...)
__init__(...)
__str__(...)

 
class DBNoSpaceError(DBError)
    
Method resolution order:
DBNoSpaceError
DBError
exceptions.Exception

Methods inherited from exceptions.Exception:
__getitem__(...)
__init__(...)
__str__(...)

 
class DBNoSuchFileError(DBError)
    
Method resolution order:
DBNoSuchFileError
DBError
exceptions.Exception

Methods inherited from exceptions.Exception:
__getitem__(...)
__init__(...)
__str__(...)

 
class DBOldVersionError(DBError)
    
Method resolution order:
DBOldVersionError
DBError
exceptions.Exception

Methods inherited from exceptions.Exception:
__getitem__(...)
__init__(...)
__str__(...)

 
class DBPageNotFoundError(DBError)
    
Method resolution order:
DBPageNotFoundError
DBError
exceptions.Exception

Methods inherited from exceptions.Exception:
__getitem__(...)
__init__(...)
__str__(...)

 
class DBPermissionsError(DBError)
    
Method resolution order:
DBPermissionsError
DBError
exceptions.Exception

Methods inherited from exceptions.Exception:
__getitem__(...)
__init__(...)
__str__(...)

 
class DBRunRecoveryError(DBError)
    
Method resolution order:
DBRunRecoveryError
DBError
exceptions.Exception

Methods inherited from exceptions.Exception:
__getitem__(...)
__init__(...)
__str__(...)

 
class DBSecondaryBadError(DBError)
    
Method resolution order:
DBSecondaryBadError
DBError
exceptions.Exception

Methods inherited from exceptions.Exception:
__getitem__(...)
__init__(...)
__str__(...)

 
class DBVerifyBadError(DBError)
    
Method resolution order:
DBVerifyBadError
DBError
exceptions.Exception

Methods inherited from exceptions.Exception:
__getitem__(...)
__init__(...)
__str__(...)

 
Functions
       
DB(...)
DBEnv(...)
version(...)
Returns a tuple of major, minor, and patch release numbers of the
underlying DB library.

 
Data
        DB_AFTER = 1
DB_AGGRESSIVE = 1
DB_APPEND = 2
DB_ARCH_ABS = 1
DB_ARCH_DATA = 2
DB_ARCH_LOG = 4
DB_AUTO_COMMIT = 8388608
DB_BEFORE = 3
DB_BTREE = 1
DB_CACHED_COUNTS = 4
DB_CDB_ALLDB = 2048
DB_CHECKPOINT = 0
DB_CLIENT = 1
DB_COMMIT = 5
DB_CONSUME = 6
DB_CONSUME_WAIT = 7
DB_CREATE = 1
DB_CURRENT = 8
DB_DIRTY_READ = 16777216
DB_DONOTINDEX = -30999
DB_DUP = 2
DB_DUPSORT = 4
DB_ENCRYPT_AES = 1
DB_EXCL = 2048
DB_EXTENT = 4096
DB_FAST_STAT = 9
DB_FCNTL_LOCKING = 4096
DB_FIRST = 10
DB_FLUSH = 33554432
DB_FORCE = 4
DB_GET_BOTH = 11
DB_GET_RECNO = 14
DB_HASH = 2
DB_INCOMPLETE = 0
DB_INIT_CDB = 2048
DB_INIT_LOCK = 4096
DB_INIT_LOG = 8192
DB_INIT_MPOOL = 16384
DB_INIT_TXN = 32768
DB_JOINENV = 65536
DB_JOIN_ITEM = 15
DB_JOIN_NOSORT = 1
DB_KEYEMPTY = -30998
DB_KEYEXIST = -30997
DB_KEYFIRST = 16
DB_KEYLAST = 17
DB_LAST = 18
DB_LOCKDOWN = 131072
DB_LOCK_CONFLICT = 0
DB_LOCK_DEADLOCK = -30996
DB_LOCK_DEFAULT = 1
DB_LOCK_DIRTY = 7
DB_LOCK_DUMP = 0
DB_LOCK_GET = 1
DB_LOCK_INHERIT = 3
DB_LOCK_IREAD = 5
DB_LOCK_IWR = 6
DB_LOCK_IWRITE = 4
DB_LOCK_MAXLOCKS = 3
DB_LOCK_MINLOCKS = 4
DB_LOCK_MINWRITE = 5
DB_LOCK_NG = 0
DB_LOCK_NORUN = 0
DB_LOCK_NOTGRANTED = -30995
DB_LOCK_NOWAIT = 2
DB_LOCK_OLDEST = 6
DB_LOCK_PUT = 4
DB_LOCK_PUT_ALL = 5
DB_LOCK_PUT_OBJ = 6
DB_LOCK_RANDOM = 7
DB_LOCK_READ = 1
DB_LOCK_RECORD = 4
DB_LOCK_SWITCH = 32
DB_LOCK_UPGRADE = 64
DB_LOCK_UPGRADE_WRITE = 10
DB_LOCK_WAIT = 3
DB_LOCK_WRITE = 2
DB_LOCK_WWRITE = 8
DB_LOCK_YOUNGEST = 8
DB_LSTAT_ABORTED = 1
DB_LSTAT_ERR = 2
DB_LSTAT_FREE = 4
DB_LSTAT_HELD = 5
DB_LSTAT_PENDING = 7
DB_LSTAT_WAITING = 8
DB_MAX_PAGES = -1
DB_MAX_RECORDS = -1
DB_MULTIPLE = 67108864
DB_MULTIPLE_KEY = 134217728
DB_NEXT = 19
DB_NEXT_DUP = 20
DB_NEXT_NODUP = 21
DB_NODUPDATA = 22
DB_NOLOCKING = 16384
DB_NOMMAP = 8
DB_NOORDERCHK = 2
DB_NOOVERWRITE = 23
DB_NOPANIC = 32768
DB_NOSERVER = -30994
DB_NOSERVER_HOME = -30993
DB_NOSERVER_ID = -30992
DB_NOSYNC = 24
DB_NOTFOUND = -30991
DB_ODDFILESIZE = 8192
DB_OLD_VERSION = -30990
DB_OPFLAGS_MASK = 255
DB_ORDERCHKONLY = 4
DB_PAGE_NOTFOUND = -30989
DB_PANIC_ENVIRONMENT = 131072
DB_POSITION = 25
DB_PREV = 27
DB_PREV_NODUP = 28
DB_PRIVATE = 262144
DB_PR_PAGE = 8
DB_PR_RECOVERYTEST = 16
DB_QUEUE = 4
DB_RDONLY = 16
DB_RDWRMASTER = 8192
DB_RECNO = 3
DB_RECNUM = 16
DB_RECORDCOUNT = 29
DB_RECOVER = 32
DB_RECOVER_FATAL = 524288
DB_REGION_INIT = 262144
DB_RENUMBER = 32
DB_REVSPLITOFF = 64
DB_RMW = 1073741824
DB_RPCCLIENT = 1
DB_RUNRECOVERY = -30982
DB_SALVAGE = 64
DB_SECONDARY_BAD = -30981
DB_SET = 30
DB_SET_LOCK_TIMEOUT = 31
DB_SET_RANGE = 32
DB_SET_RECNO = 33
DB_SET_TXN_TIMEOUT = 35
DB_SNAPSHOT = 128
DB_STAT_CLEAR = 1
DB_SYSTEM_MEM = 1048576
DB_THREAD = 64
DB_TRUNCATE = 128
DB_TXN_NOSYNC = 256
DB_TXN_NOWAIT = 2048
DB_TXN_SYNC = 4096
DB_UNKNOWN = 5
DB_UPGRADE = 1
DB_USE_ENVIRON = 512
DB_USE_ENVIRON_ROOT = 1024
DB_VERIFY = 2
DB_VERIFY_BAD = -30980
DB_VERSION_MAJOR = 4
DB_VERSION_MINOR = 1
DB_VERSION_PATCH = 25
DB_VERSION_STRING = 'Sleepycat Software: Berkeley DB 4.1.25: (August 21, 2003)'
DB_WRITECURSOR = 37
DB_XA_CREATE = 1
DB_YIELDCPU = 1048576
EACCES = 13
EAGAIN = 11
EBUSY = 16
EEXIST = 17
EINVAL = 22
ENOENT = 2
ENOMEM = 12
ENOSPC = 28
EPERM = 1
__version__ = '4.2.9'
cvsid = '$Id: _bsddb.c,v 1.38 2004/09/04 01:36:59 greg Exp $'