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!proxad.net!newsfeed.stueberl.de!news-mue1.dfn.de!news-ham1.dfn.de!news.uni-hamburg.de!cs.tu-berlin.de!uni-duisburg.de!not-for-mail From: Georg Bauhaus Newsgroups: comp.lang.ada Subject: Re: Windows Ada database support. Date: Wed, 8 Dec 2004 02:24:25 +0000 (UTC) Organization: GMUGHDU Message-ID: References: <5e3e03a7.0411240431.7e037a4e@posting.google.com> <2004112420030750073%david@bottoncom> <11w2chxxtggn9.a442ecwtujd2$.dlg@40tude.net> <1jrbh30djhwuh$.cpwm02mv7d1d.dlg@40tude.net> NNTP-Posting-Host: l1-hrz.uni-duisburg.de X-Trace: a1-hrz.uni-duisburg.de 1102472665 17052 134.91.1.34 (8 Dec 2004 02:24:25 GMT) X-Complaints-To: usenet@news.uni-duisburg.de NNTP-Posting-Date: Wed, 8 Dec 2004 02:24:25 +0000 (UTC) User-Agent: tin/1.5.8-20010221 ("Blue Water") (UNIX) (HP-UX/B.11.00 (9000/800)) Xref: g2news1.google.com comp.lang.ada:6827 Date: 2004-12-08T02:24:25+00:00 List-Id: Dmitry A. Kazakov wrote: : On Tue, 7 Dec 2004 15:49:36 +0000 (UTC), Georg Bauhaus wrote: : :> Dmitry A. Kazakov wrote: :> :>: I think that this is a shortcoming of the very concept of a relational :>: view. Relation is not an array. Period. :> :> Who says that a relation is an array? : : Nobody. The problem is that we need arrays, or more generally, ordered : containers. This is the way the most people think about tables. Hm. If at the DB level you ask, SELECT S.key, T.foo, T.bar from S, T WHERE (S.key BETWEEN 100 AND 200) AND T.foo = S.key ORDER BY S.key Then you have in Ada.Container terms, function Floor (Container : Map; Key : Key_Type) return Cursor; function Ceiling (Container : Map; Key : Key_Type) return Cursor; where S.key >= 100 can be made the floor and S.key <= 200 can be made the ceiling. : They do not : think about them in terms of relations. You mean they do not think about the relations between records, for example? Well, yes, but how could this be overcome using another language? A fair amount of referential integrity can be "extracted" from an ER diagram using standard means. If this way of defining tables in a database is not standard, do you think that another standard, Ada, is going to help? : Why an application that need to store data, should care about that? Sorry, : I still cannot understand it. 1/ other applications may (have to) modify your data without notice. 3/ storing data might take time. RDB or not, I need to know this 2/ you might need backups and secure storage. This is provided by good RDBMSs. : Do you care much about ferromagnetism when : you write a file onto the hard drive? I certainly do. In particular when the disks are 5 years old and not part of a well maintained RAID. ;-) -- Georg