in reply to Re: [CDBI] avoiding set_sql() redefinitions
in thread [CDBI] avoiding set_sql() redefinitions
Well:
WRT the last point in particular: do you mean that I can use DBI methods directly on my objects? All I know is that our "top level" class, from which all other ones do inherit is a
use base qw/Class::DBI::Oracle Class::DBI::Cacheable/;
and I find that that provides me a convenient way to access and possibly write data hiding the underlying db details, which is good since I know Perl far better than I know databases themselves.
In short: I'd prefer to keep lo and behold as far as I can get it to work. Accessing data through methods is fine and since I can have my own objects incorporate callbacks that are actually closures around suitable lexical variables, that keeps me fine as the resulting code is clear and maintainable and easy to understand and nicely "encapsulated" (not necessarily in the strict OO acceptation) for my tastes.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: [CDBI] avoiding set_sql() redefinitions
by perrin (Chancellor) on Jan 05, 2006 at 16:45 UTC | |
by blazar (Canon) on Jan 05, 2006 at 17:13 UTC | |
by perrin (Chancellor) on Jan 05, 2006 at 18:44 UTC | |
|
Re^3: [CDBI] avoiding set_sql() redefinitions
by duct_tape (Hermit) on Jan 05, 2006 at 16:43 UTC |