Re: [gnome-db] Libgda 4.1.0 released

Daniel Espinosa <[email protected]>
Newsgroups gmane.comp.gnome.db
Message-ID <[email protected]>
To get the data row from the DB at object constructor run a SELECT query
returning a GdaDataSelect, but in order to manage modifications I'm using a
GdaDataProxy using the returning GdaDataSelect, then to modify the data I
call gda_data_model_* functions over the GdaDataProxy, and then commint
changes when finish to modify each column's value (csh_object_update wraps
gda_data_proxy_apply_all_changes)

I haven't deside if I will have a Global GdaDataProxy and the object must
refers to one and only one object in it, in order to avoid run multiple
SELECT queries each time a new object is created; for today implementation,
when open a data from the data base it runs a SELECT query with a WHERE id =
ID, returning a GdaDataSelect object with just one row, may be adding a
*_new function with a GdaDataModel and row number could resove the problem
and allows the developer to use a per object query or a global data model.

2009/4/21 Vivien Malerba <[email protected]>

>
>
> 2009/4/19 Daniel Espinosa <[email protected]>
>
>> I'm creating a financial library to record operations for accounting using
>> libgda, and I've created a CshObject to get a row from a table to get its
>> columns values or modify them, may be this object could be part of GDA you
>> can see the code for csh-object.c/h at:
>>
>> http://libcash.svn.sourceforge.net/viewvc/libcash/trunk/libcash/
>>
>
> I don't understand how it works because sometimes the priv->model is a
> GdaDataProxy, and sometimes it's a GdaDataSelect.
>
> Cheers,
>
> Vivien
>



-- 
Trabajar, la mejor arma para tu superación
"de grano en grano, se hace la arena" (R) (en trámite, pero para los cuates:
LIBRE)

_______________________________________________
gnome-db-list mailing list
[email protected]
http://mail.gnome.org/mailman/listinfo/gnome-db-list
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.