worldveil / dejavu

Audio fingerprinting and recognition in Python
MIT License
6.41k stars 1.43k forks source link

Allow more options to be supplied to MySQLdb. #8

Closed Wessie closed 10 years ago

Wessie commented 10 years ago

Currently the only configuration options allowed to be changed (without relying on monkeypatching) are hostname, username, password and database.

At least having an option for supplying the port would be nice. Other options can be found at the documentation for MySQLdb.

worldveil commented 10 years ago

Yes, I think having a dictionary passed into Database constructor would work best so with **kwargs to MySQLdb you can specify anything from config file. Will accept PR here