Re: [siesta-dev] db stuff, again

[prev] [thread] [next] [lurker] [Date index for 2002/08/28]

From: Richard Clamp
Subject: Re: [siesta-dev] db stuff, again
Date: 17:11 on 28 Aug 2002
On Wed, Aug 28, 2002 at 09:28:47AM +0100, Simon Wistow wrote:
> Oooh. Was just looking through richard's new checkins and they're shiny. 
> 
> Still having problems with the db though and getting access from CGI
> apps.
> 
> Any suggestions?

It *should* now be as simple as:

my $s = Siesta->connect( DBI => "dbi:SQLite:/my/test.db" );

which under the hood dtrt to make sure that Siesta::Storage::DBI is
loaded and called.

> Am I just being a div?

I think you're probably still having locking problems.  

Unfortunately I see a way to make Class::DBI connect when I want it
to, rather than at first data fetch.  That means Siesta->connect( DBI
=> ... ); can't easily return false on failure as I'd like it to.

-- 
Richard Clamp <richardc@xxxxxxxxx.xxx>

Generated at 13:56 on 01 Jul 2004 by mariachi 0.52