def remove_database(self, db_name):
     """Remove a namespace and all its entries (OBSOLETE).
     
     Try to remove all references to items in a database.
     
     server.remove_database(name)
     
     In keeping with the dictionary interface, you can now do this:
     
     del server[name]
     """
     import warnings
     warnings.warn("This method is obsolete.  In keeping with the dictionary interface, you can now use 'del server[name]' instead", PendingDeprecationWarning)
     db_id = self.adaptor.fetch_dbid_by_dbname(db_name)
     remover = Loader.DatabaseRemover(self.adaptor, db_id)
     remover.remove()
Example #2
0
 def remove_database(self, db_name):
     """Try to remove all references to items in a database.
     """
     db_id = self.adaptor.fetch_dbid_by_dbname(db_name)
     remover = Loader.DatabaseRemover(self.adaptor, db_id)
     remover.remove()