Re: Windows Ada database support.

From: Dmitry A. Kazakov (mailbox_at_dmitry-kazakov.de)
Date: 12/08/04


Date: Wed, 8 Dec 2004 20:43:19 +0100

On Wed, 8 Dec 2004 15:58:44 +0000 (UTC), Georg Bauhaus wrote:

> Dmitry A. Kazakov <mailbox@dmitry-kazakov.de> wrote:
>: Again, there are two different questions. I have already formulated them in
>: another post:
>:
>: 1. Why relations should be handled?
>: 2. Why Ada cannot handle them?
>:
>: To dismiss Ada.Database.Relational, we have to answer 1=yes, 2=no,
>: because...
>
> Ada the language does not have what SQL processors do have.

But you can translate into SQL. Why Ada.Database.Relational.Foo cannot call
My_ Fancy_DB.Execute ("BAZ ...")? I do not propose to write a new DB
engine.

> You would have to build some sort of DKQL processor in your
> Ada.Databases.Relational. Go ahead :-)

>: I would like to view it as a distributed system
>: and get rid of the notion of DB altogether. Only persistent objects. No
>: I/O, just memory-mappings. [ Clearly, in any short term perspective it is
>: an utopia. ]
>
> Say all you have is persistent objects. What kind of query do you
> have if you want to know about 2 or more objects?

Why should I query? It is for untyped tables. If I have an object at hand
then I know its type and so everything I can do with it. If I don't, then I
have another object, a container that refers to my object. That container
again has a type and that provides operations to access its elements.

-- 
Regards,
Dmitry A. Kazakov
http://www.dmitry-kazakov.de


Relevant Pages

  • Re: Hash table
    ... Ada 2005 will have both sets and maps. ... but keep in mind that an ordered container (having an ... That will mean replacing an anonymous access subprogram ... > Ada.Containers standard? ...
    (comp.lang.ada)
  • Re: Ada DB bindings and APQ
    ... > seems like unnecessary indirection and complexity - what ... The only way Ada might help ... Sybase interface is a low-level one. ... >> connection before a query that depends on it etc. ...
    (comp.lang.ada)
  • Re: [OT] Re: Teaching new tricks to an old dog (C++ -->Ada)
    ... > int a, b, c; ... It can be the "standard" ... > The Ada associative arrays from the new draft standard ... The C++ standard will have a hash-based container later. ...
    (comp.lang.ada)
  • Re: [OT] Re: Teaching new tricks to an old dog (C++ -->Ada)
    ... > int a, b, c; ... It can be the "standard" ... > The Ada associative arrays from the new draft standard ... The C++ standard will have a hash-based container later. ...
    (comp.lang.cpp)
  • Re: Dynamically tagged expression required
    ... OTOH, Ada containers, too, have a number of high level operations, ... on generic algorithms. ... by extending the container type. ...
    (comp.lang.ada)