Re: [gnome-db] Database Objects



On Wed, 2001-12-26 at 15:31, Cleber Rodrigues Rosa Junior wrote:
> > yes, absolutely. But, instead of using a GdaDbo namespace and add new
> > classes, this should all be done by GdaXmlDatabase, whose purpose is to
> > serve as export/import format, but that can be easily extended to add
> > what you talk about.
> > In fact, it's similar to what I intended to do with the GdaXmlDatabase,
> > although this is not reflected in the current GdaXmlDatabase code, which
> > is just a quick hack.
> > 
> > Having GdaXmlDatabase reworked/extended to support its original purpose
> > (import/export file format) and your ideas seems a very very nice thing
> > to me. For instance:
> > 
> > gda_xml_database_update_connection (xmldb, cnc);
> > 
> > will copy the XML database into an open connection. The same could be
> > made on the other way:
> > 
> > xmldb = gda_xml_database_new_from_connection (cnc);
> > 
> > Doing this, by the way, will not only save us from adding new classes,
> > but it will also let us get rid of GdaExport and GdaImport, whose
> > features could be easily done via these GdaXmlDatabase methods
> 
> Ok then. So it means that functions ending in [from|to]_connection
> actually manipulate the underlying database, wheter the other functions
> only mess with the xml file, right?
> 
yes

> > 
> > > The xmldb format also lacks descriptive information on database, tables,
> > > and even fields. This metadata being present and with I18N support would
> > > ease the development of data editing GUI. Take a look at the attached
> > > xmldb file. A GnomeDb class could read this this info and present a nice
> > > GUI.
> > >
> > yes, as the GdaXmlDatabase, the XML format is a quick hack, so feel free
> > to add anything you find worth to be added.
> 
> I18N related: should we allow the user to choose what in language to
> get/set the descriptive information or just respect the default locale
> setting?
> 
> I mean, should we go with: 
> 
> (I) - gda_xml_database_set_short_description (GdaXmlDatabase *xmldb,
> const gchar *user_input);
> 
> or
> 
> (II) - gda_xml_databse_set_short_description (GdaXmlDatabase *xmldb,
> const gchar *user_input, const gchar *language);
> 
I think we coud just use the GdaParameterList's for this, and have the
client specify a language in the parameters, or if not specified,
neither by the client nor in the XML file, use the default locale.

> One other thing: would 'inttools' be anyhow useful in xmldb files?
> 
yes, I think so

cheers
-- 
Rodrigo Moya <rodrigo gnome-db org> - <rodrigo ximian com>
http://www.gnome-db.org/ - http://www.ximian.com/



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]