Re: [gnome-db] Row Inserting: How to?



On 9/15/06, Daniel Espinosa <esodan gmail com> wrote:
I'm try to insert a row in a table I used the following code in an SQLite
provider and it doesn't work:

1. Add a row using gda_data_model_append_row

2. Set each column's value using the returned row using
gda_data_model_set_value_at (But says it isn't implemented)


Then, how can I add a row to a GdaDataModel, using a procedures supported by
*all* the prividers?

Use a GdaDataModelQuery data model (see extra/gnome-db-browser.c,
function table_view_contents()). Note that I'm currently improving it
so that it'll create the modifications queries when they are easy to
create.


If I use the gda_data_model_append_values, the GList must be sorted to allow
the procedure finds the correct value for the column's number?

Yes.

Cheers,

Vivien



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