Re: [gnome-db] Little API problems



On Wed, 2005-09-14 at 17:00 +0200, Vivien Malerba wrote:
> 2005/9/13, Murray Cumming <murrayc murrayc com>:
> > CCing the list because I think you forgot to.
> > 
> > Another thing:
> > The documentation for gda_client_create_database() mentions
> > gda_client_get_specs_to_create_database(). There is no such function,
> > though the name is used in the documentation for
> > gda_client_get_provider_specs(). I guess it's meant to provide the
> > GdaParameterList* somehow, but it returns a char*. Example code in the
> > documentation would help a lot here.
> > 
> > gda_client_drop_database() seems to have the same problem.
> 
> I've corrected the documentation (not yet in CVS though). Here is how
> it works: if you want to create a database, call
> gda_client_get_provider_specs(client, provider,
> GDA_CLIENT_SPECS_CREATE_DATABASE)
> which will give you an XML string which can be converted into a tree
> by libxml and tells you which information the provider needs to create
> tha database. For example, have a look at the
> providers/postgres/postgres_specs_create_db.xml and the
> providers/mysql/mysql_specs_create_db.xml files which are the returned
> strings for the Postgres and MySQL providers.

Thanks, but isn't that an incredibly complicated way to create a
database?

-- 
Murray Cumming
murrayc murrayc com
www.murrayc.com
www.openismus.com





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