kubo / rust-oracle

Oracle driver for Rust
178 stars 43 forks source link

How to change the value of "oracleClientLibDir" in dpiContextCreateParams struct #68

Closed daidaiSeniorBrother closed 1 year ago

daidaiSeniorBrother commented 1 year ago

Hello, I want to customize the directory of Oracle Instant Client,How to operate? Thanks

daidaiSeniorBrother commented 1 year ago

const char *dpiContextCreateParams.oracleClientLibDir A null-terminated UTF-8 encoded string defining the location from which to load the Oracle Client library. If this value is not NULL it is the only location that is searched; otherwise, if this value is NULL the Oracle Client library is searched for in the usual fashion as noted in Oracle Client Library Loading. Also see that section for limitations on using this member.

i see ODPI-C doc can specify the directory. but i don't know how to assign it

kubo commented 1 year ago

It isn't available now. It will be supported at the next release. I've done it about 5 months ago in a local branch but haven't merged it yet.

daidaiSeniorBrother commented 1 year ago

It isn't available now. It will be supported at the next release. I've done it about 5 months ago in a local branch but haven't merged it yet.

Thanks for your reply. For the time being, I solved my problem by changing the source code. During initialization, I passed in my own dpiContextCreateParams structure