Subject: | Easier sub-classing of DBD's |
Hiya,
I've just been trying to sub-class DBD::mysql and DBD::Oracle to implement some specific fail-over code at the DBD layer (in a similar way to DBIx::HA).
I've had some success, but there are some niggly bits that are inherent in the DBD spec. I think that if would be handy if DBI were to use constants / simple methods to access class variable, rather than direct variable access like '$DBD::Driver::imp_data_size' -- this way the variables can be easily inherited rather than having to copy them to preserve their values.
hth,
-Steve