You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The python scripts that access the DB (create_project, update_versions) use a module called MySQLdb
(these scripts were written in 2003; that was the only option at that point).
MySQLdb doesn't work with Python 3 and as far as I can tell is unlikely to in the future.
The other issue is that the DB interface code (py/Boinc/db_base.py)
was largely borrowed from a class project in an undergrad DB class or something.
It has fancy logic to cache DB rows and to auto-fetch rows pointed to from other tables.
We don't need any of this stuff; it complicates the code and should be tossed.
The text was updated successfully, but these errors were encountered:
The python scripts that access the DB (create_project, update_versions) use a module called MySQLdb
(these scripts were written in 2003; that was the only option at that point).
MySQLdb doesn't work with Python 3 and as far as I can tell is unlikely to in the future.
So we need to use something else. I think the best candidate is Mysql Connector/Python:
https://dev.mysql.com/doc/connector-python/en/
The other issue is that the DB interface code (py/Boinc/db_base.py)
was largely borrowed from a class project in an undergrad DB class or something.
It has fancy logic to cache DB rows and to auto-fetch rows pointed to from other tables.
We don't need any of this stuff; it complicates the code and should be tossed.
The text was updated successfully, but these errors were encountered: