Feature Request: add support for custom connections
Bug #513378 reported by
Poldy
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
MySQL Connector/Python |
Confirmed
|
Wishlist
|
Unassigned |
Bug Description
I needed a custom Connection (TCP inside a Paramiko channel). Subclassing MySQLBaseConnection went mostly as expected (only thing here was, I needed to rewrite recv(), because a Paramiko channel doesn't accept a sockets_flag parameter).
The one thing that was not so nice was, that I needed to subclass MySQL (mysql.
Anyway, this piece of code is great.....
To post a comment you must log in.
Thanks!
Yes, that's a good idea. It was actually meant to be that way, just like you can set the converter class for example.
For class MySQL class()
a) add a method set_connection_
b) allow connection_class as argument to _init_()
Will add that.
Pretty cool use of Paramiko there. I would rather not include to much dependencies, but maybe we'll add something similar later. (first SSL though)
Cheers,
Geert