Re: Does an explicit database close method exist?

[prev] [thread] [next] [Date index for 2004/09/22]

From: fade
Subject: Re: Does an explicit database close method exist?
Date: 08:22 on 22 Sep 2004
Hi Bob,

Besides what Perrin has said, you could also code your own disconnect method in your own code, next to your set_db method.

package My::ClassDBI;

use base 'Class::DBI';

__PACKAGE__->set_db('Main','dbi:type:db','user','pass');

disconnect {
  __PACKAGE__->db_Main->disconnect;
}


Carl

RE: Does an explicit database close method exist?
Carl Johnstone 12:14 on 20 Sep 2004

Re: Does an explicit database close method exist?
Robert Rombaut 14:29 on 20 Sep 2004

RE: Does an explicit database close method exist?
Carl Johnstone 14:45 on 20 Sep 2004

Re: Does an explicit database close method exist?
Robert Rombaut 22:04 on 21 Sep 2004

Re: Does an explicit database close method exist?
Perrin Harkins 22:15 on 21 Sep 2004

Re: Does an explicit database close method exist?
fade 08:22 on 22 Sep 2004

Generated at 11:35 on 01 Dec 2004 by mariachi v0.52