comp.lang.ada
 help / color / mirror / Atom feed
From: Simon Wright <simon@pogner.demon.co.uk>
Subject: Re: "Dynamic" object
Date: 2000/03/07
Date: 2000-03-07T00:00:00+00:00	[thread overview]
Message-ID: <x7vn1obl301.fsf@pogner.demon.co.uk> (raw)
In-Reply-To: slrn8c7qhs.i0.randhol@kiuk0156.chembio.ntnu.no

randhol@pvv.org (Preben Randhol) writes:

> Ok think about it more in the way of making a GUI interface to
> PostgreSQL where you can set up the fields as you like in your
> database.
> 
> So you can make one database which is an address book containing
> only the fields Name and Address or you can make a database to
> organize the books that you own, etc...
> 
> So the program cannot statically (at compile-time) know which fields
> are present in the database you want to open.

Ada doesn't really offer you any more facilities for doing this than
C would. How would you do it in C? (or perl, come to that?)

* interface to the DBMS to determine the record(s) involved, the
  fields, the type/size of each field

* construct some GUI to display these fields

* construct & execute query, populate GUI

You'll probably end up making a binding from Ada to PostGres, with
things in it like dbms_table_description which could contain a
table_name and an unconstrained array of dbms_field which would
contain a field_name & a type_name .. is there a binding already?
ODBC?




  reply	other threads:[~2000-03-07  0:00 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2000-03-06  0:00 "Dynamic" object Preben Randhol
2000-03-06  0:00 ` Gisle S�lensminde
2000-03-06  0:00   ` Preben Randhol
2000-03-07  0:00     ` Simon Wright [this message]
2000-03-08  0:00       ` Preben Randhol
2000-03-08  0:00     ` Gisle S�lensminde
2000-03-08  0:00       ` Preben Randhol
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox