On 9/15/06, Daniel Espinosa <[EMAIL PROTECTED]> 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
_______________________________________________
gnome-db-list mailing list
[email protected]
http://mail.gnome.org/mailman/listinfo/gnome-db-list

Reply via email to