Re: [gnome-db] Little API problems



2005/9/15, Diego Zuccato <diego otello alma unibo it>:
> Vivien Malerba ha scritto:
> 
> > Well for example the SQLite provider only needs a file name to create
> > a database, whereas postgres needs many parameters, and no file name,
> > so there is really no common parameter between all the providers to
> > create databases.
> Why not always an URI string like in ODBC?
> So PG could use "postgres:host=localhost;dbname=goofy", while SQlite
> could simply be "sqlite:/home/goofy/goofy.db".
> gda_client_get_provider_specs could return a list of options accepted by
> the provider as key,value.
> 

The contents of the URI string would still need to be specified at one
point. This is what the XML file provided by
gda_client_get_provider_specs() does, except that the XML file
specifies more information and can be parsed at runtime.

Cheers,

Vivien



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