Re: [gnome-db] prepare_create_database() and perform_create_database()



On Wed, 2006-11-08 at 09:24 +0100, Vivien Malerba wrote:
> for example for the CREATE DATABASE operation, here is the
> list (badly indented...) where "path" is a parameter name:
> Path                Type                 Required?      Description
> /DB_DEF_P       PARAMLIST       Yes     Database's description
> /DB_DEF_P/DB_NAME       PARAM   Yes     Database name (string)
> /DB_DEF_P/DB_CSET       PARAM           Character set (string)
> /DB_DEF_P/DB_OWNER      PARAM           Database owner (string)
> /DB_DEF_P/DB_TABLESPACE         PARAM           Tablespace the
> database is in (string)

Surely, we _always_ need the database name, whatever provider we are
using. So that can be a parameter to prepare_create_database()?

I'm also surprised that both prepare_create_database() and
perform_create_database() take the provider name. Surely that should be
decided since calling prepare_create_database().

> An example of how to use the concept can be found in the
> testing/test-dyn-widgets.c file of libgnomedb starting line 2551. 

That doesn't do database creation, and it's a bit hard for me to follow.
The documentatino for the prepare_create_database() function needs to
give an example of what you might do next. For instance, what methods
you might call on the operation, with what parameters, before calling
perform_create_database(). And it needs to say exactly how to find out
what parameters are supported by the provider/operation.

Some test code that does something similar is not enough. That's so
GNOME 1.4.

Sorry for seeming to give you orders, but I don't think this is
something I can do for you.


-- 
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]