Re: [gnome-db] Changing a field definition



On Tue, 2004-04-27 at 09:27 +0200, Vivien wrote:
> > On Sun, 2004-04-25 at 17:55, Rodrigo Moya wrote:
> > Actually, I didn't think that the get_schema() was even an option for me
> > when I want to change the field type. Or is the data_model returned by
> > get_schema() writeable?
> >
> >> A better solution for this would be, I guess, to have create_table,
> >> modify_table, etc methods on the provider.
> 
> I also believe that having in the providers at least:
> create_table()
> drop_table()
>
both of these are now added to CVS HEAD, only missing the implementation
on each provider.

> add_field_to_table()
> delete_field_from_table()
> modify_field()
>
hmm, I'd like to have a more 'elegant' way of doing it, like doing it
via the data model (both the one returned by get_schema like any
others). This involves more work on the providers, but I think it makes
more sense, given we already have the update_column API in the data
model.

> create_database()
> drop_database()
> 
these 2 are already available.

cheers




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