Re: [gnome-db] gda_data_model_update_row syntax



On Tue, 2003-10-14 at 09:24, Paisa Seeluangsawat wrote:
> Regarding to "the ability to update a row", this is probably what
> gda_data_model_is_editable() is for.
> 
> I agree with moving provider specific functions into a separate
> header.  This will also help tidy up the documentation a bit, since
> regular users shouldn't have to care about these functions.
> 
> To prevent forcing user to cast off "const", I think we can provide
> separate functions for editing.  As added benefits, it allows
> providers to do special preparation, such as row locking or copying
> the original record values.
> 
> A draft idea follows.  Comment please :-),
> 
looks good, although I would improve it in a way that there is a status
on the row. That is, we can have a 'updatable' field on GdaRow, and when
you call get_upodatable_row, that flag is set to TRUE (being FALSE in
all other cases). Thus, providers can mark the rows that can be updated.

Also, I dont think we need the get_uopdatable_value function, since the
updatable values will be the ones contained in the updatable rows
returned by get_updatable_row.

cheers




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