On Feb 8, 2007, at 5:35 PM, John Siracusa wrote:

> Ah, then yeah, you need to replace all the "db"s with versions that  
> don't
> point to anything.  If you just remove the "db"s, new ones will be  
> created
> on demand (by calling init_db()).

perfect.   for my purpose then, i'm just going to make
        kill_db
alias
        init_db
which is a non-functional rose::db object


>
>>>> 3) what about making the get method 'dbh' a get/set?
>>> :)
>>
>> i'm hoping thats a yes...
>
> Er, that's a "it already is a get/set method in the latest version."

http://search.cpan.org/~jsiracusa/Rose-DB-Object/lib/Rose/DB/ 
Object.pm#dbh

and

sub dbh
{
   my($self) = shift;

   return $self->{'dbh'}  if($self->{'dbh'});

   my $db = $self->db or return 0;

   if(my $dbh = $db->dbh)
   {
     return $self->{'dbh'} = $dbh;
   }
   else
   {
     $self->error($db->error);
     $self->meta->handle_error($self);
     return undef;
   }
}


there's no set there :(

maybe you're speaking of svn?

i'm just going to do

        $rose_db_obj->db->dbh( $dbh )

which does the same thing.

what's with
        $self->{'dbh'}
anyways?

it doesn't seem to have a set anywhere in the class

aside from the get method, the only thing  setting the var is this:

sub db
        ...
     $self->{'db'}  = $new_db;
     $self->{'dbh'} = undef;
        ...





// Jonathan Vanasco

| - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -  
- - - - - - - - - - - - - - - - - - -
| SyndiClick.com
| - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -  
- - - - - - - - - - - - - - - - - - -
|      FindMeOn.com - The cure for Multiple Web Personality Disorder
|      Web Identity Management and 3D Social Networking
| - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -  
- - - - - - - - - - - - - - - - - - -
|      RoadSound.com - Tools For Bands, Stuff For Fans
|      Collaborative Online Management And Syndication Tools
| - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -  
- - - - - - - - - - - - - - - - - - -



-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Rose-db-object mailing list
Rose-db-object@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/rose-db-object

Reply via email to