Re: [gnome-db] writing of .libgda/config



On Tue, 2005-03-01 at 11:57 +0800, Alan Knowles wrote:
> On Mon, 2005-02-28 at 13:14 +0100, Rodrigo Moya wrote:
> > On Wed, 2005-02-09 at 17:59 +0800, Alan Knowles wrote:
> > > I just started live testing of my extension, and realized that 
> > > config_set_string() all call write_config_file(). For the purposes of 
> > > the PHP extension, it will end up writing warnings as apache is  not 
> > > generally configured to write to it's home directory.
> > > 
> > > As far as I understand, there is no reason for save_data_source() to 
> > > actually write data (in the webserver case), as the config can be easily 
> > > handled at the PHP end. - the trick is how to turn off writing
> > > 
> > > a) set a flag that write_config_file() checks
> > > b) have another method setDataSource() - that doesnt actually save, it 
> > > just stores the datasource.. - trouble is the write_calls are part of 
> > > the config_set_string() methods..
> > > 
> > why do you set configuration entries if you don't want to write? What
> > are you trying to save?
> 
> Is there any other way to configure the database connection properties,
> without saving it then?
> 
yes, use gda_client_open_connection_from_string, which does not need a
data source in the configuration to work.

-- 
Rodrigo Moya <rodrigo gnome-db org>




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