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!news2.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 18:29:14 +0100 Organization: cbb software GmbH Message-ID: References: <1pfbqtrpc3y3v$.1j9ia6xrmr4pc$.dlg@40tude.net> <2004112719465816807%david@bottoncom> <1wgmsz9nqhzhm.8k6e3o359925$.dlg@40tude.net> <37sspx71yo3v.x8x09ens9mfk.dlg@40tude.net> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: news.uni-berlin.de IY1PnrHrEzsG9C8xGqwcWwLYT3qBSk6xpf4NVVAZk7y825izA= User-Agent: 40tude_Dialog/2.0.12.1 Xref: g2news1.google.com comp.lang.ada:6588 Date: 2004-11-28T18:29:14+01:00 List-Id: On Sun, 28 Nov 2004 14:38:49 +0000 (UTC), Martin Dowie wrote: > Dmitry A. Kazakov wrote: >> 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! > > For my degree I wrote a abstraction of a relational database in SML/NJ. > It could be converted to Ada fairly simply - is that the sort of thing > you mean? e.g. > > package Relations is > type Relation is private; > ... > procedure Union (X, Y : Relation; Result : out Relation); > -- etc > end Relations; Yes, though I am not sure whether a relational view is the best way of abstraction. But an abstraction should be. -- Regards, Dmitry A. Kazakov http://www.dmitry-kazakov.de