From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,bf02c238a92156a3 X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news1.google.com!fu-berlin.de!uni-berlin.de!not-for-mail From: "Dmitry A. Kazakov" Newsgroups: comp.lang.ada Subject: Re: Windows Ada database support. Date: Sun, 28 Nov 2004 12:03:12 +0100 Organization: cbb software GmbH Message-ID: <37sspx71yo3v.x8x09ens9mfk.dlg@40tude.net> References: <1pfbqtrpc3y3v$.1j9ia6xrmr4pc$.dlg@40tude.net> <2004112719465816807%david@bottoncom> <1wgmsz9nqhzhm.8k6e3o359925$.dlg@40tude.net> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: news.uni-berlin.de XkMNg/5aj1zS8VIFLfieKQGtjOsw0ikSfwnK4nOgv08pGSTtc= User-Agent: 40tude_Dialog/2.0.12.1 Xref: g2news1.google.com comp.lang.ada:6580 Date: 2004-11-28T12:03:12+01:00 List-Id: On 28 Nov 2004 11:23:31 +0100, Pascal Obry wrote: > "Dmitry A. Kazakov" writes: > >> On Sat, 27 Nov 2004 19:46:58 -0500, David Botton wrote: >> >>> While I am not thrilled with the idea of create Ada standards for >>> bindings to complex externals systems, >> >> Yes, that would be too much to swallow. But I meant data bases, narrowly >> understood. Also a data base is not necessarily an "external" system, >> Berkeley DB for example. So it is not equivalent. > > I think that if we want a database interface in the Ada standard it should be > based on ODBC. ODBC is just that a cross-platform standard to access any > databases. Maybe it is not the best in term of performance but it is standard, > simple, comprehensive well known at this point... and it is always possible to > provide external high level libraries not in the standard. I am not sure. For one of my projects I even have implemented thick OO-ish bindings to ODBC via GNADE, but I am not satisfied with ODBC. Not just because of performance, which is awful. The very design of ODBC is something. It abstracts SQL, but you still have to use SQL. So it takes the worst of two worlds. Do you know, how to query via ODBC, if the data base supports "PRIMARY KEY" in "CREATE TABLE"? The number of questions like that is countless. The idea, ask how it spelt and tune the application in accordance, is just idiotic. Ada's way(tm) is: I want "type X is range 1..100", go, do what should be done. So in my view ODBC as an implementation (one of), yes of course, but as the template for the standard, God save us! -- Regards, Dmitry A. Kazakov http://www.dmitry-kazakov.de