BioSQL Unable to remove database using server.remove_database
0
0
Entering edit mode
7 months ago
Navindu • 0

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 • 281 views
ADD COMMENT

Login before adding your answer.

Traffic: 960 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6