rdbc icon indicating copy to clipboard operation
rdbc copied to clipboard

Add ability to dynamically load an RDBC driver

Open andygrove opened this issue 6 years ago • 5 comments

Currently, it is necessary to statically link to all possible RDBC driver implementations that need to be used at runtime but one of the main benefits of ODBC/JDBC is that new drivers can be loaded at runtime, so we need a similar mechanism here.

andygrove avatar Dec 17 '19 13:12 andygrove

Would this be a subclass, or would this be something like libdl that implements dynamic loading of shared libs? I'm not sure if this is supported in Rust, but it's a possible solution. I would think that if the drivers are lightweight enough, they can all be compiled into a single runtime?

KenSuenobu avatar Dec 18 '19 07:12 KenSuenobu

It would need to be dynamic loading of shared libs so that a user can use any driver with a product without having to have a version of the product that is compiled against the driver they want to use.

andygrove avatar Dec 19 '19 17:12 andygrove

Does anyone really load JDBC drivers at runtime in practice? I always thought that was an obscure thing to do.

95th avatar Dec 26 '19 15:12 95th

Actually, this is very common in desktop products where the user can add new JDBC drivers through the user interface without the need to restart the application.

andygrove avatar Dec 27 '19 18:12 andygrove

I see... Like crystal reports

95th avatar Dec 27 '19 18:12 95th