kubo / rust-oracle

Oracle driver for Rust
189 stars 44 forks source link

Add a way to check if the Oracle Client libs are present at runtime #61

Closed nbc12 closed 2 years ago

nbc12 commented 2 years ago

I'd like to check if the Oracle Client libs are present. As a workaround I was creating a dummy connection and checking if it errored, but it's not optimal.

kubo commented 2 years ago

Thanks for making the pull request.

I'd like to check if the Oracle Client libs are present. As a workaround I was creating a dummy connection and checking if it errored, but it's not optimal.

Could you use Version::client? It loads Oracle client library when it has not been loaded yet. I have a plan to add another initialization method with parameters corresponding to dpiContextCreateParams.

nbc12 commented 2 years ago

Could you use Version::client?

That would definitely work. Thanks for the guidance!