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

Class DatabaseRemover

source code

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

YB: now use the cascaded deletions

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