Re: [gnome-db] Changing a field definition



On Sun, 2004-04-25 at 12:53, Rodrigo Moya wrote:
> On Sat, 2004-04-24 at 18:02 +0200, Murray Cumming wrote:
> > gda_data_model_update_column() seems to be a way to change the column
> > definition. But I think the data_model needs to be one with data in it,
> > such as the result of a "SELECT" command.
> > 
> it doesn't need to be filled in with data. What is needed is the
> structure of the data model, which only can be retrieved by knowing
> which command is going to be executed.

Thans, but I don't understand the "knowing which command is going to be
executed" part. How could I create a suitable datamodel? Are you saying
that the result of a "SELECT * FROM thetable" query is indeed a good
thing to use?

> Then, as providers usually only fetch the data when needed, it means you
> get the model's structure without the need to retrieve all the data.
> 
> It will be as quick as doing the get_schema stuff, since in both cases
> you'll have to do a SELECT, and in the model's case, you wont retrieve
> any data at all (if not needed).

So gda_connection_execute_single_command() does not actually execute any
command until I do a gda_data_model_get_value_at()?

> also, btw, update_column does not work on 1.0.x.

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




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