This is a test version of Biostars. For the public version, visit https://www.biostars.org.
BioSQL Unable to remove database using server.remove_database

Just installed the biosql and with mysql and tried to create test database with name "orchids". It created and add some data to subdatabse via Entrez. But problem is when trying to delete whole subdatabase with using server.remove_database("orchids") it gives error. All codes were got from https://biopython.org/wiki/BioSQL


from BioSQL import BioSeqDatabase

from Bio import Entrez

from Bio import SeqIO

server = BioSeqDatabase.open_database( driver="mysql.connector", user="biosqlUser", passwd="password", host="localhost", db="biosql" )

db = server["orchids"]

server.remove_database("orchids")

server.commit()


Traceback (most recent call last):

File "/home/new/test.py", line 23, in <module>

server.remove_database("orchids") 
^^^^^^^^^^^^^^^^^^^^^^

AttributeError: 'DBServer' object has no attribute 'remove_database'. Did you mean: 'new_database'?

biosql biopython mysql python

0 answers

No answers yet.

Log in to answer this question.