Package Pyblio :: Package Stores :: Module bsddbstore :: Class Database
[show private | hide private]
[frames | no frames]

Type Database

object --+    
         |    
  Database --+
             |
object --+   |
         |   |
 Publisher --+
             |
object --+   |
         |   |
 Queryable --+
             |
            Database


A Pyblio database stored in a Berkeley DB engine
Method Summary
  __init__(self, path, schema, create)
  __delitem__(self, key)
  __getitem__(self, key)
Get a record by key.
  __setitem__(self, key, val)
  add(self, val, key)
  entries_get(self)
  has_key(self, k)
  save(self)
  _idxadd(self, id, val, txn)
  _insert(self, key, val, txn)
  _q_and(self, query, permanent)
  _q_anyword(self, query, rs)
  _schema_get(self)
  _schema_set(self, schema, txn)
    Inherited from Queryable
  query(self, query, permanent)
  _q_hasfield(self, q, res)
  _q_not(self, query, permanent)
  _q_or(self, query, permanent)
  _q_run(self, query, permanent)
  _q_single(self, q, res)
  _q_txo(self, q, res)
    Inherited from Database
  collate(self, rs, field)
Partition the result set in a list of sets for every value taken by the specified field
  validate(self, entry)
Check an entry for conformance against the Schema.
  xmlread(self, fd)
  xmlwrite(self, fd)
Output a database in XML format
  _entries_get(self)
Return the result set that contains _all_ the entries.
  _txo_create(self)
  _txo_use_check(self, group, key)
Check if a Txo can be safely removed
    Inherited from Publisher
  emit(self, signal, *args)
Call this method to emit a signal.
  register(self, signal, callback, *args)
Clients interested in a given signal must register with this method.
  unregister(self, signal, callback)
Stop notifying events for the specified signal/callback pair.
    Inherited from object
  __delattr__(...)
x.__delattr__('name') <==> del x.name
  __getattribute__(...)
x.__getattribute__('name') <==> x.name
  __hash__(x)
x.__hash__() <==> hash(x)
  __new__(T, S, ...)
T.__new__(S, ...) -> a new object with type S, a subtype of T
  __reduce__(...)
helper for pickle
  __reduce_ex__(...)
helper for pickle
  __repr__(x)
x.__repr__() <==> repr(x)
  __setattr__(...)
x.__setattr__('name', value) <==> x.name = value
  __str__(x)
x.__str__() <==> str(x)

Property Summary
  schema
    Inherited from Database
  entries

Class Variable Summary
    Inherited from Database
  entries = Pyblio.Store.Database.entries
  txo: a TxoGroup instance, containing all the taxonomy definitions in the database.

Method Details

__getitem__(self, key)
(Indexing operator)

Get a record by key.
Parameters:
key - the key of the requested record
           (type=a Key)
Overrides:
Pyblio.Store.Database.__getitem__ (inherited documentation)

Property Details

entries

Get Method:
entries_get(self)

schema

Get Method:
_schema_get(self)
Set Method:
_schema_set(self, schema, txn)

Generated by Epydoc 2.1 on Wed Feb 15 23:19:37 2006 http://epydoc.sf.net