On 29 Mar 2001 13:08:36 +0200, Daniel Wagner wrote:
> Hi
> 
> Sorry for bothering you again, but I have some small problems with gnome-db. As Damon
> proposed I have added a property which allows you to edit 'Data Source' and
> select one. So far so good.
> But how should I handle each connection. I see two possibilities:
> 
> 1. Each gnome-db widget controls its own gda connections. I don't see
> actually how this should work, but I guess its feasible. Any ideas?
> 

well, it should work, but I don' think it's the best way, since this
will duplicate data in memory, and
make very difficult the synchronization of all the widgets.

> 2. The connection are global visible. Therefore a connection can be
> shared and furthermore it has to be opened/closed only once. 
> 

you should be using Gda_ConnectionPool's, which do exactly this. The
Gda_ConnectionPool object is
a bit incomplete, so please comment on what you think it's missing, and
I'll add it.
I think that's the best way, so that all widgets share the same
connections, and get proper notifications all of them at the same time
(for example, if you close the database, all widgets connected to that
database could get a notification so that they refresh themselves).

 
cheers
-- 
Rodrigo Moya <[EMAIL PROTECTED]> <[EMAIL PROTECTED]>
http://www.gnome-db.org/


_______________________________________________
Glade-devel maillist  -  [EMAIL PROTECTED]
http://lists.helixcode.com/mailman/listinfo/glade-devel

Reply via email to