comp.lang.ada
 help / color / mirror / Atom feed
From: dennison@telepath.com (Ted Dennison)
Subject: Re: A little database
Date: 15 Nov 2002 13:48:11 -0800
Date: 2002-11-15T21:48:11+00:00	[thread overview]
Message-ID: <4519e058.0211151348.4e882a74@posting.google.com> (raw)
In-Reply-To: 3dd49c15$0$303$bed64819@news.gradwell.net

porton@ex-code.com (Victor Porton) wrote in message news:<3dd49c15$0$303$bed64819@news.gradwell.net>...
> I want to keep a little database (containing information about several 
> Web sites) on the disk.
> 
> It is desirable (but not necessary) to have the file format 
> portable among platforms and compilers (however I use only GNAT).
> 
> In your opinion, All, should I use XML or just 'Read/'Write etc. 
> attributes? Or may be there are a special Ada library for such small 
> databases in disk files?
> 
> Well, the database shall be editable by the user with my GUI.

For a database, the most sensible portable format would be CSV. That
way it can be imported, exported, edited, and manipulated with any
database or spreadsheet tool you users might have or want (even a text
editor). Unless you have complicated hierarchal relationships that
can't be easily expressed in tabular format, XML is overkill (and
relatively poorly supported overkill, at that).

I don't know of any Ada support for creating CSV's, but the format is
trivial to generate with standard Text_IO calls, and OpenToken
(http://www.telepath.com/~dennison/Ted/OpenToken/OpenToken.html ) has
support for parsing it.



  parent reply	other threads:[~2002-11-15 21:48 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-11-15  7:01 A little database Victor Porton
2002-11-15  9:31 ` Preben Randhol
2002-11-15 10:10 ` Georg Bauhaus
2002-11-15 19:02 ` Pascal Obry
2002-11-15 21:48 ` Ted Dennison [this message]
2002-11-16 11:20   ` Pascal Obry
2002-11-18 15:01     ` Ted Dennison
2002-11-25 19:13       ` Georg Bauhaus
2002-11-25 22:00         ` achrist
2002-11-26 10:39           ` Georg Bauhaus
2002-11-23 20:13 ` Michael Erdmann
2002-11-26  5:46 ` Victor Porton
replies disabled

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