Closed evgeniy-ginzburg-db closed 1 month ago
The makedsn()
method was added to python-oracledb solely for backwards compatibility with cx_Oracle. python-oracledb already has a much more capable method in the ConnectParams class. That covers all of the ones you are asking for and a lot more besides! These include server_type and protocol. Note that you can also pass all of these directly to the connect, connect_async, create_pool and create_pool_async methods. The ConnectParams class is for cases where you want to pass the parameters to multiple connections or you want to control things a bit more closely.
I am assuming that the answer I gave in March covers the enhancement request and will close this.
This is a couple of changes to fix DSN creation issue I have right now. In general, full support of tsnames.ora parameters in spec will be preferable, but currently I don't have resources to do it.
BR, Evgeniy