Package BioSQL :: Module Loader :: Class DatabaseRemover
[show private | hide private]
[frames | no frames]

Class DatabaseRemover


Complement the Loader functionality by fully removing a database.

This probably isn't really useful for normal purposes, since you
can just do a:
    DROP DATABASE db_name
and then recreate the database. But, it's really useful for testing
purposes.

YB: now use the cascaded deletions

Method Summary
  __init__(self, adaptor, dbid)
Initialize with a database id and adaptor connection.
  remove(self)
Remove everything related to the given database id.

Method Details

__init__(self, adaptor, dbid)
(Constructor)

Initialize with a database id and adaptor connection.

remove(self)

Remove everything related to the given database id.

Generated by Epydoc 2.1 on Thu Mar 31 20:15:49 2005 http://epydoc.sf.net