well.. Its question for IBM. But in my opinion this will not happen any time soon if any
Original Message:
Sent: Sun June 02, 2024 12:32 PM
From: Romain FERRATON
Subject: Is the directory clidriver really mandatory when published
Thanks for the answer Krzysztof
Do you think IBM will produce a pure C# driver for DB2 one day instead of a C++ driver wrapper ? Or it is just a dream that will never happended ?
------------------------------
Romain FERRATON
Original Message:
Sent: Sun May 26, 2024 05:25 AM
From: Krzysztof Duśko
Subject: Is the directory clidriver really mandatory when published
Hi, I also encountered issue with size of driver and unfortunately these components are needed.. Whis IBM.Data.Db2.dll is only (very fat) wrapper over native C/C++ driver. Most of files inside clipdriver are needed. This is really a shame like you mention driver shoudynt be so big.. For example C# netezza driver is about 0,5 MB without any dependencies.
If you have many aps using DB2 driver on one machine you can mitigate this issue with AppDomain.AssemblyLoad Event (System) | Microsoft Learn or use proper "plugin pattern" Create a .NET Core application with plugins - .NET | Microsoft Learn - in both cases you can direct apliaction to find ddl's in external direcotry (one for one PS)
------------------------------
Krzysztof Duśko
Original Message:
Sent: Tue May 21, 2024 04:08 AM
From: Romain FERRATON
Subject: Is the directory clidriver really mandatory when published
Hello
I don't really understand why the clidriver directory should be copied when publishing an CLI application ?
- This lead to a big increase in the size of the final single executable file (+70Mo instead of +8Mo for a npgsql for exemple)
- This add a directory clidriver in the output directory where the executable is generated
I believe (may be i am wrong) that theses files are only for testing cli/odbc connections isn't it ?
The DB2 .Net drivers shouldn't be included in the IBM.Data.Db2.dll only ?
So why preserving the clidriver directory ?
------------------------------
Romain FERRATON
------------------------------