Package sage :: Package tables :: Module gamma0wt2 :: Class Database
[show private | hide private]
[frames | no frames]

Type Database

object --+        
         |        
     _uniq --+    
             |    
      Database --+
                 |
                Database


Method Summary
  __init__(self, read_only)
  __repr__(self)
    Inherited from Database
  __getitem__(self, x)
  __setitem__(self, x, y)
  abort(self)
  as_dict(self, keys)
Return a dict representation of the database.
  changed(self, key)
Informs the database that some items corresponding to the given key may have changed.
  clone(self, new_name)
Copy the database to a new database with the given new_name.
  commit(self)
Commit the new version of this object to the database file.
  delete_all(self)
Delete every entry in the database.
  dump_as_dict(self, filename, keys)
  dump_as_dict_intervals(self, basename, Nstart, Nstop, length)
  has_key(self, x)
  keys(self)
  pack(self)
This should pack, but I couldn't get pack working with compressed storage.
  rebuild(self, thresh)
Completely rebuild the database from scratch, by going through and writing everything out to a temporary database, then moving the temporary database files over self's files.
  restore_from_dict(self, filename)
Restore from the filename which must store a pickled dict.
  restore_from_dict_all(self, basename)
Restore all files that start with the given basename.
    Inherited from object
  __delattr__(...)
x.__delattr__('name') <==> del x.name
  __getattribute__(...)
x.__getattribute__('name') <==> x.name
  __hash__(x)
x.__hash__() <==> hash(x)
  __reduce__(...)
helper for pickle
  __reduce_ex__(...)
helper for pickle
  __setattr__(...)
x.__setattr__('name', value) <==> x.name = value
  __str__(x)
x.__str__() <==> str(x)

Generated by Epydoc 2.1 on Fri Jun 24 17:58:45 2005 http://epydoc.sf.net