Classes
class Cond
This condition matches everything
Methods
class DBAccessError(bsddb._db.DBError)
Methods inherited from class exceptions.Exception
__getitem__, __init__, __str__
class DBAgainError(bsddb._db.DBError)
Methods inherited from class exceptions.Exception
__getitem__, __init__, __str__
class DBBusyError(bsddb._db.DBError)
Methods inherited from class exceptions.Exception
__getitem__, __init__, __str__
class DBCursorClosedError(bsddb._db.DBError)
Methods inherited from class exceptions.Exception
__getitem__, __init__, __str__
class DBError(exceptions.Exception)
Methods inherited from class exceptions.Exception
__getitem__, __init__, __str__
class DBFileExistsError(bsddb._db.DBError)
Methods inherited from class exceptions.Exception
__getitem__, __init__, __str__
class DBInvalidArgError(bsddb._db.DBError)
Methods inherited from class exceptions.Exception
__getitem__, __init__, __str__
class DBKeyEmptyError(bsddb._db.DBError)
Methods inherited from class exceptions.Exception
__getitem__, __init__, __str__
class DBKeyExistError(bsddb._db.DBError)
Methods inherited from class exceptions.Exception
__getitem__, __init__, __str__
class DBLockDeadlockError(bsddb._db.DBError)
Methods inherited from class exceptions.Exception
__getitem__, __init__, __str__
class DBLockNotGrantedError(bsddb._db.DBError)
Methods inherited from class exceptions.Exception
__getitem__, __init__, __str__
class DBNoMemoryError(bsddb._db.DBError)
Methods inherited from class exceptions.Exception
__getitem__, __init__, __str__
class DBNoServerError(bsddb._db.DBError)
Methods inherited from class exceptions.Exception
__getitem__, __init__, __str__
class DBNoServerHomeError(bsddb._db.DBError)
Methods inherited from class exceptions.Exception
__getitem__, __init__, __str__
class DBNoServerIDError(bsddb._db.DBError)
Methods inherited from class exceptions.Exception
__getitem__, __init__, __str__
class DBNoSpaceError(bsddb._db.DBError)
Methods inherited from class exceptions.Exception
__getitem__, __init__, __str__
class DBNoSuchFileError(bsddb._db.DBError)
Methods inherited from class exceptions.Exception
__getitem__, __init__, __str__
class DBOldVersionError(bsddb._db.DBError)
Methods inherited from class exceptions.Exception
__getitem__, __init__, __str__
class DBPageNotFoundError(bsddb._db.DBError)
Methods inherited from class exceptions.Exception
__getitem__, __init__, __str__
class DBPermissionsError(bsddb._db.DBError)
Methods inherited from class exceptions.Exception
__getitem__, __init__, __str__
class DBRunRecoveryError(bsddb._db.DBError)
Methods inherited from class exceptions.Exception
__getitem__, __init__, __str__
class DBSecondaryBadError(bsddb._db.DBError)
Methods inherited from class exceptions.Exception
__getitem__, __init__, __str__
class DBVerifyBadError(bsddb._db.DBError)
Methods inherited from class exceptions.Exception
__getitem__, __init__, __str__
Acts as an exact match condition function
Methods
Acts as a function that will match using an SQL 'LIKE' style
string. Case insensitive and % signs are wild cards.
This isn't perfect but it should work for the simple common cases.
Methods
Acts as a condition function for matching a string postfix
Methods
Acts as a condition function for matching a string prefix
Methods
Methods inherited from class exceptions.Exception
__getitem__, __init__, __str__
class TableDBError(exceptions.StandardError)
Methods inherited from class exceptions.Exception
__getitem__, __init__, __str__
class bsdTableDB
Methods
CreateTable(table, columns) - Create a new table in the database
raises TableDBError if it already exists or for other DB errors.
Delete(
self,
table,
conditions={})
Delete(table, conditions) - Delete items matching the given
conditions from the table.
* conditions is a dictionary keyed on column names
containing condition functions expecting the data string as an
argument and returning a boolean.
Insert(table, datadict) - Insert a new row into the table
using the keys+values from rowdict as the column values.
Select(
self,
table,
columns,
conditions={})
Select(table, conditions) - retrieve specific row data
Returns a list of row column->value mapping dictionaries.
* columns is a list of which column data to return. If
columns is None, all columns will be returned.
* conditions is a dictionary keyed on column names
containing callable conditions expecting the data string as an
argument and returning a boolean.
__init__(
self,
filename,
dbhome,
create=0,
truncate=0,
mode=384,
recover=0,
dbflags=0)
bsdTableDB.open(filename, dbhome, create=0, truncate=0, mode=0600)
Open database name in the dbhome BerkeleyDB directory.
Use keyword arguments when calling this constructor.