Why not at least try to use the DBI introspection APIs to get column information? Failing that, are you sure that a "SELECT *" will always give you something meaningful in $sth->{NAME} if there are no rows in the table?
Also, I'm not sure defaulting to using the first column as the primary key is a great idea. If you're going to ask that the primary key be set up manually, then don't try to guess. There's no reasonable default, IMO.
The name seems okay to me, though :)
In reply to Re: RFC : Class::DBI::Loader::AnyDBD
by siracusa
in thread RFC : Class::DBI::Loader::AnyDBD
by jZed
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |