On Thu, 10 Nov 2011 16:06:56 -0500, Andrei Alexandrescu <[email protected]> wrote:

On 11/10/11 1:50 PM, Dejan Lekic wrote:
On 10/11/11 05:55, Steve Teale wrote:
The libraries for unixODBC and for FreeTDS (communication with SQL
Server) are LGPL.

Would a D ODBC driver that used these be compatible with Phobos?

Steve

I would strongly advice any DB driver go into a separate library instead
of Phobos. Too many unneeded modules are in Phobos already and more
modules that do not belong in Phobos are about to be accepted...

I thought the main concern was that there's too little stuff in Phobos, and that growth is good. Seems like whatever we do we won't please everyone.

Well, one concern I would have is making *phobos* dependent on these libraries, which may not be needed (or installed).

Note that in recent times, dmd failed to compile any programs Ubuntu because of new linking rules. The solution was to add -lrt to the dmd source code that generates the link line.

Is that the same solution for FreeTDS? What if FreeTDS isn't installed (it typically is not)? What if you don't use the database system, why should you have to link against FreeTDS if it's not being used?

I'd much rather have the database subsystem *framework* be a part of phobos, and the actual implementations be defined as 3rd party libs. Just from a practical point of view.

-Steve

Reply via email to