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

Class DatabaseRemover

source code

object --+
         |
        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.

Instance Methods [hide private]
 
__init__(self, adaptor, dbid)
Initialize with a database id and adaptor connection.
source code
 
remove(self)
Remove everything related to the given database id.
source code

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, adaptor, dbid)
(Constructor)

source code 
Initialize with a database id and adaptor connection.
Overrides: object.__init__