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.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,b00e2fb2fb2dee17 X-Google-Attributes: gid103376,public From: Simon Wright Subject: Re: "Dynamic" object Date: 2000/03/07 Message-ID: #1/1 X-Deja-AN: 594382676 X-NNTP-Posting-Host: pogner.demon.co.uk:158.152.70.98 References: X-Trace: news.demon.co.uk 952457861 nnrp-12:10390 NO-IDENT pogner.demon.co.uk:158.152.70.98 Organization: At Home Newsgroups: comp.lang.ada X-Complaints-To: abuse@demon.net Date: 2000-03-07T00:00:00+00:00 List-Id: 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?