in reply to Different Database Permissions Using Class::DBI
As for how to do it, it's pretty simple. That whole base class setup is just a suggestion. You can either not have one at all and decide which database login to use in your class based on some config thing, or you could make Person a base class and then subclass it with MutablePerson and ImmutablePerson, moving the set_db call down to these subclasses.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Different Database Permissions Using Class::DBI
by Anonymous Monk on Jul 02, 2003 at 20:41 UTC | |
by perrin (Chancellor) on Jul 02, 2003 at 21:18 UTC |